diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md b/sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md deleted file mode 100644 index 9f3eaeda0793..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -# Release History - -## 0.2.0 (2019-10-31) - -**Features** - - - Model VirtualNic has a new parameter customization - - Model VirtualMachine has a new parameter customization - - Added operation group CustomizationPoliciesOperations - -## 0.1.0 (2019-10-08) - - - Initial Release diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/MANIFEST.in b/sdk/compute/azure-mgmt-vmwarecloudsimple/MANIFEST.in deleted file mode 100644 index a3cb07df8765..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -recursive-include tests *.py *.yaml -include *.md -include azure/__init__.py -include azure/mgmt/__init__.py - diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/README.md b/sdk/compute/azure-mgmt-vmwarecloudsimple/README.md deleted file mode 100644 index 79322e38ca39..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/README.md +++ /dev/null @@ -1,29 +0,0 @@ -## Microsoft Azure SDK for Python - -This is the Microsoft Azure MyService Management Client Library. - -Azure Resource Manager (ARM) is the next generation of management APIs -that replace the old Azure Service Management (ASM). - -This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. - -For the older Azure Service Management (ASM) libraries, see -[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy) -library. - -For a more complete set of Azure libraries, see the -[azure sdk python release](https://aka.ms/azsdk/python/all). - -## Usage - -For code examples, see [MyService -Management](https://docs.microsoft.com/python/api/overview/azure/) on -docs.microsoft.com. - -## 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-vmwarecloudsimple%2FREADME.png) diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/__init__.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/__init__.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/__init__.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/__init__.py deleted file mode 100644 index 9b5285fbe233..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# 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 ._configuration import VMwareCloudSimpleClientConfiguration -from ._vmware_cloud_simple_client import VMwareCloudSimpleClient -__all__ = ['VMwareCloudSimpleClient', 'VMwareCloudSimpleClientConfiguration'] - -from .version import VERSION - -__version__ = VERSION - diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_configuration.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_configuration.py deleted file mode 100644 index 714af4bb26e9..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_configuration.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 msrestazure import AzureConfiguration - -from .version import VERSION - - -class VMwareCloudSimpleClientConfiguration(AzureConfiguration): - """Configuration for VMwareCloudSimpleClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription ID. - :type subscription_id: str - :param referer: referer url - :type referer: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, referer, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if referer is None: - raise ValueError("Parameter 'referer' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(VMwareCloudSimpleClientConfiguration, self).__init__(base_url) - - # Starting Autorest.Python 4.0.64, make connection pool activated by default - self.keep_alive = True - - self.add_user_agent('azure-mgmt-vmwarecloudsimple/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - self.referer = referer diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_vmware_cloud_simple_client.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_vmware_cloud_simple_client.py deleted file mode 100644 index 135b8bd42d45..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_vmware_cloud_simple_client.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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.service_client import SDKClient -from msrest import Serializer, Deserializer - -from ._configuration import VMwareCloudSimpleClientConfiguration -from .operations import Operations -from .operations import DedicatedCloudNodesOperations -from .operations import DedicatedCloudServicesOperations -from .operations import SkusAvailabilityOperations -from .operations import PrivateCloudsOperations -from .operations import CustomizationPoliciesOperations -from .operations import ResourcePoolsOperations -from .operations import VirtualMachineTemplatesOperations -from .operations import VirtualNetworksOperations -from .operations import UsagesOperations -from .operations import VirtualMachinesOperations -from . import models - - -class VMwareCloudSimpleClient(SDKClient): - """Description of the new service - - :ivar config: Configuration for client. - :vartype config: VMwareCloudSimpleClientConfiguration - - :ivar operations: Operations operations - :vartype operations: azure.mgmt.vmwarecloudsimple.operations.Operations - :ivar dedicated_cloud_nodes: DedicatedCloudNodes operations - :vartype dedicated_cloud_nodes: azure.mgmt.vmwarecloudsimple.operations.DedicatedCloudNodesOperations - :ivar dedicated_cloud_services: DedicatedCloudServices operations - :vartype dedicated_cloud_services: azure.mgmt.vmwarecloudsimple.operations.DedicatedCloudServicesOperations - :ivar skus_availability: SkusAvailability operations - :vartype skus_availability: azure.mgmt.vmwarecloudsimple.operations.SkusAvailabilityOperations - :ivar private_clouds: PrivateClouds operations - :vartype private_clouds: azure.mgmt.vmwarecloudsimple.operations.PrivateCloudsOperations - :ivar customization_policies: CustomizationPolicies operations - :vartype customization_policies: azure.mgmt.vmwarecloudsimple.operations.CustomizationPoliciesOperations - :ivar resource_pools: ResourcePools operations - :vartype resource_pools: azure.mgmt.vmwarecloudsimple.operations.ResourcePoolsOperations - :ivar virtual_machine_templates: VirtualMachineTemplates operations - :vartype virtual_machine_templates: azure.mgmt.vmwarecloudsimple.operations.VirtualMachineTemplatesOperations - :ivar virtual_networks: VirtualNetworks operations - :vartype virtual_networks: azure.mgmt.vmwarecloudsimple.operations.VirtualNetworksOperations - :ivar usages: Usages operations - :vartype usages: azure.mgmt.vmwarecloudsimple.operations.UsagesOperations - :ivar virtual_machines: VirtualMachines operations - :vartype virtual_machines: azure.mgmt.vmwarecloudsimple.operations.VirtualMachinesOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription ID. - :type subscription_id: str - :param referer: referer url - :type referer: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, referer, base_url=None): - - self.config = VMwareCloudSimpleClientConfiguration(credentials, subscription_id, referer, base_url) - super(VMwareCloudSimpleClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2019-04-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) - self.dedicated_cloud_nodes = DedicatedCloudNodesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.dedicated_cloud_services = DedicatedCloudServicesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.skus_availability = SkusAvailabilityOperations( - self._client, self.config, self._serialize, self._deserialize) - self.private_clouds = PrivateCloudsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.customization_policies = CustomizationPoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.resource_pools = ResourcePoolsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.virtual_machine_templates = VirtualMachineTemplatesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.virtual_networks = VirtualNetworksOperations( - self._client, self.config, self._serialize, self._deserialize) - self.usages = UsagesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.virtual_machines = VirtualMachinesOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/__init__.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/__init__.py deleted file mode 100644 index eb93537f80f8..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/__init__.py +++ /dev/null @@ -1,164 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import AvailableOperation - from ._models_py3 import AvailableOperationDisplay - from ._models_py3 import AvailableOperationDisplayPropertyServiceSpecificationMetricsItem - from ._models_py3 import AvailableOperationDisplayPropertyServiceSpecificationMetricsList - from ._models_py3 import CSRPError, CSRPErrorException - from ._models_py3 import CSRPErrorBody - from ._models_py3 import CustomizationHostName - from ._models_py3 import CustomizationIdentity - from ._models_py3 import CustomizationIdentityUserData - from ._models_py3 import CustomizationIPAddress - from ._models_py3 import CustomizationIPSettings - from ._models_py3 import CustomizationNicSetting - from ._models_py3 import CustomizationPolicy - from ._models_py3 import CustomizationSpecification - from ._models_py3 import DedicatedCloudNode - from ._models_py3 import DedicatedCloudService - from ._models_py3 import GuestOSCustomization - from ._models_py3 import GuestOSNICCustomization - from ._models_py3 import OperationError - from ._models_py3 import OperationResource - from ._models_py3 import PatchPayload - from ._models_py3 import PrivateCloud - from ._models_py3 import ResourcePool - from ._models_py3 import Sku - from ._models_py3 import SkuAvailability - from ._models_py3 import Usage - from ._models_py3 import UsageName - from ._models_py3 import VirtualDisk - from ._models_py3 import VirtualDiskController - from ._models_py3 import VirtualMachine - from ._models_py3 import VirtualMachineStopMode - from ._models_py3 import VirtualMachineTemplate - from ._models_py3 import VirtualNetwork - from ._models_py3 import VirtualNic -except (SyntaxError, ImportError): - from ._models import AvailableOperation - from ._models import AvailableOperationDisplay - from ._models import AvailableOperationDisplayPropertyServiceSpecificationMetricsItem - from ._models import AvailableOperationDisplayPropertyServiceSpecificationMetricsList - from ._models import CSRPError, CSRPErrorException - from ._models import CSRPErrorBody - from ._models import CustomizationHostName - from ._models import CustomizationIdentity - from ._models import CustomizationIdentityUserData - from ._models import CustomizationIPAddress - from ._models import CustomizationIPSettings - from ._models import CustomizationNicSetting - from ._models import CustomizationPolicy - from ._models import CustomizationSpecification - from ._models import DedicatedCloudNode - from ._models import DedicatedCloudService - from ._models import GuestOSCustomization - from ._models import GuestOSNICCustomization - from ._models import OperationError - from ._models import OperationResource - from ._models import PatchPayload - from ._models import PrivateCloud - from ._models import ResourcePool - from ._models import Sku - from ._models import SkuAvailability - from ._models import Usage - from ._models import UsageName - from ._models import VirtualDisk - from ._models import VirtualDiskController - from ._models import VirtualMachine - from ._models import VirtualMachineStopMode - from ._models import VirtualMachineTemplate - from ._models import VirtualNetwork - from ._models import VirtualNic -from ._paged_models import AvailableOperationPaged -from ._paged_models import CustomizationPolicyPaged -from ._paged_models import DedicatedCloudNodePaged -from ._paged_models import DedicatedCloudServicePaged -from ._paged_models import PrivateCloudPaged -from ._paged_models import ResourcePoolPaged -from ._paged_models import SkuAvailabilityPaged -from ._paged_models import UsagePaged -from ._paged_models import VirtualMachinePaged -from ._paged_models import VirtualMachineTemplatePaged -from ._paged_models import VirtualNetworkPaged -from ._vmware_cloud_simple_client_enums import ( - OperationOrigin, - AggregationType, - NodeStatus, - OnboardingStatus, - DiskIndependenceMode, - NICType, - PrivateCloudResourceType, - UsageCount, - GuestOSType, - VirtualMachineStatus, - StopMode, -) - -__all__ = [ - 'AvailableOperation', - 'AvailableOperationDisplay', - 'AvailableOperationDisplayPropertyServiceSpecificationMetricsItem', - 'AvailableOperationDisplayPropertyServiceSpecificationMetricsList', - 'CSRPError', 'CSRPErrorException', - 'CSRPErrorBody', - 'CustomizationHostName', - 'CustomizationIdentity', - 'CustomizationIdentityUserData', - 'CustomizationIPAddress', - 'CustomizationIPSettings', - 'CustomizationNicSetting', - 'CustomizationPolicy', - 'CustomizationSpecification', - 'DedicatedCloudNode', - 'DedicatedCloudService', - 'GuestOSCustomization', - 'GuestOSNICCustomization', - 'OperationError', - 'OperationResource', - 'PatchPayload', - 'PrivateCloud', - 'ResourcePool', - 'Sku', - 'SkuAvailability', - 'Usage', - 'UsageName', - 'VirtualDisk', - 'VirtualDiskController', - 'VirtualMachine', - 'VirtualMachineStopMode', - 'VirtualMachineTemplate', - 'VirtualNetwork', - 'VirtualNic', - 'AvailableOperationPaged', - 'DedicatedCloudNodePaged', - 'DedicatedCloudServicePaged', - 'SkuAvailabilityPaged', - 'PrivateCloudPaged', - 'CustomizationPolicyPaged', - 'ResourcePoolPaged', - 'VirtualMachineTemplatePaged', - 'VirtualNetworkPaged', - 'UsagePaged', - 'VirtualMachinePaged', - 'OperationOrigin', - 'AggregationType', - 'NodeStatus', - 'OnboardingStatus', - 'DiskIndependenceMode', - 'NICType', - 'PrivateCloudResourceType', - 'UsageCount', - 'GuestOSType', - 'VirtualMachineStatus', - 'StopMode', -] diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_models.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_models.py deleted file mode 100644 index b9ca82f10531..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_models.py +++ /dev/null @@ -1,1583 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class AvailableOperation(Model): - """Resource provider available operation model. - - :param display: The list of operations - :type display: - ~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplay - :param is_data_action: Indicating whether the operation is a data action - or not. Default value: False . - :type is_data_action: bool - :param name: - {resourceProviderNamespace}/{resourceType}/{read|write|delete|action} - :type name: str - :param origin: The origin of operation. Possible values include: 'user', - 'system', 'user,system' - :type origin: str or ~azure.mgmt.vmwarecloudsimple.models.OperationOrigin - :param service_specification: The list of specification's service metrics - :type service_specification: - ~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplayPropertyServiceSpecificationMetricsList - """ - - _attribute_map = { - 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'OperationOrigin'}, - 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'AvailableOperationDisplayPropertyServiceSpecificationMetricsList'}, - } - - def __init__(self, **kwargs): - super(AvailableOperation, self).__init__(**kwargs) - self.display = kwargs.get('display', None) - self.is_data_action = kwargs.get('is_data_action', False) - self.name = kwargs.get('name', None) - self.origin = kwargs.get('origin', None) - self.service_specification = kwargs.get('service_specification', None) - - -class AvailableOperationDisplay(Model): - """Resource provider available operation display model. - - :param description: Description of the operation for display purposes - :type description: str - :param operation: Name of the operation for display purposes - :type operation: str - :param provider: Name of the provider for display purposes - :type provider: str - :param resource: Name of the resource type for display purposes - :type resource: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AvailableOperationDisplay, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.operation = kwargs.get('operation', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - - -class AvailableOperationDisplayPropertyServiceSpecificationMetricsItem(Model): - """Available operation display property service specification metrics item. - - All required parameters must be populated in order to send to Azure. - - :param aggregation_type: Required. Metric's aggregation type for e.g. - (Average, Total). Possible values include: 'Average', 'Total' - :type aggregation_type: str or - ~azure.mgmt.vmwarecloudsimple.models.AggregationType - :param display_description: Required. Metric's description - :type display_description: str - :param display_name: Required. Human readable metric's name - :type display_name: str - :param name: Required. Metric's name/id - :type name: str - :param unit: Required. Metric's unit - :type unit: str - """ - - _validation = { - 'aggregation_type': {'required': True}, - 'display_description': {'required': True}, - 'display_name': {'required': True}, - 'name': {'required': True}, - 'unit': {'required': True}, - } - - _attribute_map = { - 'aggregation_type': {'key': 'aggregationType', 'type': 'AggregationType'}, - 'display_description': {'key': 'displayDescription', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'unit': {'key': 'unit', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AvailableOperationDisplayPropertyServiceSpecificationMetricsItem, self).__init__(**kwargs) - self.aggregation_type = kwargs.get('aggregation_type', None) - self.display_description = kwargs.get('display_description', None) - self.display_name = kwargs.get('display_name', None) - self.name = kwargs.get('name', None) - self.unit = kwargs.get('unit', None) - - -class AvailableOperationDisplayPropertyServiceSpecificationMetricsList(Model): - """List of available operation display property service specification metrics. - - :param metric_specifications: Metric specifications of operation - :type metric_specifications: - list[~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplayPropertyServiceSpecificationMetricsItem] - """ - - _attribute_map = { - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[AvailableOperationDisplayPropertyServiceSpecificationMetricsItem]'}, - } - - def __init__(self, **kwargs): - super(AvailableOperationDisplayPropertyServiceSpecificationMetricsList, self).__init__(**kwargs) - self.metric_specifications = kwargs.get('metric_specifications', None) - - -class CloudError(Model): - """CloudError. - """ - - _attribute_map = { - } - - -class CSRPError(Model): - """General error model. - - :param error: Error's body - :type error: ~azure.mgmt.vmwarecloudsimple.models.CSRPErrorBody - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'CSRPErrorBody'}, - } - - def __init__(self, **kwargs): - super(CSRPError, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class CSRPErrorException(HttpOperationError): - """Server responsed with exception of type: 'CSRPError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(CSRPErrorException, self).__init__(deserialize, response, 'CSRPError', *args) - - -class CSRPErrorBody(Model): - """Error properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error's code - :vartype code: str - :ivar details: Error's details - :vartype details: list[~azure.mgmt.vmwarecloudsimple.models.CSRPErrorBody] - :ivar message: Error's message - :vartype message: str - :param target: Error's target - :type target: str - """ - - _validation = { - 'code': {'readonly': True}, - 'details': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CSRPErrorBody]'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CSRPErrorBody, self).__init__(**kwargs) - self.code = None - self.details = None - self.message = None - self.target = kwargs.get('target', None) - - -class CustomizationHostName(Model): - """Host name model. - - :param name: Hostname - :type name: str - :param type: Type of host name. Possible values include: 'USER_DEFINED', - 'PREFIX_BASED', 'FIXED', 'VIRTUAL_MACHINE_NAME', 'CUSTOM_NAME' - :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomizationHostName, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) - - -class CustomizationIdentity(Model): - """CustomizationIdentity. - - :param data: Windows Text Identity. Prepared data - :type data: str - :param host_name: Virtual machine host name settings - :type host_name: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationHostName - :param type: Identity type. Possible values include: 'WINDOWS_TEXT', - 'WINDOWS', 'LINUX' - :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum - :param user_data: Windows Identity. User data customization - :type user_data: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationIdentityUserData - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'str'}, - 'host_name': {'key': 'hostName', 'type': 'CustomizationHostName'}, - 'type': {'key': 'type', 'type': 'str'}, - 'user_data': {'key': 'userData', 'type': 'CustomizationIdentityUserData'}, - } - - def __init__(self, **kwargs): - super(CustomizationIdentity, self).__init__(**kwargs) - self.data = kwargs.get('data', None) - self.host_name = kwargs.get('host_name', None) - self.type = kwargs.get('type', None) - self.user_data = kwargs.get('user_data', None) - - -class CustomizationIdentityUserData(Model): - """Windows Identity. User data customization. - - :param is_password_predefined: Is password predefined in customization - policy. Default value: False . - :type is_password_predefined: bool - """ - - _attribute_map = { - 'is_password_predefined': {'key': 'isPasswordPredefined', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(CustomizationIdentityUserData, self).__init__(**kwargs) - self.is_password_predefined = kwargs.get('is_password_predefined', False) - - -class CustomizationIPAddress(Model): - """CustomizationIPAddress. - - :param argument: Argument when Custom ip type is selected - :type argument: str - :param ip_address: Defined Ip Address when Fixed ip type is selected - :type ip_address: str - :param type: Customization Specification ip type. Possible values include: - 'CUSTOM', 'DHCP_IP', 'FIXED_IP', 'USER_DEFINED' - :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum - """ - - _attribute_map = { - 'argument': {'key': 'argument', 'type': 'str'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomizationIPAddress, self).__init__(**kwargs) - self.argument = kwargs.get('argument', None) - self.ip_address = kwargs.get('ip_address', None) - self.type = kwargs.get('type', None) - - -class CustomizationIPSettings(Model): - """CustomizationIPSettings. - - :param gateway: The list of gateways - :type gateway: list[str] - :param ip: Ip address customization settings - :type ip: ~azure.mgmt.vmwarecloudsimple.models.CustomizationIPAddress - :param subnet_mask: Adapter subnet mask - :type subnet_mask: str - """ - - _attribute_map = { - 'gateway': {'key': 'gateway', 'type': '[str]'}, - 'ip': {'key': 'ip', 'type': 'CustomizationIPAddress'}, - 'subnet_mask': {'key': 'subnetMask', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomizationIPSettings, self).__init__(**kwargs) - self.gateway = kwargs.get('gateway', None) - self.ip = kwargs.get('ip', None) - self.subnet_mask = kwargs.get('subnet_mask', None) - - -class CustomizationNicSetting(Model): - """CustomizationNicSetting. - - :param adapter: The list of adapters' settings - :type adapter: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationIPSettings - :param mac_address: NIC mac address - :type mac_address: str - """ - - _attribute_map = { - 'adapter': {'key': 'adapter', 'type': 'CustomizationIPSettings'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomizationNicSetting, self).__init__(**kwargs) - self.adapter = kwargs.get('adapter', None) - self.mac_address = kwargs.get('mac_address', None) - - -class CustomizationPolicy(Model): - """The virtual machine customization policy. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Customization policy azure id - :type id: str - :param location: Azure region - :type location: str - :ivar name: Customization policy name - :vartype name: str - :param description: Policy description - :type description: str - :param private_cloud_id: The Private cloud id - :type private_cloud_id: str - :param specification: Detailed customization policy specification - :type specification: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationSpecification - :param customization_policy_properties_type: The type of customization - (Linux or Windows). Possible values include: 'LINUX', 'WINDOWS' - :type customization_policy_properties_type: str or - ~azure.mgmt.vmwarecloudsimple.models.enum - :param version: Policy version - :type version: str - :ivar type: - :vartype type: str - """ - - _validation = { - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'specification': {'key': 'properties.specification', 'type': 'CustomizationSpecification'}, - 'customization_policy_properties_type': {'key': 'properties.type', 'type': 'str'}, - 'version': {'key': 'properties.version', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomizationPolicy, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.location = kwargs.get('location', None) - self.name = None - self.description = kwargs.get('description', None) - self.private_cloud_id = kwargs.get('private_cloud_id', None) - self.specification = kwargs.get('specification', None) - self.customization_policy_properties_type = kwargs.get('customization_policy_properties_type', None) - self.version = kwargs.get('version', None) - self.type = None - - -class CustomizationSpecification(Model): - """The specification for Customization Policy. - - :param identity: Customization Identity. It contains data about user and - hostname - :type identity: ~azure.mgmt.vmwarecloudsimple.models.CustomizationIdentity - :param nic_settings: Network interface settings - :type nic_settings: - list[~azure.mgmt.vmwarecloudsimple.models.CustomizationNicSetting] - """ - - _attribute_map = { - 'identity': {'key': 'identity', 'type': 'CustomizationIdentity'}, - 'nic_settings': {'key': 'nicSettings', 'type': '[CustomizationNicSetting]'}, - } - - def __init__(self, **kwargs): - super(CustomizationSpecification, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.nic_settings = kwargs.get('nic_settings', None) - - -class DedicatedCloudNode(Model): - """Dedicated cloud node model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudNodes/{dedicatedCloudNodeName} - :vartype id: str - :param location: Required. Azure region - :type location: str - :ivar name: {dedicatedCloudNodeName} - :vartype name: str - :param availability_zone_id: Required. Availability Zone id, e.g. "az1" - :type availability_zone_id: str - :ivar availability_zone_name: Availability Zone name, e.g. "Availability - Zone 1" - :vartype availability_zone_name: str - :ivar cloud_rack_name: VMWare Cloud Rack Name - :vartype cloud_rack_name: str - :ivar created: date time the resource was created - :vartype created: object - :param nodes_count: Required. count of nodes to create - :type nodes_count: int - :param placement_group_id: Required. Placement Group id, e.g. "n1" - :type placement_group_id: str - :ivar placement_group_name: Placement Name, e.g. "Placement Group 1" - :vartype placement_group_name: str - :ivar private_cloud_id: Private Cloud Id - :vartype private_cloud_id: str - :ivar private_cloud_name: Resource Pool Name - :vartype private_cloud_name: str - :ivar provisioning_state: The provisioning status of the resource - :vartype provisioning_state: str - :param purchase_id: Required. purchase id - :type purchase_id: str - :param id1: Required. SKU's id - :type id1: str - :param name1: Required. SKU's name - :type name1: str - :ivar status: Node status, indicates is private cloud set up on this node - or not. Possible values include: 'unused', 'used' - :vartype status: str or ~azure.mgmt.vmwarecloudsimple.models.NodeStatus - :ivar vmware_cluster_name: VMWare Cluster Name - :vartype vmware_cluster_name: str - :param sku: Dedicated Cloud Nodes SKU - :type sku: ~azure.mgmt.vmwarecloudsimple.models.Sku - :param tags: Dedicated Cloud Nodes tags - :type tags: dict[str, str] - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'}, - 'availability_zone_id': {'required': True}, - 'availability_zone_name': {'readonly': True}, - 'cloud_rack_name': {'readonly': True}, - 'created': {'readonly': True}, - 'nodes_count': {'required': True}, - 'placement_group_id': {'required': True}, - 'placement_group_name': {'readonly': True}, - 'private_cloud_id': {'readonly': True}, - 'private_cloud_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'purchase_id': {'required': True}, - 'id1': {'required': True}, - 'name1': {'required': True}, - 'status': {'readonly': True}, - 'vmware_cluster_name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'}, - 'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'}, - 'cloud_rack_name': {'key': 'properties.cloudRackName', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'object'}, - 'nodes_count': {'key': 'properties.nodesCount', 'type': 'int'}, - 'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'}, - 'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'private_cloud_name': {'key': 'properties.privateCloudName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'purchase_id': {'key': 'properties.purchaseId', 'type': 'str'}, - 'id1': {'key': 'properties.skuDescription.id', 'type': 'str'}, - 'name1': {'key': 'properties.skuDescription.name', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'NodeStatus'}, - 'vmware_cluster_name': {'key': 'properties.vmwareClusterName', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DedicatedCloudNode, self).__init__(**kwargs) - self.id = None - self.location = kwargs.get('location', None) - self.name = None - self.availability_zone_id = kwargs.get('availability_zone_id', None) - self.availability_zone_name = None - self.cloud_rack_name = None - self.created = None - self.nodes_count = kwargs.get('nodes_count', None) - self.placement_group_id = kwargs.get('placement_group_id', None) - self.placement_group_name = None - self.private_cloud_id = None - self.private_cloud_name = None - self.provisioning_state = None - self.purchase_id = kwargs.get('purchase_id', None) - self.id1 = kwargs.get('id1', None) - self.name1 = kwargs.get('name1', None) - self.status = None - self.vmware_cluster_name = None - self.sku = kwargs.get('sku', None) - self.tags = kwargs.get('tags', None) - self.type = None - - -class DedicatedCloudService(Model): - """Dedicated cloud service model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudServices/{dedicatedCloudServiceName} - :vartype id: str - :param location: Required. Azure region - :type location: str - :ivar name: {dedicatedCloudServiceName} - :vartype name: str - :param gateway_subnet: Required. gateway Subnet for the account. It will - collect the subnet address and always treat it as /28 - :type gateway_subnet: str - :ivar is_account_onboarded: indicates whether account onboarded or not in - a given region. Possible values include: 'notOnBoarded', 'onBoarded', - 'onBoardingFailed', 'onBoarding' - :vartype is_account_onboarded: str or - ~azure.mgmt.vmwarecloudsimple.models.OnboardingStatus - :ivar nodes: total nodes purchased - :vartype nodes: int - :ivar service_url: link to a service management web portal - :vartype service_url: str - :param tags: The list of tags - :type tags: dict[str, str] - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'}, - 'gateway_subnet': {'required': True}, - 'is_account_onboarded': {'readonly': True}, - 'nodes': {'readonly': True}, - 'service_url': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'gateway_subnet': {'key': 'properties.gatewaySubnet', 'type': 'str'}, - 'is_account_onboarded': {'key': 'properties.isAccountOnboarded', 'type': 'OnboardingStatus'}, - 'nodes': {'key': 'properties.nodes', 'type': 'int'}, - 'service_url': {'key': 'properties.serviceURL', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DedicatedCloudService, self).__init__(**kwargs) - self.id = None - self.location = kwargs.get('location', None) - self.name = None - self.gateway_subnet = kwargs.get('gateway_subnet', None) - self.is_account_onboarded = None - self.nodes = None - self.service_url = None - self.tags = kwargs.get('tags', None) - self.type = None - - -class GuestOSCustomization(Model): - """Guest OS Customization properties. - - :param dns_servers: List of dns servers to use - :type dns_servers: list[str] - :param host_name: Virtual Machine hostname - :type host_name: str - :param password: Password for login - :type password: str - :param policy_id: id of customization policy - :type policy_id: str - :param username: Username for login - :type username: str - """ - - _attribute_map = { - 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, - 'host_name': {'key': 'hostName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'username': {'key': 'username', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GuestOSCustomization, self).__init__(**kwargs) - self.dns_servers = kwargs.get('dns_servers', None) - self.host_name = kwargs.get('host_name', None) - self.password = kwargs.get('password', None) - self.policy_id = kwargs.get('policy_id', None) - self.username = kwargs.get('username', None) - - -class GuestOSNICCustomization(Model): - """Guest OS nic customization. - - :param allocation: IP address allocation method. Possible values include: - 'static', 'dynamic' - :type allocation: str or ~azure.mgmt.vmwarecloudsimple.models.enum - :param dns_servers: List of dns servers to use - :type dns_servers: list[str] - :param gateway: Gateway addresses assigned to nic - :type gateway: list[str] - :param ip_address: Static ip address for nic - :type ip_address: str - :param mask: Network mask for nic - :type mask: str - :param primary_wins_server: primary WINS server for Windows - :type primary_wins_server: str - :param secondary_wins_server: secondary WINS server for Windows - :type secondary_wins_server: str - """ - - _attribute_map = { - 'allocation': {'key': 'allocation', 'type': 'str'}, - 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, - 'gateway': {'key': 'gateway', 'type': '[str]'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'mask': {'key': 'mask', 'type': 'str'}, - 'primary_wins_server': {'key': 'primaryWinsServer', 'type': 'str'}, - 'secondary_wins_server': {'key': 'secondaryWinsServer', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GuestOSNICCustomization, self).__init__(**kwargs) - self.allocation = kwargs.get('allocation', None) - self.dns_servers = kwargs.get('dns_servers', None) - self.gateway = kwargs.get('gateway', None) - self.ip_address = kwargs.get('ip_address', None) - self.mask = kwargs.get('mask', None) - self.primary_wins_server = kwargs.get('primary_wins_server', None) - self.secondary_wins_server = kwargs.get('secondary_wins_server', None) - - -class OperationError(Model): - """Operation error model. - - :param code: Error's code - :type code: str - :param message: Error's message - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - - -class OperationResource(Model): - """Operation status response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar end_time: End time of the operation - :vartype end_time: datetime - :param error: Error Message if operation failed - :type error: ~azure.mgmt.vmwarecloudsimple.models.OperationError - :ivar id: Operation Id - :vartype id: str - :ivar name: Operation ID - :vartype name: str - :ivar start_time: Start time of the operation - :vartype start_time: datetime - :ivar status: Operation status - :vartype status: str - """ - - _validation = { - 'end_time': {'readonly': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'start_time': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationError'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationResource, self).__init__(**kwargs) - self.end_time = None - self.error = kwargs.get('error', None) - self.id = None - self.name = None - self.start_time = None - self.status = None - - -class PatchPayload(Model): - """General patch payload modal. - - :param tags: The tags key:value pairs - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(PatchPayload, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - - -class PrivateCloud(Model): - """Private cloud model. - - :param id: Azure Id, e.g. - "/subscriptions/4da99247-a172-4ed6-8ae9-ebed2d12f839/providers/Microsoft.VMwareCloudSimple/privateClouds/cloud123" - :type id: str - :param location: Location where private cloud created, e.g "westus" - :type location: str - :param name: Private cloud name - :type name: str - :param availability_zone_id: Availability Zone id, e.g. "az1" - :type availability_zone_id: str - :param availability_zone_name: Availability Zone name, e.g. "Availability - Zone 1" - :type availability_zone_name: str - :param clusters_number: Number of clusters - :type clusters_number: int - :param created_by: User's emails who created cloud - :type created_by: str - :param created_on: When private cloud was created - :type created_on: datetime - :param dns_servers: Array of DNS servers - :type dns_servers: list[str] - :param expires: Expiration date of PC - :type expires: str - :param nsx_type: Nsx Type, e.g. "Advanced" - :type nsx_type: str - :param placement_group_id: Placement Group id, e.g. "n1" - :type placement_group_id: str - :param placement_group_name: Placement Group name - :type placement_group_name: str - :param private_cloud_id: Id of a private cloud - :type private_cloud_id: str - :param resource_pools: The list of Resource Pools - :type resource_pools: - list[~azure.mgmt.vmwarecloudsimple.models.ResourcePool] - :param state: Private Cloud state, e.g. "operational" - :type state: str - :param total_cpu_cores: Number of cores - :type total_cpu_cores: int - :param total_nodes: Number of nodes - :type total_nodes: int - :param total_ram: Memory size - :type total_ram: int - :param total_storage: Disk space in TB - :type total_storage: float - :param private_cloud_properties_type: Virtualization type e.g. "vSphere" - :type private_cloud_properties_type: str - :param v_sphere_version: e.g. "6.5u2" - :type v_sphere_version: str - :param vcenter_fqdn: FQDN for vcenter access - :type vcenter_fqdn: str - :param vcenter_refid: Vcenter ip address - :type vcenter_refid: str - :param virtual_machine_templates: The list of Virtual Machine Templates - :type virtual_machine_templates: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualMachineTemplate] - :param virtual_networks: The list of Virtual Networks - :type virtual_networks: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork] - :param vr_ops_enabled: Is Vrops enabled/disabled - :type vr_ops_enabled: bool - :param type: Azure Resource type. Possible values include: - 'Microsoft.VMwareCloudSimple/privateClouds' - :type type: str or - ~azure.mgmt.vmwarecloudsimple.models.PrivateCloudResourceType - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'}, - 'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'}, - 'clusters_number': {'key': 'properties.clustersNumber', 'type': 'int'}, - 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, - 'created_on': {'key': 'properties.createdOn', 'type': 'iso-8601'}, - 'dns_servers': {'key': 'properties.dnsServers', 'type': '[str]'}, - 'expires': {'key': 'properties.expires', 'type': 'str'}, - 'nsx_type': {'key': 'properties.nsxType', 'type': 'str'}, - 'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'}, - 'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'resource_pools': {'key': 'properties.resourcePools', 'type': '[ResourcePool]'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'total_cpu_cores': {'key': 'properties.totalCpuCores', 'type': 'int'}, - 'total_nodes': {'key': 'properties.totalNodes', 'type': 'int'}, - 'total_ram': {'key': 'properties.totalRam', 'type': 'int'}, - 'total_storage': {'key': 'properties.totalStorage', 'type': 'float'}, - 'private_cloud_properties_type': {'key': 'properties.type', 'type': 'str'}, - 'v_sphere_version': {'key': 'properties.vSphereVersion', 'type': 'str'}, - 'vcenter_fqdn': {'key': 'properties.vcenterFqdn', 'type': 'str'}, - 'vcenter_refid': {'key': 'properties.vcenterRefid', 'type': 'str'}, - 'virtual_machine_templates': {'key': 'properties.virtualMachineTemplates', 'type': '[VirtualMachineTemplate]'}, - 'virtual_networks': {'key': 'properties.virtualNetworks', 'type': '[VirtualNetwork]'}, - 'vr_ops_enabled': {'key': 'properties.vrOpsEnabled', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'PrivateCloudResourceType'}, - } - - def __init__(self, **kwargs): - super(PrivateCloud, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.location = kwargs.get('location', None) - self.name = kwargs.get('name', None) - self.availability_zone_id = kwargs.get('availability_zone_id', None) - self.availability_zone_name = kwargs.get('availability_zone_name', None) - self.clusters_number = kwargs.get('clusters_number', None) - self.created_by = kwargs.get('created_by', None) - self.created_on = kwargs.get('created_on', None) - self.dns_servers = kwargs.get('dns_servers', None) - self.expires = kwargs.get('expires', None) - self.nsx_type = kwargs.get('nsx_type', None) - self.placement_group_id = kwargs.get('placement_group_id', None) - self.placement_group_name = kwargs.get('placement_group_name', None) - self.private_cloud_id = kwargs.get('private_cloud_id', None) - self.resource_pools = kwargs.get('resource_pools', None) - self.state = kwargs.get('state', None) - self.total_cpu_cores = kwargs.get('total_cpu_cores', None) - self.total_nodes = kwargs.get('total_nodes', None) - self.total_ram = kwargs.get('total_ram', None) - self.total_storage = kwargs.get('total_storage', None) - self.private_cloud_properties_type = kwargs.get('private_cloud_properties_type', None) - self.v_sphere_version = kwargs.get('v_sphere_version', None) - self.vcenter_fqdn = kwargs.get('vcenter_fqdn', None) - self.vcenter_refid = kwargs.get('vcenter_refid', None) - self.virtual_machine_templates = kwargs.get('virtual_machine_templates', None) - self.virtual_networks = kwargs.get('virtual_networks', None) - self.vr_ops_enabled = kwargs.get('vr_ops_enabled', None) - self.type = kwargs.get('type', None) - - -class ResourcePool(Model): - """Resource pool model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. resource pool id (privateCloudId:vsphereId) - :type id: str - :ivar location: Azure region - :vartype location: str - :ivar name: {ResourcePoolName} - :vartype name: str - :ivar private_cloud_id: The Private Cloud Id - :vartype private_cloud_id: str - :ivar full_name: Hierarchical resource pool name - :vartype full_name: str - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'required': True}, - 'location': {'readonly': True}, - 'name': {'readonly': True}, - 'private_cloud_id': {'readonly': True}, - 'full_name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'private_cloud_id': {'key': 'privateCloudId', 'type': 'str'}, - 'full_name': {'key': 'properties.fullName', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourcePool, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.location = None - self.name = None - self.private_cloud_id = None - self.full_name = None - self.type = None - - -class Sku(Model): - """The purchase SKU for CloudSimple paid resources. - - All required parameters must be populated in order to send to Azure. - - :param capacity: The capacity of the SKU - :type capacity: str - :param description: dedicatedCloudNode example: 8 x Ten-Core Intel® Xeon® - Processor E5-2640 v4 2.40GHz 25MB Cache (90W); 12 x 64GB PC4-19200 2400MHz - DDR4 ECC Registered DIMM, ... - :type description: str - :param family: If the service has different generations of hardware, for - the same SKU, then that can be captured here - :type family: str - :param name: Required. The name of the SKU for VMWare CloudSimple Node - :type name: str - :param tier: The tier of the SKU - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'capacity': {'key': 'capacity', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.capacity = kwargs.get('capacity', None) - self.description = kwargs.get('description', None) - self.family = kwargs.get('family', None) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - - -class SkuAvailability(Model): - """SKU availability model. - - All required parameters must be populated in order to send to Azure. - - :param dedicated_availability_zone_id: CloudSimple Availability Zone id - :type dedicated_availability_zone_id: str - :param dedicated_availability_zone_name: CloudSimple Availability Zone - Name - :type dedicated_availability_zone_name: str - :param dedicated_placement_group_id: CloudSimple Placement Group Id - :type dedicated_placement_group_id: str - :param dedicated_placement_group_name: CloudSimple Placement Group name - :type dedicated_placement_group_name: str - :param limit: Required. indicates how many resources of a given SKU is - available in a AZ->PG - :type limit: int - :param resource_type: resource type e.g. DedicatedCloudNodes - :type resource_type: str - :param sku_id: sku id - :type sku_id: str - :param sku_name: sku name - :type sku_name: str - """ - - _validation = { - 'limit': {'required': True}, - } - - _attribute_map = { - 'dedicated_availability_zone_id': {'key': 'dedicatedAvailabilityZoneId', 'type': 'str'}, - 'dedicated_availability_zone_name': {'key': 'dedicatedAvailabilityZoneName', 'type': 'str'}, - 'dedicated_placement_group_id': {'key': 'dedicatedPlacementGroupId', 'type': 'str'}, - 'dedicated_placement_group_name': {'key': 'dedicatedPlacementGroupName', 'type': 'str'}, - 'limit': {'key': 'limit', 'type': 'int'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'sku_id': {'key': 'skuId', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SkuAvailability, self).__init__(**kwargs) - self.dedicated_availability_zone_id = kwargs.get('dedicated_availability_zone_id', None) - self.dedicated_availability_zone_name = kwargs.get('dedicated_availability_zone_name', None) - self.dedicated_placement_group_id = kwargs.get('dedicated_placement_group_id', None) - self.dedicated_placement_group_name = kwargs.get('dedicated_placement_group_name', None) - self.limit = kwargs.get('limit', None) - self.resource_type = kwargs.get('resource_type', None) - self.sku_id = kwargs.get('sku_id', None) - self.sku_name = kwargs.get('sku_name', None) - - -class Usage(Model): - """Usage model. - - All required parameters must be populated in order to send to Azure. - - :param current_value: Required. The current usage value. Default value: 0 - . - :type current_value: int - :param limit: Required. limit of a given sku in a region for a - subscription. The maximum permitted value for the usage quota. If there is - no limit, this value will be -1. Default value: 0 . - :type limit: int - :param name: Usage name value and localized name - :type name: ~azure.mgmt.vmwarecloudsimple.models.UsageName - :param unit: The usages' unit. Possible values include: 'Count', 'Bytes', - 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - :type unit: str or ~azure.mgmt.vmwarecloudsimple.models.UsageCount - """ - - _validation = { - 'current_value': {'required': True}, - 'limit': {'required': True}, - } - - _attribute_map = { - 'current_value': {'key': 'currentValue', 'type': 'int'}, - 'limit': {'key': 'limit', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'UsageName'}, - 'unit': {'key': 'unit', 'type': 'UsageCount'}, - } - - def __init__(self, **kwargs): - super(Usage, self).__init__(**kwargs) - self.current_value = kwargs.get('current_value', 0) - self.limit = kwargs.get('limit', 0) - self.name = kwargs.get('name', None) - self.unit = kwargs.get('unit', None) - - -class UsageName(Model): - """User name model. - - :param localized_value: e.g. "Virtual Machines" - :type localized_value: str - :param value: resource type or resource type sku name, e.g. - virtualMachines - :type value: str - """ - - _attribute_map = { - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UsageName, self).__init__(**kwargs) - self.localized_value = kwargs.get('localized_value', None) - self.value = kwargs.get('value', None) - - -class VirtualDisk(Model): - """Virtual disk model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param controller_id: Required. Disk's Controller id - :type controller_id: str - :param independence_mode: Required. Disk's independence mode type. - Possible values include: 'persistent', 'independent_persistent', - 'independent_nonpersistent' - :type independence_mode: str or - ~azure.mgmt.vmwarecloudsimple.models.DiskIndependenceMode - :param total_size: Required. Disk's total size - :type total_size: int - :param virtual_disk_id: Disk's id - :type virtual_disk_id: str - :ivar virtual_disk_name: Disk's display name - :vartype virtual_disk_name: str - """ - - _validation = { - 'controller_id': {'required': True}, - 'independence_mode': {'required': True}, - 'total_size': {'required': True}, - 'virtual_disk_name': {'readonly': True}, - } - - _attribute_map = { - 'controller_id': {'key': 'controllerId', 'type': 'str'}, - 'independence_mode': {'key': 'independenceMode', 'type': 'DiskIndependenceMode'}, - 'total_size': {'key': 'totalSize', 'type': 'int'}, - 'virtual_disk_id': {'key': 'virtualDiskId', 'type': 'str'}, - 'virtual_disk_name': {'key': 'virtualDiskName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualDisk, self).__init__(**kwargs) - self.controller_id = kwargs.get('controller_id', None) - self.independence_mode = kwargs.get('independence_mode', None) - self.total_size = kwargs.get('total_size', None) - self.virtual_disk_id = kwargs.get('virtual_disk_id', None) - self.virtual_disk_name = None - - -class VirtualDiskController(Model): - """Virtual disk controller model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Controller's id - :vartype id: str - :ivar name: The display name of Controller - :vartype name: str - :ivar sub_type: dik controller subtype (VMWARE_PARAVIRTUAL, BUS_PARALLEL, - LSI_PARALLEL, LSI_SAS) - :vartype sub_type: str - :ivar type: disk controller type (SCSI) - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'sub_type': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sub_type': {'key': 'subType', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualDiskController, self).__init__(**kwargs) - self.id = None - self.name = None - self.sub_type = None - self.type = None - - -class VirtualMachine(Model): - """Virtual machine model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName} - :vartype id: str - :param location: Required. Azure region - :type location: str - :ivar name: {virtualMachineName} - :vartype name: str - :param amount_of_ram: Required. The amount of memory - :type amount_of_ram: int - :ivar controllers: The list of Virtual Disks' Controllers - :vartype controllers: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualDiskController] - :param customization: Virtual machine properties - :type customization: - ~azure.mgmt.vmwarecloudsimple.models.GuestOSCustomization - :param disks: The list of Virtual Disks - :type disks: list[~azure.mgmt.vmwarecloudsimple.models.VirtualDisk] - :ivar dnsname: The DNS name of Virtual Machine in VCenter - :vartype dnsname: str - :param expose_to_guest_vm: Expose Guest OS or not - :type expose_to_guest_vm: bool - :ivar folder: The path to virtual machine folder in VCenter - :vartype folder: str - :ivar guest_os: The name of Guest OS - :vartype guest_os: str - :ivar guest_os_type: The Guest OS type. Possible values include: 'linux', - 'windows', 'other' - :vartype guest_os_type: str or - ~azure.mgmt.vmwarecloudsimple.models.GuestOSType - :param nics: The list of Virtual NICs - :type nics: list[~azure.mgmt.vmwarecloudsimple.models.VirtualNic] - :param number_of_cores: Required. The number of CPU cores - :type number_of_cores: int - :param password: Password for login. Deprecated - use customization - property - :type password: str - :param private_cloud_id: Required. Private Cloud Id - :type private_cloud_id: str - :ivar provisioning_state: The provisioning status of the resource - :vartype provisioning_state: str - :ivar public_ip: The public ip of Virtual Machine - :vartype public_ip: str - :param resource_pool: Virtual Machines Resource Pool - :type resource_pool: ~azure.mgmt.vmwarecloudsimple.models.ResourcePool - :ivar status: The status of Virtual machine. Possible values include: - 'running', 'suspended', 'poweredoff', 'updating', 'deallocating', - 'deleting' - :vartype status: str or - ~azure.mgmt.vmwarecloudsimple.models.VirtualMachineStatus - :param template_id: Virtual Machine Template Id - :type template_id: str - :param username: Username for login. Deprecated - use customization - property - :type username: str - :param v_sphere_networks: The list of Virtual VSphere Networks - :type v_sphere_networks: list[str] - :ivar vm_id: The internal id of Virtual Machine in VCenter - :vartype vm_id: str - :ivar vmwaretools: VMware tools version - :vartype vmwaretools: str - :param tags: The list of tags - :type tags: dict[str, str] - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'}, - 'amount_of_ram': {'required': True}, - 'controllers': {'readonly': True}, - 'dnsname': {'readonly': True}, - 'folder': {'readonly': True}, - 'guest_os': {'readonly': True}, - 'guest_os_type': {'readonly': True}, - 'number_of_cores': {'required': True}, - 'private_cloud_id': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'public_ip': {'readonly': True}, - 'status': {'readonly': True}, - 'vm_id': {'readonly': True}, - 'vmwaretools': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'amount_of_ram': {'key': 'properties.amountOfRam', 'type': 'int'}, - 'controllers': {'key': 'properties.controllers', 'type': '[VirtualDiskController]'}, - 'customization': {'key': 'properties.customization', 'type': 'GuestOSCustomization'}, - 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, - 'dnsname': {'key': 'properties.dnsname', 'type': 'str'}, - 'expose_to_guest_vm': {'key': 'properties.exposeToGuestVM', 'type': 'bool'}, - 'folder': {'key': 'properties.folder', 'type': 'str'}, - 'guest_os': {'key': 'properties.guestOS', 'type': 'str'}, - 'guest_os_type': {'key': 'properties.guestOSType', 'type': 'GuestOSType'}, - 'nics': {'key': 'properties.nics', 'type': '[VirtualNic]'}, - 'number_of_cores': {'key': 'properties.numberOfCores', 'type': 'int'}, - 'password': {'key': 'properties.password', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'public_ip': {'key': 'properties.publicIP', 'type': 'str'}, - 'resource_pool': {'key': 'properties.resourcePool', 'type': 'ResourcePool'}, - 'status': {'key': 'properties.status', 'type': 'VirtualMachineStatus'}, - 'template_id': {'key': 'properties.templateId', 'type': 'str'}, - 'username': {'key': 'properties.username', 'type': 'str'}, - 'v_sphere_networks': {'key': 'properties.vSphereNetworks', 'type': '[str]'}, - 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, - 'vmwaretools': {'key': 'properties.vmwaretools', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualMachine, self).__init__(**kwargs) - self.id = None - self.location = kwargs.get('location', None) - self.name = None - self.amount_of_ram = kwargs.get('amount_of_ram', None) - self.controllers = None - self.customization = kwargs.get('customization', None) - self.disks = kwargs.get('disks', None) - self.dnsname = None - self.expose_to_guest_vm = kwargs.get('expose_to_guest_vm', None) - self.folder = None - self.guest_os = None - self.guest_os_type = None - self.nics = kwargs.get('nics', None) - self.number_of_cores = kwargs.get('number_of_cores', None) - self.password = kwargs.get('password', None) - self.private_cloud_id = kwargs.get('private_cloud_id', None) - self.provisioning_state = None - self.public_ip = None - self.resource_pool = kwargs.get('resource_pool', None) - self.status = None - self.template_id = kwargs.get('template_id', None) - self.username = kwargs.get('username', None) - self.v_sphere_networks = kwargs.get('v_sphere_networks', None) - self.vm_id = None - self.vmwaretools = None - self.tags = kwargs.get('tags', None) - self.type = None - - -class VirtualMachineStopMode(Model): - """List of virtual machine stop modes. - - :param mode: mode indicates a type of stop operation - reboot, suspend, - shutdown or power-off. Possible values include: 'reboot', 'suspend', - 'shutdown', 'poweroff' - :type mode: str or ~azure.mgmt.vmwarecloudsimple.models.StopMode - """ - - _attribute_map = { - 'mode': {'key': 'mode', 'type': 'StopMode'}, - } - - def __init__(self, **kwargs): - super(VirtualMachineStopMode, self).__init__(**kwargs) - self.mode = kwargs.get('mode', None) - - -class VirtualMachineTemplate(Model): - """Virtual machine template model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: virtual machine template id (privateCloudId:vsphereId) - :vartype id: str - :param location: Azure region - :type location: str - :ivar name: {virtualMachineTemplateName} - :vartype name: str - :param amount_of_ram: The amount of memory - :type amount_of_ram: int - :param controllers: The list of Virtual Disk Controllers - :type controllers: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualDiskController] - :param description: The description of Virtual Machine Template - :type description: str - :param disks: The list of Virtual Disks - :type disks: list[~azure.mgmt.vmwarecloudsimple.models.VirtualDisk] - :param expose_to_guest_vm: Expose Guest OS or not - :type expose_to_guest_vm: bool - :ivar guest_os: The Guest OS - :vartype guest_os: str - :ivar guest_os_type: The Guest OS types - :vartype guest_os_type: str - :param nics: The list of Virtual NICs - :type nics: list[~azure.mgmt.vmwarecloudsimple.models.VirtualNic] - :param number_of_cores: The number of CPU cores - :type number_of_cores: int - :param path: path to folder - :type path: str - :param private_cloud_id: Required. The Private Cloud Id - :type private_cloud_id: str - :param v_sphere_networks: The list of VSphere networks - :type v_sphere_networks: list[str] - :param v_sphere_tags: The tags from VSphere - :type v_sphere_tags: list[str] - :ivar vmwaretools: The VMware tools version - :vartype vmwaretools: str - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'guest_os': {'readonly': True}, - 'guest_os_type': {'readonly': True}, - 'private_cloud_id': {'required': True}, - 'vmwaretools': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'amount_of_ram': {'key': 'properties.amountOfRam', 'type': 'int'}, - 'controllers': {'key': 'properties.controllers', 'type': '[VirtualDiskController]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, - 'expose_to_guest_vm': {'key': 'properties.exposeToGuestVM', 'type': 'bool'}, - 'guest_os': {'key': 'properties.guestOS', 'type': 'str'}, - 'guest_os_type': {'key': 'properties.guestOSType', 'type': 'str'}, - 'nics': {'key': 'properties.nics', 'type': '[VirtualNic]'}, - 'number_of_cores': {'key': 'properties.numberOfCores', 'type': 'int'}, - 'path': {'key': 'properties.path', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'v_sphere_networks': {'key': 'properties.vSphereNetworks', 'type': '[str]'}, - 'v_sphere_tags': {'key': 'properties.vSphereTags', 'type': '[str]'}, - 'vmwaretools': {'key': 'properties.vmwaretools', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualMachineTemplate, self).__init__(**kwargs) - self.id = None - self.location = kwargs.get('location', None) - self.name = None - self.amount_of_ram = kwargs.get('amount_of_ram', None) - self.controllers = kwargs.get('controllers', None) - self.description = kwargs.get('description', None) - self.disks = kwargs.get('disks', None) - self.expose_to_guest_vm = kwargs.get('expose_to_guest_vm', None) - self.guest_os = None - self.guest_os_type = None - self.nics = kwargs.get('nics', None) - self.number_of_cores = kwargs.get('number_of_cores', None) - self.path = kwargs.get('path', None) - self.private_cloud_id = kwargs.get('private_cloud_id', None) - self.v_sphere_networks = kwargs.get('v_sphere_networks', None) - self.v_sphere_tags = kwargs.get('v_sphere_tags', None) - self.vmwaretools = None - self.type = None - - -class VirtualNetwork(Model): - """Virtual network model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar assignable: can be used in vm creation/deletion - :vartype assignable: bool - :param id: Required. virtual network id (privateCloudId:vsphereId) - :type id: str - :ivar location: Azure region - :vartype location: str - :ivar name: {VirtualNetworkName} - :vartype name: str - :ivar private_cloud_id: The Private Cloud id - :vartype private_cloud_id: str - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'assignable': {'readonly': True}, - 'id': {'required': True}, - 'location': {'readonly': True}, - 'name': {'readonly': True}, - 'private_cloud_id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'assignable': {'key': 'assignable', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualNetwork, self).__init__(**kwargs) - self.assignable = None - self.id = kwargs.get('id', None) - self.location = None - self.name = None - self.private_cloud_id = None - self.type = None - - -class VirtualNic(Model): - """Virtual NIC model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param customization: guest OS customization for nic - :type customization: - ~azure.mgmt.vmwarecloudsimple.models.GuestOSNICCustomization - :param ip_addresses: NIC ip address - :type ip_addresses: list[str] - :param mac_address: NIC MAC address - :type mac_address: str - :param network: Required. Virtual Network - :type network: ~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork - :param nic_type: Required. NIC type. Possible values include: 'E1000', - 'E1000E', 'PCNET32', 'VMXNET', 'VMXNET2', 'VMXNET3' - :type nic_type: str or ~azure.mgmt.vmwarecloudsimple.models.NICType - :param power_on_boot: Is NIC powered on/off on boot - :type power_on_boot: bool - :param virtual_nic_id: NIC id - :type virtual_nic_id: str - :ivar virtual_nic_name: NIC name - :vartype virtual_nic_name: str - """ - - _validation = { - 'network': {'required': True}, - 'nic_type': {'required': True}, - 'virtual_nic_name': {'readonly': True}, - } - - _attribute_map = { - 'customization': {'key': 'customization', 'type': 'GuestOSNICCustomization'}, - 'ip_addresses': {'key': 'ipAddresses', 'type': '[str]'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - 'network': {'key': 'network', 'type': 'VirtualNetwork'}, - 'nic_type': {'key': 'nicType', 'type': 'NICType'}, - 'power_on_boot': {'key': 'powerOnBoot', 'type': 'bool'}, - 'virtual_nic_id': {'key': 'virtualNicId', 'type': 'str'}, - 'virtual_nic_name': {'key': 'virtualNicName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualNic, self).__init__(**kwargs) - self.customization = kwargs.get('customization', None) - self.ip_addresses = kwargs.get('ip_addresses', None) - self.mac_address = kwargs.get('mac_address', None) - self.network = kwargs.get('network', None) - self.nic_type = kwargs.get('nic_type', None) - self.power_on_boot = kwargs.get('power_on_boot', None) - self.virtual_nic_id = kwargs.get('virtual_nic_id', None) - self.virtual_nic_name = None diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_models_py3.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_models_py3.py deleted file mode 100644 index 901e80b0ed60..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_models_py3.py +++ /dev/null @@ -1,1583 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class AvailableOperation(Model): - """Resource provider available operation model. - - :param display: The list of operations - :type display: - ~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplay - :param is_data_action: Indicating whether the operation is a data action - or not. Default value: False . - :type is_data_action: bool - :param name: - {resourceProviderNamespace}/{resourceType}/{read|write|delete|action} - :type name: str - :param origin: The origin of operation. Possible values include: 'user', - 'system', 'user,system' - :type origin: str or ~azure.mgmt.vmwarecloudsimple.models.OperationOrigin - :param service_specification: The list of specification's service metrics - :type service_specification: - ~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplayPropertyServiceSpecificationMetricsList - """ - - _attribute_map = { - 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'OperationOrigin'}, - 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'AvailableOperationDisplayPropertyServiceSpecificationMetricsList'}, - } - - def __init__(self, *, display=None, is_data_action: bool=False, name: str=None, origin=None, service_specification=None, **kwargs) -> None: - super(AvailableOperation, self).__init__(**kwargs) - self.display = display - self.is_data_action = is_data_action - self.name = name - self.origin = origin - self.service_specification = service_specification - - -class AvailableOperationDisplay(Model): - """Resource provider available operation display model. - - :param description: Description of the operation for display purposes - :type description: str - :param operation: Name of the operation for display purposes - :type operation: str - :param provider: Name of the provider for display purposes - :type provider: str - :param resource: Name of the resource type for display purposes - :type resource: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - } - - def __init__(self, *, description: str=None, operation: str=None, provider: str=None, resource: str=None, **kwargs) -> None: - super(AvailableOperationDisplay, self).__init__(**kwargs) - self.description = description - self.operation = operation - self.provider = provider - self.resource = resource - - -class AvailableOperationDisplayPropertyServiceSpecificationMetricsItem(Model): - """Available operation display property service specification metrics item. - - All required parameters must be populated in order to send to Azure. - - :param aggregation_type: Required. Metric's aggregation type for e.g. - (Average, Total). Possible values include: 'Average', 'Total' - :type aggregation_type: str or - ~azure.mgmt.vmwarecloudsimple.models.AggregationType - :param display_description: Required. Metric's description - :type display_description: str - :param display_name: Required. Human readable metric's name - :type display_name: str - :param name: Required. Metric's name/id - :type name: str - :param unit: Required. Metric's unit - :type unit: str - """ - - _validation = { - 'aggregation_type': {'required': True}, - 'display_description': {'required': True}, - 'display_name': {'required': True}, - 'name': {'required': True}, - 'unit': {'required': True}, - } - - _attribute_map = { - 'aggregation_type': {'key': 'aggregationType', 'type': 'AggregationType'}, - 'display_description': {'key': 'displayDescription', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'unit': {'key': 'unit', 'type': 'str'}, - } - - def __init__(self, *, aggregation_type, display_description: str, display_name: str, name: str, unit: str, **kwargs) -> None: - super(AvailableOperationDisplayPropertyServiceSpecificationMetricsItem, self).__init__(**kwargs) - self.aggregation_type = aggregation_type - self.display_description = display_description - self.display_name = display_name - self.name = name - self.unit = unit - - -class AvailableOperationDisplayPropertyServiceSpecificationMetricsList(Model): - """List of available operation display property service specification metrics. - - :param metric_specifications: Metric specifications of operation - :type metric_specifications: - list[~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplayPropertyServiceSpecificationMetricsItem] - """ - - _attribute_map = { - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[AvailableOperationDisplayPropertyServiceSpecificationMetricsItem]'}, - } - - def __init__(self, *, metric_specifications=None, **kwargs) -> None: - super(AvailableOperationDisplayPropertyServiceSpecificationMetricsList, self).__init__(**kwargs) - self.metric_specifications = metric_specifications - - -class CloudError(Model): - """CloudError. - """ - - _attribute_map = { - } - - -class CSRPError(Model): - """General error model. - - :param error: Error's body - :type error: ~azure.mgmt.vmwarecloudsimple.models.CSRPErrorBody - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'CSRPErrorBody'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(CSRPError, self).__init__(**kwargs) - self.error = error - - -class CSRPErrorException(HttpOperationError): - """Server responsed with exception of type: 'CSRPError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(CSRPErrorException, self).__init__(deserialize, response, 'CSRPError', *args) - - -class CSRPErrorBody(Model): - """Error properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error's code - :vartype code: str - :ivar details: Error's details - :vartype details: list[~azure.mgmt.vmwarecloudsimple.models.CSRPErrorBody] - :ivar message: Error's message - :vartype message: str - :param target: Error's target - :type target: str - """ - - _validation = { - 'code': {'readonly': True}, - 'details': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CSRPErrorBody]'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, *, target: str=None, **kwargs) -> None: - super(CSRPErrorBody, self).__init__(**kwargs) - self.code = None - self.details = None - self.message = None - self.target = target - - -class CustomizationHostName(Model): - """Host name model. - - :param name: Hostname - :type name: str - :param type: Type of host name. Possible values include: 'USER_DEFINED', - 'PREFIX_BASED', 'FIXED', 'VIRTUAL_MACHINE_NAME', 'CUSTOM_NAME' - :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, type=None, **kwargs) -> None: - super(CustomizationHostName, self).__init__(**kwargs) - self.name = name - self.type = type - - -class CustomizationIdentity(Model): - """CustomizationIdentity. - - :param data: Windows Text Identity. Prepared data - :type data: str - :param host_name: Virtual machine host name settings - :type host_name: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationHostName - :param type: Identity type. Possible values include: 'WINDOWS_TEXT', - 'WINDOWS', 'LINUX' - :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum - :param user_data: Windows Identity. User data customization - :type user_data: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationIdentityUserData - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'str'}, - 'host_name': {'key': 'hostName', 'type': 'CustomizationHostName'}, - 'type': {'key': 'type', 'type': 'str'}, - 'user_data': {'key': 'userData', 'type': 'CustomizationIdentityUserData'}, - } - - def __init__(self, *, data: str=None, host_name=None, type=None, user_data=None, **kwargs) -> None: - super(CustomizationIdentity, self).__init__(**kwargs) - self.data = data - self.host_name = host_name - self.type = type - self.user_data = user_data - - -class CustomizationIdentityUserData(Model): - """Windows Identity. User data customization. - - :param is_password_predefined: Is password predefined in customization - policy. Default value: False . - :type is_password_predefined: bool - """ - - _attribute_map = { - 'is_password_predefined': {'key': 'isPasswordPredefined', 'type': 'bool'}, - } - - def __init__(self, *, is_password_predefined: bool=False, **kwargs) -> None: - super(CustomizationIdentityUserData, self).__init__(**kwargs) - self.is_password_predefined = is_password_predefined - - -class CustomizationIPAddress(Model): - """CustomizationIPAddress. - - :param argument: Argument when Custom ip type is selected - :type argument: str - :param ip_address: Defined Ip Address when Fixed ip type is selected - :type ip_address: str - :param type: Customization Specification ip type. Possible values include: - 'CUSTOM', 'DHCP_IP', 'FIXED_IP', 'USER_DEFINED' - :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum - """ - - _attribute_map = { - 'argument': {'key': 'argument', 'type': 'str'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, argument: str=None, ip_address: str=None, type=None, **kwargs) -> None: - super(CustomizationIPAddress, self).__init__(**kwargs) - self.argument = argument - self.ip_address = ip_address - self.type = type - - -class CustomizationIPSettings(Model): - """CustomizationIPSettings. - - :param gateway: The list of gateways - :type gateway: list[str] - :param ip: Ip address customization settings - :type ip: ~azure.mgmt.vmwarecloudsimple.models.CustomizationIPAddress - :param subnet_mask: Adapter subnet mask - :type subnet_mask: str - """ - - _attribute_map = { - 'gateway': {'key': 'gateway', 'type': '[str]'}, - 'ip': {'key': 'ip', 'type': 'CustomizationIPAddress'}, - 'subnet_mask': {'key': 'subnetMask', 'type': 'str'}, - } - - def __init__(self, *, gateway=None, ip=None, subnet_mask: str=None, **kwargs) -> None: - super(CustomizationIPSettings, self).__init__(**kwargs) - self.gateway = gateway - self.ip = ip - self.subnet_mask = subnet_mask - - -class CustomizationNicSetting(Model): - """CustomizationNicSetting. - - :param adapter: The list of adapters' settings - :type adapter: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationIPSettings - :param mac_address: NIC mac address - :type mac_address: str - """ - - _attribute_map = { - 'adapter': {'key': 'adapter', 'type': 'CustomizationIPSettings'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - } - - def __init__(self, *, adapter=None, mac_address: str=None, **kwargs) -> None: - super(CustomizationNicSetting, self).__init__(**kwargs) - self.adapter = adapter - self.mac_address = mac_address - - -class CustomizationPolicy(Model): - """The virtual machine customization policy. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Customization policy azure id - :type id: str - :param location: Azure region - :type location: str - :ivar name: Customization policy name - :vartype name: str - :param description: Policy description - :type description: str - :param private_cloud_id: The Private cloud id - :type private_cloud_id: str - :param specification: Detailed customization policy specification - :type specification: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationSpecification - :param customization_policy_properties_type: The type of customization - (Linux or Windows). Possible values include: 'LINUX', 'WINDOWS' - :type customization_policy_properties_type: str or - ~azure.mgmt.vmwarecloudsimple.models.enum - :param version: Policy version - :type version: str - :ivar type: - :vartype type: str - """ - - _validation = { - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'specification': {'key': 'properties.specification', 'type': 'CustomizationSpecification'}, - 'customization_policy_properties_type': {'key': 'properties.type', 'type': 'str'}, - 'version': {'key': 'properties.version', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, location: str=None, description: str=None, private_cloud_id: str=None, specification=None, customization_policy_properties_type=None, version: str=None, **kwargs) -> None: - super(CustomizationPolicy, self).__init__(**kwargs) - self.id = id - self.location = location - self.name = None - self.description = description - self.private_cloud_id = private_cloud_id - self.specification = specification - self.customization_policy_properties_type = customization_policy_properties_type - self.version = version - self.type = None - - -class CustomizationSpecification(Model): - """The specification for Customization Policy. - - :param identity: Customization Identity. It contains data about user and - hostname - :type identity: ~azure.mgmt.vmwarecloudsimple.models.CustomizationIdentity - :param nic_settings: Network interface settings - :type nic_settings: - list[~azure.mgmt.vmwarecloudsimple.models.CustomizationNicSetting] - """ - - _attribute_map = { - 'identity': {'key': 'identity', 'type': 'CustomizationIdentity'}, - 'nic_settings': {'key': 'nicSettings', 'type': '[CustomizationNicSetting]'}, - } - - def __init__(self, *, identity=None, nic_settings=None, **kwargs) -> None: - super(CustomizationSpecification, self).__init__(**kwargs) - self.identity = identity - self.nic_settings = nic_settings - - -class DedicatedCloudNode(Model): - """Dedicated cloud node model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudNodes/{dedicatedCloudNodeName} - :vartype id: str - :param location: Required. Azure region - :type location: str - :ivar name: {dedicatedCloudNodeName} - :vartype name: str - :param availability_zone_id: Required. Availability Zone id, e.g. "az1" - :type availability_zone_id: str - :ivar availability_zone_name: Availability Zone name, e.g. "Availability - Zone 1" - :vartype availability_zone_name: str - :ivar cloud_rack_name: VMWare Cloud Rack Name - :vartype cloud_rack_name: str - :ivar created: date time the resource was created - :vartype created: object - :param nodes_count: Required. count of nodes to create - :type nodes_count: int - :param placement_group_id: Required. Placement Group id, e.g. "n1" - :type placement_group_id: str - :ivar placement_group_name: Placement Name, e.g. "Placement Group 1" - :vartype placement_group_name: str - :ivar private_cloud_id: Private Cloud Id - :vartype private_cloud_id: str - :ivar private_cloud_name: Resource Pool Name - :vartype private_cloud_name: str - :ivar provisioning_state: The provisioning status of the resource - :vartype provisioning_state: str - :param purchase_id: Required. purchase id - :type purchase_id: str - :param id1: Required. SKU's id - :type id1: str - :param name1: Required. SKU's name - :type name1: str - :ivar status: Node status, indicates is private cloud set up on this node - or not. Possible values include: 'unused', 'used' - :vartype status: str or ~azure.mgmt.vmwarecloudsimple.models.NodeStatus - :ivar vmware_cluster_name: VMWare Cluster Name - :vartype vmware_cluster_name: str - :param sku: Dedicated Cloud Nodes SKU - :type sku: ~azure.mgmt.vmwarecloudsimple.models.Sku - :param tags: Dedicated Cloud Nodes tags - :type tags: dict[str, str] - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'}, - 'availability_zone_id': {'required': True}, - 'availability_zone_name': {'readonly': True}, - 'cloud_rack_name': {'readonly': True}, - 'created': {'readonly': True}, - 'nodes_count': {'required': True}, - 'placement_group_id': {'required': True}, - 'placement_group_name': {'readonly': True}, - 'private_cloud_id': {'readonly': True}, - 'private_cloud_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'purchase_id': {'required': True}, - 'id1': {'required': True}, - 'name1': {'required': True}, - 'status': {'readonly': True}, - 'vmware_cluster_name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'}, - 'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'}, - 'cloud_rack_name': {'key': 'properties.cloudRackName', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'object'}, - 'nodes_count': {'key': 'properties.nodesCount', 'type': 'int'}, - 'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'}, - 'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'private_cloud_name': {'key': 'properties.privateCloudName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'purchase_id': {'key': 'properties.purchaseId', 'type': 'str'}, - 'id1': {'key': 'properties.skuDescription.id', 'type': 'str'}, - 'name1': {'key': 'properties.skuDescription.name', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'NodeStatus'}, - 'vmware_cluster_name': {'key': 'properties.vmwareClusterName', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, location: str, availability_zone_id: str, nodes_count: int, placement_group_id: str, purchase_id: str, id1: str, name1: str, sku=None, tags=None, **kwargs) -> None: - super(DedicatedCloudNode, self).__init__(**kwargs) - self.id = None - self.location = location - self.name = None - self.availability_zone_id = availability_zone_id - self.availability_zone_name = None - self.cloud_rack_name = None - self.created = None - self.nodes_count = nodes_count - self.placement_group_id = placement_group_id - self.placement_group_name = None - self.private_cloud_id = None - self.private_cloud_name = None - self.provisioning_state = None - self.purchase_id = purchase_id - self.id1 = id1 - self.name1 = name1 - self.status = None - self.vmware_cluster_name = None - self.sku = sku - self.tags = tags - self.type = None - - -class DedicatedCloudService(Model): - """Dedicated cloud service model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudServices/{dedicatedCloudServiceName} - :vartype id: str - :param location: Required. Azure region - :type location: str - :ivar name: {dedicatedCloudServiceName} - :vartype name: str - :param gateway_subnet: Required. gateway Subnet for the account. It will - collect the subnet address and always treat it as /28 - :type gateway_subnet: str - :ivar is_account_onboarded: indicates whether account onboarded or not in - a given region. Possible values include: 'notOnBoarded', 'onBoarded', - 'onBoardingFailed', 'onBoarding' - :vartype is_account_onboarded: str or - ~azure.mgmt.vmwarecloudsimple.models.OnboardingStatus - :ivar nodes: total nodes purchased - :vartype nodes: int - :ivar service_url: link to a service management web portal - :vartype service_url: str - :param tags: The list of tags - :type tags: dict[str, str] - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'}, - 'gateway_subnet': {'required': True}, - 'is_account_onboarded': {'readonly': True}, - 'nodes': {'readonly': True}, - 'service_url': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'gateway_subnet': {'key': 'properties.gatewaySubnet', 'type': 'str'}, - 'is_account_onboarded': {'key': 'properties.isAccountOnboarded', 'type': 'OnboardingStatus'}, - 'nodes': {'key': 'properties.nodes', 'type': 'int'}, - 'service_url': {'key': 'properties.serviceURL', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, location: str, gateway_subnet: str, tags=None, **kwargs) -> None: - super(DedicatedCloudService, self).__init__(**kwargs) - self.id = None - self.location = location - self.name = None - self.gateway_subnet = gateway_subnet - self.is_account_onboarded = None - self.nodes = None - self.service_url = None - self.tags = tags - self.type = None - - -class GuestOSCustomization(Model): - """Guest OS Customization properties. - - :param dns_servers: List of dns servers to use - :type dns_servers: list[str] - :param host_name: Virtual Machine hostname - :type host_name: str - :param password: Password for login - :type password: str - :param policy_id: id of customization policy - :type policy_id: str - :param username: Username for login - :type username: str - """ - - _attribute_map = { - 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, - 'host_name': {'key': 'hostName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'username': {'key': 'username', 'type': 'str'}, - } - - def __init__(self, *, dns_servers=None, host_name: str=None, password: str=None, policy_id: str=None, username: str=None, **kwargs) -> None: - super(GuestOSCustomization, self).__init__(**kwargs) - self.dns_servers = dns_servers - self.host_name = host_name - self.password = password - self.policy_id = policy_id - self.username = username - - -class GuestOSNICCustomization(Model): - """Guest OS nic customization. - - :param allocation: IP address allocation method. Possible values include: - 'static', 'dynamic' - :type allocation: str or ~azure.mgmt.vmwarecloudsimple.models.enum - :param dns_servers: List of dns servers to use - :type dns_servers: list[str] - :param gateway: Gateway addresses assigned to nic - :type gateway: list[str] - :param ip_address: Static ip address for nic - :type ip_address: str - :param mask: Network mask for nic - :type mask: str - :param primary_wins_server: primary WINS server for Windows - :type primary_wins_server: str - :param secondary_wins_server: secondary WINS server for Windows - :type secondary_wins_server: str - """ - - _attribute_map = { - 'allocation': {'key': 'allocation', 'type': 'str'}, - 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, - 'gateway': {'key': 'gateway', 'type': '[str]'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'mask': {'key': 'mask', 'type': 'str'}, - 'primary_wins_server': {'key': 'primaryWinsServer', 'type': 'str'}, - 'secondary_wins_server': {'key': 'secondaryWinsServer', 'type': 'str'}, - } - - def __init__(self, *, allocation=None, dns_servers=None, gateway=None, ip_address: str=None, mask: str=None, primary_wins_server: str=None, secondary_wins_server: str=None, **kwargs) -> None: - super(GuestOSNICCustomization, self).__init__(**kwargs) - self.allocation = allocation - self.dns_servers = dns_servers - self.gateway = gateway - self.ip_address = ip_address - self.mask = mask - self.primary_wins_server = primary_wins_server - self.secondary_wins_server = secondary_wins_server - - -class OperationError(Model): - """Operation error model. - - :param code: Error's code - :type code: str - :param message: Error's message - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(OperationError, self).__init__(**kwargs) - self.code = code - self.message = message - - -class OperationResource(Model): - """Operation status response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar end_time: End time of the operation - :vartype end_time: datetime - :param error: Error Message if operation failed - :type error: ~azure.mgmt.vmwarecloudsimple.models.OperationError - :ivar id: Operation Id - :vartype id: str - :ivar name: Operation ID - :vartype name: str - :ivar start_time: Start time of the operation - :vartype start_time: datetime - :ivar status: Operation status - :vartype status: str - """ - - _validation = { - 'end_time': {'readonly': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'start_time': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationError'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(OperationResource, self).__init__(**kwargs) - self.end_time = None - self.error = error - self.id = None - self.name = None - self.start_time = None - self.status = None - - -class PatchPayload(Model): - """General patch payload modal. - - :param tags: The tags key:value pairs - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, tags=None, **kwargs) -> None: - super(PatchPayload, self).__init__(**kwargs) - self.tags = tags - - -class PrivateCloud(Model): - """Private cloud model. - - :param id: Azure Id, e.g. - "/subscriptions/4da99247-a172-4ed6-8ae9-ebed2d12f839/providers/Microsoft.VMwareCloudSimple/privateClouds/cloud123" - :type id: str - :param location: Location where private cloud created, e.g "westus" - :type location: str - :param name: Private cloud name - :type name: str - :param availability_zone_id: Availability Zone id, e.g. "az1" - :type availability_zone_id: str - :param availability_zone_name: Availability Zone name, e.g. "Availability - Zone 1" - :type availability_zone_name: str - :param clusters_number: Number of clusters - :type clusters_number: int - :param created_by: User's emails who created cloud - :type created_by: str - :param created_on: When private cloud was created - :type created_on: datetime - :param dns_servers: Array of DNS servers - :type dns_servers: list[str] - :param expires: Expiration date of PC - :type expires: str - :param nsx_type: Nsx Type, e.g. "Advanced" - :type nsx_type: str - :param placement_group_id: Placement Group id, e.g. "n1" - :type placement_group_id: str - :param placement_group_name: Placement Group name - :type placement_group_name: str - :param private_cloud_id: Id of a private cloud - :type private_cloud_id: str - :param resource_pools: The list of Resource Pools - :type resource_pools: - list[~azure.mgmt.vmwarecloudsimple.models.ResourcePool] - :param state: Private Cloud state, e.g. "operational" - :type state: str - :param total_cpu_cores: Number of cores - :type total_cpu_cores: int - :param total_nodes: Number of nodes - :type total_nodes: int - :param total_ram: Memory size - :type total_ram: int - :param total_storage: Disk space in TB - :type total_storage: float - :param private_cloud_properties_type: Virtualization type e.g. "vSphere" - :type private_cloud_properties_type: str - :param v_sphere_version: e.g. "6.5u2" - :type v_sphere_version: str - :param vcenter_fqdn: FQDN for vcenter access - :type vcenter_fqdn: str - :param vcenter_refid: Vcenter ip address - :type vcenter_refid: str - :param virtual_machine_templates: The list of Virtual Machine Templates - :type virtual_machine_templates: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualMachineTemplate] - :param virtual_networks: The list of Virtual Networks - :type virtual_networks: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork] - :param vr_ops_enabled: Is Vrops enabled/disabled - :type vr_ops_enabled: bool - :param type: Azure Resource type. Possible values include: - 'Microsoft.VMwareCloudSimple/privateClouds' - :type type: str or - ~azure.mgmt.vmwarecloudsimple.models.PrivateCloudResourceType - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'}, - 'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'}, - 'clusters_number': {'key': 'properties.clustersNumber', 'type': 'int'}, - 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, - 'created_on': {'key': 'properties.createdOn', 'type': 'iso-8601'}, - 'dns_servers': {'key': 'properties.dnsServers', 'type': '[str]'}, - 'expires': {'key': 'properties.expires', 'type': 'str'}, - 'nsx_type': {'key': 'properties.nsxType', 'type': 'str'}, - 'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'}, - 'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'resource_pools': {'key': 'properties.resourcePools', 'type': '[ResourcePool]'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'total_cpu_cores': {'key': 'properties.totalCpuCores', 'type': 'int'}, - 'total_nodes': {'key': 'properties.totalNodes', 'type': 'int'}, - 'total_ram': {'key': 'properties.totalRam', 'type': 'int'}, - 'total_storage': {'key': 'properties.totalStorage', 'type': 'float'}, - 'private_cloud_properties_type': {'key': 'properties.type', 'type': 'str'}, - 'v_sphere_version': {'key': 'properties.vSphereVersion', 'type': 'str'}, - 'vcenter_fqdn': {'key': 'properties.vcenterFqdn', 'type': 'str'}, - 'vcenter_refid': {'key': 'properties.vcenterRefid', 'type': 'str'}, - 'virtual_machine_templates': {'key': 'properties.virtualMachineTemplates', 'type': '[VirtualMachineTemplate]'}, - 'virtual_networks': {'key': 'properties.virtualNetworks', 'type': '[VirtualNetwork]'}, - 'vr_ops_enabled': {'key': 'properties.vrOpsEnabled', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'PrivateCloudResourceType'}, - } - - def __init__(self, *, id: str=None, location: str=None, name: str=None, availability_zone_id: str=None, availability_zone_name: str=None, clusters_number: int=None, created_by: str=None, created_on=None, dns_servers=None, expires: str=None, nsx_type: str=None, placement_group_id: str=None, placement_group_name: str=None, private_cloud_id: str=None, resource_pools=None, state: str=None, total_cpu_cores: int=None, total_nodes: int=None, total_ram: int=None, total_storage: float=None, private_cloud_properties_type: str=None, v_sphere_version: str=None, vcenter_fqdn: str=None, vcenter_refid: str=None, virtual_machine_templates=None, virtual_networks=None, vr_ops_enabled: bool=None, type=None, **kwargs) -> None: - super(PrivateCloud, self).__init__(**kwargs) - self.id = id - self.location = location - self.name = name - self.availability_zone_id = availability_zone_id - self.availability_zone_name = availability_zone_name - self.clusters_number = clusters_number - self.created_by = created_by - self.created_on = created_on - self.dns_servers = dns_servers - self.expires = expires - self.nsx_type = nsx_type - self.placement_group_id = placement_group_id - self.placement_group_name = placement_group_name - self.private_cloud_id = private_cloud_id - self.resource_pools = resource_pools - self.state = state - self.total_cpu_cores = total_cpu_cores - self.total_nodes = total_nodes - self.total_ram = total_ram - self.total_storage = total_storage - self.private_cloud_properties_type = private_cloud_properties_type - self.v_sphere_version = v_sphere_version - self.vcenter_fqdn = vcenter_fqdn - self.vcenter_refid = vcenter_refid - self.virtual_machine_templates = virtual_machine_templates - self.virtual_networks = virtual_networks - self.vr_ops_enabled = vr_ops_enabled - self.type = type - - -class ResourcePool(Model): - """Resource pool model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. resource pool id (privateCloudId:vsphereId) - :type id: str - :ivar location: Azure region - :vartype location: str - :ivar name: {ResourcePoolName} - :vartype name: str - :ivar private_cloud_id: The Private Cloud Id - :vartype private_cloud_id: str - :ivar full_name: Hierarchical resource pool name - :vartype full_name: str - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'required': True}, - 'location': {'readonly': True}, - 'name': {'readonly': True}, - 'private_cloud_id': {'readonly': True}, - 'full_name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'private_cloud_id': {'key': 'privateCloudId', 'type': 'str'}, - 'full_name': {'key': 'properties.fullName', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str, **kwargs) -> None: - super(ResourcePool, self).__init__(**kwargs) - self.id = id - self.location = None - self.name = None - self.private_cloud_id = None - self.full_name = None - self.type = None - - -class Sku(Model): - """The purchase SKU for CloudSimple paid resources. - - All required parameters must be populated in order to send to Azure. - - :param capacity: The capacity of the SKU - :type capacity: str - :param description: dedicatedCloudNode example: 8 x Ten-Core Intel® Xeon® - Processor E5-2640 v4 2.40GHz 25MB Cache (90W); 12 x 64GB PC4-19200 2400MHz - DDR4 ECC Registered DIMM, ... - :type description: str - :param family: If the service has different generations of hardware, for - the same SKU, then that can be captured here - :type family: str - :param name: Required. The name of the SKU for VMWare CloudSimple Node - :type name: str - :param tier: The tier of the SKU - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'capacity': {'key': 'capacity', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, *, name: str, capacity: str=None, description: str=None, family: str=None, tier: str=None, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.capacity = capacity - self.description = description - self.family = family - self.name = name - self.tier = tier - - -class SkuAvailability(Model): - """SKU availability model. - - All required parameters must be populated in order to send to Azure. - - :param dedicated_availability_zone_id: CloudSimple Availability Zone id - :type dedicated_availability_zone_id: str - :param dedicated_availability_zone_name: CloudSimple Availability Zone - Name - :type dedicated_availability_zone_name: str - :param dedicated_placement_group_id: CloudSimple Placement Group Id - :type dedicated_placement_group_id: str - :param dedicated_placement_group_name: CloudSimple Placement Group name - :type dedicated_placement_group_name: str - :param limit: Required. indicates how many resources of a given SKU is - available in a AZ->PG - :type limit: int - :param resource_type: resource type e.g. DedicatedCloudNodes - :type resource_type: str - :param sku_id: sku id - :type sku_id: str - :param sku_name: sku name - :type sku_name: str - """ - - _validation = { - 'limit': {'required': True}, - } - - _attribute_map = { - 'dedicated_availability_zone_id': {'key': 'dedicatedAvailabilityZoneId', 'type': 'str'}, - 'dedicated_availability_zone_name': {'key': 'dedicatedAvailabilityZoneName', 'type': 'str'}, - 'dedicated_placement_group_id': {'key': 'dedicatedPlacementGroupId', 'type': 'str'}, - 'dedicated_placement_group_name': {'key': 'dedicatedPlacementGroupName', 'type': 'str'}, - 'limit': {'key': 'limit', 'type': 'int'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'sku_id': {'key': 'skuId', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__(self, *, limit: int, dedicated_availability_zone_id: str=None, dedicated_availability_zone_name: str=None, dedicated_placement_group_id: str=None, dedicated_placement_group_name: str=None, resource_type: str=None, sku_id: str=None, sku_name: str=None, **kwargs) -> None: - super(SkuAvailability, self).__init__(**kwargs) - self.dedicated_availability_zone_id = dedicated_availability_zone_id - self.dedicated_availability_zone_name = dedicated_availability_zone_name - self.dedicated_placement_group_id = dedicated_placement_group_id - self.dedicated_placement_group_name = dedicated_placement_group_name - self.limit = limit - self.resource_type = resource_type - self.sku_id = sku_id - self.sku_name = sku_name - - -class Usage(Model): - """Usage model. - - All required parameters must be populated in order to send to Azure. - - :param current_value: Required. The current usage value. Default value: 0 - . - :type current_value: int - :param limit: Required. limit of a given sku in a region for a - subscription. The maximum permitted value for the usage quota. If there is - no limit, this value will be -1. Default value: 0 . - :type limit: int - :param name: Usage name value and localized name - :type name: ~azure.mgmt.vmwarecloudsimple.models.UsageName - :param unit: The usages' unit. Possible values include: 'Count', 'Bytes', - 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - :type unit: str or ~azure.mgmt.vmwarecloudsimple.models.UsageCount - """ - - _validation = { - 'current_value': {'required': True}, - 'limit': {'required': True}, - } - - _attribute_map = { - 'current_value': {'key': 'currentValue', 'type': 'int'}, - 'limit': {'key': 'limit', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'UsageName'}, - 'unit': {'key': 'unit', 'type': 'UsageCount'}, - } - - def __init__(self, *, current_value: int=0, limit: int=0, name=None, unit=None, **kwargs) -> None: - super(Usage, self).__init__(**kwargs) - self.current_value = current_value - self.limit = limit - self.name = name - self.unit = unit - - -class UsageName(Model): - """User name model. - - :param localized_value: e.g. "Virtual Machines" - :type localized_value: str - :param value: resource type or resource type sku name, e.g. - virtualMachines - :type value: str - """ - - _attribute_map = { - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, localized_value: str=None, value: str=None, **kwargs) -> None: - super(UsageName, self).__init__(**kwargs) - self.localized_value = localized_value - self.value = value - - -class VirtualDisk(Model): - """Virtual disk model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param controller_id: Required. Disk's Controller id - :type controller_id: str - :param independence_mode: Required. Disk's independence mode type. - Possible values include: 'persistent', 'independent_persistent', - 'independent_nonpersistent' - :type independence_mode: str or - ~azure.mgmt.vmwarecloudsimple.models.DiskIndependenceMode - :param total_size: Required. Disk's total size - :type total_size: int - :param virtual_disk_id: Disk's id - :type virtual_disk_id: str - :ivar virtual_disk_name: Disk's display name - :vartype virtual_disk_name: str - """ - - _validation = { - 'controller_id': {'required': True}, - 'independence_mode': {'required': True}, - 'total_size': {'required': True}, - 'virtual_disk_name': {'readonly': True}, - } - - _attribute_map = { - 'controller_id': {'key': 'controllerId', 'type': 'str'}, - 'independence_mode': {'key': 'independenceMode', 'type': 'DiskIndependenceMode'}, - 'total_size': {'key': 'totalSize', 'type': 'int'}, - 'virtual_disk_id': {'key': 'virtualDiskId', 'type': 'str'}, - 'virtual_disk_name': {'key': 'virtualDiskName', 'type': 'str'}, - } - - def __init__(self, *, controller_id: str, independence_mode, total_size: int, virtual_disk_id: str=None, **kwargs) -> None: - super(VirtualDisk, self).__init__(**kwargs) - self.controller_id = controller_id - self.independence_mode = independence_mode - self.total_size = total_size - self.virtual_disk_id = virtual_disk_id - self.virtual_disk_name = None - - -class VirtualDiskController(Model): - """Virtual disk controller model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Controller's id - :vartype id: str - :ivar name: The display name of Controller - :vartype name: str - :ivar sub_type: dik controller subtype (VMWARE_PARAVIRTUAL, BUS_PARALLEL, - LSI_PARALLEL, LSI_SAS) - :vartype sub_type: str - :ivar type: disk controller type (SCSI) - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'sub_type': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sub_type': {'key': 'subType', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(VirtualDiskController, self).__init__(**kwargs) - self.id = None - self.name = None - self.sub_type = None - self.type = None - - -class VirtualMachine(Model): - """Virtual machine model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName} - :vartype id: str - :param location: Required. Azure region - :type location: str - :ivar name: {virtualMachineName} - :vartype name: str - :param amount_of_ram: Required. The amount of memory - :type amount_of_ram: int - :ivar controllers: The list of Virtual Disks' Controllers - :vartype controllers: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualDiskController] - :param customization: Virtual machine properties - :type customization: - ~azure.mgmt.vmwarecloudsimple.models.GuestOSCustomization - :param disks: The list of Virtual Disks - :type disks: list[~azure.mgmt.vmwarecloudsimple.models.VirtualDisk] - :ivar dnsname: The DNS name of Virtual Machine in VCenter - :vartype dnsname: str - :param expose_to_guest_vm: Expose Guest OS or not - :type expose_to_guest_vm: bool - :ivar folder: The path to virtual machine folder in VCenter - :vartype folder: str - :ivar guest_os: The name of Guest OS - :vartype guest_os: str - :ivar guest_os_type: The Guest OS type. Possible values include: 'linux', - 'windows', 'other' - :vartype guest_os_type: str or - ~azure.mgmt.vmwarecloudsimple.models.GuestOSType - :param nics: The list of Virtual NICs - :type nics: list[~azure.mgmt.vmwarecloudsimple.models.VirtualNic] - :param number_of_cores: Required. The number of CPU cores - :type number_of_cores: int - :param password: Password for login. Deprecated - use customization - property - :type password: str - :param private_cloud_id: Required. Private Cloud Id - :type private_cloud_id: str - :ivar provisioning_state: The provisioning status of the resource - :vartype provisioning_state: str - :ivar public_ip: The public ip of Virtual Machine - :vartype public_ip: str - :param resource_pool: Virtual Machines Resource Pool - :type resource_pool: ~azure.mgmt.vmwarecloudsimple.models.ResourcePool - :ivar status: The status of Virtual machine. Possible values include: - 'running', 'suspended', 'poweredoff', 'updating', 'deallocating', - 'deleting' - :vartype status: str or - ~azure.mgmt.vmwarecloudsimple.models.VirtualMachineStatus - :param template_id: Virtual Machine Template Id - :type template_id: str - :param username: Username for login. Deprecated - use customization - property - :type username: str - :param v_sphere_networks: The list of Virtual VSphere Networks - :type v_sphere_networks: list[str] - :ivar vm_id: The internal id of Virtual Machine in VCenter - :vartype vm_id: str - :ivar vmwaretools: VMware tools version - :vartype vmwaretools: str - :param tags: The list of tags - :type tags: dict[str, str] - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'}, - 'amount_of_ram': {'required': True}, - 'controllers': {'readonly': True}, - 'dnsname': {'readonly': True}, - 'folder': {'readonly': True}, - 'guest_os': {'readonly': True}, - 'guest_os_type': {'readonly': True}, - 'number_of_cores': {'required': True}, - 'private_cloud_id': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'public_ip': {'readonly': True}, - 'status': {'readonly': True}, - 'vm_id': {'readonly': True}, - 'vmwaretools': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'amount_of_ram': {'key': 'properties.amountOfRam', 'type': 'int'}, - 'controllers': {'key': 'properties.controllers', 'type': '[VirtualDiskController]'}, - 'customization': {'key': 'properties.customization', 'type': 'GuestOSCustomization'}, - 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, - 'dnsname': {'key': 'properties.dnsname', 'type': 'str'}, - 'expose_to_guest_vm': {'key': 'properties.exposeToGuestVM', 'type': 'bool'}, - 'folder': {'key': 'properties.folder', 'type': 'str'}, - 'guest_os': {'key': 'properties.guestOS', 'type': 'str'}, - 'guest_os_type': {'key': 'properties.guestOSType', 'type': 'GuestOSType'}, - 'nics': {'key': 'properties.nics', 'type': '[VirtualNic]'}, - 'number_of_cores': {'key': 'properties.numberOfCores', 'type': 'int'}, - 'password': {'key': 'properties.password', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'public_ip': {'key': 'properties.publicIP', 'type': 'str'}, - 'resource_pool': {'key': 'properties.resourcePool', 'type': 'ResourcePool'}, - 'status': {'key': 'properties.status', 'type': 'VirtualMachineStatus'}, - 'template_id': {'key': 'properties.templateId', 'type': 'str'}, - 'username': {'key': 'properties.username', 'type': 'str'}, - 'v_sphere_networks': {'key': 'properties.vSphereNetworks', 'type': '[str]'}, - 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, - 'vmwaretools': {'key': 'properties.vmwaretools', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, location: str, amount_of_ram: int, number_of_cores: int, private_cloud_id: str, customization=None, disks=None, expose_to_guest_vm: bool=None, nics=None, password: str=None, resource_pool=None, template_id: str=None, username: str=None, v_sphere_networks=None, tags=None, **kwargs) -> None: - super(VirtualMachine, self).__init__(**kwargs) - self.id = None - self.location = location - self.name = None - self.amount_of_ram = amount_of_ram - self.controllers = None - self.customization = customization - self.disks = disks - self.dnsname = None - self.expose_to_guest_vm = expose_to_guest_vm - self.folder = None - self.guest_os = None - self.guest_os_type = None - self.nics = nics - self.number_of_cores = number_of_cores - self.password = password - self.private_cloud_id = private_cloud_id - self.provisioning_state = None - self.public_ip = None - self.resource_pool = resource_pool - self.status = None - self.template_id = template_id - self.username = username - self.v_sphere_networks = v_sphere_networks - self.vm_id = None - self.vmwaretools = None - self.tags = tags - self.type = None - - -class VirtualMachineStopMode(Model): - """List of virtual machine stop modes. - - :param mode: mode indicates a type of stop operation - reboot, suspend, - shutdown or power-off. Possible values include: 'reboot', 'suspend', - 'shutdown', 'poweroff' - :type mode: str or ~azure.mgmt.vmwarecloudsimple.models.StopMode - """ - - _attribute_map = { - 'mode': {'key': 'mode', 'type': 'StopMode'}, - } - - def __init__(self, *, mode=None, **kwargs) -> None: - super(VirtualMachineStopMode, self).__init__(**kwargs) - self.mode = mode - - -class VirtualMachineTemplate(Model): - """Virtual machine template model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: virtual machine template id (privateCloudId:vsphereId) - :vartype id: str - :param location: Azure region - :type location: str - :ivar name: {virtualMachineTemplateName} - :vartype name: str - :param amount_of_ram: The amount of memory - :type amount_of_ram: int - :param controllers: The list of Virtual Disk Controllers - :type controllers: - list[~azure.mgmt.vmwarecloudsimple.models.VirtualDiskController] - :param description: The description of Virtual Machine Template - :type description: str - :param disks: The list of Virtual Disks - :type disks: list[~azure.mgmt.vmwarecloudsimple.models.VirtualDisk] - :param expose_to_guest_vm: Expose Guest OS or not - :type expose_to_guest_vm: bool - :ivar guest_os: The Guest OS - :vartype guest_os: str - :ivar guest_os_type: The Guest OS types - :vartype guest_os_type: str - :param nics: The list of Virtual NICs - :type nics: list[~azure.mgmt.vmwarecloudsimple.models.VirtualNic] - :param number_of_cores: The number of CPU cores - :type number_of_cores: int - :param path: path to folder - :type path: str - :param private_cloud_id: Required. The Private Cloud Id - :type private_cloud_id: str - :param v_sphere_networks: The list of VSphere networks - :type v_sphere_networks: list[str] - :param v_sphere_tags: The tags from VSphere - :type v_sphere_tags: list[str] - :ivar vmwaretools: The VMware tools version - :vartype vmwaretools: str - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'guest_os': {'readonly': True}, - 'guest_os_type': {'readonly': True}, - 'private_cloud_id': {'required': True}, - 'vmwaretools': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'amount_of_ram': {'key': 'properties.amountOfRam', 'type': 'int'}, - 'controllers': {'key': 'properties.controllers', 'type': '[VirtualDiskController]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, - 'expose_to_guest_vm': {'key': 'properties.exposeToGuestVM', 'type': 'bool'}, - 'guest_os': {'key': 'properties.guestOS', 'type': 'str'}, - 'guest_os_type': {'key': 'properties.guestOSType', 'type': 'str'}, - 'nics': {'key': 'properties.nics', 'type': '[VirtualNic]'}, - 'number_of_cores': {'key': 'properties.numberOfCores', 'type': 'int'}, - 'path': {'key': 'properties.path', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'v_sphere_networks': {'key': 'properties.vSphereNetworks', 'type': '[str]'}, - 'v_sphere_tags': {'key': 'properties.vSphereTags', 'type': '[str]'}, - 'vmwaretools': {'key': 'properties.vmwaretools', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, private_cloud_id: str, location: str=None, amount_of_ram: int=None, controllers=None, description: str=None, disks=None, expose_to_guest_vm: bool=None, nics=None, number_of_cores: int=None, path: str=None, v_sphere_networks=None, v_sphere_tags=None, **kwargs) -> None: - super(VirtualMachineTemplate, self).__init__(**kwargs) - self.id = None - self.location = location - self.name = None - self.amount_of_ram = amount_of_ram - self.controllers = controllers - self.description = description - self.disks = disks - self.expose_to_guest_vm = expose_to_guest_vm - self.guest_os = None - self.guest_os_type = None - self.nics = nics - self.number_of_cores = number_of_cores - self.path = path - self.private_cloud_id = private_cloud_id - self.v_sphere_networks = v_sphere_networks - self.v_sphere_tags = v_sphere_tags - self.vmwaretools = None - self.type = None - - -class VirtualNetwork(Model): - """Virtual network model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar assignable: can be used in vm creation/deletion - :vartype assignable: bool - :param id: Required. virtual network id (privateCloudId:vsphereId) - :type id: str - :ivar location: Azure region - :vartype location: str - :ivar name: {VirtualNetworkName} - :vartype name: str - :ivar private_cloud_id: The Private Cloud id - :vartype private_cloud_id: str - :ivar type: {resourceProviderNamespace}/{resourceType} - :vartype type: str - """ - - _validation = { - 'assignable': {'readonly': True}, - 'id': {'required': True}, - 'location': {'readonly': True}, - 'name': {'readonly': True}, - 'private_cloud_id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'assignable': {'key': 'assignable', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str, **kwargs) -> None: - super(VirtualNetwork, self).__init__(**kwargs) - self.assignable = None - self.id = id - self.location = None - self.name = None - self.private_cloud_id = None - self.type = None - - -class VirtualNic(Model): - """Virtual NIC model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param customization: guest OS customization for nic - :type customization: - ~azure.mgmt.vmwarecloudsimple.models.GuestOSNICCustomization - :param ip_addresses: NIC ip address - :type ip_addresses: list[str] - :param mac_address: NIC MAC address - :type mac_address: str - :param network: Required. Virtual Network - :type network: ~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork - :param nic_type: Required. NIC type. Possible values include: 'E1000', - 'E1000E', 'PCNET32', 'VMXNET', 'VMXNET2', 'VMXNET3' - :type nic_type: str or ~azure.mgmt.vmwarecloudsimple.models.NICType - :param power_on_boot: Is NIC powered on/off on boot - :type power_on_boot: bool - :param virtual_nic_id: NIC id - :type virtual_nic_id: str - :ivar virtual_nic_name: NIC name - :vartype virtual_nic_name: str - """ - - _validation = { - 'network': {'required': True}, - 'nic_type': {'required': True}, - 'virtual_nic_name': {'readonly': True}, - } - - _attribute_map = { - 'customization': {'key': 'customization', 'type': 'GuestOSNICCustomization'}, - 'ip_addresses': {'key': 'ipAddresses', 'type': '[str]'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - 'network': {'key': 'network', 'type': 'VirtualNetwork'}, - 'nic_type': {'key': 'nicType', 'type': 'NICType'}, - 'power_on_boot': {'key': 'powerOnBoot', 'type': 'bool'}, - 'virtual_nic_id': {'key': 'virtualNicId', 'type': 'str'}, - 'virtual_nic_name': {'key': 'virtualNicName', 'type': 'str'}, - } - - def __init__(self, *, network, nic_type, customization=None, ip_addresses=None, mac_address: str=None, power_on_boot: bool=None, virtual_nic_id: str=None, **kwargs) -> None: - super(VirtualNic, self).__init__(**kwargs) - self.customization = customization - self.ip_addresses = ip_addresses - self.mac_address = mac_address - self.network = network - self.nic_type = nic_type - self.power_on_boot = power_on_boot - self.virtual_nic_id = virtual_nic_id - self.virtual_nic_name = None diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_paged_models.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_paged_models.py deleted file mode 100644 index 85ebed5b98bc..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_paged_models.py +++ /dev/null @@ -1,157 +0,0 @@ -# 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.paging import Paged - - -class AvailableOperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`AvailableOperation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[AvailableOperation]'} - } - - def __init__(self, *args, **kwargs): - - super(AvailableOperationPaged, self).__init__(*args, **kwargs) -class DedicatedCloudNodePaged(Paged): - """ - A paging container for iterating over a list of :class:`DedicatedCloudNode ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DedicatedCloudNode]'} - } - - def __init__(self, *args, **kwargs): - - super(DedicatedCloudNodePaged, self).__init__(*args, **kwargs) -class DedicatedCloudServicePaged(Paged): - """ - A paging container for iterating over a list of :class:`DedicatedCloudService ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DedicatedCloudService]'} - } - - def __init__(self, *args, **kwargs): - - super(DedicatedCloudServicePaged, self).__init__(*args, **kwargs) -class SkuAvailabilityPaged(Paged): - """ - A paging container for iterating over a list of :class:`SkuAvailability ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SkuAvailability]'} - } - - def __init__(self, *args, **kwargs): - - super(SkuAvailabilityPaged, self).__init__(*args, **kwargs) -class PrivateCloudPaged(Paged): - """ - A paging container for iterating over a list of :class:`PrivateCloud ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PrivateCloud]'} - } - - def __init__(self, *args, **kwargs): - - super(PrivateCloudPaged, self).__init__(*args, **kwargs) -class CustomizationPolicyPaged(Paged): - """ - A paging container for iterating over a list of :class:`CustomizationPolicy ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[CustomizationPolicy]'} - } - - def __init__(self, *args, **kwargs): - - super(CustomizationPolicyPaged, self).__init__(*args, **kwargs) -class ResourcePoolPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourcePool ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourcePool]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourcePoolPaged, self).__init__(*args, **kwargs) -class VirtualMachineTemplatePaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualMachineTemplate ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualMachineTemplate]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualMachineTemplatePaged, self).__init__(*args, **kwargs) -class VirtualNetworkPaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualNetwork ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualNetwork]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualNetworkPaged, self).__init__(*args, **kwargs) -class UsagePaged(Paged): - """ - A paging container for iterating over a list of :class:`Usage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Usage]'} - } - - def __init__(self, *args, **kwargs): - - super(UsagePaged, self).__init__(*args, **kwargs) -class VirtualMachinePaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualMachine ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualMachine]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualMachinePaged, self).__init__(*args, **kwargs) diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_vmware_cloud_simple_client_enums.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_vmware_cloud_simple_client_enums.py deleted file mode 100644 index c5ff8f19244e..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/models/_vmware_cloud_simple_client_enums.py +++ /dev/null @@ -1,96 +0,0 @@ -# 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 enum import Enum - - -class OperationOrigin(str, Enum): - - user = "user" - system = "system" - usersystem = "user,system" - - -class AggregationType(str, Enum): - - average = "Average" - total = "Total" - - -class NodeStatus(str, Enum): - - unused = "unused" - used = "used" - - -class OnboardingStatus(str, Enum): - - not_on_boarded = "notOnBoarded" - on_boarded = "onBoarded" - on_boarding_failed = "onBoardingFailed" - on_boarding = "onBoarding" - - -class DiskIndependenceMode(str, Enum): - - persistent = "persistent" - independent_persistent = "independent_persistent" - independent_nonpersistent = "independent_nonpersistent" - - -class NICType(str, Enum): - - e1000 = "E1000" - e1000_e = "E1000E" - pcnet32 = "PCNET32" - vmxnet = "VMXNET" - vmxnet2 = "VMXNET2" - vmxnet3 = "VMXNET3" - - -class PrivateCloudResourceType(str, Enum): - - microsoft_vmware_cloud_simpleprivate_clouds = "Microsoft.VMwareCloudSimple/privateClouds" - - -class UsageCount(str, Enum): - - count = "Count" - bytes = "Bytes" - seconds = "Seconds" - percent = "Percent" - count_per_second = "CountPerSecond" - bytes_per_second = "BytesPerSecond" - - -class GuestOSType(str, Enum): - - linux = "linux" - windows = "windows" - other = "other" - - -class VirtualMachineStatus(str, Enum): - - running = "running" - suspended = "suspended" - poweredoff = "poweredoff" - updating = "updating" - deallocating = "deallocating" - deleting = "deleting" - - -class StopMode(str, Enum): - - reboot = "reboot" - suspend = "suspend" - shutdown = "shutdown" - poweroff = "poweroff" diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/__init__.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/__init__.py deleted file mode 100644 index a0f5a61c136e..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 ._operations import Operations -from ._dedicated_cloud_nodes_operations import DedicatedCloudNodesOperations -from ._dedicated_cloud_services_operations import DedicatedCloudServicesOperations -from ._skus_availability_operations import SkusAvailabilityOperations -from ._private_clouds_operations import PrivateCloudsOperations -from ._customization_policies_operations import CustomizationPoliciesOperations -from ._resource_pools_operations import ResourcePoolsOperations -from ._virtual_machine_templates_operations import VirtualMachineTemplatesOperations -from ._virtual_networks_operations import VirtualNetworksOperations -from ._usages_operations import UsagesOperations -from ._virtual_machines_operations import VirtualMachinesOperations - -__all__ = [ - 'Operations', - 'DedicatedCloudNodesOperations', - 'DedicatedCloudServicesOperations', - 'SkusAvailabilityOperations', - 'PrivateCloudsOperations', - 'CustomizationPoliciesOperations', - 'ResourcePoolsOperations', - 'VirtualMachineTemplatesOperations', - 'VirtualNetworksOperations', - 'UsagesOperations', - 'VirtualMachinesOperations', -] diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_customization_policies_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_customization_policies_operations.py deleted file mode 100644 index fad8014ceaf7..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_customization_policies_operations.py +++ /dev/null @@ -1,182 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class CustomizationPoliciesOperations(object): - """CustomizationPoliciesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, region_id, pc_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Implements get of customization policies list. - - Returns list of customization policies in region for private cloud. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param pc_name: The private cloud name - :type pc_name: str - :param filter: The filter to apply on the list operation. only type is - allowed here as a filter e.g. $filter=type eq 'xxxx' - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of CustomizationPolicy - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.CustomizationPolicyPaged[~azure.mgmt.vmwarecloudsimple.models.CustomizationPolicy] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.CustomizationPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/customizationPolicies'} - - def get( - self, region_id, pc_name, customization_policy_name, custom_headers=None, raw=False, **operation_config): - """Implements get of customization policy. - - Returns customization policy by its name. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param pc_name: The private cloud name - :type pc_name: str - :param customization_policy_name: customization policy name - :type customization_policy_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: CustomizationPolicy or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.CustomizationPolicy or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str'), - 'customizationPolicyName': self._serialize.url("customization_policy_name", customization_policy_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('CustomizationPolicy', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/customizationPolicies/{customizationPolicyName}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_dedicated_cloud_nodes_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_dedicated_cloud_nodes_operations.py deleted file mode 100644 index b60f73cf4bb6..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_dedicated_cloud_nodes_operations.py +++ /dev/null @@ -1,508 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class DedicatedCloudNodesOperations(object): - """DedicatedCloudNodesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list_by_subscription( - self, filter=None, top=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Implements list of dedicated cloud nodes within subscription method. - - Returns list of dedicate cloud nodes within subscription. - - :param filter: The filter to apply on the list operation - :type filter: str - :param top: The maximum number of record sets to return - :type top: int - :param skip_token: to be used by nextLink implementation - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of DedicatedCloudNode - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNodePaged[~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNode] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_subscription.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.DedicatedCloudNodePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes'} - - def list_by_resource_group( - self, resource_group_name, filter=None, top=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Implements list of dedicated cloud nodes within RG method. - - Returns list of dedicate cloud nodes within resource group. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param filter: The filter to apply on the list operation - :type filter: str - :param top: The maximum number of record sets to return - :type top: int - :param skip_token: to be used by nextLink implementation - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of DedicatedCloudNode - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNodePaged[~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNode] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.DedicatedCloudNodePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes'} - - def get( - self, resource_group_name, dedicated_cloud_node_name, custom_headers=None, raw=False, **operation_config): - """Implements dedicated cloud node GET method. - - Returns dedicated cloud node. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_node_name: dedicated cloud node name - :type dedicated_cloud_node_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DedicatedCloudNode or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNode or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudNodeName': self._serialize.url("dedicated_cloud_node_name", dedicated_cloud_node_name, 'str', pattern=r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DedicatedCloudNode', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'} - - - def _create_or_update_initial( - self, resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudNodeName': self._serialize.url("dedicated_cloud_node_name", dedicated_cloud_node_name, 'str', pattern=r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['Referer'] = self._serialize.header("self.config.referer", self.config.referer, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(dedicated_cloud_node_request, 'DedicatedCloudNode') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('DedicatedCloudNode', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements dedicated cloud node PUT method. - - Returns dedicated cloud node by its name. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_node_name: dedicated cloud node name - :type dedicated_cloud_node_name: str - :param dedicated_cloud_node_request: Create Dedicated Cloud Node - request - :type dedicated_cloud_node_request: - ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNode - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns DedicatedCloudNode or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNode] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNode]] - :raises: - :class:`CSRPErrorException` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - dedicated_cloud_node_name=dedicated_cloud_node_name, - dedicated_cloud_node_request=dedicated_cloud_node_request, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - } - deserialized = self._deserialize('DedicatedCloudNode', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'} - - def delete( - self, resource_group_name, dedicated_cloud_node_name, custom_headers=None, raw=False, **operation_config): - """Implements dedicated cloud node DELETE method. - - Delete dedicated cloud node. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_node_name: dedicated cloud node name - :type dedicated_cloud_node_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudNodeName': self._serialize.url("dedicated_cloud_node_name", dedicated_cloud_node_name, 'str', pattern=r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [204]: - raise models.CSRPErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Content-Type': 'str', - }) - return client_raw_response - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'} - - def update( - self, resource_group_name, dedicated_cloud_node_name, tags=None, custom_headers=None, raw=False, **operation_config): - """Implements dedicated cloud node PATCH method. - - Patches dedicated node properties. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_node_name: dedicated cloud node name - :type dedicated_cloud_node_name: str - :param tags: The tags key:value pairs - :type tags: dict[str, str] - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DedicatedCloudNode or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudNode or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - dedicated_cloud_node_request = models.PatchPayload(tags=tags) - - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudNodeName': self._serialize.url("dedicated_cloud_node_name", dedicated_cloud_node_name, 'str', pattern=r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(dedicated_cloud_node_request, 'PatchPayload') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DedicatedCloudNode', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_dedicated_cloud_services_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_dedicated_cloud_services_operations.py deleted file mode 100644 index 2d3b9e0c4b48..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_dedicated_cloud_services_operations.py +++ /dev/null @@ -1,492 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class DedicatedCloudServicesOperations(object): - """DedicatedCloudServicesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list_by_subscription( - self, filter=None, top=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Implements list of dedicatedCloudService objects within subscription - method. - - Returns list of dedicated cloud services within a subscription. - - :param filter: The filter to apply on the list operation - :type filter: str - :param top: The maximum number of record sets to return - :type top: int - :param skip_token: to be used by nextLink implementation - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of DedicatedCloudService - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudServicePaged[~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudService] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_subscription.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.DedicatedCloudServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices'} - - def list_by_resource_group( - self, resource_group_name, filter=None, top=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Implements list of dedicatedCloudService objects within RG method. - - Returns list of dedicated cloud services within a resource group. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param filter: The filter to apply on the list operation - :type filter: str - :param top: The maximum number of record sets to return - :type top: int - :param skip_token: to be used by nextLink implementation - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of DedicatedCloudService - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudServicePaged[~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudService] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.DedicatedCloudServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices'} - - def get( - self, resource_group_name, dedicated_cloud_service_name, custom_headers=None, raw=False, **operation_config): - """Implements dedicatedCloudService GET method. - - Returns Dedicate Cloud Service. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_service_name: dedicated cloud Service name - :type dedicated_cloud_service_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DedicatedCloudService or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudService or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudServiceName': self._serialize.url("dedicated_cloud_service_name", dedicated_cloud_service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DedicatedCloudService', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}'} - - def create_or_update( - self, resource_group_name, dedicated_cloud_service_name, dedicated_cloud_service_request, custom_headers=None, raw=False, **operation_config): - """Implements dedicated cloud service PUT method. - - Create dedicate cloud service. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_service_name: dedicated cloud Service name - :type dedicated_cloud_service_name: str - :param dedicated_cloud_service_request: Create Dedicated Cloud Service - request - :type dedicated_cloud_service_request: - ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudService - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DedicatedCloudService or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudService or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudServiceName': self._serialize.url("dedicated_cloud_service_name", dedicated_cloud_service_name, 'str', pattern=r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(dedicated_cloud_service_request, 'DedicatedCloudService') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DedicatedCloudService', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}'} - - - def _delete_initial( - self, resource_group_name, dedicated_cloud_service_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudServiceName': self._serialize.url("dedicated_cloud_service_name", dedicated_cloud_service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [204]: - raise models.CSRPErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Content-Type': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def delete( - self, resource_group_name, dedicated_cloud_service_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements dedicatedCloudService DELETE method. - - Delete dedicate cloud service. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_service_name: dedicated cloud service name - :type dedicated_cloud_service_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`CSRPErrorException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - dedicated_cloud_service_name=dedicated_cloud_service_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Content-Type': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}'} - - def update( - self, resource_group_name, dedicated_cloud_service_name, tags=None, custom_headers=None, raw=False, **operation_config): - """Implements dedicatedCloudService PATCH method. - - Patch dedicated cloud service's properties. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param dedicated_cloud_service_name: dedicated cloud service name - :type dedicated_cloud_service_name: str - :param tags: The tags key:value pairs - :type tags: dict[str, str] - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: DedicatedCloudService or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.DedicatedCloudService or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - dedicated_cloud_service_request = models.PatchPayload(tags=tags) - - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'dedicatedCloudServiceName': self._serialize.url("dedicated_cloud_service_name", dedicated_cloud_service_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(dedicated_cloud_service_request, 'PatchPayload') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DedicatedCloudService', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_operations.py deleted file mode 100644 index 9b9294fab4e6..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_operations.py +++ /dev/null @@ -1,172 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class Operations(object): - """Operations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Implements list of available operations. - - Return list of operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of AvailableOperation - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.AvailableOperationPaged[~azure.mgmt.vmwarecloudsimple.models.AvailableOperation] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.AvailableOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/providers/Microsoft.VMwareCloudSimple/operations'} - - def get( - self, region_id, operation_id, custom_headers=None, raw=False, **operation_config): - """Implements get of async operation. - - Return an async operation. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param operation_id: operation id - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationResource or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.OperationResource or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['Referer'] = self._serialize.header("self.config.referer", self.config.referer, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.CSRPErrorException(self._deserialize, response) - - header_dict = {} - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('OperationResource', response) - header_dict = { - 'Location': 'str', - 'Retry-After': 'int', - 'Content-Type': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/operationResults/{operationId}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_private_clouds_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_private_clouds_operations.py deleted file mode 100644 index f80634b07173..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_private_clouds_operations.py +++ /dev/null @@ -1,171 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class PrivateCloudsOperations(object): - """PrivateCloudsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, region_id, custom_headers=None, raw=False, **operation_config): - """Implements private cloud list GET method. - - Returns list of private clouds in particular region. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of PrivateCloud - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.PrivateCloudPaged[~azure.mgmt.vmwarecloudsimple.models.PrivateCloud] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.PrivateCloudPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds'} - - def get( - self, pc_name, region_id, custom_headers=None, raw=False, **operation_config): - """Implements private cloud GET method. - - Returns private cloud by its name. - - :param pc_name: The private cloud name - :type pc_name: str - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: PrivateCloud or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.PrivateCloud or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('PrivateCloud', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_resource_pools_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_resource_pools_operations.py deleted file mode 100644 index ceca6e198b60..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_resource_pools_operations.py +++ /dev/null @@ -1,177 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class ResourcePoolsOperations(object): - """ResourcePoolsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, region_id, pc_name, custom_headers=None, raw=False, **operation_config): - """Implements get of resource pools list. - - Returns list of resource pools in region for private cloud. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param pc_name: The private cloud name - :type pc_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ResourcePool - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.ResourcePoolPaged[~azure.mgmt.vmwarecloudsimple.models.ResourcePool] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ResourcePoolPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools'} - - def get( - self, region_id, pc_name, resource_pool_name, custom_headers=None, raw=False, **operation_config): - """Implements get of resource pool. - - Returns resource pool templates by its name. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param pc_name: The private cloud name - :type pc_name: str - :param resource_pool_name: resource pool id (vsphereId) - :type resource_pool_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ResourcePool or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.ResourcePool or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str'), - 'resourcePoolName': self._serialize.url("resource_pool_name", resource_pool_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ResourcePool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools/{resourcePoolName}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_skus_availability_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_skus_availability_operations.py deleted file mode 100644 index b9a93daa08e8..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_skus_availability_operations.py +++ /dev/null @@ -1,114 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class SkusAvailabilityOperations(object): - """SkusAvailabilityOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, region_id, sku_id=None, custom_headers=None, raw=False, **operation_config): - """Implements SkuAvailability List method. - - Returns list of available resources in region. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param sku_id: sku id, if no sku is passed availability for all skus - will be returned - :type sku_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of SkuAvailability - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.SkuAvailabilityPaged[~azure.mgmt.vmwarecloudsimple.models.SkuAvailability] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if sku_id is not None: - query_parameters['skuId'] = self._serialize.query("sku_id", sku_id, 'str') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.SkuAvailabilityPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/availabilities'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_usages_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_usages_operations.py deleted file mode 100644 index 2f480f803d43..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_usages_operations.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class UsagesOperations(object): - """UsagesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, region_id, filter=None, custom_headers=None, raw=False, **operation_config): - """Implements Usages List method. - - Returns list of usage in region. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param filter: The filter to apply on the list operation. only - name.value is allowed here as a filter e.g. $filter=name.value eq - 'xxxx' - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Usage - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.UsagePaged[~azure.mgmt.vmwarecloudsimple.models.Usage] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.UsagePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/usages'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_machine_templates_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_machine_templates_operations.py deleted file mode 100644 index 5a93b4e251af..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_machine_templates_operations.py +++ /dev/null @@ -1,182 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class VirtualMachineTemplatesOperations(object): - """VirtualMachineTemplatesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, pc_name, region_id, resource_pool_name, custom_headers=None, raw=False, **operation_config): - """Implements list of available VM templates. - - Returns list of virtual machine templates in region for private cloud. - - :param pc_name: The private cloud name - :type pc_name: str - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param resource_pool_name: Resource pool used to derive vSphere - cluster which contains VM templates - :type resource_pool_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualMachineTemplate - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.VirtualMachineTemplatePaged[~azure.mgmt.vmwarecloudsimple.models.VirtualMachineTemplate] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - query_parameters['resourcePoolName'] = self._serialize.query("resource_pool_name", resource_pool_name, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.VirtualMachineTemplatePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualMachineTemplates'} - - def get( - self, region_id, pc_name, virtual_machine_template_name, custom_headers=None, raw=False, **operation_config): - """Implements virtual machine template GET method. - - Returns virtual machine templates by its name. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param pc_name: The private cloud name - :type pc_name: str - :param virtual_machine_template_name: virtual machine template id - (vsphereId) - :type virtual_machine_template_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualMachineTemplate or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.VirtualMachineTemplate or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str'), - 'virtualMachineTemplateName': self._serialize.url("virtual_machine_template_name", virtual_machine_template_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachineTemplate', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualMachineTemplates/{virtualMachineTemplateName}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_machines_operations.py deleted file mode 100644 index f3fc6613b902..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_machines_operations.py +++ /dev/null @@ -1,790 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class VirtualMachinesOperations(object): - """VirtualMachinesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list_by_subscription( - self, filter=None, top=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Implements list virtual machine within subscription method. - - Returns list virtual machine within subscription. - - :param filter: The filter to apply on the list operation - :type filter: str - :param top: The maximum number of record sets to return - :type top: int - :param skip_token: to be used by nextLink implementation - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualMachine - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.VirtualMachinePaged[~azure.mgmt.vmwarecloudsimple.models.VirtualMachine] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_subscription.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/virtualMachines'} - - def list_by_resource_group( - self, resource_group_name, filter=None, top=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Implements list virtual machine within RG method. - - Returns list of virtual machine within resource group. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param filter: The filter to apply on the list operation - :type filter: str - :param top: The maximum number of record sets to return - :type top: int - :param skip_token: to be used by nextLink implementation - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualMachine - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.VirtualMachinePaged[~azure.mgmt.vmwarecloudsimple.models.VirtualMachine] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines'} - - def get( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, **operation_config): - """Implements virtual machine GET method. - - Get virtual machine. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param virtual_machine_name: virtual machine name - :type virtual_machine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualMachine or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.VirtualMachine or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}'} - - - def _create_or_update_initial( - self, resource_group_name, virtual_machine_name, virtual_machine_request, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str', pattern=r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['Referer'] = self._serialize.header("self.config.referer", self.config.referer, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(virtual_machine_request, 'VirtualMachine') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachine', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - if response.status_code == 201: - deserialized = self._deserialize('VirtualMachine', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, virtual_machine_name, virtual_machine_request, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements virtual machine PUT method. - - Create Or Update Virtual Machine. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param virtual_machine_name: virtual machine name - :type virtual_machine_name: str - :param virtual_machine_request: Create or Update Virtual Machine - request - :type virtual_machine_request: - ~azure.mgmt.vmwarecloudsimple.models.VirtualMachine - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns VirtualMachine or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmwarecloudsimple.models.VirtualMachine] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmwarecloudsimple.models.VirtualMachine]] - :raises: - :class:`CSRPErrorException` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - virtual_machine_request=virtual_machine_request, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - } - deserialized = self._deserialize('VirtualMachine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}'} - - - def _delete_initial( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['Referer'] = self._serialize.header("self.config.referer", self.config.referer, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - raise models.CSRPErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - 'Content-Type': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def delete( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements virtual machine DELETE method. - - Delete virtual machine. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param virtual_machine_name: virtual machine name - :type virtual_machine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`CSRPErrorException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - 'Content-Type': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}'} - - - def _update_initial( - self, resource_group_name, virtual_machine_name, tags=None, custom_headers=None, raw=False, **operation_config): - virtual_machine_request = models.PatchPayload(tags=tags) - - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(virtual_machine_request, 'PatchPayload') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, virtual_machine_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements virtual machine PATCH method. - - Patch virtual machine properties. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param virtual_machine_name: virtual machine name - :type virtual_machine_name: str - :param tags: The tags key:value pairs - :type tags: dict[str, str] - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns VirtualMachine or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmwarecloudsimple.models.VirtualMachine] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmwarecloudsimple.models.VirtualMachine]] - :raises: - :class:`CSRPErrorException` - """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - tags=tags, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('VirtualMachine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}'} - - - def _start_initial( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.start.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['Referer'] = self._serialize.header("self.config.referer", self.config.referer, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - raise models.CSRPErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - 'Content-Type': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def start( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements a start method for a virtual machine. - - Power on virtual machine. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param virtual_machine_name: virtual machine name - :type virtual_machine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`CSRPErrorException` - """ - raw_result = self._start_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - 'Content-Type': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/start'} - - - def _stop_initial( - self, resource_group_name, virtual_machine_name, mode=None, mode1=None, custom_headers=None, raw=False, **operation_config): - m = None - if mode1 is not None: - m = models.VirtualMachineStopMode(mode=mode1) - - # Construct URL - url = self.stop.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if mode is not None: - query_parameters['mode'] = self._serialize.query("mode", mode, 'StopMode') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['Referer'] = self._serialize.header("self.config.referer", self.config.referer, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if m is not None: - body_content = self._serialize.body(m, 'VirtualMachineStopMode') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - raise models.CSRPErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - 'Content-Type': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def stop( - self, resource_group_name, virtual_machine_name, mode=None, mode1=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements shutdown, poweroff, and suspend method for a virtual - machine. - - Power off virtual machine, options: shutdown, poweroff, and suspend. - - :param resource_group_name: The name of the resource group - :type resource_group_name: str - :param virtual_machine_name: virtual machine name - :type virtual_machine_name: str - :param mode: query stop mode parameter (reboot, shutdown, etc...). - Possible values include: 'reboot', 'suspend', 'shutdown', 'poweroff' - :type mode: str or ~azure.mgmt.vmwarecloudsimple.models.StopMode - :param mode1: mode indicates a type of stop operation - reboot, - suspend, shutdown or power-off. Possible values include: 'reboot', - 'suspend', 'shutdown', 'poweroff' - :type mode1: str or ~azure.mgmt.vmwarecloudsimple.models.StopMode - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`CSRPErrorException` - """ - raw_result = self._stop_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - mode=mode, - mode1=mode1, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - 'Content-Type': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/stop'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_networks_operations.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_networks_operations.py deleted file mode 100644 index b3b593b23be4..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/operations/_virtual_networks_operations.py +++ /dev/null @@ -1,182 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class VirtualNetworksOperations(object): - """VirtualNetworksOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-04-01" - - self.config = config - - def list( - self, region_id, pc_name, resource_pool_name, custom_headers=None, raw=False, **operation_config): - """Implements list available virtual networks within a subscription - method. - - Return list of virtual networks in location for private cloud. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param pc_name: The private cloud name - :type pc_name: str - :param resource_pool_name: Resource pool used to derive vSphere - cluster which contains virtual networks - :type resource_pool_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualNetwork - :rtype: - ~azure.mgmt.vmwarecloudsimple.models.VirtualNetworkPaged[~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork] - :raises: - :class:`CSRPErrorException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - query_parameters['resourcePoolName'] = self._serialize.query("resource_pool_name", resource_pool_name, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualNetworks'} - - def get( - self, region_id, pc_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): - """Implements virtual network GET method. - - Return virtual network by its name. - - :param region_id: The region Id (westus, eastus) - :type region_id: str - :param pc_name: The private cloud name - :type pc_name: str - :param virtual_network_name: virtual network id (vsphereId) - :type virtual_network_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualNetwork or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`CSRPErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'regionId': self._serialize.url("region_id", region_id, 'str'), - 'pcName': self._serialize.url("pc_name", pc_name, 'str'), - 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.CSRPErrorException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('VirtualNetwork', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualNetworks/{virtualNetworkName}'} diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/version.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/version.py deleted file mode 100644 index 9bd1dfac7ecb..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -VERSION = "0.2.0" - diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/sdk_packaging.toml b/sdk/compute/azure-mgmt-vmwarecloudsimple/sdk_packaging.toml deleted file mode 100644 index 78f8cf58c2f5..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/sdk_packaging.toml +++ /dev/null @@ -1,8 +0,0 @@ -[packaging] -package_name = "azure-mgmt-vmwarecloudsimple" -package_nspkg = "azure-mgmt-nspkg" -package_pprint_name = "MyService Management" -package_doc_id = "" -is_stable = false -is_arm = true -need_msrestazure = true diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/setup.cfg b/sdk/compute/azure-mgmt-vmwarecloudsimple/setup.cfg deleted file mode 100644 index 3c6e79cf31da..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/setup.py b/sdk/compute/azure-mgmt-vmwarecloudsimple/setup.py deleted file mode 100644 index 021e4e360ea2..000000000000 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/setup.py +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env python - -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-mgmt-vmwarecloudsimple" -PACKAGE_PPRINT_NAME = "MyService Management" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') - -# azure v0.x is not compatible with this package -# azure v0.x used to have a __version__ attribute (newer versions don't) -try: - import azure - try: - ver = azure.__version__ - raise Exception( - 'This package is incompatible with azure=={}. '.format(ver) + - 'Uninstall it with "pip uninstall azure".' - ) - except AttributeError: - pass -except ImportError: - pass - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('Cannot find version information') - -with open('README.md', encoding='utf-8') as f: - readme = f.read() -with open('CHANGELOG.md', encoding='utf-8') as f: - changelog = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - long_description=readme + '\n\n' + changelog, - long_description_content_type='text/markdown', - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - 'azure', - 'azure.mgmt', - ]), - install_requires=[ - 'msrest>=0.5.0', - 'msrestazure>=0.4.32,<2.0.0', - 'azure-common~=1.1', - ], - extras_require={ - ":python_version<'3.0'": ['azure-mgmt-nspkg'], - } -) diff --git a/sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md b/sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md deleted file mode 100644 index 9cd268f3fbb4..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md +++ /dev/null @@ -1,60 +0,0 @@ -# Release History - -## 3.0.0 (2020-03-09) - -**Breaking changes** - -- Removed operation AppsOperations.list_templates - -## 2.0.0 (2019-12-25) - -**Features** - - - Added operation AppsOperations.list_templates - -**General Breaking Changes** - -This version uses a next-generation code generator that might introduce -breaking changes if from some import. In summary, some modules were -incorrectly visible/importable and have been renamed. This fixed several -issues caused by usage of classes that were not supposed to be used in -the first place. IoTCentralClient cannot be imported from -azure.mgmt.iotcentreal.iot_central_client anymore (import from -azure.mgmt.iotcentreal works like before) IoTCentralClientConfiguration -import has been moved from azure.mgmt.iotcentreal.iot_central_client -to azure.mgmt.iotcentreal A model MyClass from a "models" sub-module -cannot be imported anymore using azure.mgmt.iotcentreal.models.my_class -(import from azure.mgmt.iotcentreal.models works like before) An -operation class MyClassOperations from an operations sub-module cannot -be imported anymore using -azure.mgmt.iotcentreal.operations.my_class_operations (import from -azure.mgmt.iotcentreal.operations works like before) Last but not least, -HTTP connection pooling is now enabled by default. You should always use -a client as a context manager, or call close(), or use no more than one -client per process. - -## 1.0.0 (2018-10-26) - -**Features** - - - Model OperationInputs has a new parameter type - - Model ErrorDetails has a new parameter details - - Added operation AppsOperations.check_subdomain_availability - -**Breaking changes** - - - Operation AppsOperations.check_name_availability has a new - signature - -**Note** - - - azure-mgmt-nspkg is not installed anymore on Python 3 (PEP420-based - namespace package) - -## 0.2.0 (2018-08-07) - - - Replace API version by 2018-09-01 - -## 0.1.0 (2018-07-16) - - - Initial Release with support for 2017-07-01-privatepreview diff --git a/sdk/iothub/azure-mgmt-iotcentral/MANIFEST.in b/sdk/iothub/azure-mgmt-iotcentral/MANIFEST.in deleted file mode 100644 index a3cb07df8765..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -recursive-include tests *.py *.yaml -include *.md -include azure/__init__.py -include azure/mgmt/__init__.py - diff --git a/sdk/iothub/azure-mgmt-iotcentral/README.md b/sdk/iothub/azure-mgmt-iotcentral/README.md deleted file mode 100644 index c0515a3b666c..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Microsoft Azure SDK for Python - -This is the Microsoft Azure IoTCentral Management Client Library. -This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. -For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all) - - -# Usage - -For code examples, see [IoTCentral Management](https://docs.microsoft.com/python/api/overview/azure/) -on docs.microsoft.com. - - -# 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. - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-iotcentral%2FREADME.png) diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/__init__.py b/sdk/iothub/azure-mgmt-iotcentral/azure/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/__init__.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/__init__.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/__init__.py deleted file mode 100644 index 260b86a50022..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# 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 ._configuration import IotCentralClientConfiguration -from ._iot_central_client import IotCentralClient -__all__ = ['IotCentralClient', 'IotCentralClientConfiguration'] - -from .version import VERSION - -__version__ = VERSION - diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_configuration.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_configuration.py deleted file mode 100644 index 7b335d822442..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_configuration.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 msrestazure import AzureConfiguration - -from .version import VERSION - - -class IotCentralClientConfiguration(AzureConfiguration): - """Configuration for IotCentralClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription identifier. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(IotCentralClientConfiguration, self).__init__(base_url) - - # Starting Autorest.Python 4.0.64, make connection pool activated by default - self.keep_alive = True - - self.add_user_agent('azure-mgmt-iotcentral/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_iot_central_client.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_iot_central_client.py deleted file mode 100644 index d5e718427557..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/_iot_central_client.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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.service_client import SDKClient -from msrest import Serializer, Deserializer - -from ._configuration import IotCentralClientConfiguration -from .operations import AppsOperations -from .operations import Operations -from . import models - - -class IotCentralClient(SDKClient): - """Use this API to manage IoT Central Applications in your Azure subscription. - - :ivar config: Configuration for client. - :vartype config: IotCentralClientConfiguration - - :ivar apps: Apps operations - :vartype apps: azure.mgmt.iotcentral.operations.AppsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.iotcentral.operations.Operations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription identifier. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = IotCentralClientConfiguration(credentials, subscription_id, base_url) - super(IotCentralClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-09-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.apps = AppsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/__init__.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/__init__.py deleted file mode 100644 index f352527b5348..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/__init__.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import App - from ._models_py3 import AppAvailabilityInfo - from ._models_py3 import AppPatch - from ._models_py3 import AppSkuInfo - from ._models_py3 import AppTemplate - from ._models_py3 import CloudErrorBody - from ._models_py3 import Operation - from ._models_py3 import OperationDisplay - from ._models_py3 import OperationInputs - from ._models_py3 import Resource -except (SyntaxError, ImportError): - from ._models import App - from ._models import AppAvailabilityInfo - from ._models import AppPatch - from ._models import AppSkuInfo - from ._models import AppTemplate - from ._models import CloudErrorBody - from ._models import Operation - from ._models import OperationDisplay - from ._models import OperationInputs - from ._models import Resource -from ._paged_models import AppPaged -from ._paged_models import AppTemplatePaged -from ._paged_models import OperationPaged -from ._iot_central_client_enums import ( - AppSku, -) - -__all__ = [ - 'App', - 'AppAvailabilityInfo', - 'AppPatch', - 'AppSkuInfo', - 'AppTemplate', - 'CloudErrorBody', - 'Operation', - 'OperationDisplay', - 'OperationInputs', - 'Resource', - 'AppPaged', - 'AppTemplatePaged', - 'OperationPaged', - 'AppSku', -] diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_iot_central_client_enums.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_iot_central_client_enums.py deleted file mode 100644 index 260dac79c36a..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_iot_central_client_enums.py +++ /dev/null @@ -1,21 +0,0 @@ -# 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 enum import Enum - - -class AppSku(str, Enum): - - f1 = "F1" - s1 = "S1" - st0 = "ST0" - st1 = "ST1" - st2 = "ST2" diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models.py deleted file mode 100644 index 0ab6e3d4113e..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models.py +++ /dev/null @@ -1,449 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class Resource(Model): - """The common properties of an ARM resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ARM resource identifier. - :vartype id: str - :ivar name: The ARM resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,99}[a-zA-Z0-9]$'}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - - -class App(Resource): - """The IoT Central application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ARM resource identifier. - :vartype id: str - :ivar name: The ARM resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :ivar application_id: The ID of the application. - :vartype application_id: str - :param display_name: The display name of the application. - :type display_name: str - :param subdomain: The subdomain of the application. - :type subdomain: str - :param template: The ID of the application template, which is a blueprint - that defines the characteristics and behaviors of an application. - Optional; if not specified, defaults to a blank blueprint and allows the - application to be defined from scratch. - :type template: str - :param sku: Required. A valid instance SKU. - :type sku: ~azure.mgmt.iotcentral.models.AppSkuInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,99}[a-zA-Z0-9]$'}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'application_id': {'readonly': True}, - 'sku': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'application_id': {'key': 'properties.applicationId', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'subdomain': {'key': 'properties.subdomain', 'type': 'str'}, - 'template': {'key': 'properties.template', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'AppSkuInfo'}, - } - - def __init__(self, **kwargs): - super(App, self).__init__(**kwargs) - self.application_id = None - self.display_name = kwargs.get('display_name', None) - self.subdomain = kwargs.get('subdomain', None) - self.template = kwargs.get('template', None) - self.sku = kwargs.get('sku', None) - - -class AppAvailabilityInfo(Model): - """The properties indicating whether a given IoT Central application name or - subdomain is available. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: The value which indicates whether the provided name - is available. - :vartype name_available: bool - :ivar reason: The reason for unavailability. - :vartype reason: str - :ivar message: The detailed reason message. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AppAvailabilityInfo, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None - - -class AppPatch(Model): - """The description of the IoT Central application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param tags: Instance tags - :type tags: dict[str, str] - :ivar application_id: The ID of the application. - :vartype application_id: str - :param display_name: The display name of the application. - :type display_name: str - :param subdomain: The subdomain of the application. - :type subdomain: str - :param template: The ID of the application template, which is a blueprint - that defines the characteristics and behaviors of an application. - Optional; if not specified, defaults to a blank blueprint and allows the - application to be defined from scratch. - :type template: str - """ - - _validation = { - 'application_id': {'readonly': True}, - } - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'application_id': {'key': 'properties.applicationId', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'subdomain': {'key': 'properties.subdomain', 'type': 'str'}, - 'template': {'key': 'properties.template', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AppPatch, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.application_id = None - self.display_name = kwargs.get('display_name', None) - self.subdomain = kwargs.get('subdomain', None) - self.template = kwargs.get('template', None) - - -class AppSkuInfo(Model): - """Information about the SKU of the IoT Central application. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the SKU. Possible values include: 'F1', - 'S1', 'ST0', 'ST1', 'ST2' - :type name: str or ~azure.mgmt.iotcentral.models.AppSku - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AppSkuInfo, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - - -class AppTemplate(Model): - """IoT Central Application Template. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar manifest_id: The ID of the template. - :vartype manifest_id: str - :ivar manifest_version: The version of the template. - :vartype manifest_version: str - :ivar app_template_name: The name of the template. - :vartype app_template_name: str - :ivar title: The title of the template. - :vartype title: str - :ivar order: The order of the template in the templates list. - :vartype order: float - :ivar description: The description of the template. - :vartype description: str - """ - - _validation = { - 'manifest_id': {'readonly': True}, - 'manifest_version': {'readonly': True}, - 'app_template_name': {'readonly': True}, - 'title': {'readonly': True}, - 'order': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'manifest_id': {'key': 'manifestId', 'type': 'str'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'str'}, - 'app_template_name': {'key': 'appTemplateName', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'float'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AppTemplate, self).__init__(**kwargs) - self.manifest_id = None - self.manifest_version = None - self.app_template_name = None - self.title = None - self.order = None - self.description = None - - -class CloudError(Model): - """Error details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The target of the particular error. - :vartype target: str - :param details: A list of additional details about the error. - :type details: list[~azure.mgmt.iotcentral.models.CloudErrorBody] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'error.code', 'type': 'str'}, - 'message': {'key': 'error.message', 'type': 'str'}, - 'target': {'key': 'error.target', 'type': 'str'}, - 'details': {'key': 'error.details', 'type': '[CloudErrorBody]'}, - } - - def __init__(self, **kwargs): - super(CloudError, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = kwargs.get('details', None) - - -class CloudErrorException(HttpOperationError): - """Server responsed with exception of type: 'CloudError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args) - - -class CloudErrorBody(Model): - """Details of error response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The target of the particular error. - :vartype target: str - :param details: A list of additional details about the error. - :type details: list[~azure.mgmt.iotcentral.models.CloudErrorBody] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, - } - - def __init__(self, **kwargs): - super(CloudErrorBody, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = kwargs.get('details', None) - - -class Operation(Model): - """IoT Central REST API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {provider}/{resource}/{read | write | action | - delete} - :vartype name: str - :param display: The object that represents the operation. - :type display: ~azure.mgmt.iotcentral.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = kwargs.get('display', None) - - -class OperationDisplay(Model): - """The object that represents the operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: Service provider: Microsoft IoT Central - :vartype provider: str - :ivar resource: Resource Type: IoT Central - :vartype resource: str - :ivar operation: Name of the operation - :vartype operation: str - :ivar description: Friendly description for the operation, - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None - - -class OperationInputs(Model): - """Input values. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the IoT Central application instance to - check. - :type name: str - :param type: The type of the IoT Central resource to query. Default value: - "IoTApps" . - :type type: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationInputs, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', "IoTApps") diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models_py3.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models_py3.py deleted file mode 100644 index 603a076e9104..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models_py3.py +++ /dev/null @@ -1,449 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class Resource(Model): - """The common properties of an ARM resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ARM resource identifier. - :vartype id: str - :ivar name: The ARM resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,99}[a-zA-Z0-9]$'}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags - - -class App(Resource): - """The IoT Central application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ARM resource identifier. - :vartype id: str - :ivar name: The ARM resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :ivar application_id: The ID of the application. - :vartype application_id: str - :param display_name: The display name of the application. - :type display_name: str - :param subdomain: The subdomain of the application. - :type subdomain: str - :param template: The ID of the application template, which is a blueprint - that defines the characteristics and behaviors of an application. - Optional; if not specified, defaults to a blank blueprint and allows the - application to be defined from scratch. - :type template: str - :param sku: Required. A valid instance SKU. - :type sku: ~azure.mgmt.iotcentral.models.AppSkuInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,99}[a-zA-Z0-9]$'}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'application_id': {'readonly': True}, - 'sku': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'application_id': {'key': 'properties.applicationId', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'subdomain': {'key': 'properties.subdomain', 'type': 'str'}, - 'template': {'key': 'properties.template', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'AppSkuInfo'}, - } - - def __init__(self, *, location: str, sku, tags=None, display_name: str=None, subdomain: str=None, template: str=None, **kwargs) -> None: - super(App, self).__init__(location=location, tags=tags, **kwargs) - self.application_id = None - self.display_name = display_name - self.subdomain = subdomain - self.template = template - self.sku = sku - - -class AppAvailabilityInfo(Model): - """The properties indicating whether a given IoT Central application name or - subdomain is available. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: The value which indicates whether the provided name - is available. - :vartype name_available: bool - :ivar reason: The reason for unavailability. - :vartype reason: str - :ivar message: The detailed reason message. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AppAvailabilityInfo, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None - - -class AppPatch(Model): - """The description of the IoT Central application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param tags: Instance tags - :type tags: dict[str, str] - :ivar application_id: The ID of the application. - :vartype application_id: str - :param display_name: The display name of the application. - :type display_name: str - :param subdomain: The subdomain of the application. - :type subdomain: str - :param template: The ID of the application template, which is a blueprint - that defines the characteristics and behaviors of an application. - Optional; if not specified, defaults to a blank blueprint and allows the - application to be defined from scratch. - :type template: str - """ - - _validation = { - 'application_id': {'readonly': True}, - } - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'application_id': {'key': 'properties.applicationId', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'subdomain': {'key': 'properties.subdomain', 'type': 'str'}, - 'template': {'key': 'properties.template', 'type': 'str'}, - } - - def __init__(self, *, tags=None, display_name: str=None, subdomain: str=None, template: str=None, **kwargs) -> None: - super(AppPatch, self).__init__(**kwargs) - self.tags = tags - self.application_id = None - self.display_name = display_name - self.subdomain = subdomain - self.template = template - - -class AppSkuInfo(Model): - """Information about the SKU of the IoT Central application. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the SKU. Possible values include: 'F1', - 'S1', 'ST0', 'ST1', 'ST2' - :type name: str or ~azure.mgmt.iotcentral.models.AppSku - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, name, **kwargs) -> None: - super(AppSkuInfo, self).__init__(**kwargs) - self.name = name - - -class AppTemplate(Model): - """IoT Central Application Template. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar manifest_id: The ID of the template. - :vartype manifest_id: str - :ivar manifest_version: The version of the template. - :vartype manifest_version: str - :ivar app_template_name: The name of the template. - :vartype app_template_name: str - :ivar title: The title of the template. - :vartype title: str - :ivar order: The order of the template in the templates list. - :vartype order: float - :ivar description: The description of the template. - :vartype description: str - """ - - _validation = { - 'manifest_id': {'readonly': True}, - 'manifest_version': {'readonly': True}, - 'app_template_name': {'readonly': True}, - 'title': {'readonly': True}, - 'order': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'manifest_id': {'key': 'manifestId', 'type': 'str'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'str'}, - 'app_template_name': {'key': 'appTemplateName', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'float'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AppTemplate, self).__init__(**kwargs) - self.manifest_id = None - self.manifest_version = None - self.app_template_name = None - self.title = None - self.order = None - self.description = None - - -class CloudError(Model): - """Error details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The target of the particular error. - :vartype target: str - :param details: A list of additional details about the error. - :type details: list[~azure.mgmt.iotcentral.models.CloudErrorBody] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'error.code', 'type': 'str'}, - 'message': {'key': 'error.message', 'type': 'str'}, - 'target': {'key': 'error.target', 'type': 'str'}, - 'details': {'key': 'error.details', 'type': '[CloudErrorBody]'}, - } - - def __init__(self, *, details=None, **kwargs) -> None: - super(CloudError, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = details - - -class CloudErrorException(HttpOperationError): - """Server responsed with exception of type: 'CloudError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args) - - -class CloudErrorBody(Model): - """Details of error response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The target of the particular error. - :vartype target: str - :param details: A list of additional details about the error. - :type details: list[~azure.mgmt.iotcentral.models.CloudErrorBody] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, - } - - def __init__(self, *, details=None, **kwargs) -> None: - super(CloudErrorBody, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = details - - -class Operation(Model): - """IoT Central REST API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {provider}/{resource}/{read | write | action | - delete} - :vartype name: str - :param display: The object that represents the operation. - :type display: ~azure.mgmt.iotcentral.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = display - - -class OperationDisplay(Model): - """The object that represents the operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: Service provider: Microsoft IoT Central - :vartype provider: str - :ivar resource: Resource Type: IoT Central - :vartype resource: str - :ivar operation: Name of the operation - :vartype operation: str - :ivar description: Friendly description for the operation, - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None - - -class OperationInputs(Model): - """Input values. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the IoT Central application instance to - check. - :type name: str - :param type: The type of the IoT Central resource to query. Default value: - "IoTApps" . - :type type: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, name: str, type: str="IoTApps", **kwargs) -> None: - super(OperationInputs, self).__init__(**kwargs) - self.name = name - self.type = type diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_paged_models.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_paged_models.py deleted file mode 100644 index 37de32d3d458..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_paged_models.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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.paging import Paged - - -class AppPaged(Paged): - """ - A paging container for iterating over a list of :class:`App ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[App]'} - } - - def __init__(self, *args, **kwargs): - - super(AppPaged, self).__init__(*args, **kwargs) -class AppTemplatePaged(Paged): - """ - A paging container for iterating over a list of :class:`AppTemplate ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[AppTemplate]'} - } - - def __init__(self, *args, **kwargs): - - super(AppTemplatePaged, self).__init__(*args, **kwargs) -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/__init__.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/__init__.py deleted file mode 100644 index 5f8e995e4c60..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# 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 ._apps_operations import AppsOperations -from ._operations import Operations - -__all__ = [ - 'AppsOperations', - 'Operations', -] diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_apps_operations.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_apps_operations.py deleted file mode 100644 index 2a7579673e9b..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_apps_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class AppsOperations(object): - """AppsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-09-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-09-01" - - self.config = config - - def get( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): - """Get the metadata of an IoT Central application. - - :param resource_group_name: The name of the resource group that - contains the IoT Central application. - :type resource_group_name: str - :param resource_name: The ARM resource name of the IoT Central - application. - :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: App or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.iotcentral.models.App or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('App', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'} - - - def _create_or_update_initial( - self, resource_group_name, resource_name, app, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(app, 'App') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('App', response) - if response.status_code == 201: - deserialized = self._deserialize('App', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, resource_name, app, custom_headers=None, raw=False, polling=True, **operation_config): - """Create or update the metadata of an IoT Central application. The usual - pattern to modify a property is to retrieve the IoT Central application - metadata and security metadata, and then combine them with the modified - values in a new body to update the IoT Central application. - - :param resource_group_name: The name of the resource group that - contains the IoT Central application. - :type resource_group_name: str - :param resource_name: The ARM resource name of the IoT Central - application. - :type resource_name: str - :param app: The IoT Central application metadata and security - metadata. - :type app: ~azure.mgmt.iotcentral.models.App - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns App or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.iotcentral.models.App] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.iotcentral.models.App]] - :raises: :class:`CloudError` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - app=app, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('App', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'} - - - def _update_initial( - self, resource_group_name, resource_name, app_patch, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(app_patch, 'AppPatch') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('App', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, resource_name, app_patch, custom_headers=None, raw=False, polling=True, **operation_config): - """Update the metadata of an IoT Central application. - - :param resource_group_name: The name of the resource group that - contains the IoT Central application. - :type resource_group_name: str - :param resource_name: The ARM resource name of the IoT Central - application. - :type resource_name: str - :param app_patch: The IoT Central application metadata and security - metadata. - :type app_patch: ~azure.mgmt.iotcentral.models.AppPatch - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns App or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.iotcentral.models.App] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.iotcentral.models.App]] - :raises: :class:`CloudError` - """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - app_patch=app_patch, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('App', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'} - - - def _delete_initial( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Delete an IoT Central application. - - :param resource_group_name: The name of the resource group that - contains the IoT Central application. - :type resource_group_name: str - :param resource_name: The ARM resource name of the IoT Central - application. - :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: :class:`CloudError` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'} - - def list_by_subscription( - self, custom_headers=None, raw=False, **operation_config): - """Get all IoT Central Applications in a subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of App - :rtype: - ~azure.mgmt.iotcentral.models.AppPaged[~azure.mgmt.iotcentral.models.App] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_subscription.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.AppPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Get all the IoT Central Applications in a resource group. - - :param resource_group_name: The name of the resource group that - contains the IoT Central application. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of App - :rtype: - ~azure.mgmt.iotcentral.models.AppPaged[~azure.mgmt.iotcentral.models.App] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.AppPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps'} - - def check_name_availability( - self, name, type="IoTApps", custom_headers=None, raw=False, **operation_config): - """Check if an IoT Central application name is available. - - :param name: The name of the IoT Central application instance to - check. - :type name: str - :param type: The type of the IoT Central resource to query. - :type type: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: AppAvailabilityInfo or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.iotcentral.models.AppAvailabilityInfo or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - operation_inputs = models.OperationInputs(name=name, type=type) - - # Construct URL - url = self.check_name_availability.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(operation_inputs, 'OperationInputs') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('AppAvailabilityInfo', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkNameAvailability'} - - def check_subdomain_availability( - self, name, type="IoTApps", custom_headers=None, raw=False, **operation_config): - """Check if an IoT Central application subdomain is available. - - :param name: The name of the IoT Central application instance to - check. - :type name: str - :param type: The type of the IoT Central resource to query. - :type type: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: AppAvailabilityInfo or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.iotcentral.models.AppAvailabilityInfo or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - operation_inputs = models.OperationInputs(name=name, type=type) - - # Construct URL - url = self.check_subdomain_availability.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(operation_inputs, 'OperationInputs') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('AppAvailabilityInfo', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - check_subdomain_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkSubdomainAvailability'} - - def list_templates( - self, custom_headers=None, raw=False, **operation_config): - """Get all available application templates. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of AppTemplate - :rtype: - ~azure.mgmt.iotcentral.models.AppTemplatePaged[~azure.mgmt.iotcentral.models.AppTemplate] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_templates.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.AppTemplatePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_templates.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/appTemplates'} diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_operations.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_operations.py deleted file mode 100644 index 764115f4f92d..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class Operations(object): - """Operations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-09-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-09-01" - - self.config = config - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available IoT Central application REST API operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.iotcentral.models.OperationPaged[~azure.mgmt.iotcentral.models.Operation] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/providers/Microsoft.IoTCentral/operations'} diff --git a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/version.py b/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/version.py deleted file mode 100644 index 7f225c6aab41..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -VERSION = "3.0.0" - diff --git a/sdk/iothub/azure-mgmt-iotcentral/dev_requirements.txt b/sdk/iothub/azure-mgmt-iotcentral/dev_requirements.txt deleted file mode 100644 index 1a1c8d8fc379..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/dev_requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ --e ../../../tools/azure-sdk-tools --e ../../../tools/azure-devtools \ No newline at end of file diff --git a/sdk/iothub/azure-mgmt-iotcentral/sdk_packaging.toml b/sdk/iothub/azure-mgmt-iotcentral/sdk_packaging.toml deleted file mode 100644 index 2de306de2a2d..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/sdk_packaging.toml +++ /dev/null @@ -1,5 +0,0 @@ -[packaging] -package_name = "azure-mgmt-iotcentral" -package_pprint_name = "IoTCentral Management" -package_doc_id = "" -is_stable = false diff --git a/sdk/iothub/azure-mgmt-iotcentral/setup.cfg b/sdk/iothub/azure-mgmt-iotcentral/setup.cfg deleted file mode 100644 index 3c6e79cf31da..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/sdk/iothub/azure-mgmt-iotcentral/setup.py b/sdk/iothub/azure-mgmt-iotcentral/setup.py deleted file mode 100644 index 792352922827..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/setup.py +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env python - -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-mgmt-iotcentral" -PACKAGE_PPRINT_NAME = "IoTCentral Management" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') - -# azure v0.x is not compatible with this package -# azure v0.x used to have a __version__ attribute (newer versions don't) -try: - import azure - try: - ver = azure.__version__ - raise Exception( - 'This package is incompatible with azure=={}. '.format(ver) + - 'Uninstall it with "pip uninstall azure".' - ) - except AttributeError: - pass -except ImportError: - pass - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('Cannot find version information') - -with open('README.md', encoding='utf-8') as f: - readme = f.read() -with open('CHANGELOG.md', encoding='utf-8') as f: - changelog = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - long_description=readme + '\n\n' + changelog, - long_description_content_type='text/markdown', - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - 'azure', - 'azure.mgmt', - ]), - install_requires=[ - 'msrest>=0.5.0', - 'msrestazure>=0.4.32,<2.0.0', - 'azure-common~=1.1', - ], - extras_require={ - ":python_version<'3.0'": ['azure-mgmt-nspkg'], - } -) diff --git a/sdk/iothub/azure-mgmt-iotcentral/tests/recordings/test_mgmt_iotcentral.test_iotcentral.yaml b/sdk/iothub/azure-mgmt-iotcentral/tests/recordings/test_mgmt_iotcentral.test_iotcentral.yaml deleted file mode 100644 index a2c0505e6e92..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/tests/recordings/test_mgmt_iotcentral.test_iotcentral.yaml +++ /dev/null @@ -1,218 +0,0 @@ -interactions: -- request: - body: !!python/unicode '{"name": "iot14f90eeb"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['23'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.14 (Windows-10-10.0.17134) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-iotcentral/2018-09-01 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2018-09-01 - response: - body: {string: !!python/unicode '{"nameAvailable":true}'} - headers: - cache-control: ['no-store, must-revalidate, no-cache, max-stale=0, private, - post-check=0, pre-check=0'] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 22:32:19 GMT'] - etag: [W/"16-4/x+wI91pK3bZiWtoOg+Zr/n2HE"] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-iot-cluster: [iotcprodwestus01] - x-iot-version: ['20180802.3'] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-msedge-ref: ['Ref A: AB72A9E754DF4C12A6495241C9D8E9AA Ref B: CO1EDGE0309 Ref - C: 2018-08-07T22:32:19Z'] - x-powered-by: [Express] - status: {code: 200, message: OK} -- request: - body: !!python/unicode '{"sku": {"name": "S1"}, "properties": {"subdomain": "iot14f90eeb", - "displayName": "iot14f90eeb"}, "location": "westus"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['119'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.14 (Windows-10-10.0.17134) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-iotcentral/2018-09-01 Azure-SDK-For-Python] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb?api-version=2018-09-01 - response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb","name":"iot14f90eeb","type":"Microsoft.IoTCentral/IoTApps","location":"westus","properties":{"applicationId":"c0758e98-633e-4cb2-95ba-4703af94befc","state":"created","displayName":"iot14f90eeb","subdomain":"iot14f90eeb","createdDate":"2018-08-07T22:32:21.265Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"3700b296-0000-0000-0000-5b6a1df50000\""}'} - headers: - cache-control: ['no-store, must-revalidate, no-cache, max-stale=0, private, - post-check=0, pre-check=0'] - content-length: ['535'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 22:32:20 GMT'] - etag: ['"3700b296-0000-0000-0000-5b6a1df50000"'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-iot-cluster: [iotcprodwestus01] - x-iot-version: ['20180802.3'] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-msedge-ref: ['Ref A: 8E12F790B3AC4FC4BBB4567736AB8513 Ref B: CO1EDGE0414 Ref - C: 2018-08-07T22:32:21Z'] - x-powered-by: [Express] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/2.7.14 (Windows-10-10.0.17134) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-iotcentral/2018-09-01 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb?api-version=2018-09-01 - response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb","name":"iot14f90eeb","type":"Microsoft.IoTCentral/IoTApps","location":"westus","properties":{"applicationId":"c0758e98-633e-4cb2-95ba-4703af94befc","state":"created","displayName":"iot14f90eeb","subdomain":"iot14f90eeb","createdDate":"2018-08-07T22:32:21.265Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"3700b296-0000-0000-0000-5b6a1df50000\""}'} - headers: - cache-control: ['no-store, must-revalidate, no-cache, max-stale=0, private, - post-check=0, pre-check=0'] - content-length: ['535'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 22:32:51 GMT'] - etag: [W/"3700b296-0000-0000-0000-5b6a1df50000"] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-iot-cluster: [iotcprodwestus01] - x-iot-version: ['20180802.3'] - x-msedge-ref: ['Ref A: 59FE983BB8224351A7FFCCA236392473 Ref B: CO1EDGE0316 Ref - C: 2018-08-07T22:32:52Z'] - x-powered-by: [Express] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.14 (Windows-10-10.0.17134) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-iotcentral/2018-09-01 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb?api-version=2018-09-01 - response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb","name":"iot14f90eeb","type":"Microsoft.IoTCentral/IoTApps","location":"westus","properties":{"applicationId":"c0758e98-633e-4cb2-95ba-4703af94befc","state":"created","displayName":"iot14f90eeb","subdomain":"iot14f90eeb","createdDate":"2018-08-07T22:32:21.265Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"3700b296-0000-0000-0000-5b6a1df50000\""}'} - headers: - cache-control: ['no-store, must-revalidate, no-cache, max-stale=0, private, - post-check=0, pre-check=0'] - content-length: ['535'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 22:32:52 GMT'] - etag: [W/"3700b296-0000-0000-0000-5b6a1df50000"] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-iot-cluster: [iotcprodwestus01] - x-iot-version: ['20180802.3'] - x-msedge-ref: ['Ref A: 97AB6F00987644DBBC363BD79CD9E64D Ref B: CO1EDGE0120 Ref - C: 2018-08-07T22:32:53Z'] - x-powered-by: [Express] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.14 (Windows-10-10.0.17134) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-iotcentral/2018-09-01 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps?api-version=2018-09-01 - response: - body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb","name":"iot14f90eeb","type":"Microsoft.IoTCentral/IoTApps","location":"westus","properties":{"applicationId":"c0758e98-633e-4cb2-95ba-4703af94befc","state":"created","displayName":"iot14f90eeb","subdomain":"iot14f90eeb","createdDate":"2018-08-07T22:32:21.265Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"3700b296-0000-0000-0000-5b6a1df50000\""}],"nextLink":null}'} - headers: - cache-control: ['no-store, must-revalidate, no-cache, max-stale=0, private, - post-check=0, pre-check=0'] - content-length: ['563'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 22:32:53 GMT'] - etag: [W/"233-BnIpv1RHNNAAoc1FKzm/EIHckac"] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-iot-cluster: [iotcprodwestus01] - x-iot-version: ['20180802.3'] - x-msedge-ref: ['Ref A: BA6D248D15B144F2869D380A777AA8EF Ref B: CO1EDGE0111 Ref - C: 2018-08-07T22:32:53Z'] - x-powered-by: [Express] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.14 (Windows-10-10.0.17134) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-iotcentral/2018-09-01 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/IoTApps?api-version=2018-09-01 - response: - body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/shakpaid01-91c6e47b","name":"shakpaid01-91c6e47b","type":"Microsoft.IoTCentral/IoTApps","location":"eastus","tags":{},"properties":{"applicationId":"34480abf-808b-4b60-8ca9-c29af2d59762","state":"created","displayName":"shakpaid01","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","subdomain":"shakpaid01","createdDate":"2018-07-12T00:32:24.408Z","template":"iotc-demo@1.0.0"},"sku":{"name":"S1"},"etag":"\"59029e24-0000-0000-0000-5b46a1980000\""},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb","name":"iot14f90eeb","type":"Microsoft.IoTCentral/IoTApps","location":"westus","properties":{"applicationId":"c0758e98-633e-4cb2-95ba-4703af94befc","state":"created","displayName":"iot14f90eeb","subdomain":"iot14f90eeb","createdDate":"2018-08-07T22:32:21.265Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"3700b296-0000-0000-0000-5b6a1df50000\""}],"nextLink":null}'} - headers: - cache-control: ['no-store, must-revalidate, no-cache, max-stale=0, private, - post-check=0, pre-check=0'] - content-length: ['1128'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 22:32:54 GMT'] - etag: [W/"468-+wQuWNZkr1CpklVAEEdolDEo79Y"] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-content-type-options: [nosniff] - x-iot-cluster: [iotcprodwestus01] - x-iot-version: ['20180802.3'] - x-msedge-ref: ['Ref A: 8D4D85CDB7F84A0DBD0B51996B3D4510 Ref B: CO1EDGE0210 Ref - C: 2018-08-07T22:32:54Z'] - x-powered-by: [Express] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.14 (Windows-10-10.0.17134) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-iotcentral/2018-09-01 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iotcentral_test_iotcentral14f90eeb/providers/Microsoft.IoTCentral/IoTApps/iot14f90eeb?api-version=2018-09-01 - response: - body: {string: !!python/unicode ''} - headers: - cache-control: ['no-store, must-revalidate, no-cache, max-stale=0, private, - post-check=0, pre-check=0'] - content-length: ['0'] - date: ['Tue, 07 Aug 2018 22:32:57 GMT'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-iot-cluster: [iotcprodwestus01] - x-iot-version: ['20180802.3'] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - x-msedge-ref: ['Ref A: F018916BC5304106A2C999E33D4D16F0 Ref B: CO1EDGE0210 Ref - C: 2018-08-07T22:32:55Z'] - x-powered-by: [Express] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/iothub/azure-mgmt-iotcentral/tests/test_mgmt_iotcentral.py b/sdk/iothub/azure-mgmt-iotcentral/tests/test_mgmt_iotcentral.py deleted file mode 100644 index 343638cb2c55..000000000000 --- a/sdk/iothub/azure-mgmt-iotcentral/tests/test_mgmt_iotcentral.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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. -#-------------------------------------------------------------------------- -import unittest - -import azure.mgmt.iotcentral -from azure.mgmt.iotcentral.models import App, AppSkuInfo -from datetime import date, timedelta -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer - -class MgmtIoTCentralTest(AzureMgmtTestCase): - - def setUp(self): - super(MgmtIoTCentralTest, self).setUp() - self.iotcentral_client = self.create_mgmt_client( - azure.mgmt.iotcentral.IotCentralClient - ) - - @ResourceGroupPreparer() - def test_iotcentral(self, resource_group, location): - account_name = self.get_resource_name('iot') - - is_available = self.iotcentral_client.apps.check_name_availability( - account_name - ) - self.assertTrue(is_available.name_available) - - async_iotcentral_app = self.iotcentral_client.apps.create_or_update( - resource_group.name, - account_name, - { - 'location': location, - 'subscriptionid': self.settings.SUBSCRIPTION_ID, - 'subdomain': account_name, - 'display_name': account_name, - 'sku': { - 'name': 'S1' - } - } - ) - iotcentral_account = async_iotcentral_app.result() - self.assertEqual(iotcentral_account.name, account_name) - - iotcentral_account = self.iotcentral_client.apps.get( - resource_group.name, - account_name - ) - self.assertEqual(iotcentral_account.display_name, account_name) - - iotcentral_accounts = list(self.iotcentral_client.apps.list_by_resource_group(resource_group.name)) - self.assertTrue(all(i.display_name == account_name for i in iotcentral_accounts)) - - iotcentral_accounts = list(self.iotcentral_client.apps.list_by_subscription()) - self.assertTrue(any(i.display_name == account_name for i in iotcentral_accounts)) - - async_delete = self.iotcentral_client.apps.delete( - resource_group.name, - account_name - ) - async_delete.wait() - -#------------------------------------------------------------------------------ -if __name__ == '__main__': - unittest.main() diff --git a/sdk/iothub/ci.yml b/sdk/iothub/ci.yml index 67a981bdbc72..8536bff041f6 100644 --- a/sdk/iothub/ci.yml +++ b/sdk/iothub/ci.yml @@ -32,7 +32,3 @@ extends: Artifacts: - name: azure-mgmt-iothub safeName: azuremgmtiothub - - name: azure-mgmt-iothubprovisioningservices - safeName: azuremgmtiothubprovisioningservices - - name: azure-mgmt-iotcentral - safeName: azuremgmtiotcentral diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/CHANGELOG.md b/sdk/machinelearning/azure-mgmt-machinelearningcompute/CHANGELOG.md deleted file mode 100644 index 3b87d80268a2..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/CHANGELOG.md +++ /dev/null @@ -1,33 +0,0 @@ -# Release History - -## 0.4.1 (2018-05-29) - -**Bugfixes** - - - Compatibility of the sdist with wheel 0.31.0 - - msrestazure dependency version range - -## 0.4.0 (2018-01-02) - -**Features** - - - Delete all resources associated with cluster with the optional - deleteAll paramater. - -## 0.3.0 (2017-10-25) - -**Features** - - - ACS orchestrator properties property is now optional. - -## 0.2.0 (2017-10-17) - -**Features** - - - Kubernetes orchestrator service principal property is now optional. - -## 0.1.0 (2017-09-22) - -**Features** - - - Initial private preview release. diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/MANIFEST.in b/sdk/machinelearning/azure-mgmt-machinelearningcompute/MANIFEST.in deleted file mode 100644 index a3cb07df8765..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -recursive-include tests *.py *.yaml -include *.md -include azure/__init__.py -include azure/mgmt/__init__.py - diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/README.md b/sdk/machinelearning/azure-mgmt-machinelearningcompute/README.md deleted file mode 100644 index 5bf9222f55a9..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/README.md +++ /dev/null @@ -1,24 +0,0 @@ -## Microsoft Azure SDK for Python - -This is the Microsoft Azure Machine Learning Compute Management Client -Library. - -Azure Resource Manager (ARM) is the next generation of management APIs -that replace the old Azure Service Management (ASM). - -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. - -For the older Azure Service Management (ASM) libraries, see -[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy) -library. - -For a more complete set of Azure libraries, see the -[azure sdk python release](https://aka.ms/azsdk/python/all). - -## 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-machinelearningcompute%2FREADME.png) diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/__init__.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/__init__.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/__init__.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/__init__.py deleted file mode 100644 index 038cf4ebc8f2..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# 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 .machine_learning_compute_management_client import MachineLearningComputeManagementClient -from .version import VERSION - -__all__ = ['MachineLearningComputeManagementClient'] - -__version__ = VERSION - diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/machine_learning_compute_management_client.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/machine_learning_compute_management_client.py deleted file mode 100644 index b4abd89c3687..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/machine_learning_compute_management_client.py +++ /dev/null @@ -1,86 +0,0 @@ -# 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.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operationalization_clusters_operations import OperationalizationClustersOperations -from .operations.machine_learning_compute_operations import MachineLearningComputeOperations -from . import models - - -class MachineLearningComputeManagementClientConfiguration(AzureConfiguration): - """Configuration for MachineLearningComputeManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The Azure subscription ID. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(MachineLearningComputeManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-machinelearningcompute/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class MachineLearningComputeManagementClient(object): - """These APIs allow end users to operate on Azure Machine Learning Compute resources. They support the following operations:<ul><li>Create or update a cluster</li><li>Get a cluster</li><li>Patch a cluster</li><li>Delete a cluster</li><li>Get keys for a cluster</li><li>Check if updates are available for system services in a cluster</li><li>Update system services in a cluster</li><li>Get all clusters in a resource group</li><li>Get all clusters in a subscription</li></ul> - - :ivar config: Configuration for client. - :vartype config: MachineLearningComputeManagementClientConfiguration - - :ivar operationalization_clusters: OperationalizationClusters operations - :vartype operationalization_clusters: azure.mgmt.machinelearningcompute.operations.OperationalizationClustersOperations - :ivar machine_learning_compute: MachineLearningCompute operations - :vartype machine_learning_compute: azure.mgmt.machinelearningcompute.operations.MachineLearningComputeOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The Azure subscription ID. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = MachineLearningComputeManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2017-08-01-preview' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.operationalization_clusters = OperationalizationClustersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.machine_learning_compute = MachineLearningComputeOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/__init__.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/__init__.py deleted file mode 100644 index 96c25076530d..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/__init__.py +++ /dev/null @@ -1,86 +0,0 @@ -# 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 -from .error_detail import ErrorDetail -from .error_response import ErrorResponse -from .error_response_wrapper import ErrorResponseWrapper, ErrorResponseWrapperException -from .storage_account_properties import StorageAccountProperties -from .container_registry_properties import ContainerRegistryProperties -from .service_principal_properties import ServicePrincipalProperties -from .kubernetes_cluster_properties import KubernetesClusterProperties -from .system_service import SystemService -from .acs_cluster_properties import AcsClusterProperties -from .app_insights_properties import AppInsightsProperties -from .ssl_configuration import SslConfiguration -from .service_auth_configuration import ServiceAuthConfiguration -from .auto_scale_configuration import AutoScaleConfiguration -from .global_service_configuration import GlobalServiceConfiguration -from .operationalization_cluster import OperationalizationCluster -from .operationalization_cluster_update_parameters import OperationalizationClusterUpdateParameters -from .storage_account_credentials import StorageAccountCredentials -from .container_registry_credentials import ContainerRegistryCredentials -from .container_service_credentials import ContainerServiceCredentials -from .app_insights_credentials import AppInsightsCredentials -from .operationalization_cluster_credentials import OperationalizationClusterCredentials -from .check_system_services_updates_available_response import CheckSystemServicesUpdatesAvailableResponse -from .update_system_services_response import UpdateSystemServicesResponse -from .resource_operation_display import ResourceOperationDisplay -from .resource_operation import ResourceOperation -from .available_operations import AvailableOperations -from .operationalization_cluster_paged import OperationalizationClusterPaged -from .machine_learning_compute_management_client_enums import ( - OperationStatus, - ClusterType, - OrchestratorType, - SystemServiceType, - AgentVMSizeTypes, - Status, - UpdatesAvailable, -) - -__all__ = [ - 'Resource', - 'ErrorDetail', - 'ErrorResponse', - 'ErrorResponseWrapper', 'ErrorResponseWrapperException', - 'StorageAccountProperties', - 'ContainerRegistryProperties', - 'ServicePrincipalProperties', - 'KubernetesClusterProperties', - 'SystemService', - 'AcsClusterProperties', - 'AppInsightsProperties', - 'SslConfiguration', - 'ServiceAuthConfiguration', - 'AutoScaleConfiguration', - 'GlobalServiceConfiguration', - 'OperationalizationCluster', - 'OperationalizationClusterUpdateParameters', - 'StorageAccountCredentials', - 'ContainerRegistryCredentials', - 'ContainerServiceCredentials', - 'AppInsightsCredentials', - 'OperationalizationClusterCredentials', - 'CheckSystemServicesUpdatesAvailableResponse', - 'UpdateSystemServicesResponse', - 'ResourceOperationDisplay', - 'ResourceOperation', - 'AvailableOperations', - 'OperationalizationClusterPaged', - 'OperationStatus', - 'ClusterType', - 'OrchestratorType', - 'SystemServiceType', - 'AgentVMSizeTypes', - 'Status', - 'UpdatesAvailable', -] diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/acs_cluster_properties.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/acs_cluster_properties.py deleted file mode 100644 index f8d4a8f81079..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/acs_cluster_properties.py +++ /dev/null @@ -1,84 +0,0 @@ -# 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 AcsClusterProperties(Model): - """Information about the container service backing the cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar cluster_fqdn: The FQDN of the cluster. - :vartype cluster_fqdn: str - :param orchestrator_type: Type of orchestrator. It cannot be changed once - the cluster is created. Possible values include: 'Kubernetes', 'None' - :type orchestrator_type: str or - ~azure.mgmt.machinelearningcompute.models.OrchestratorType - :param orchestrator_properties: Orchestrator specific properties - :type orchestrator_properties: - ~azure.mgmt.machinelearningcompute.models.KubernetesClusterProperties - :param system_services: The system services deployed to the cluster - :type system_services: - list[~azure.mgmt.machinelearningcompute.models.SystemService] - :param master_count: The number of master nodes in the container service. - Default value: 1 . - :type master_count: int - :param agent_count: The number of agent nodes in the Container Service. - This can be changed to scale the cluster. Default value: 2 . - :type agent_count: int - :param agent_vm_size: The Azure VM size of the agent VM nodes. This cannot - be changed once the cluster is created. This list is non exhaustive; refer - to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes - for the possible VM sizes. Possible values include: 'Standard_A0', - 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', - 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', - 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', - 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', - 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', - 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', - 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', - 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', - 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', - 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', - 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', - 'Standard_GS5'. Default value: "Standard_D3_v2" . - :type agent_vm_size: str or - ~azure.mgmt.machinelearningcompute.models.AgentVMSizeTypes - """ - - _validation = { - 'cluster_fqdn': {'readonly': True}, - 'orchestrator_type': {'required': True}, - 'master_count': {'maximum': 5, 'minimum': 1}, - 'agent_count': {'maximum': 100, 'minimum': 1}, - } - - _attribute_map = { - 'cluster_fqdn': {'key': 'clusterFqdn', 'type': 'str'}, - 'orchestrator_type': {'key': 'orchestratorType', 'type': 'str'}, - 'orchestrator_properties': {'key': 'orchestratorProperties', 'type': 'KubernetesClusterProperties'}, - 'system_services': {'key': 'systemServices', 'type': '[SystemService]'}, - 'master_count': {'key': 'masterCount', 'type': 'int'}, - 'agent_count': {'key': 'agentCount', 'type': 'int'}, - 'agent_vm_size': {'key': 'agentVmSize', 'type': 'str'}, - } - - def __init__(self, orchestrator_type, orchestrator_properties=None, system_services=None, master_count=1, agent_count=2, agent_vm_size="Standard_D3_v2"): - super(AcsClusterProperties, self).__init__() - self.cluster_fqdn = None - self.orchestrator_type = orchestrator_type - self.orchestrator_properties = orchestrator_properties - self.system_services = system_services - self.master_count = master_count - self.agent_count = agent_count - self.agent_vm_size = agent_vm_size diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/app_insights_credentials.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/app_insights_credentials.py deleted file mode 100644 index 1264ca4a79e7..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/app_insights_credentials.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 AppInsightsCredentials(Model): - """AppInsights credentials. - - :param app_id: The AppInsights application ID. - :type app_id: str - :param instrumentation_key: The AppInsights instrumentation key. This is - not returned in response of GET/PUT on the resource. To see this please - call listKeys API. - :type instrumentation_key: str - """ - - _attribute_map = { - 'app_id': {'key': 'appId', 'type': 'str'}, - 'instrumentation_key': {'key': 'instrumentationKey', 'type': 'str'}, - } - - def __init__(self, app_id=None, instrumentation_key=None): - super(AppInsightsCredentials, self).__init__() - self.app_id = app_id - self.instrumentation_key = instrumentation_key diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/app_insights_properties.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/app_insights_properties.py deleted file mode 100644 index d81fe3c3dd61..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/app_insights_properties.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 AppInsightsProperties(Model): - """Properties of App Insights. - - :param resource_id: ARM resource ID of the App Insights. - :type resource_id: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - } - - def __init__(self, resource_id=None): - super(AppInsightsProperties, self).__init__() - self.resource_id = resource_id diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/auto_scale_configuration.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/auto_scale_configuration.py deleted file mode 100644 index 8402fb98808f..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/auto_scale_configuration.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 AutoScaleConfiguration(Model): - """AutoScale configuration properties. - - :param status: If auto-scale is enabled for all services. Each service can - turn it off individually. Possible values include: 'Enabled', 'Disabled'. - Default value: "Disabled" . - :type status: str or ~azure.mgmt.machinelearningcompute.models.Status - :param min_replicas: The minimum number of replicas for each service. - Default value: 1 . - :type min_replicas: int - :param max_replicas: The maximum number of replicas for each service. - Default value: 100 . - :type max_replicas: int - :param target_utilization: The target utilization. - :type target_utilization: float - :param refresh_period_in_seconds: Refresh period in seconds. - :type refresh_period_in_seconds: int - """ - - _validation = { - 'min_replicas': {'minimum': 1}, - 'max_replicas': {'minimum': 1}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'min_replicas': {'key': 'minReplicas', 'type': 'int'}, - 'max_replicas': {'key': 'maxReplicas', 'type': 'int'}, - 'target_utilization': {'key': 'targetUtilization', 'type': 'float'}, - 'refresh_period_in_seconds': {'key': 'refreshPeriodInSeconds', 'type': 'int'}, - } - - def __init__(self, status="Disabled", min_replicas=1, max_replicas=100, target_utilization=None, refresh_period_in_seconds=None): - super(AutoScaleConfiguration, self).__init__() - self.status = status - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.target_utilization = target_utilization - self.refresh_period_in_seconds = refresh_period_in_seconds diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/available_operations.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/available_operations.py deleted file mode 100644 index 4d4db69b55d9..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/available_operations.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 AvailableOperations(Model): - """Available operation list. - - :param value: An array of available operations. - :type value: - list[~azure.mgmt.machinelearningcompute.models.ResourceOperation] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ResourceOperation]'}, - } - - def __init__(self, value=None): - super(AvailableOperations, self).__init__() - self.value = value diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/check_system_services_updates_available_response.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/check_system_services_updates_available_response.py deleted file mode 100644 index d3474ae46d82..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/check_system_services_updates_available_response.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 CheckSystemServicesUpdatesAvailableResponse(Model): - """Information about updates available for system services in a cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar updates_available: Yes if updates are available for the system - services, No if not. Possible values include: 'Yes', 'No' - :vartype updates_available: str or - ~azure.mgmt.machinelearningcompute.models.UpdatesAvailable - """ - - _validation = { - 'updates_available': {'readonly': True}, - } - - _attribute_map = { - 'updates_available': {'key': 'updatesAvailable', 'type': 'str'}, - } - - def __init__(self): - super(CheckSystemServicesUpdatesAvailableResponse, self).__init__() - self.updates_available = None diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_registry_credentials.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_registry_credentials.py deleted file mode 100644 index 897b6b87a03b..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_registry_credentials.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ContainerRegistryCredentials(Model): - """Information about the Azure Container Registry which contains the images - deployed to the cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar login_server: The ACR login server name. User name is the first part - of the FQDN. - :vartype login_server: str - :ivar password: The ACR primary password. - :vartype password: str - :ivar password2: The ACR secondary password. - :vartype password2: str - :ivar username: The ACR login username. - :vartype username: str - """ - - _validation = { - 'login_server': {'readonly': True}, - 'password': {'readonly': True}, - 'password2': {'readonly': True}, - 'username': {'readonly': True}, - } - - _attribute_map = { - 'login_server': {'key': 'loginServer', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'password2': {'key': 'password2', 'type': 'str'}, - 'username': {'key': 'username', 'type': 'str'}, - } - - def __init__(self): - super(ContainerRegistryCredentials, self).__init__() - self.login_server = None - self.password = None - self.password2 = None - self.username = None diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_registry_properties.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_registry_properties.py deleted file mode 100644 index 2430f4381e46..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_registry_properties.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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 ContainerRegistryProperties(Model): - """Properties of Azure Container Registry. - - :param resource_id: ARM resource ID of the Azure Container Registry used - to store Docker images for web services in the cluster. If not provided - one will be created. This cannot be changed once the cluster is created. - :type resource_id: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - } - - def __init__(self, resource_id=None): - super(ContainerRegistryProperties, self).__init__() - self.resource_id = resource_id diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_service_credentials.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_service_credentials.py deleted file mode 100644 index 17a92a26e1f2..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_service_credentials.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ContainerServiceCredentials(Model): - """Information about the Azure Container Registry which contains the images - deployed to the cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar acs_kube_config: The ACS kube config file. - :vartype acs_kube_config: str - :ivar service_principal_configuration: Service principal configuration - used by Kubernetes. - :vartype service_principal_configuration: - ~azure.mgmt.machinelearningcompute.models.ServicePrincipalProperties - :ivar image_pull_secret_name: The ACR image pull secret name which was - created in Kubernetes. - :vartype image_pull_secret_name: str - """ - - _validation = { - 'acs_kube_config': {'readonly': True}, - 'service_principal_configuration': {'readonly': True}, - 'image_pull_secret_name': {'readonly': True}, - } - - _attribute_map = { - 'acs_kube_config': {'key': 'acsKubeConfig', 'type': 'str'}, - 'service_principal_configuration': {'key': 'servicePrincipalConfiguration', 'type': 'ServicePrincipalProperties'}, - 'image_pull_secret_name': {'key': 'imagePullSecretName', 'type': 'str'}, - } - - def __init__(self): - super(ContainerServiceCredentials, self).__init__() - self.acs_kube_config = None - self.service_principal_configuration = None - self.image_pull_secret_name = None diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_detail.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_detail.py deleted file mode 100644 index c4821033453c..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_detail.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ErrorDetail(Model): - """Error detail information. - - :param code: Error code. - :type code: str - :param message: Error message. - :type message: str - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, code, message): - super(ErrorDetail, self).__init__() - self.code = code - self.message = message diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_response.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_response.py deleted file mode 100644 index ee907cb3637f..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_response.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 ErrorResponse(Model): - """Error response information. - - :param code: Error code. - :type code: str - :param message: Error message. - :type message: str - :param details: An array of error detail objects. - :type details: list[~azure.mgmt.machinelearningcompute.models.ErrorDetail] - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetail]'}, - } - - def __init__(self, code, message, details=None): - super(ErrorResponse, self).__init__() - self.code = code - self.message = message - self.details = details diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_response_wrapper.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_response_wrapper.py deleted file mode 100644 index a68f9733cb93..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/error_response_wrapper.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class ErrorResponseWrapper(Model): - """Wrapper for error response to follow ARM guidelines. - - :param error: The error response. - :type error: ~azure.mgmt.machinelearningcompute.models.ErrorResponse - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorResponse'}, - } - - def __init__(self, error=None): - super(ErrorResponseWrapper, self).__init__() - self.error = error - - -class ErrorResponseWrapperException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponseWrapper'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseWrapperException, self).__init__(deserialize, response, 'ErrorResponseWrapper', *args) diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/global_service_configuration.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/global_service_configuration.py deleted file mode 100644 index 3b7cb3fcbdac..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/global_service_configuration.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 GlobalServiceConfiguration(Model): - """Global configuration for services in the cluster. - - :param additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, object] - :param etag: The configuartion ETag for updates. - :type etag: str - :param ssl: The SSL configuration properties - :type ssl: ~azure.mgmt.machinelearningcompute.models.SslConfiguration - :param service_auth: Optional global authorization keys for all user - services deployed in cluster. These are used if the service does not have - auth keys. - :type service_auth: - ~azure.mgmt.machinelearningcompute.models.ServiceAuthConfiguration - :param auto_scale: The auto-scale configuration - :type auto_scale: - ~azure.mgmt.machinelearningcompute.models.AutoScaleConfiguration - """ - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{object}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'ssl': {'key': 'ssl', 'type': 'SslConfiguration'}, - 'service_auth': {'key': 'serviceAuth', 'type': 'ServiceAuthConfiguration'}, - 'auto_scale': {'key': 'autoScale', 'type': 'AutoScaleConfiguration'}, - } - - def __init__(self, additional_properties=None, etag=None, ssl=None, service_auth=None, auto_scale=None): - super(GlobalServiceConfiguration, self).__init__() - self.additional_properties = additional_properties - self.etag = etag - self.ssl = ssl - self.service_auth = service_auth - self.auto_scale = auto_scale diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/kubernetes_cluster_properties.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/kubernetes_cluster_properties.py deleted file mode 100644 index 86365f909c61..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/kubernetes_cluster_properties.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 KubernetesClusterProperties(Model): - """Kubernetes cluster specific properties. - - :param service_principal: The Azure Service Principal used by Kubernetes - :type service_principal: - ~azure.mgmt.machinelearningcompute.models.ServicePrincipalProperties - """ - - _attribute_map = { - 'service_principal': {'key': 'servicePrincipal', 'type': 'ServicePrincipalProperties'}, - } - - def __init__(self, service_principal=None): - super(KubernetesClusterProperties, self).__init__() - self.service_principal = service_principal diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/machine_learning_compute_management_client_enums.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/machine_learning_compute_management_client_enums.py deleted file mode 100644 index 2e056a82f3e0..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/machine_learning_compute_management_client_enums.py +++ /dev/null @@ -1,105 +0,0 @@ -# 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 enum import Enum - - -class OperationStatus(Enum): - - unknown = "Unknown" - updating = "Updating" - creating = "Creating" - deleting = "Deleting" - succeeded = "Succeeded" - failed = "Failed" - canceled = "Canceled" - - -class ClusterType(Enum): - - acs = "ACS" - local = "Local" - - -class OrchestratorType(Enum): - - kubernetes = "Kubernetes" - none = "None" - - -class SystemServiceType(Enum): - - none = "None" - scoring_front_end = "ScoringFrontEnd" - batch_front_end = "BatchFrontEnd" - - -class AgentVMSizeTypes(Enum): - - standard_a0 = "Standard_A0" - standard_a1 = "Standard_A1" - standard_a2 = "Standard_A2" - standard_a3 = "Standard_A3" - standard_a4 = "Standard_A4" - standard_a5 = "Standard_A5" - standard_a6 = "Standard_A6" - standard_a7 = "Standard_A7" - standard_a8 = "Standard_A8" - standard_a9 = "Standard_A9" - standard_a10 = "Standard_A10" - standard_a11 = "Standard_A11" - standard_d1 = "Standard_D1" - standard_d2 = "Standard_D2" - standard_d3 = "Standard_D3" - standard_d4 = "Standard_D4" - standard_d11 = "Standard_D11" - standard_d12 = "Standard_D12" - standard_d13 = "Standard_D13" - standard_d14 = "Standard_D14" - standard_d1_v2 = "Standard_D1_v2" - standard_d2_v2 = "Standard_D2_v2" - standard_d3_v2 = "Standard_D3_v2" - standard_d4_v2 = "Standard_D4_v2" - standard_d5_v2 = "Standard_D5_v2" - standard_d11_v2 = "Standard_D11_v2" - standard_d12_v2 = "Standard_D12_v2" - standard_d13_v2 = "Standard_D13_v2" - standard_d14_v2 = "Standard_D14_v2" - standard_g1 = "Standard_G1" - standard_g2 = "Standard_G2" - standard_g3 = "Standard_G3" - standard_g4 = "Standard_G4" - standard_g5 = "Standard_G5" - standard_ds1 = "Standard_DS1" - standard_ds2 = "Standard_DS2" - standard_ds3 = "Standard_DS3" - standard_ds4 = "Standard_DS4" - standard_ds11 = "Standard_DS11" - standard_ds12 = "Standard_DS12" - standard_ds13 = "Standard_DS13" - standard_ds14 = "Standard_DS14" - standard_gs1 = "Standard_GS1" - standard_gs2 = "Standard_GS2" - standard_gs3 = "Standard_GS3" - standard_gs4 = "Standard_GS4" - standard_gs5 = "Standard_GS5" - - -class Status(Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class UpdatesAvailable(Enum): - - yes = "Yes" - no = "No" diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster.py deleted file mode 100644 index 5784d7b9f145..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster.py +++ /dev/null @@ -1,113 +0,0 @@ -# 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 OperationalizationCluster(Resource): - """Instance of an Azure ML Operationalization Cluster resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param description: The description of the cluster. - :type description: str - :ivar created_on: The date and time when the cluster was created. - :vartype created_on: datetime - :ivar modified_on: The date and time when the cluster was last modified. - :vartype modified_on: datetime - :ivar provisioning_state: The provision state of the cluster. Valid values - are Unknown, Updating, Provisioning, Succeeded, and Failed. Possible - values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - 'Succeeded', 'Failed', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.machinelearningcompute.models.OperationStatus - :ivar provisioning_errors: List of provisioning errors reported by the - resource provider. - :vartype provisioning_errors: - list[~azure.mgmt.machinelearningcompute.models.ErrorResponseWrapper] - :param cluster_type: The cluster type. Possible values include: 'ACS', - 'Local' - :type cluster_type: str or - ~azure.mgmt.machinelearningcompute.models.ClusterType - :param storage_account: Storage Account properties. - :type storage_account: - ~azure.mgmt.machinelearningcompute.models.StorageAccountProperties - :param container_registry: Container Registry properties. - :type container_registry: - ~azure.mgmt.machinelearningcompute.models.ContainerRegistryProperties - :param container_service: Parameters for the Azure Container Service - cluster. - :type container_service: - ~azure.mgmt.machinelearningcompute.models.AcsClusterProperties - :param app_insights: AppInsights configuration. - :type app_insights: - ~azure.mgmt.machinelearningcompute.models.AppInsightsProperties - :param global_service_configuration: Contains global configuration for the - web services in the cluster. - :type global_service_configuration: - ~azure.mgmt.machinelearningcompute.models.GlobalServiceConfiguration - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'location': {'required': True}, - 'type': {'readonly': True}, - 'created_on': {'readonly': True}, - 'modified_on': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'provisioning_errors': {'readonly': True}, - 'cluster_type': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'created_on': {'key': 'properties.createdOn', 'type': 'iso-8601'}, - 'modified_on': {'key': 'properties.modifiedOn', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'provisioning_errors': {'key': 'properties.provisioningErrors', 'type': '[ErrorResponseWrapper]'}, - 'cluster_type': {'key': 'properties.clusterType', 'type': 'str'}, - 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, - 'container_registry': {'key': 'properties.containerRegistry', 'type': 'ContainerRegistryProperties'}, - 'container_service': {'key': 'properties.containerService', 'type': 'AcsClusterProperties'}, - 'app_insights': {'key': 'properties.appInsights', 'type': 'AppInsightsProperties'}, - 'global_service_configuration': {'key': 'properties.globalServiceConfiguration', 'type': 'GlobalServiceConfiguration'}, - } - - def __init__(self, location, cluster_type, tags=None, description=None, storage_account=None, container_registry=None, container_service=None, app_insights=None, global_service_configuration=None): - super(OperationalizationCluster, self).__init__(location=location, tags=tags) - self.description = description - self.created_on = None - self.modified_on = None - self.provisioning_state = None - self.provisioning_errors = None - self.cluster_type = cluster_type - self.storage_account = storage_account - self.container_registry = container_registry - self.container_service = container_service - self.app_insights = app_insights - self.global_service_configuration = global_service_configuration diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_credentials.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_credentials.py deleted file mode 100644 index 040f8147f505..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_credentials.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 OperationalizationClusterCredentials(Model): - """Credentials to resources in the cluster. - - :param storage_account: Credentials for the Storage Account. - :type storage_account: - ~azure.mgmt.machinelearningcompute.models.StorageAccountCredentials - :param container_registry: Credentials for Azure Container Registry. - :type container_registry: - ~azure.mgmt.machinelearningcompute.models.ContainerRegistryCredentials - :param container_service: Credentials for Azure Container Service. - :type container_service: - ~azure.mgmt.machinelearningcompute.models.ContainerServiceCredentials - :param app_insights: Credentials for Azure AppInsights. - :type app_insights: - ~azure.mgmt.machinelearningcompute.models.AppInsightsCredentials - :param service_auth_configuration: Global authorization keys for all user - services deployed in cluster. These are used if the service does not have - auth keys. - :type service_auth_configuration: - ~azure.mgmt.machinelearningcompute.models.ServiceAuthConfiguration - :param ssl_configuration: The SSL configuration for the services. - :type ssl_configuration: - ~azure.mgmt.machinelearningcompute.models.SslConfiguration - """ - - _attribute_map = { - 'storage_account': {'key': 'storageAccount', 'type': 'StorageAccountCredentials'}, - 'container_registry': {'key': 'containerRegistry', 'type': 'ContainerRegistryCredentials'}, - 'container_service': {'key': 'containerService', 'type': 'ContainerServiceCredentials'}, - 'app_insights': {'key': 'appInsights', 'type': 'AppInsightsCredentials'}, - 'service_auth_configuration': {'key': 'serviceAuthConfiguration', 'type': 'ServiceAuthConfiguration'}, - 'ssl_configuration': {'key': 'sslConfiguration', 'type': 'SslConfiguration'}, - } - - def __init__(self, storage_account=None, container_registry=None, container_service=None, app_insights=None, service_auth_configuration=None, ssl_configuration=None): - super(OperationalizationClusterCredentials, self).__init__() - self.storage_account = storage_account - self.container_registry = container_registry - self.container_service = container_service - self.app_insights = app_insights - self.service_auth_configuration = service_auth_configuration - self.ssl_configuration = ssl_configuration diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_paged.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_paged.py deleted file mode 100644 index 2942b41bc5f0..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class OperationalizationClusterPaged(Paged): - """ - A paging container for iterating over a list of :class:`OperationalizationCluster ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[OperationalizationCluster]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationalizationClusterPaged, self).__init__(*args, **kwargs) diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_update_parameters.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_update_parameters.py deleted file mode 100644 index 24189a178e7c..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/operationalization_cluster_update_parameters.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 OperationalizationClusterUpdateParameters(Model): - """Parameters for PATCH operation on an operationalization cluster. - - :param tags: Gets or sets a list of key value pairs that describe the - resource. These tags can be used in viewing and grouping this resource - (across resource groups). A maximum of 15 tags can be provided for a - resource. Each tag must have a key no greater in length than 128 - characters and a value no greater in length than 256 characters. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, tags=None): - super(OperationalizationClusterUpdateParameters, self).__init__() - self.tags = tags diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource.py deleted file mode 100644 index ac15798f2a5b..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 Resource(Model): - """Azure resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'location': {'required': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, location, tags=None): - super(Resource, self).__init__() - self.id = None - self.name = None - self.location = location - self.type = None - self.tags = tags diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource_operation.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource_operation.py deleted file mode 100644 index e1f4cf1f2edf..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ResourceOperation(Model): - """Resource operation. - - :param name: Name of this operation. - :type name: str - :param display: Display of the operation. - :type display: - ~azure.mgmt.machinelearningcompute.models.ResourceOperationDisplay - :param origin: The operation origin. - :type origin: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ResourceOperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__(self, name=None, display=None, origin=None): - super(ResourceOperation, self).__init__() - self.name = name - self.display = display - self.origin = origin diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource_operation_display.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource_operation_display.py deleted file mode 100644 index 8b30e725dcc5..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/resource_operation_display.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ResourceOperationDisplay(Model): - """Display of the operation. - - :param provider: The resource provider name. - :type provider: str - :param resource: The resource name. - :type resource: str - :param operation: The operation. - :type operation: str - :param description: The description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, provider=None, resource=None, operation=None, description=None): - super(ResourceOperationDisplay, self).__init__() - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/service_auth_configuration.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/service_auth_configuration.py deleted file mode 100644 index 8730b561faad..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/service_auth_configuration.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ServiceAuthConfiguration(Model): - """Global service auth configuration properties. These are the data-plane - authorization keys and are used if a service doesn't define it's own. - - :param primary_auth_key_hash: The primary auth key hash. This is not - returned in response of GET/PUT on the resource.. To see this please call - listKeys API. - :type primary_auth_key_hash: str - :param secondary_auth_key_hash: The secondary auth key hash. This is not - returned in response of GET/PUT on the resource.. To see this please call - listKeys API. - :type secondary_auth_key_hash: str - """ - - _validation = { - 'primary_auth_key_hash': {'required': True}, - 'secondary_auth_key_hash': {'required': True}, - } - - _attribute_map = { - 'primary_auth_key_hash': {'key': 'primaryAuthKeyHash', 'type': 'str'}, - 'secondary_auth_key_hash': {'key': 'secondaryAuthKeyHash', 'type': 'str'}, - } - - def __init__(self, primary_auth_key_hash, secondary_auth_key_hash): - super(ServiceAuthConfiguration, self).__init__() - self.primary_auth_key_hash = primary_auth_key_hash - self.secondary_auth_key_hash = secondary_auth_key_hash diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/service_principal_properties.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/service_principal_properties.py deleted file mode 100644 index 52578edb688d..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/service_principal_properties.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 ServicePrincipalProperties(Model): - """The Azure service principal used by Kubernetes for configuring load - balancers. - - :param client_id: The service principal client ID - :type client_id: str - :param secret: The service principal secret. This is not returned in - response of GET/PUT on the resource. To see this please call listKeys. - :type secret: str - """ - - _validation = { - 'client_id': {'required': True}, - 'secret': {'required': True}, - } - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'secret': {'key': 'secret', 'type': 'str'}, - } - - def __init__(self, client_id, secret): - super(ServicePrincipalProperties, self).__init__() - self.client_id = client_id - self.secret = secret diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/ssl_configuration.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/ssl_configuration.py deleted file mode 100644 index 1225db4ffd2b..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/ssl_configuration.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 SslConfiguration(Model): - """SSL configuration. If configured data-plane calls to user services will be - exposed over SSL only. - - :param status: SSL status. Allowed values are Enabled and Disabled. - Possible values include: 'Enabled', 'Disabled'. Default value: "Enabled" . - :type status: str or ~azure.mgmt.machinelearningcompute.models.Status - :param cert: The SSL cert data in PEM format. - :type cert: str - :param key: The SSL key data in PEM format. This is not returned in - response of GET/PUT on the resource. To see this please call listKeys API. - :type key: str - :param cname: The CName of the certificate. - :type cname: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'cert': {'key': 'cert', 'type': 'str'}, - 'key': {'key': 'key', 'type': 'str'}, - 'cname': {'key': 'cname', 'type': 'str'}, - } - - def __init__(self, status="Enabled", cert=None, key=None, cname=None): - super(SslConfiguration, self).__init__() - self.status = status - self.cert = cert - self.key = key - self.cname = cname diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/storage_account_credentials.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/storage_account_credentials.py deleted file mode 100644 index 8d08c07bc7a5..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/storage_account_credentials.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 StorageAccountCredentials(Model): - """Access information for the storage account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar resource_id: The ARM resource ID of the storage account. - :vartype resource_id: str - :ivar primary_key: The primary key of the storage account. - :vartype primary_key: str - :ivar secondary_key: The secondary key of the storage account. - :vartype secondary_key: str - """ - - _validation = { - 'resource_id': {'readonly': True}, - 'primary_key': {'readonly': True}, - 'secondary_key': {'readonly': True}, - } - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'primary_key': {'key': 'primaryKey', 'type': 'str'}, - 'secondary_key': {'key': 'secondaryKey', 'type': 'str'}, - } - - def __init__(self): - super(StorageAccountCredentials, self).__init__() - self.resource_id = None - self.primary_key = None - self.secondary_key = None diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/storage_account_properties.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/storage_account_properties.py deleted file mode 100644 index 79f3a766b440..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/storage_account_properties.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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 StorageAccountProperties(Model): - """Properties of Storage Account. - - :param resource_id: ARM resource ID of the Azure Storage Account to store - CLI specific files. If not provided one will be created. This cannot be - changed once the cluster is created. - :type resource_id: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - } - - def __init__(self, resource_id=None): - super(StorageAccountProperties, self).__init__() - self.resource_id = resource_id diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py deleted file mode 100644 index a6d2975738e7..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 SystemService(Model): - """Information about a system service deployed in the cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param system_service_type: The system service type. Possible values - include: 'None', 'ScoringFrontEnd', 'BatchFrontEnd' - :type system_service_type: str or - ~azure.mgmt.machinelearningcompute.models.SystemServiceType - :ivar public_ip_address: The public IP address of the system service - :vartype public_ip_address: str - :ivar version: The state of the system service - :vartype version: str - """ - - _validation = { - 'system_service_type': {'required': True}, - 'public_ip_address': {'readonly': True}, - 'version': {'readonly': True}, - } - - _attribute_map = { - 'system_service_type': {'key': 'systemServiceType', 'type': 'str'}, - 'public_ip_address': {'key': 'publicIpAddress', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, system_service_type): - super(SystemService, self).__init__() - self.system_service_type = system_service_type - self.public_ip_address = None - self.version = None diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/update_system_services_response.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/update_system_services_response.py deleted file mode 100644 index d4321dd232db..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/update_system_services_response.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 UpdateSystemServicesResponse(Model): - """Response of the update system services API. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar update_status: Update status. Possible values include: 'Unknown', - 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' - :vartype update_status: str or - ~azure.mgmt.machinelearningcompute.models.OperationStatus - :ivar update_started_on: The date and time when the last system services - update was started. - :vartype update_started_on: datetime - :ivar update_completed_on: The date and time when the last system services - update completed. - :vartype update_completed_on: datetime - """ - - _validation = { - 'update_status': {'readonly': True}, - 'update_started_on': {'readonly': True}, - 'update_completed_on': {'readonly': True}, - } - - _attribute_map = { - 'update_status': {'key': 'updateStatus', 'type': 'str'}, - 'update_started_on': {'key': 'updateStartedOn', 'type': 'iso-8601'}, - 'update_completed_on': {'key': 'updateCompletedOn', 'type': 'iso-8601'}, - } - - def __init__(self): - super(UpdateSystemServicesResponse, self).__init__() - self.update_status = None - self.update_started_on = None - self.update_completed_on = None diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/__init__.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/__init__.py deleted file mode 100644 index 385cb9b79e8e..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# 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 .operationalization_clusters_operations import OperationalizationClustersOperations -from .machine_learning_compute_operations import MachineLearningComputeOperations - -__all__ = [ - 'OperationalizationClustersOperations', - 'MachineLearningComputeOperations', -] diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/machine_learning_compute_operations.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/machine_learning_compute_operations.py deleted file mode 100644 index d2eb273bf3e2..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/machine_learning_compute_operations.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class MachineLearningComputeOperations(object): - """MachineLearningComputeOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: The version of the Microsoft.MachineLearningCompute resource provider API to use. Constant value: "2017-08-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-08-01-preview" - - self.config = config - - def list_available_operations( - self, custom_headers=None, raw=False, **operation_config): - """Gets all available operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: AvailableOperations or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.machinelearningcompute.models.AvailableOperations - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = '/providers/Microsoft.MachineLearningCompute/operations' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('AvailableOperations', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/operationalization_clusters_operations.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/operationalization_clusters_operations.py deleted file mode 100644 index 5afa42f9ecb6..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/operationalization_clusters_operations.py +++ /dev/null @@ -1,715 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrestazure.azure_operation import AzureOperationPoller - -from .. import models - - -class OperationalizationClustersOperations(object): - """OperationalizationClustersOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: The version of the Microsoft.MachineLearningCompute resource provider API to use. Constant value: "2017-08-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-08-01-preview" - - self.config = config - - def create_or_update( - self, resource_group_name, cluster_name, parameters, custom_headers=None, raw=False, **operation_config): - """Create or update an operationalization cluster. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param parameters: Parameters supplied to create or update an - Operationalization cluster. - :type parameters: - ~azure.mgmt.machinelearningcompute.models.OperationalizationCluster - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns - OperationalizationCluster or ClientRawResponse if raw=true - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.machinelearningcompute.models.OperationalizationCluster] - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseWrapperException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'OperationalizationCluster') - - # Construct and send request - def long_running_send(): - - request = self._client.put(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 201]: - raise models.ErrorResponseWrapperException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('OperationalizationCluster', response) - if response.status_code == 201: - deserialized = self._deserialize('OperationalizationCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def get( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - """Gets the operationalization cluster resource view. Note that the - credentials are not returned by this call. Call ListKeys to get them. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationalizationCluster or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.machinelearningcompute.models.OperationalizationCluster or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseWrapperException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseWrapperException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('OperationalizationCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, cluster_name, tags=None, custom_headers=None, raw=False, **operation_config): - """The PATCH operation can be used to update only the tags for a cluster. - Use PUT operation to update other properties. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param tags: Gets or sets a list of key value pairs that describe the - resource. These tags can be used in viewing and grouping this resource - (across resource groups). A maximum of 15 tags can be provided for a - resource. Each tag must have a key no greater in length than 128 - characters and a value no greater in length than 256 characters. - :type tags: dict[str, str] - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationalizationCluster or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.machinelearningcompute.models.OperationalizationCluster or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseWrapperException` - """ - parameters = models.OperationalizationClusterUpdateParameters(tags=tags) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'OperationalizationClusterUpdateParameters') - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseWrapperException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('OperationalizationCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, cluster_name, delete_all=None, custom_headers=None, raw=False, **operation_config): - """Deletes the specified cluster. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param delete_all: If true, deletes all resources associated with this - cluster. - :type delete_all: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns None or - ClientRawResponse if raw=true - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseWrapperException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if delete_all is not None: - query_parameters['deleteAll'] = self._serialize.query("delete_all", delete_all, 'bool') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - def long_running_send(): - - request = self._client.delete(url, query_parameters) - return self._client.send(request, header_parameters, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [202, 204]: - raise models.ErrorResponseWrapperException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Location': 'str', - }) - return client_raw_response - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def list_keys( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - """Gets the credentials for the specified cluster such as Storage, ACR and - ACS credentials. This is a long running operation because it fetches - keys from dependencies. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationalizationClusterCredentials or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.machinelearningcompute.models.OperationalizationClusterCredentials - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/listKeys' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('OperationalizationClusterCredentials', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def check_system_services_updates_available( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - """Checks if updates are available for system services in the cluster. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: CheckSystemServicesUpdatesAvailableResponse or - ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.machinelearningcompute.models.CheckSystemServicesUpdatesAvailableResponse - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/checkSystemServicesUpdatesAvailable' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('CheckSystemServicesUpdatesAvailableResponse', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update_system_services( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - """Updates system services in a cluster. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns - UpdateSystemServicesResponse or ClientRawResponse if raw=true - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.machinelearningcompute.models.UpdateSystemServicesResponse] - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/updateSystemServices' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - def long_running_send(): - - request = self._client.post(url, query_parameters) - return self._client.send(request, header_parameters, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('UpdateSystemServicesResponse', response) - header_dict = { - 'Location': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def list_by_resource_group( - self, resource_group_name, skiptoken=None, custom_headers=None, raw=False, **operation_config): - """Gets the clusters in the specified resource group. - - :param resource_group_name: Name of the resource group in which the - cluster is located. - :type resource_group_name: str - :param skiptoken: Continuation token for pagination. - :type skiptoken: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of OperationalizationCluster - :rtype: - ~azure.mgmt.machinelearningcompute.models.OperationalizationClusterPaged[~azure.mgmt.machinelearningcompute.models.OperationalizationCluster] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if skiptoken is not None: - query_parameters['$skiptoken'] = self._serialize.query("skiptoken", skiptoken, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.OperationalizationClusterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationalizationClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_by_subscription_id( - self, skiptoken=None, custom_headers=None, raw=False, **operation_config): - """Gets the operationalization clusters in the specified subscription. - - :param skiptoken: Continuation token for pagination. - :type skiptoken: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of OperationalizationCluster - :rtype: - ~azure.mgmt.machinelearningcompute.models.OperationalizationClusterPaged[~azure.mgmt.machinelearningcompute.models.OperationalizationCluster] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningCompute/operationalizationClusters' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if skiptoken is not None: - query_parameters['$skiptoken'] = self._serialize.query("skiptoken", skiptoken, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.OperationalizationClusterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationalizationClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/version.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/version.py deleted file mode 100644 index e9983c0d8c01..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -VERSION = "0.4.1" - diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/dev_requirements.txt b/sdk/machinelearning/azure-mgmt-machinelearningcompute/dev_requirements.txt deleted file mode 100644 index 1a1c8d8fc379..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/dev_requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ --e ../../../tools/azure-sdk-tools --e ../../../tools/azure-devtools \ No newline at end of file diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/sdk_packaging.toml b/sdk/machinelearning/azure-mgmt-machinelearningcompute/sdk_packaging.toml deleted file mode 100644 index f3ecd257d722..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/sdk_packaging.toml +++ /dev/null @@ -1,5 +0,0 @@ -[packaging] -package_name = "azure-mgmt-machinelearningcompute" -package_pprint_name = "Machine Learning Compute Management" -package_doc_id = "machinelearning" -is_stable = false diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/setup.cfg b/sdk/machinelearning/azure-mgmt-machinelearningcompute/setup.cfg deleted file mode 100644 index 3c6e79cf31da..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/setup.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/setup.py deleted file mode 100644 index 44fdfc65d32d..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/setup.py +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env python - -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-mgmt-machinelearningcompute" -PACKAGE_PPRINT_NAME = "Machine Learning Compute Management" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') - -# azure v0.x is not compatible with this package -# azure v0.x used to have a __version__ attribute (newer versions don't) -try: - import azure - try: - ver = azure.__version__ - raise Exception( - 'This package is incompatible with azure=={}. '.format(ver) + - 'Uninstall it with "pip uninstall azure".' - ) - except AttributeError: - pass -except ImportError: - pass - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('Cannot find version information') - -with open('README.md', encoding='utf-8') as f: - readme = f.read() -with open('CHANGELOG.md', encoding='utf-8') as f: - changelog = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - long_description=readme + '\n\n' + changelog, - long_description_content_type='text/markdown', - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - 'azure', - 'azure.mgmt', - ]), - install_requires=[ - 'msrest>=0.5.0', - 'msrestazure>=0.4.32,<2.0.0', - 'azure-common~=1.1', - ], - extras_require={ - ":python_version<'3.0'": ['azure-mgmt-nspkg'], - } -) diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_delete.yaml b/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_delete.yaml deleted file mode 100644 index dbb4ea2238b8..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_delete.yaml +++ /dev/null @@ -1,145 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-delete997a1216/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-delete997a1216?api-version=2017-08-01-preview - response: - body: {string: '{"error":{"code":"InternalServerError","statusCode":500,"message":"An - internal server error occurred. Please try again. If the problem persists, - contact support"}}'} - headers: - cache-control: [no-cache] - content-length: ['163'] - content-type: [application/json] - date: ['Thu, 07 Sep 2017 21:29:28 GMT'] - expires: ['-1'] - pragma: [no-cache] - x-ms-failure-cause: [service] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 500, message: Internal Server Error} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-delete997a1216/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-delete997a1216?api-version=2017-08-01-preview - response: - body: {string: ''} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/locations/eastus2euap/operationsStatus/ef9e9a51-cc89-47c0-8413-66e32a67b69b?api-version=2017-06-01-preview'] - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 07 Sep 2017 21:29:29 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/locations/eastus2euap/operationsStatus/ef9e9a51-cc89-47c0-8413-66e32a67b69b?api-version=2017-06-01-preview'] - pragma: [no-cache] - x-ms-client-session-id: [''] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/locations/eastus2euap/operationsStatus/ef9e9a51-cc89-47c0-8413-66e32a67b69b?api-version=2017-06-01-preview - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap/operationStatus/ef9e9a51-cc89-47c0-8413-66e32a67b69b","name":"ef9e9a51-cc89-47c0-8413-66e32a67b69b","status":"Deleting","startTime":"2017-09-07T21:29:29.408Z","percentComplete":0.0}'} - headers: - cache-control: [no-cache] - content-length: ['262'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 21:29:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/locations/eastus2euap/operationsStatus/ef9e9a51-cc89-47c0-8413-66e32a67b69b?api-version=2017-06-01-preview - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap/operationStatus/ef9e9a51-cc89-47c0-8413-66e32a67b69b","name":"ef9e9a51-cc89-47c0-8413-66e32a67b69b","status":"Succeeded","startTime":"2017-09-07T21:29:29.408Z","endTime":"2017-09-07T21:30:00.217Z","percentComplete":0.0,"error":{}}'} - headers: - cache-control: [no-cache] - content-length: ['311'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 21:30:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/operationalizationClusters?api-version=2017-08-01-preview - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlsparkperf2rg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlsparkperf2","name":"mlsparkperf2","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2euap","tags":null,"properties":{"createdOn":"2017-08-18T01:28:58.1670000Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlsparkperf2rg/providers/Microsoft.Storage/storageAccounts/mlcrpstg4d831656c2e2"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlsparkperf2rg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr505170536481"},"clusterType":"ACS","containerService":{"clusterFqdn":"mlsparkperf2-37544799.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.19.220","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":1,"agentCount":6,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"1c461d94-0cac-4182-bb4f-5ff8b2562633","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testCluster101","name":"testCluster101","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2 EUAP","tags":null,"properties":{"createdOn":"2017-08-19T19:12:09.3130000Z","description":"Machine - Learning Compute Cluster","provisioningState":"Deleting","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.Storage/storageAccounts/mlcrpstgc20016052705"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.ContainerRegistry/registries/mlcrpacr21a72923401a"},"clusterType":"ACS","containerService":{"clusterFqdn":"testcluster101-e6e96725.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.23.73","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":1,"agentCount":1,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"3758f025-5db2-44a2-919e-0def41380203","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.Insights/components/mlcrpai41c42439f1d3"},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/cname","name":"cname","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2euap","tags":null,"properties":{"createdOn":"2017-08-25T21:24:40.0260000Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.Storage/storageAccounts/mlcrpstg82f86171b1c1"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr665360123ab8"},"clusterType":"ACS","containerService":{"clusterFqdn":"cname-6b286484.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.96.53","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":1,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"c21651dc-e393-4b79-9bb4-7aebb1ce5299","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.Insights/components/mlcrpai0ca593357462"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Enabled","cert":null,"key":null,"cname":"bob.com"},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/trangevi-mlc2","name":"trangevi-mlc2","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2euap","tags":null,"properties":{"createdOn":"2017-08-25T23:28:15.3170000Z","description":null,"provisioningState":"Deleting","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg45949276a041"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr3c36080351f0"},"clusterType":"ACS","containerService":{"clusterFqdn":"trangevi-mlc2-0f178452.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"52.170.201.205","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":1,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"f79286de-8dd6-457b-badf-8e89b0f6e4e4","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.Insights/components/mlcrpai98c8108225a5"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rbmlcrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/rbmlc","name":"rbmlc","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-16T17:17:32.230Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rbmlcrg/providers/Microsoft.Storage/storageAccounts/mlcrpstgf0e2146363fe"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rbmlcrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr69e95747656a"},"clusterType":"ACS","containerService":{"clusterFqdn":"rbmlc-51b15201.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.71.31.15","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":null,"agentCount":2,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"01154d58-b582-4758-a582-209dba4a77f5","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/trangevi-mlc","name":"trangevi-mlc","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-17T16:33:01.305Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg2f105988bfee"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr6d7906101af4"},"clusterType":"ACS","containerService":{"clusterFqdn":"trangevi-mlc-1ba06836.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.90.136.112","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":null,"agentCount":3,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"8db9c81e-4d51-4722-ae0d-b0da35c92158","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/a1t1rg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/ag1","name":"ag1","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-19T19:55:28.370Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/a1t1rg/providers/Microsoft.Storage/storageAccounts/mlcrpstg2c837838d774"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/a1t1rg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr8f5861288a7c"},"clusterType":"ACS","containerService":{"clusterFqdn":"ag1-9f699820.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"52.170.203.169","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":null,"agentCount":2,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"c8e67a38-7b90-4cd0-a38e-43e6ce28dbec","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/debuggingcluster","name":"debuggingcluster","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-25T22:58:29.299Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg3e129029e45e"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr0da71402719d"},"clusterType":"ACS","containerService":{"clusterFqdn":"debuggingcluster-b9193295.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.90.213.43","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"a2f37d1d-2feb-44c4-af26-887766a8adb2","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.Insights/components/mlcrpai343040428d04"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/newdebug","name":"newdebug","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-25T23:06:35.311Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.Storage/storageAccounts/mlcrpstge3f166022236"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr87818496e886"},"clusterType":"ACS","containerService":{"clusterFqdn":"newdebug-2e578521.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.123.44.57","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"a2f37d1d-2feb-44c4-af26-887766a8adb2","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.Insights/components/mlcrpai7e5921309992"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mmsinttests","name":"mmsinttests","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-29T22:25:09.016Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.Storage/storageAccounts/mlcrpstgab560786a3a1"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.ContainerRegistry/registries/mlcrpacred517445ef7b"},"clusterType":"ACS","containerService":{"clusterFqdn":"mmsinttests-82628341.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.79.75.252","version":"prod/1.20170828.10/master.313110d609b1c386468717f1568b5971a337be9e"}],"masterCount":1,"agentCount":5,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"2cf7b47f-8c3d-4d49-be21-d27971512556","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.Insights/components/mlcrpaif81720641ba0"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.MachineLearningCompute/operationalizationClusters/ibizaintegration","name":"ibizaintegration","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-29T22:27:29.187Z","description":null,"provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.Storage/storageAccounts/mlcrpstg956332317d24"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.ContainerRegistry/registries/mlcrpacr75556756106f"},"clusterType":"ACS","containerService":{"clusterFqdn":"ibizaintegration-88f19983","systemServices":null,"masterCount":1,"agentCount":4,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"2cf7b47f-8c3d-4d49-be21-d27971512556","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.Insights/components/mlcrpaie7f097960327"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms09","name":"testmms09","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-30T18:17:24.823Z","description":"MMS - Test Operationalization Cluster","provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstgbfe07383b99d"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacr06f022560988"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms09-c2094701","systemServices":null,"masterCount":1,"agentCount":3,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpaieea434199a37"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms10","name":"testmms10","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-30T18:19:19.147Z","modifiedOn":"2017-09-01T17:47:02.767Z","description":"MMS - Test Operationalization Cluster","provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstg32318271c4da"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacr1b4663140879"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms10-3cf06190.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.123.40.208","version":"prod/1.20170829.3/shsin-dev2.f1e1b507ec1d342b93936b942883533be2f43349"}],"masterCount":1,"agentCount":3,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"02df68a8-b141-46af-8005-e82c1fbd2d11","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpai5b3650324707"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms11","name":"testmms11","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-30T18:21:20.408Z","description":"MMS - Test Operationalization Cluster0000000","provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstg9f785093e303"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacrb66680376747"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms11-b6627463","systemServices":null,"masterCount":1,"agentCount":3,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpaibf805959e8dc"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.MachineLearningCompute/operationalizationClusters/felogfixenv","name":"felogfixenv","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-30T20:12:12.182Z","description":null,"provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.Storage/storageAccounts/mlcrpstgce5766418512"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.ContainerRegistry/registries/mlcrpacr07c79545c1e1"},"clusterType":"ACS","containerService":{"clusterFqdn":"felogfixenv-db694645","systemServices":null,"masterCount":1,"agentCount":4,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"3c335670-88d0-4881-81d2-d702bda9ea4b","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.Insights/components/mlcrpai8ae05177da78"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/chpirillk8","name":"chpirillk8","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"EastUS2","tags":null,"properties":{"createdOn":"2017-08-30T22:23:20.241Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.Storage/storageAccounts/mlcrpstg1a78739259d2"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.ContainerRegistry/registries/mlcrpacrca9434273829"},"clusterType":"ACS","containerService":{"clusterFqdn":"chpirillk8-62f79993.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.90.151.240","version":"prod/1.20170829.3/shsin-dev2.f1e1b507ec1d342b93936b942883533be2f43349"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"9e1ee9e7-1a26-484b-8c64-47c09ffa49f7","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.Insights/components/mlcrpai747924461c82"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/o16ne2es","name":"o16ne2es","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-09-05T15:19:26.754Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg9983941707d3"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr69947398b031"},"clusterType":"ACS","containerService":{"clusterFqdn":"o16ne2es-33b86211.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"23.101.157.45","version":"prod/1.20170828.8/master.f20850cf68b2bb878a1837c8a3f0c997a11a73d9"}],"masterCount":1,"agentCount":5,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"f79286de-8dd6-457b-badf-8e89b0f6e4e4","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.Insights/components/mlcrpaie2a0858173a6"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms1021","name":"testmms1021","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"West - Central US","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-31T22:13:35.087Z","modifiedOn":"2017-09-01T17:48:35.104Z","description":"MMS - Test Operationalization Cluster","provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstg310457202f10"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacrd1773879bde4"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms1021-2c548431.westcentralus.cloudapp.azure.com","systemServices":null,"masterCount":1,"agentCount":10,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"02df68a8-b141-46af-8005-e82c1fbd2d11","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpai83966864b76a"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['26918'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 21:30:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - vary: [Accept-Encoding] - x-ms-original-request-ids: ['', '', ''] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_get.yaml b/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_get.yaml deleted file mode 100644 index c3adcc07e5f1..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_get.yaml +++ /dev/null @@ -1,31 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-get648710e3/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-get648710e3?api-version=2017-08-01-preview - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-get648710e3/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-get648710e3","name":"mlcrp-python-test-get648710e3","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2 EUAP","tags":null,"properties":{"createdOn":"2017-09-06T22:27:03.269Z","description":"Deployed - for testing.","provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-get648710e3/providers/Microsoft.Storage/storageAccounts/mlcrpstgec7392510d5e"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-get648710e3/providers/Microsoft.ContainerRegistry/registries/mlcrpacr7de63921a7d8"},"clusterType":"ACS","containerService":{"clusterFqdn":"mlcrp-python-test-get648710e3-4ba63608.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.100.211","version":"prod/1.20170905.2/master.308253995bd64e1d222e5be31f2d3eb284ba4d83"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"3758f025-5db2-44a2-919e-0def41380203","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-get648710e3/providers/Microsoft.Insights/components/mlcrpaiae0490236993"},"globalServiceConfiguration":null}}'} - headers: - cache-control: [no-cache] - content-length: ['1599'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 06 Sep 2017 22:43:33 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_list_clusters.yaml b/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_list_clusters.yaml deleted file mode 100644 index ca4fcef2b561..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_list_clusters.yaml +++ /dev/null @@ -1,69 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-list25181533/providers/Microsoft.MachineLearningCompute/operationalizationClusters?api-version=2017-08-01-preview - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-list25181533","name":"mlcrp-python-test-list25181533","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2 EUAP","tags":null,"properties":{"createdOn":"2017-09-07T20:47:12.484Z","description":"Deployed - for testing.","provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.Storage/storageAccounts/mlcrpstg5ad5950563f8"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.ContainerRegistry/registries/mlcrpacrfda50115051f"},"clusterType":"ACS","containerService":{"clusterFqdn":"mlcrp-python-test-list25181533-9dd42797.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.18.206","version":"prod/1.20170905.2/master.308253995bd64e1d222e5be31f2d3eb284ba4d83"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"3758f025-5db2-44a2-919e-0def41380203","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.Insights/components/mlcrpai73009381f085"},"globalServiceConfiguration":null}}]}'} - headers: - cache-control: [no-cache] - content-length: ['1617'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 21:02:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/operationalizationClusters?api-version=2017-08-01-preview - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlsparkperf2rg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlsparkperf2","name":"mlsparkperf2","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2euap","tags":null,"properties":{"createdOn":"2017-08-18T01:28:58.1670000Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlsparkperf2rg/providers/Microsoft.Storage/storageAccounts/mlcrpstg4d831656c2e2"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlsparkperf2rg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr505170536481"},"clusterType":"ACS","containerService":{"clusterFqdn":"mlsparkperf2-37544799.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.19.220","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":1,"agentCount":6,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"1c461d94-0cac-4182-bb4f-5ff8b2562633","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testCluster101","name":"testCluster101","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2 EUAP","tags":null,"properties":{"createdOn":"2017-08-19T19:12:09.3130000Z","description":"Machine - Learning Compute Cluster","provisioningState":"Deleting","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.Storage/storageAccounts/mlcrpstgc20016052705"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.ContainerRegistry/registries/mlcrpacr21a72923401a"},"clusterType":"ACS","containerService":{"clusterFqdn":"testcluster101-e6e96725.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.23.73","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":1,"agentCount":1,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"3758f025-5db2-44a2-919e-0def41380203","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asupekar_test_3/providers/Microsoft.Insights/components/mlcrpai41c42439f1d3"},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/cname","name":"cname","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2euap","tags":null,"properties":{"createdOn":"2017-08-25T21:24:40.0260000Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.Storage/storageAccounts/mlcrpstg82f86171b1c1"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr665360123ab8"},"clusterType":"ACS","containerService":{"clusterFqdn":"cname-6b286484.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.96.53","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":1,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"c21651dc-e393-4b79-9bb4-7aebb1ce5299","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cnamerg/providers/Microsoft.Insights/components/mlcrpai0ca593357462"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Enabled","cert":null,"key":null,"cname":"bob.com"},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/trangevi-mlc2","name":"trangevi-mlc2","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2euap","tags":null,"properties":{"createdOn":"2017-08-25T23:28:15.3170000Z","description":null,"provisioningState":"Deleting","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg45949276a041"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr3c36080351f0"},"clusterType":"ACS","containerService":{"clusterFqdn":"trangevi-mlc2-0f178452.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"52.170.201.205","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":1,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"f79286de-8dd6-457b-badf-8e89b0f6e4e4","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.Insights/components/mlcrpai98c8108225a5"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-list25181533","name":"mlcrp-python-test-list25181533","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2 EUAP","tags":null,"properties":{"createdOn":"2017-09-07T20:47:12.484Z","description":"Deployed - for testing.","provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.Storage/storageAccounts/mlcrpstg5ad5950563f8"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.ContainerRegistry/registries/mlcrpacrfda50115051f"},"clusterType":"ACS","containerService":{"clusterFqdn":"mlcrp-python-test-list25181533-9dd42797.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.68.18.206","version":"prod/1.20170905.2/master.308253995bd64e1d222e5be31f2d3eb284ba4d83"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"3758f025-5db2-44a2-919e-0def41380203","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-list25181533/providers/Microsoft.Insights/components/mlcrpai73009381f085"},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rbmlcrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/rbmlc","name":"rbmlc","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-16T17:17:32.230Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rbmlcrg/providers/Microsoft.Storage/storageAccounts/mlcrpstgf0e2146363fe"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rbmlcrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr69e95747656a"},"clusterType":"ACS","containerService":{"clusterFqdn":"rbmlc-51b15201.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.71.31.15","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":null,"agentCount":2,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"01154d58-b582-4758-a582-209dba4a77f5","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/trangevi-mlc","name":"trangevi-mlc","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-17T16:33:01.305Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg2f105988bfee"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/travisrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr6d7906101af4"},"clusterType":"ACS","containerService":{"clusterFqdn":"trangevi-mlc-1ba06836.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.90.136.112","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":null,"agentCount":3,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"8db9c81e-4d51-4722-ae0d-b0da35c92158","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/a1t1rg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/ag1","name":"ag1","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-19T19:55:28.370Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/a1t1rg/providers/Microsoft.Storage/storageAccounts/mlcrpstg2c837838d774"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/a1t1rg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr8f5861288a7c"},"clusterType":"ACS","containerService":{"clusterFqdn":"ag1-9f699820.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"52.170.203.169","version":"prod/20170803.1.5a451c98af3972f7c966b439d471c1ed280314ea"}],"masterCount":null,"agentCount":2,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"c8e67a38-7b90-4cd0-a38e-43e6ce28dbec","secret":null}}},"appInsights":{"resourceId":null},"globalServiceConfiguration":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/debuggingcluster","name":"debuggingcluster","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-25T22:58:29.299Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg3e129029e45e"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr0da71402719d"},"clusterType":"ACS","containerService":{"clusterFqdn":"debuggingcluster-b9193295.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.90.213.43","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"a2f37d1d-2feb-44c4-af26-887766a8adb2","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/debuggingclusterrg/providers/Microsoft.Insights/components/mlcrpai343040428d04"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/newdebug","name":"newdebug","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-25T23:06:35.311Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.Storage/storageAccounts/mlcrpstge3f166022236"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr87818496e886"},"clusterType":"ACS","containerService":{"clusterFqdn":"newdebug-2e578521.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.123.44.57","version":"prod/1.unknown@unknown/.2017-08-24T19:26:42"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"a2f37d1d-2feb-44c4-af26-887766a8adb2","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/newdebugrg/providers/Microsoft.Insights/components/mlcrpai7e5921309992"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mmsinttests","name":"mmsinttests","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-29T22:25:09.016Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.Storage/storageAccounts/mlcrpstgab560786a3a1"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.ContainerRegistry/registries/mlcrpacred517445ef7b"},"clusterType":"ACS","containerService":{"clusterFqdn":"mmsinttests-82628341.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.79.75.252","version":"prod/1.20170828.10/master.313110d609b1c386468717f1568b5971a337be9e"}],"masterCount":1,"agentCount":5,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"2cf7b47f-8c3d-4d49-be21-d27971512556","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MmsIntegrationTests/providers/Microsoft.Insights/components/mlcrpaif81720641ba0"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.MachineLearningCompute/operationalizationClusters/ibizaintegration","name":"ibizaintegration","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-29T22:27:29.187Z","description":null,"provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.Storage/storageAccounts/mlcrpstg956332317d24"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.ContainerRegistry/registries/mlcrpacr75556756106f"},"clusterType":"ACS","containerService":{"clusterFqdn":"ibizaintegration-88f19983","systemServices":null,"masterCount":1,"agentCount":4,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"2cf7b47f-8c3d-4d49-be21-d27971512556","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/IbizaIntegration/providers/Microsoft.Insights/components/mlcrpaie7f097960327"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms09","name":"testmms09","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-30T18:17:24.823Z","description":"MMS - Test Operationalization Cluster","provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstgbfe07383b99d"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacr06f022560988"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms09-c2094701","systemServices":null,"masterCount":1,"agentCount":3,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpaieea434199a37"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms10","name":"testmms10","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-30T18:19:19.147Z","modifiedOn":"2017-09-01T17:47:02.767Z","description":"MMS - Test Operationalization Cluster","provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstg32318271c4da"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacr1b4663140879"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms10-3cf06190.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"40.123.40.208","version":"prod/1.20170829.3/shsin-dev2.f1e1b507ec1d342b93936b942883533be2f43349"}],"masterCount":1,"agentCount":3,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"02df68a8-b141-46af-8005-e82c1fbd2d11","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpai5b3650324707"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms11","name":"testmms11","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"East - US 2","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-30T18:21:20.408Z","description":"MMS - Test Operationalization Cluster0000000","provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstg9f785093e303"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacrb66680376747"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms11-b6627463","systemServices":null,"masterCount":1,"agentCount":3,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpaibf805959e8dc"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.MachineLearningCompute/operationalizationClusters/felogfixenv","name":"felogfixenv","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-08-30T20:12:12.182Z","description":null,"provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.Storage/storageAccounts/mlcrpstgce5766418512"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.ContainerRegistry/registries/mlcrpacr07c79545c1e1"},"clusterType":"ACS","containerService":{"clusterFqdn":"felogfixenv-db694645","systemServices":null,"masterCount":1,"agentCount":4,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"3c335670-88d0-4881-81d2-d702bda9ea4b","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/felogfix/providers/Microsoft.Insights/components/mlcrpai8ae05177da78"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/chpirillk8","name":"chpirillk8","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"EastUS2","tags":null,"properties":{"createdOn":"2017-08-30T22:23:20.241Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.Storage/storageAccounts/mlcrpstg1a78739259d2"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.ContainerRegistry/registries/mlcrpacrca9434273829"},"clusterType":"ACS","containerService":{"clusterFqdn":"chpirillk8-62f79993.eastus.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"13.90.151.240","version":"prod/1.20170829.3/shsin-dev2.f1e1b507ec1d342b93936b942883533be2f43349"}],"masterCount":1,"agentCount":2,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"9e1ee9e7-1a26-484b-8c64-47c09ffa49f7","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/chpirillk8rg/providers/Microsoft.Insights/components/mlcrpai747924461c82"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.MachineLearningCompute/operationalizationClusters/o16ne2es","name":"o16ne2es","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"eastus2","tags":null,"properties":{"createdOn":"2017-09-05T15:19:26.754Z","description":null,"provisioningState":"Succeeded","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.Storage/storageAccounts/mlcrpstg9983941707d3"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.ContainerRegistry/registries/mlcrpacr69947398b031"},"clusterType":"ACS","containerService":{"clusterFqdn":"o16ne2es-33b86211.eastus2.cloudapp.azure.com","systemServices":[{"systemServiceType":"ScoringFrontEnd","publicIpAddress":"23.101.157.45","version":"prod/1.20170828.8/master.f20850cf68b2bb878a1837c8a3f0c997a11a73d9"}],"masterCount":1,"agentCount":5,"agentVmSize":"Standard_D2_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"f79286de-8dd6-457b-badf-8e89b0f6e4e4","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/o16ne2esrg/providers/Microsoft.Insights/components/mlcrpaie2a0858173a6"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.MachineLearningCompute/operationalizationClusters/testmms1021","name":"testmms1021","type":"Microsoft.MachineLearningCompute/operationalizationClusters","location":"West - Central US","tags":{"key1":"alpha","key2":"beta"},"properties":{"createdOn":"2017-08-31T22:13:35.087Z","modifiedOn":"2017-09-01T17:48:35.104Z","description":"MMS - Test Operationalization Cluster","provisioningState":"Failed","storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Storage/storageAccounts/mlcrpstg310457202f10"},"containerRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.ContainerRegistry/registries/mlcrpacrd1773879bde4"},"clusterType":"ACS","containerService":{"clusterFqdn":"testmms1021-2c548431.westcentralus.cloudapp.azure.com","systemServices":null,"masterCount":1,"agentCount":10,"agentVmSize":"Standard_D3_v2","orchestratorType":"Kubernetes","orchestratorProperties":{"servicePrincipal":{"clientId":"02df68a8-b141-46af-8005-e82c1fbd2d11","secret":null}}},"appInsights":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/KotlaModelManagementTest/providers/Microsoft.Insights/components/mlcrpai83966864b76a"},"globalServiceConfiguration":{"additionalProperties":null,"etag":null,"ssl":{"status":"Disabled","cert":null,"key":null,"cname":null},"serviceAuth":null,"autoScale":null}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['28524'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 21:02:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - vary: [Accept-Encoding] - x-ms-original-request-ids: ['', '', ''] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_list_keys.yaml b/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_list_keys.yaml deleted file mode 100644 index d1164f75a5e6..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_list_keys.yaml +++ /dev/null @@ -1,39 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-keysd2f2137a/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-keysd2f2137a/listKeys?api-version=2017-08-01-preview - response: - body: {string: '{"storageAccount":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/mlcrp-python-test-keysd2f2137a/providers/Microsoft.Storage/storageAccounts/mlcrpstg631143238a75","primaryKey":"hihqGDcoy3+6ILJJMxkq7OgGeRsWpLPOhoKqE6YKWb/BWlGrANOWz1hsadR2gY7qhVhIrsOVmHJ9ZgIPJVHV6w==","secondaryKey":"H7OUvA1aZ6atdzl1ONL9ra1+tDNQkMkwYittqX1DfJieDmQJ6BLEXzkGLIOIfEkWVSwmbC2WhjH5P9XmJzW5jg=="},"containerRegistry":{"loginServer":"mlcrpacr3e76862523e7.azurecr.io","password":"jzu4i/cENqMQbO+OB3b4gjgXRG+FgMyM","password2":"5G/UWFo6noJFhgOZKADd9SPZDXnJk6U5","username":"mlcrpacr3e76862523e7"},"containerService":{"acsKubeConfig":"\n---\napiVersion: - v1\nclusters:\n- cluster:\n certificate-authority-data: \"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlETURDQ0FoaWdBd0lCQWdJSUdNdXdlS2FUVU93d0RRWUpLb1pJaHZjTkFRRUxCUUF3RXpFUk1BOEdBMVVFQXd3SVlXTnphemh6DQpZMkV3SGhjTk1UY3dPVEEzTURBd01EQXdXaGNOTVRrd09UQTNNREF3TURBd1dqQVRNUkV3RHdZRFZRUUREQWhoWTNOck9ITmpZVENDDQpBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQUtZeXZwQzRzRThPYkk4MjB4dFJreEk2Y2dETFYwdVg1bDFjDQpueWR6V2h6TkFsMHJYSUJvUGloMGxRQjdmc3pnanYyaXJCMUFUY0RVOCt3TVNjbFR3ZTdMRWlOSU1zZnBEdkVCUEVDcVZnOHdJdktuDQp5RHRnN3ZCNHRWQUdlbHdzSk1FTFl6bFJ4eWVMOFUxODlGc2tCQ2txdUpyZHRCRVJSb0RSVEM3dFpZZHZIK0FuK3duWWFBV3poQUE1DQp1bS9ZMnVxY1JkNFhSVjdUOUVvWURyQ3ZaUUw5QWlVZ085S1JGNjNXd213NDlNUlZlNTVaY1k4MWFtdTA0N1ZrV1RDc0E2cE5BZFlaDQp3ZnBCbk5jY2puTFFCcDBEdHk4bXdvYjVDOFFYL0xqWnlxVHM0UTdsQWg2Q0lJbm5MVWpVUmpKQ2NUM1pKTlhDT3VCcFpoT00vYlhDDQovbXNDQXdFQUFhT0JoekNCaERCQ0JnTlZIU01FT3pBNWdCVGVTaStJRkFoOWV3NUFmVFVEOXVPanJ3ak1VYUVYcEJVd0V6RVJNQThHDQpBMVVFQXd3SVlXTnphemh6WTJHQ0NCakxzSGltazFEc01CMEdBMVVkRGdRV0JCVGVTaStJRkFoOWV3NUFmVFVEOXVPanJ3ak1VVEFQDQpCZ05WSFJNQkFmOEVCVEFEQVFIL01BNEdBMVVkRHdFQi93UUVBd0lDcERBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQUlPYUJtSTFMDQpTeVBYeU91cU5JN3pkZ2tlRENkWHRQTlNJUVFlUnlJSHdsZHFrUTNzak11ZWl2YVkrODJpRVExOWtkRTlNSW9zRktJME9PS0ZTbDNvDQo0cmVLZjFoTURKclFGbUVIZU15c3RmZC9kR0ZacE1aSXJJVnFKS1JMK2t4ZExSMnQ3M1hlQ0NNbm9rZklrUlJBcGp0azRrdGxKZWIzDQo2Z051Y0xQQXltbVVTWEJQanduZmF4YWxCVStNNUs1N1pKbVJIMlVtREpQY2U4RXBiRVY4MUFDOWw3NDFJU3llMHFDbWVEclpHdC9WDQo0MnZFeGgyNGRSK3RJaWZBclRKMVNueTE2clNRMS9GNThUWU1Pd084REw1NGpra0g5eWFmcFczb3dxY0d1YVZlZnB0WmpQZHJWYkh1DQptTWdWRzhvUjMra3ZONXFxUDZJQnJwamhWYTVUemc9PQ0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ0K\"\n server: - https://mlcrp-python-test-keysd2f2137a-56d34967.eastus2.cloudapp.azure.com\n name: - \"mlcrp-python-test-keysd2f2137a-56d34967\"\ncontexts:\n- context:\n cluster: - \"mlcrp-python-test-keysd2f2137a-56d34967\"\n user: \"mlcrp-python-test-keysd2f2137a-56d34967-admin\"\n name: - \"mlcrp-python-test-keysd2f2137a-56d34967\"\ncurrent-context: \"mlcrp-python-test-keysd2f2137a-56d34967\"\nkind: - Config\nusers:\n- name: \"mlcrp-python-test-keysd2f2137a-56d34967-admin\"\n user:\n client-certificate-data: - \"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlEUkRDQ0FpeWdBd0lCQWdJSUJBNHA5eXhBK3Q0d0RRWUpLb1pJaHZjTkFRRUxCUUF3RXpFUk1BOEdBMVVFQXd3SVlXTnphemh6DQpZMkV3SGhjTk1UY3dPVEEzTURBd01EQXdXaGNOTVRrd09UQTNNREF3TURBd1dqQVZNUk13RVFZRFZRUUREQXByZFdKbFkyOXVabWxuDQpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQXgrQzJaOVUya2RrTmVzWEw2N1I5MmY4anYxbHQ2TUtMDQpXakpFbDhJUTBJUTErWklTaTRmQkhiOUZoSGJOU2sxaFVSbWhKNk9EdmVxSEZVUjNnNWFDTHZsY0kzT1hsRkZSTWlaUHlickF1VzdJDQowaE83dWhuZ0RHYkpFRjBTMWxJQjMwajhtdm1ZYWk4MHVFdjlRMTdLdC9nR1FLU3BKQ1dqWTdFRytXWVkrZjFucjNqYkNlTzNiUUY4DQpIcmxQSVFCYkhiSGlvd1NVUGs1cXhsbVAwbERDLzZUWWpES3JEZU1HTk9YSnZ1TzFwZEcraXYwQlo4WTNxWFQxMkowcEFUZGdjMGplDQpieHR6STF0WXEvUE9iamJsNkN1eUkvYldERGRiNk9PdDZPcXJBTnhaNE9LZmt1UDR3S0NRYVFYbmZ2S0t2WFdGQXJkQjhkK3N5bktLDQpPMjc3ZlFJREFRQUJvNEdaTUlHV01FSUdBMVVkSXdRN01EbUFGTjVLTDRnVUNIMTdEa0I5TlFQMjQ2T3ZDTXhSb1Jla0ZUQVRNUkV3DQpEd1lEVlFRRERBaGhZM05yT0hOallZSUlHTXV3ZUthVFVPd3dIUVlEVlIwT0JCWUVGTEV0ZWlhTThiUjVhdHVmcTQwcnlxZHpHOGJMDQpNQXdHQTFVZEV3RUIvd1FDTUFBd0RnWURWUjBQQVFIL0JBUURBZ1dnTUJNR0ExVWRKUVFNTUFvR0NDc0dBUVVGQndNQ01BMEdDU3FHDQpTSWIzRFFFQkN3VUFBNElCQVFBV2tEN2c4QVFvaDZFZm5SUkhhcm56cXBQWnUyQ0lvbS9sQ1Y4RzBUYjRkb0ZCWU9namRSdHNSQS9HDQpIMzNjNmYzeGVpNEJSVXFSLzVFNlU1bWZzM0ROQ0YxQXZOQm41TkU0MWwzMXZ6aG5ncC9qd0dFeUwrRWZKUDFJZU1Sb21wK2NjVHBuDQplZ3V6eDlYeFlzVmpDWkJRTG9YVjZocWdVQlYycmlOMkdSV1FQSGVqOStDVU1sclNnQjhYdzhoTjRJa3NrWmFvZ3RoQTRaMW1BQ0NrDQphSXUyMExaSnllYThxMEFqSHJ4ZTA0cTI2K3BwTGVjcWFlT24yODRIMmFtaDVWajRiSjA0UGpzZlhPRXVMZHorbG1TbFJxeUVoa2hmDQoxa1hUNkJtRisyV0g2clY2RElubzI0RnBCdlpuRFgxWTJzZ0tPcFhneE1zS3Y0R25iQVpoMUJQYw0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ0K\"\n client-key-data: - \"LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQ0KTUlJRXBRSUJBQUtDQVFFQXgrQzJaOVUya2RrTmVzWEw2N1I5MmY4anYxbHQ2TUtMV2pKRWw4SVEwSVExK1pJUw0KaTRmQkhiOUZoSGJOU2sxaFVSbWhKNk9EdmVxSEZVUjNnNWFDTHZsY0kzT1hsRkZSTWlaUHlickF1VzdJMGhPNw0KdWhuZ0RHYkpFRjBTMWxJQjMwajhtdm1ZYWk4MHVFdjlRMTdLdC9nR1FLU3BKQ1dqWTdFRytXWVkrZjFucjNqYg0KQ2VPM2JRRjhIcmxQSVFCYkhiSGlvd1NVUGs1cXhsbVAwbERDLzZUWWpES3JEZU1HTk9YSnZ1TzFwZEcraXYwQg0KWjhZM3FYVDEySjBwQVRkZ2MwamVieHR6STF0WXEvUE9iamJsNkN1eUkvYldERGRiNk9PdDZPcXJBTnhaNE9LZg0Ka3VQNHdLQ1FhUVhuZnZLS3ZYV0ZBcmRCOGQrc3luS0tPMjc3ZlFJREFRQUJBb0lCQVFEQ3NqTTd4VWFZbnhNdw0KU2tldTIydlQwMkdnM0ozaElzL1hGaXdXbjJUOW1DdHpaVVJIUWY5czJJb0ExREI0ZGhPYmlobWVvUHFOSGt4aQ0KL1FSbDIxQUlMY0lBam5KU2VUdGNYRkZRTVdmVnVRSkpFQXZHNWJtR213Q3p2ZFhCaXJSa0taWlY1MWI5NSttMA0KcytDSnBXWlYrWFV0dHJkRGpKNHhWNWx4aW5BOTRVeVIvTjhtTlNoTlNHc0Y2RmxkRkk5QzBXd2pZU1JQSC9NYg0KV3NoTUhIS2c2bW5WTnZsR29jTkNjcldNSlZ0MXJ4K3ZKUW02TElJSTMwbUttVGZ2TjJQQjFyYUNWcnh4NHhqdg0Kb3lob1lEWmgzSEwzSWtka2xCYzZxakRLR2VPcmo1eVJZVUtXQ1pJZUtMWWswNlZadVlKYTJIWmErVVkxT2N5dA0KUlBtTDdKcUpBb0dCQVBkV1dZVmsrVTNaTkFSUEQxZ0Zpem95QTdKRHhZeGxoTldhZ3M5WndZMFlyZUVRY01iWA0KUTFLWnRLQ0dwM3Z0V1NaajZOS0JVNUI5Q1F3MVRVOEVQNTlZTXVlOWZCZW5vbGpGWnlUMWptcnc2YmxoREdzdg0KSkJnelJNaWFUNHZBZHZNSXdDcy9wNXZjb1grMjh5cEdESGMyT3U1YkEwSHFxYzIzRzE2a1NWSERBb0dCQU03Zw0KMWc1M3ZIQWcwQXFTeU1wS3h4SVY1NUlFR1M4aEVzaDJ2N29aWjFDS1NUUXkxM0swSVI0YllYRjRuRTl0YUIrSQ0KeFcrM0pLZWQrOVBJZDRpcEdpcGdGekI1MUFvaGdRNEJYblQwelVoUE1GOHl4eUpPK1Q5VjJrT2g5VTJpbVh3cw0KbndLRENVSENUc2txRlBHclpyQ0VKVkpsaFdXOVYrci9XT2hMNW1tL0FvR0FOYUhveVk4cXJDSFVNTGNBQ2NNeA0KL0kySjFhYnllRTR2THE1UmZTcm1XSFVvaHl3c2VFR0hYS3J0eXYxSDVneUNqMXVNeWRDM1VSWjcxc1RjSGEwNw0KS285U2dvUEpHOHdDM1NMNUNiK2hnVGo2UlhOdzRQRVk3NUoyY05WZE9GMmtyWENSVXc5N2hjV2kwM0hWYXE1RA0KMTduUHI0M1d0LzF0a3FrSTYwM09oRWNDZ1lFQWlGeU8rODVVdVJ3SHhWQm5aVi9RdzgwSWJLaWk2UHZGNDdqUw0KTzVxUERQbDVzeHhvQXNWVXB3R3BReUFhK0FmSGdER280akEzeXZ4Smg1azFvVERGZkhVR0UvL1praXZ2WXdubg0KOXZOOWRGSXVNakhJTEljZHAyK3hoSzcyZ0F2VFc1UVY0NVAzd0E2UjIrc1BEeFRKaFVRMVRaQjVVMHh3N1FjTw0KMVY5aUt3VUNnWUVBeFkwZEpnOExqdlNMNW16WTh5b1J1TlJ3bTlMV3FhVi92SHVycXk5SVhHeldRUlVYMXpGMw0KNE9GVEo5c3FJd3V5SDQzUjFTVEJlQ1ZsTm5sYlVUYUVJSVJUWWhwOTJZUkFJUU4ydUJsSXJET2JIaGd5Q2RHcg0KQUhnMzQzWXdXeHo3cGwvTERDQUJ0RmI4NlFQQVlTS3NLeG9mY2x4Tjh6c1Q2OUYrc1IyWlB2OD0NCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tDQoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\"\n\n","servicePrincipalConfiguration":null,"imagePullSecretName":"mlcrpacr3e76862523e7acrkey"},"appInsights":{"appId":"mlcrpai2ea64940dc57","instrumentationKey":"cf07eaf9-0f5f-4ef2-9794-8ae84060fb81"},"serviceAuthConfiguration":null,"sslConfiguration":null}'} - headers: - cache-control: [no-cache] - content-length: ['7447'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 20:40:35 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_system_services_update.yaml b/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_system_services_update.yaml deleted file mode 100644 index ebbf7e3eaec1..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/recordings/test_mgmt_machinelearningcompute.test_system_services_update.yaml +++ /dev/null @@ -1,192 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-updatef78c18ed/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-updatef78c18ed/checkSystemServicesUpdatesAvailable?api-version=2017-08-01-preview - response: - body: {string: '{"updatesAvailable":"No"}'} - headers: - cache-control: [no-cache] - content-length: ['25'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 17:50:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-updatef78c18ed/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-updatef78c18ed/updateSystemServices?api-version=2017-08-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.MachineLearningCompute'' within the specified - time period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['160'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 17:51:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-updatef78c18ed/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-updatef78c18ed/updateSystemServices?api-version=2017-08-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 07 Sep 2017 17:51:47 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/locations/eastus2euap/operationsStatus/a41407e5-8577-4d32-b055-e5b41f6f7862?api-version=2017-06-01-preview'] - pragma: [no-cache] - x-ms-client-session-id: [''] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/locations/eastus2euap/operationsStatus/a41407e5-8577-4d32-b055-e5b41f6f7862?api-version=2017-06-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.MachineLearningCompute'' within the specified - time period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['160'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 17:53:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute/locations/eastus2euap/operationsStatus/a41407e5-8577-4d32-b055-e5b41f6f7862?api-version=2017-06-01-preview - response: - body: {string: '{"updateStatus":"Succeeded","updateStartedOn":"2017-09-07T17:51:47.907Z","updateCompletedOn":"2017-09-07T17:51:52.326Z"}'} - headers: - cache-control: [no-cache] - content-length: ['120'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 17:53:18 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-updatef78c18ed/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-updatef78c18ed/checkSystemServicesUpdatesAvailable?api-version=2017-08-01-preview - response: - body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not - receive a response from ''Microsoft.MachineLearningCompute'' within the specified - time period."}}'} - headers: - cache-control: [no-cache] - connection: [close] - content-length: ['160'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 17:54:18 GMT'] - expires: ['-1'] - pragma: [no-cache] - x-ms-failure-cause: [service] - status: {code: 504, message: Gateway Timeout} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.13 azure-mgmt-machinelearningcompute/0.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mlcrp-python-test-updatef78c18ed/providers/Microsoft.MachineLearningCompute/operationalizationClusters/mlcrp-python-test-updatef78c18ed/checkSystemServicesUpdatesAvailable?api-version=2017-08-01-preview - response: - body: {string: '{"updatesAvailable":"No"}'} - headers: - cache-control: [no-cache] - content-length: ['25'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 07 Sep 2017 17:54:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-frame-options: [SAMEORIGIN] - x-ms-client-session-id: [''] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/test_mgmt_machinelearningcompute.py b/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/test_mgmt_machinelearningcompute.py deleted file mode 100644 index 771403cdfbf1..000000000000 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/tests/test_mgmt_machinelearningcompute.py +++ /dev/null @@ -1,128 +0,0 @@ -from azure.mgmt.resource import ResourceManagementClient -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer, AzureMgmtPreparer -from devtools_testutils.resource_testcase import RESOURCE_GROUP_PARAM -from azure.mgmt.machinelearningcompute import models, MachineLearningComputeManagementClient - -NAME_PREFIX = 'mlcrp-python-test' -RESOURCE_GROUP_LOCATION = 'eastus2' - -class OperationalizationClusterPreparer(AzureMgmtPreparer): - def __init__(self, name_prefix='', location='East US 2 EUAP', cluster_type='ACS', - description='Deployed for testing.', orchestrator_type='Kubernetes', - random_name_length=24, resource_group_parameter_name=RESOURCE_GROUP_PARAM, - parameter_name='cluster_name', disable_recording=True, - playback_fake_resource=None): - super(OperationalizationClusterPreparer, self).__init__(name_prefix, - random_name_length, - disable_recording=disable_recording, - playback_fake_resource=playback_fake_resource) - self.location = location - self.cluster_type = cluster_type - self.description = description - self.orchestrator_type = orchestrator_type - self.resource_group_parameter_name = resource_group_parameter_name - self.parameter_name = parameter_name - - def create_resource(self, name, **kwargs): - if self.is_live: - self.client = self.create_mgmt_client(MachineLearningComputeManagementClient) - group = self._get_resource_group(**kwargs) - - from devtools_testutils.mgmt_settings_real import CLIENT_ID, CLIENT_SECRET - - temp_cluster_properties = models.OperationalizationCluster( - location = self.location, - cluster_type = self.cluster_type, - description = self.description, - container_service = models.AcsClusterProperties( - orchestrator_type = self.orchestrator_type, - orchestrator_properties = models.KubernetesClusterProperties( - service_principal = models.ServicePrincipalProperties( - client_id = CLIENT_ID, - secret = CLIENT_SECRET - ) - ) - ) - ) - - self.client.operationalization_clusters.create_or_update(group.name, name, - temp_cluster_properties).result() - - return {self.parameter_name: name} - - def remove_resource(self, name, **kwargs): - if self.is_live: - group = self._get_resource_group(**kwargs) - self.client.operationalization_clusters.delete(group.name, name) - - def _get_resource_group(self, **kwargs): - try: - return kwargs.get(self.resource_group_parameter_name) - except KeyError: - template = 'To create an operationalization cluster a resource group is required. ' \ - 'Please add decorator @{} in front of this storage account preparer.' - raise AzureTestError(template.format(ResourceGroupPreparer.__name__)) - - -class MgmtMachineLearningComputeTest(AzureMgmtTestCase): - FILTER_HEADERS = AzureMgmtTestCase.FILTER_HEADERS + ["strict-transport-security"] - - def setUp(self): - super(MgmtMachineLearningComputeTest, self).setUp() - self.client = self.create_mgmt_client(MachineLearningComputeManagementClient) - - @ResourceGroupPreparer(name_prefix=NAME_PREFIX + '-get', location=RESOURCE_GROUP_LOCATION, parameter_name='group') - @OperationalizationClusterPreparer(name_prefix=NAME_PREFIX + '-get', - resource_group_parameter_name='group') - def test_get(self, group, cluster_name): - fetched_cluster = self.client.operationalization_clusters.get(group.name, cluster_name) - self.assertEqual(fetched_cluster.name, cluster_name) - - @ResourceGroupPreparer(name_prefix=NAME_PREFIX + '-keys', location=RESOURCE_GROUP_LOCATION, parameter_name='group') - @OperationalizationClusterPreparer(name_prefix=NAME_PREFIX + '-keys', - resource_group_parameter_name='group') - def test_list_keys(self, group, cluster_name): - keys = self.client.operationalization_clusters.list_keys(group.name, cluster_name) - - self.assertIsNotNone(keys.storage_account.resource_id) - self.assertIsNotNone(keys.storage_account.primary_key) - self.assertIsNotNone(keys.storage_account.secondary_key) - self.assertIsNotNone(keys.container_registry.login_server) - self.assertIsNotNone(keys.container_registry.password) - self.assertIsNotNone(keys.container_registry.password2) - self.assertIsNotNone(keys.container_service.acs_kube_config) - self.assertIsNotNone(keys.container_service.image_pull_secret_name) - - @ResourceGroupPreparer(name_prefix=NAME_PREFIX + '-list', location=RESOURCE_GROUP_LOCATION, parameter_name='group') - @OperationalizationClusterPreparer(name_prefix=NAME_PREFIX + '-list', - resource_group_parameter_name='group') - def test_list_clusters(self, group, cluster_name): - clusters_in_resource_group = [c.name for c in list(self.client.operationalization_clusters.list_by_resource_group(group.name))] - self.assertTrue(cluster_name in clusters_in_resource_group) - - clusters_in_subscription = [c.name for c in list(self.client.operationalization_clusters.list_by_subscription_id())] - self.assertTrue(cluster_name in clusters_in_subscription) - - @ResourceGroupPreparer(name_prefix=NAME_PREFIX + '-delete', location=RESOURCE_GROUP_LOCATION, parameter_name='group') - @OperationalizationClusterPreparer(name_prefix=NAME_PREFIX + '-delete', - resource_group_parameter_name='group') - def test_delete(self, group, cluster_name): - self.client.operationalization_clusters.delete(group.name, cluster_name).result() - clusters_in_subscription = [c.name for c in list(self.client.operationalization_clusters.list_by_subscription_id())] - - self.assertTrue(cluster_name not in clusters_in_subscription) - - @ResourceGroupPreparer(name_prefix=NAME_PREFIX + '-update', location=RESOURCE_GROUP_LOCATION, parameter_name='group') - @OperationalizationClusterPreparer(name_prefix=NAME_PREFIX + '-update', - resource_group_parameter_name='group') - def test_system_services_update(self, group, cluster_name): - updates_available = self.client.operationalization_clusters.check_system_services_updates_available(group.name, cluster_name) - self.assertIsNotNone(updates_available) - - update_result = self.client.operationalization_clusters.update_system_services(group.name, cluster_name).result() - self.assertEqual("Succeeded", update_result.update_status) - self.assertIsNotNone(update_result.update_started_on) - self.assertIsNotNone(update_result.update_completed_on) - - updates_available = self.client.operationalization_clusters.check_system_services_updates_available(group.name, cluster_name) - self.assertEqual("No", updates_available.updates_available) diff --git a/sdk/machinelearning/ci.yml b/sdk/machinelearning/ci.yml index 6f5ee14ed169..ce529e965ed1 100644 --- a/sdk/machinelearning/ci.yml +++ b/sdk/machinelearning/ci.yml @@ -30,7 +30,5 @@ extends: parameters: ServiceDirectory: machinelearning Artifacts: - - name: azure-mgmt-machinelearningcompute - safeName: azuremgmtmachinelearningcompute - name: azure-mgmt-machinelearningservices safeName: azuremgmtmachinelearningservices diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md deleted file mode 100644 index d6fcc0d9e9c5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md +++ /dev/null @@ -1,342 +0,0 @@ -# Release History - -## 0.7.0 (2020-03-24) - -**Features** - - - Added operation BackupResourceVaultConfigsOperations.put - - Added operation group RecoveryServicesBackupClientOperationsMixin - - Added operation group PrivateEndpointConnectionOperations - -## 0.6.0 (2020-01-14) - -**Features** - - - Model TargetRestoreInfo has a new parameter - target_directory_for_file_restore - - Model AzureIaaSVMProtectionPolicy has a new parameter - instant_rp_details - -## 0.5.0 (2019-11-21) - -**Features** - - - Model AzureVmWorkloadProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureVmWorkloadProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureVmWorkloadProtectedItem has a new parameter is_rehydrate - - Model AzureVmWorkloadProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureVmWorkloadProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model AzureFileshareProtectedItemExtendedInfo has a new parameter - resource_state - - Model AzureFileshareProtectedItemExtendedInfo has a new parameter - resource_state_sync_time - - Model AzureIaaSClassicComputeVMProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureIaaSClassicComputeVMProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureIaaSClassicComputeVMProtectedItem has a new parameter - extended_properties - - Model AzureIaaSClassicComputeVMProtectedItem has a new parameter - is_rehydrate - - Model AzureIaaSClassicComputeVMProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureIaaSClassicComputeVMProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model AzureWorkloadSAPHanaPointInTimeRestoreRequest has a new - parameter recovery_mode - - Model AzureVmWorkloadProtectionPolicy has a new parameter - make_policy_consistent - - Model AzureIaaSVMProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureIaaSVMProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureIaaSVMProtectedItem has a new parameter - extended_properties - - Model AzureIaaSVMProtectedItem has a new parameter is_rehydrate - - Model AzureIaaSVMProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureIaaSVMProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model DPMProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model DPMProtectedItem has a new parameter is_rehydrate - - Model DPMProtectedItem has a new parameter - deferred_delete_time_remaining - - Model DPMProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureWorkloadRestoreRequest has a new parameter recovery_mode - - Model AzureWorkloadSAPHanaRestoreRequest has a new parameter - recovery_mode - - Model ProtectedItem has a new parameter - deferred_delete_time_remaining - - Model ProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model ProtectedItem has a new parameter is_rehydrate - - Model ProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model ProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model AzureWorkloadSQLRestoreRequest has a new parameter - recovery_mode - - Model InquiryValidation has a new parameter additional_detail - - Model AzureVmWorkloadSQLDatabaseProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureVmWorkloadSQLDatabaseProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureVmWorkloadSQLDatabaseProtectedItem has a new parameter - is_rehydrate - - Model AzureVmWorkloadSQLDatabaseProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureVmWorkloadSQLDatabaseProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model AzureVmWorkloadSAPAseDatabaseProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureVmWorkloadSAPAseDatabaseProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureVmWorkloadSAPAseDatabaseProtectedItem has a new parameter - is_rehydrate - - Model AzureVmWorkloadSAPAseDatabaseProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureVmWorkloadSAPAseDatabaseProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model AzureWorkloadSQLPointInTimeRestoreRequest has a new parameter - recovery_mode - - Model AzureIaaSComputeVMProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureIaaSComputeVMProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureIaaSComputeVMProtectedItem has a new parameter - extended_properties - - Model AzureIaaSComputeVMProtectedItem has a new parameter - is_rehydrate - - Model AzureIaaSComputeVMProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureIaaSComputeVMProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model IaasVMRestoreRequest has a new parameter - restore_disk_lun_list - - Model AzureFileShareRecoveryPoint has a new parameter - recovery_point_size_in_gb - - Model BackupResourceVaultConfig has a new parameter - soft_delete_feature_state - - Model AzureVmWorkloadSAPHanaDatabaseProtectedItem has a new - parameter deferred_delete_time_remaining - - Model AzureVmWorkloadSAPHanaDatabaseProtectedItem has a new - parameter is_deferred_delete_schedule_upcoming - - Model AzureVmWorkloadSAPHanaDatabaseProtectedItem has a new - parameter is_rehydrate - - Model AzureVmWorkloadSAPHanaDatabaseProtectedItem has a new - parameter deferred_delete_time_in_utc - - Model AzureVmWorkloadSAPHanaDatabaseProtectedItem has a new - parameter is_scheduled_for_deferred_delete - - Model MabFileFolderProtectedItem has a new parameter - last_backup_time - - Model MabFileFolderProtectedItem has a new parameter - deferred_delete_time_remaining - - Model MabFileFolderProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model MabFileFolderProtectedItem has a new parameter is_rehydrate - - Model MabFileFolderProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model IaasVMRecoveryPoint has a new parameter - recovery_point_disk_configuration - - Model GenericProtectedItem has a new parameter - deferred_delete_time_remaining - - Model GenericProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model GenericProtectedItem has a new parameter is_rehydrate - - Model GenericProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model GenericProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model AzureWorkloadPointInTimeRestoreRequest has a new parameter - recovery_mode - - Model ExportJobsOperationResultInfo has a new parameter - excel_file_blob_sas_key - - Model ExportJobsOperationResultInfo has a new parameter - excel_file_blob_url - - Model AzureFileshareProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureFileshareProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureFileshareProtectedItem has a new parameter is_rehydrate - - Model AzureFileshareProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureFileshareProtectedItem has a new parameter - is_scheduled_for_deferred_delete - - Model AzureSqlProtectedItem has a new parameter - deferred_delete_time_remaining - - Model AzureSqlProtectedItem has a new parameter - is_deferred_delete_schedule_upcoming - - Model AzureSqlProtectedItem has a new parameter is_rehydrate - - Model AzureSqlProtectedItem has a new parameter - deferred_delete_time_in_utc - - Model AzureSqlProtectedItem has a new parameter - is_scheduled_for_deferred_delete - -**General Breaking changes** - -This version uses a next-generation code generator that might introduce -breaking changes if from some import. In summary, some modules were -incorrectly visible/importable and have been renamed. This fixed several -issues caused by usage of classes that were not supposed to be used in -the first place. RecoveryServicesBackupClient cannot be imported from -azure.mgmt.recoveryservicesbackup.recovery_services_backup_client -anymore (import from azure.mgmt.recoveryservicesbackup works like -before) RecoveryServicesBackupClientConfiguration import has been moved -from -azure.mgmt.recoveryservicesbackup.recovery_services_backup_client to -azure.mgmt.recoveryservicesbackup A model MyClass from a "models" -sub-module cannot be imported anymore using -azure.mgmt.recoveryservicesbackup.models.my_class (import from -azure.mgmt.recoveryservicesbackup.models works like before) An operation -class MyClassOperations from an operations sub-module cannot be imported -anymore using -azure.mgmt.recoveryservicesbackup.operations.my_class_operations -(import from azure.mgmt.recoveryservicesbackup.operations works like -before) Last but not least, HTTP connection pooling is now enabled by -default. You should always use a client as a context manager, or call -close(), or use no more than one client per process. - -## 0.4.0 (2019-05-21) - -**Features** - - - Model AzureWorkloadRestoreRequest has a new parameter target_info - - Model AzureVmWorkloadSAPHanaDatabaseProtectableItem has a new - parameter is_auto_protected - - Model AzureVmWorkloadSAPHanaSystemProtectableItem has a new - parameter is_auto_protected - - Model AzureIaaSVMJobTaskDetails has a new parameter - task_execution_details - - Model AzureWorkloadContainer has a new parameter operation_type - - Model AzureVmWorkloadSQLInstanceProtectableItem has a new parameter - is_auto_protected - - Model AzureIaaSVMJobExtendedInfo has a new parameter - estimated_remaining_duration - - Model AzureVmWorkloadSQLAvailabilityGroupProtectableItem has a new - parameter is_auto_protected - - Model AzureVmWorkloadProtectableItem has a new parameter - is_auto_protected - - Model AzureVMAppContainerProtectionContainer has a new parameter - operation_type - - Model AzureSQLAGWorkloadContainerProtectionContainer has a new - parameter operation_type - - Model AzureVmWorkloadSQLDatabaseProtectableItem has a new parameter - is_auto_protected - - Added operation BackupResourceStorageConfigsOperations.patch - - Added operation ProtectionIntentOperations.delete - - Added operation ProtectionIntentOperations.get - - Added operation group BackupProtectionIntentOperations - - Added operation group OperationOperations - -## 0.3.0 (2018-06-27) - -**Features** - - - SAP HANA contract changes (new filters added to existing API's.). - This feature is still in development phase and not open for usage - yet. - - Instant RP field added in create policy. - - Comments added for some contracts. - -**Python details** - - - Model DPMProtectedItem has a new parameter create_mode - - Model MabFileFolderProtectedItem has a new parameter create_mode - - Model AzureIaaSClassicComputeVMProtectedItem has a new parameter - create_mode - - Model AzureWorkloadContainer has a new parameter workload_type - - Model AzureIaaSVMProtectionPolicy has a new parameter - instant_rp_retention_range_in_days - - Model AzureFileshareProtectedItem has a new parameter create_mode - - Model AzureSQLAGWorkloadContainerProtectionContainer has a new - parameter workload_type - - Model AzureSqlProtectedItem has a new parameter create_mode - - Model AzureIaaSVMJobExtendedInfo has a new parameter - internal_property_bag - - Model KeyAndSecretDetails has a new parameter encryption_mechanism - - Model AzureIaaSVMProtectedItem has a new parameter create_mode - - Model AzureVMAppContainerProtectionContainer has a new parameter - workload_type - - Model AzureVmWorkloadSQLDatabaseProtectedItem has a new parameter - create_mode - - Model IaasVMRecoveryPoint has a new parameter os_type - - Model ProtectionPolicyQueryObject has a new parameter workload_type - - Model AzureIaaSComputeVMProtectedItem has a new parameter - create_mode - - Model Settings has a new parameter is_compression - - Model GenericProtectedItem has a new parameter create_mode - - Model AzureWorkloadJob has a new parameter workload_type - - Model ProtectedItem has a new parameter create_mode - - Operation ProtectionContainersOperations.inquire has a new "filter" - parameter - -## 0.2.0 (2018-05-25) - -**Features** - - - Client class can be used as a context manager to keep the underlying - HTTP session open for performance - -**General Breaking changes** - -This version uses a next-generation code generator that *might* -introduce breaking changes. - - - Model signatures now use only keyword-argument syntax. All - positional arguments must be re-written as keyword-arguments. To - keep auto-completion in most cases, models are now generated for - Python 2 and Python 3. Python 3 uses the "*" syntax for - keyword-only arguments. - - Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to - improve the behavior when unrecognized enum values are encountered. - While this is not a breaking change, the distinctions are important, - and are documented here: - At a glance: - - "is" should not be used at all. - - "format" will return the string value, where "%s" string - formatting will return `NameOfEnum.stringvalue`. Format syntax - should be prefered. - - New Long Running Operation: - - Return type changes from - `msrestazure.azure_operation.AzureOperationPoller` to - `msrest.polling.LROPoller`. External API is the same. - - Return type is now **always** a `msrest.polling.LROPoller`, - regardless of the optional parameters used. - - The behavior has changed when using `raw=True`. Instead of - returning the initial call result as `ClientRawResponse`, - without polling, now this returns an LROPoller. After polling, - the final resource will be returned as a `ClientRawResponse`. - - New `polling` parameter. The default behavior is - `Polling=True` which will poll using ARM algorithm. When - `Polling=False`, the response of the initial call will be - returned without polling. - - `polling` parameter accepts instances of subclasses of - `msrest.polling.PollingMethod`. - - `add_done_callback` will no longer raise if called after - polling is finished, but will instead execute the callback right - away. - -**Bugfixes** - - - Compatibility of the sdist with wheel 0.31.0 - -## 0.1.2 (2019-03-12) - - - Updating permissible versions of the msrestazure package to unblock - [Azure/azure-cli#6973](https://github.com/Azure/azure-cli/issues/6973). - -## 0.1.1 (2017-08-09) - -**Bug fixes** - - - Fix duration parsing (#1214) - -## 0.1.0 (2017-06-05) - - - Initial Release diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/MANIFEST.in b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/MANIFEST.in deleted file mode 100644 index a3cb07df8765..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -recursive-include tests *.py *.yaml -include *.md -include azure/__init__.py -include azure/mgmt/__init__.py - diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.md b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.md deleted file mode 100644 index 59dbbf7b6a28..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Microsoft Azure SDK for Python - -This is the Microsoft Azure Recovery Services Backup Management Client Library. -This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. -For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). - - -# Usage - -For code examples, see [Recovery Services Backup Management](https://docs.microsoft.com/python/api/overview/azure/recovery-services-backup) -on docs.microsoft.com. - - -# 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. - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-recoveryservicesbackup%2FREADME.png) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/__init__.py deleted file mode 100644 index 0260537a02bb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py deleted file mode 100644 index 532f7573f13f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# 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 ._configuration import RecoveryServicesBackupClientConfiguration -from ._recovery_services_backup_client import RecoveryServicesBackupClient -__all__ = ['RecoveryServicesBackupClient', 'RecoveryServicesBackupClientConfiguration'] - -from .version import VERSION - -__version__ = VERSION - diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_configuration.py deleted file mode 100644 index 30087335ec85..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_configuration.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 msrestazure import AzureConfiguration - -from .version import VERSION - - -class RecoveryServicesBackupClientConfiguration(AzureConfiguration): - """Configuration for RecoveryServicesBackupClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription Id. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(RecoveryServicesBackupClientConfiguration, self).__init__(base_url) - - # Starting Autorest.Python 4.0.64, make connection pool activated by default - self.keep_alive = True - - self.add_user_agent('azure-mgmt-recoveryservicesbackup/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py deleted file mode 100644 index 85a49fbd5e78..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py +++ /dev/null @@ -1,239 +0,0 @@ -# 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.service_client import SDKClient -from msrest import Serializer, Deserializer - -from ._configuration import RecoveryServicesBackupClientConfiguration -from .operations import RecoveryServicesBackupClientOperationsMixin -from .operations import PrivateEndpointConnectionOperations -from .operations import BackupResourceVaultConfigsOperations -from .operations import ProtectedItemsOperations -from .operations import ProtectedItemOperationResultsOperations -from .operations import RecoveryPointsOperations -from .operations import RestoresOperations -from .operations import BackupPoliciesOperations -from .operations import ProtectionPoliciesOperations -from .operations import ProtectionPolicyOperationResultsOperations -from .operations import BackupJobsOperations -from .operations import JobDetailsOperations -from .operations import JobCancellationsOperations -from .operations import JobOperationResultsOperations -from .operations import ExportJobsOperationResultsOperations -from .operations import JobsOperations -from .operations import BackupProtectedItemsOperations -from .operations import OperationOperations -from .operations import ProtectionIntentOperations -from .operations import BackupStatusOperations -from .operations import FeatureSupportOperations -from .operations import BackupProtectionIntentOperations -from .operations import BackupUsageSummariesOperations -from .operations import BackupEnginesOperations -from .operations import ProtectionContainerRefreshOperationResultsOperations -from .operations import ProtectableContainersOperations -from .operations import ProtectionContainersOperations -from .operations import BackupWorkloadItemsOperations -from .operations import ProtectionContainerOperationResultsOperations -from .operations import BackupsOperations -from .operations import ProtectedItemOperationStatusesOperations -from .operations import ItemLevelRecoveryConnectionsOperations -from .operations import BackupOperationResultsOperations -from .operations import BackupOperationStatusesOperations -from .operations import ProtectionPolicyOperationStatusesOperations -from .operations import BackupProtectableItemsOperations -from .operations import BackupProtectionContainersOperations -from .operations import SecurityPINsOperations -from .operations import BackupResourceStorageConfigsOperations -from .operations import Operations -from . import models - - -class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin, SDKClient): - """Open API 2.0 Specs for Azure RecoveryServices Backup service - - :ivar config: Configuration for client. - :vartype config: RecoveryServicesBackupClientConfiguration - - :ivar private_endpoint_connection: PrivateEndpointConnection operations - :vartype private_endpoint_connection: azure.mgmt.recoveryservicesbackup.operations.PrivateEndpointConnectionOperations - :ivar backup_resource_vault_configs: BackupResourceVaultConfigs operations - :vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceVaultConfigsOperations - :ivar protected_items: ProtectedItems operations - :vartype protected_items: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemsOperations - :ivar protected_item_operation_results: ProtectedItemOperationResults operations - :vartype protected_item_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemOperationResultsOperations - :ivar recovery_points: RecoveryPoints operations - :vartype recovery_points: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsOperations - :ivar restores: Restores operations - :vartype restores: azure.mgmt.recoveryservicesbackup.operations.RestoresOperations - :ivar backup_policies: BackupPolicies operations - :vartype backup_policies: azure.mgmt.recoveryservicesbackup.operations.BackupPoliciesOperations - :ivar protection_policies: ProtectionPolicies operations - :vartype protection_policies: azure.mgmt.recoveryservicesbackup.operations.ProtectionPoliciesOperations - :ivar protection_policy_operation_results: ProtectionPolicyOperationResults operations - :vartype protection_policy_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectionPolicyOperationResultsOperations - :ivar backup_jobs: BackupJobs operations - :vartype backup_jobs: azure.mgmt.recoveryservicesbackup.operations.BackupJobsOperations - :ivar job_details: JobDetails operations - :vartype job_details: azure.mgmt.recoveryservicesbackup.operations.JobDetailsOperations - :ivar job_cancellations: JobCancellations operations - :vartype job_cancellations: azure.mgmt.recoveryservicesbackup.operations.JobCancellationsOperations - :ivar job_operation_results: JobOperationResults operations - :vartype job_operation_results: azure.mgmt.recoveryservicesbackup.operations.JobOperationResultsOperations - :ivar export_jobs_operation_results: ExportJobsOperationResults operations - :vartype export_jobs_operation_results: azure.mgmt.recoveryservicesbackup.operations.ExportJobsOperationResultsOperations - :ivar jobs: Jobs operations - :vartype jobs: azure.mgmt.recoveryservicesbackup.operations.JobsOperations - :ivar backup_protected_items: BackupProtectedItems operations - :vartype backup_protected_items: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsOperations - :ivar operation: Operation operations - :vartype operation: azure.mgmt.recoveryservicesbackup.operations.OperationOperations - :ivar protection_intent: ProtectionIntent operations - :vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations - :ivar backup_status: BackupStatus operations - :vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations - :ivar feature_support: FeatureSupport operations - :vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations - :ivar backup_protection_intent: BackupProtectionIntent operations - :vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations - :ivar backup_usage_summaries: BackupUsageSummaries operations - :vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations - :ivar backup_engines: BackupEngines operations - :vartype backup_engines: azure.mgmt.recoveryservicesbackup.operations.BackupEnginesOperations - :ivar protection_container_refresh_operation_results: ProtectionContainerRefreshOperationResults operations - :vartype protection_container_refresh_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectionContainerRefreshOperationResultsOperations - :ivar protectable_containers: ProtectableContainers operations - :vartype protectable_containers: azure.mgmt.recoveryservicesbackup.operations.ProtectableContainersOperations - :ivar protection_containers: ProtectionContainers operations - :vartype protection_containers: azure.mgmt.recoveryservicesbackup.operations.ProtectionContainersOperations - :ivar backup_workload_items: BackupWorkloadItems operations - :vartype backup_workload_items: azure.mgmt.recoveryservicesbackup.operations.BackupWorkloadItemsOperations - :ivar protection_container_operation_results: ProtectionContainerOperationResults operations - :vartype protection_container_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectionContainerOperationResultsOperations - :ivar backups: Backups operations - :vartype backups: azure.mgmt.recoveryservicesbackup.operations.BackupsOperations - :ivar protected_item_operation_statuses: ProtectedItemOperationStatuses operations - :vartype protected_item_operation_statuses: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemOperationStatusesOperations - :ivar item_level_recovery_connections: ItemLevelRecoveryConnections operations - :vartype item_level_recovery_connections: azure.mgmt.recoveryservicesbackup.operations.ItemLevelRecoveryConnectionsOperations - :ivar backup_operation_results: BackupOperationResults operations - :vartype backup_operation_results: azure.mgmt.recoveryservicesbackup.operations.BackupOperationResultsOperations - :ivar backup_operation_statuses: BackupOperationStatuses operations - :vartype backup_operation_statuses: azure.mgmt.recoveryservicesbackup.operations.BackupOperationStatusesOperations - :ivar protection_policy_operation_statuses: ProtectionPolicyOperationStatuses operations - :vartype protection_policy_operation_statuses: azure.mgmt.recoveryservicesbackup.operations.ProtectionPolicyOperationStatusesOperations - :ivar backup_protectable_items: BackupProtectableItems operations - :vartype backup_protectable_items: azure.mgmt.recoveryservicesbackup.operations.BackupProtectableItemsOperations - :ivar backup_protection_containers: BackupProtectionContainers operations - :vartype backup_protection_containers: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionContainersOperations - :ivar security_pi_ns: SecurityPINs operations - :vartype security_pi_ns: azure.mgmt.recoveryservicesbackup.operations.SecurityPINsOperations - :ivar backup_resource_storage_configs: BackupResourceStorageConfigs operations - :vartype backup_resource_storage_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceStorageConfigsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.recoveryservicesbackup.operations.Operations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription Id. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = RecoveryServicesBackupClientConfiguration(credentials, subscription_id, base_url) - super(RecoveryServicesBackupClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.private_endpoint_connection = PrivateEndpointConnectionOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protected_items = ProtectedItemsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protected_item_operation_results = ProtectedItemOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.recovery_points = RecoveryPointsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.restores = RestoresOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_policies = BackupPoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protection_policies = ProtectionPoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protection_policy_operation_results = ProtectionPolicyOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_jobs = BackupJobsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.job_details = JobDetailsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.job_cancellations = JobCancellationsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.job_operation_results = JobOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.export_jobs_operation_results = ExportJobsOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.jobs = JobsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_protected_items = BackupProtectedItemsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operation = OperationOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protection_intent = ProtectionIntentOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_status = BackupStatusOperations( - self._client, self.config, self._serialize, self._deserialize) - self.feature_support = FeatureSupportOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_protection_intent = BackupProtectionIntentOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_usage_summaries = BackupUsageSummariesOperations( - 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( - self._client, self.config, self._serialize, self._deserialize) - self.protectable_containers = ProtectableContainersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protection_containers = ProtectionContainersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_workload_items = BackupWorkloadItemsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protection_container_operation_results = ProtectionContainerOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backups = BackupsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protected_item_operation_statuses = ProtectedItemOperationStatusesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.item_level_recovery_connections = ItemLevelRecoveryConnectionsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_operation_results = BackupOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_operation_statuses = BackupOperationStatusesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protection_policy_operation_statuses = ProtectionPolicyOperationStatusesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_protectable_items = BackupProtectableItemsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_protection_containers = BackupProtectionContainersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.security_pi_ns = SecurityPINsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_resource_storage_configs = BackupResourceStorageConfigsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py deleted file mode 100644 index 58bcf2c52594..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py +++ /dev/null @@ -1,862 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import AzureBackupGoalFeatureSupportRequest - from ._models_py3 import AzureBackupServerContainer - from ._models_py3 import AzureBackupServerEngine - from ._models_py3 import AzureFileShareBackupRequest - from ._models_py3 import AzureFileShareProtectableItem - from ._models_py3 import AzureFileshareProtectedItem - from ._models_py3 import AzureFileshareProtectedItemExtendedInfo - from ._models_py3 import AzureFileShareProtectionPolicy - from ._models_py3 import AzureFileShareProvisionILRRequest - from ._models_py3 import AzureFileShareRecoveryPoint - from ._models_py3 import AzureFileShareRestoreRequest - from ._models_py3 import AzureIaaSClassicComputeVMContainer - from ._models_py3 import AzureIaaSClassicComputeVMProtectableItem - from ._models_py3 import AzureIaaSClassicComputeVMProtectedItem - from ._models_py3 import AzureIaaSComputeVMContainer - from ._models_py3 import AzureIaaSComputeVMProtectableItem - from ._models_py3 import AzureIaaSComputeVMProtectedItem - from ._models_py3 import AzureIaaSVMErrorInfo - from ._models_py3 import AzureIaaSVMHealthDetails - from ._models_py3 import AzureIaaSVMJob - from ._models_py3 import AzureIaaSVMJobExtendedInfo - from ._models_py3 import AzureIaaSVMJobTaskDetails - from ._models_py3 import AzureIaaSVMProtectedItem - from ._models_py3 import AzureIaaSVMProtectedItemExtendedInfo - from ._models_py3 import AzureIaaSVMProtectionPolicy - from ._models_py3 import AzureRecoveryServiceVaultProtectionIntent - from ._models_py3 import AzureResourceProtectionIntent - from ._models_py3 import AzureSQLAGWorkloadContainerProtectionContainer - from ._models_py3 import AzureSqlContainer - from ._models_py3 import AzureSqlProtectedItem - from ._models_py3 import AzureSqlProtectedItemExtendedInfo - from ._models_py3 import AzureSqlProtectionPolicy - from ._models_py3 import AzureStorageContainer - from ._models_py3 import AzureStorageErrorInfo - from ._models_py3 import AzureStorageJob - from ._models_py3 import AzureStorageJobExtendedInfo - from ._models_py3 import AzureStorageJobTaskDetails - from ._models_py3 import AzureStorageProtectableContainer - from ._models_py3 import AzureVMAppContainerProtectableContainer - from ._models_py3 import AzureVMAppContainerProtectionContainer - from ._models_py3 import AzureVMResourceFeatureSupportRequest - from ._models_py3 import AzureVMResourceFeatureSupportResponse - from ._models_py3 import AzureVmWorkloadItem - from ._models_py3 import AzureVmWorkloadProtectableItem - from ._models_py3 import AzureVmWorkloadProtectedItem - from ._models_py3 import AzureVmWorkloadProtectedItemExtendedInfo - from ._models_py3 import AzureVmWorkloadProtectionPolicy - from ._models_py3 import AzureVmWorkloadSAPAseDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSAPAseDatabaseWorkloadItem - from ._models_py3 import AzureVmWorkloadSAPAseSystemProtectableItem - from ._models_py3 import AzureVmWorkloadSAPAseSystemWorkloadItem - from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectableItem - from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseWorkloadItem - from ._models_py3 import AzureVmWorkloadSAPHanaSystemProtectableItem - from ._models_py3 import AzureVmWorkloadSAPHanaSystemWorkloadItem - from ._models_py3 import AzureVmWorkloadSQLAvailabilityGroupProtectableItem - from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectableItem - from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSQLDatabaseWorkloadItem - from ._models_py3 import AzureVmWorkloadSQLInstanceProtectableItem - from ._models_py3 import AzureVmWorkloadSQLInstanceWorkloadItem - from ._models_py3 import AzureWorkloadAutoProtectionIntent - from ._models_py3 import AzureWorkloadBackupRequest - from ._models_py3 import AzureWorkloadContainer - from ._models_py3 import AzureWorkloadContainerExtendedInfo - from ._models_py3 import AzureWorkloadErrorInfo - from ._models_py3 import AzureWorkloadJob - from ._models_py3 import AzureWorkloadJobExtendedInfo - from ._models_py3 import AzureWorkloadJobTaskDetails - from ._models_py3 import AzureWorkloadPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadRecoveryPoint - from ._models_py3 import AzureWorkloadRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaRecoveryPoint - from ._models_py3 import AzureWorkloadSAPHanaRestoreRequest - from ._models_py3 import AzureWorkloadSQLAutoProtectionIntent - from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSQLRecoveryPoint - from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo - from ._models_py3 import AzureWorkloadSQLRestoreRequest - from ._models_py3 import BackupEngineBase - from ._models_py3 import BackupEngineBaseResource - from ._models_py3 import BackupEngineExtendedInfo - from ._models_py3 import BackupManagementUsage - from ._models_py3 import BackupRequest - from ._models_py3 import BackupRequestResource - from ._models_py3 import BackupResourceConfig - from ._models_py3 import BackupResourceConfigResource - from ._models_py3 import BackupResourceVaultConfig - from ._models_py3 import BackupResourceVaultConfigResource - from ._models_py3 import BackupStatusRequest - from ._models_py3 import BackupStatusResponse - from ._models_py3 import BEKDetails - from ._models_py3 import BMSBackupEngineQueryObject - from ._models_py3 import BMSBackupEnginesQueryObject - from ._models_py3 import BMSBackupSummariesQueryObject - from ._models_py3 import BMSContainerQueryObject - from ._models_py3 import BMSContainersInquiryQueryObject - from ._models_py3 import BMSPOQueryObject - from ._models_py3 import BMSRefreshContainersQueryObject - from ._models_py3 import BMSRPQueryObject - from ._models_py3 import BMSWorkloadItemQueryObject - from ._models_py3 import ClientDiscoveryDisplay - from ._models_py3 import ClientDiscoveryForLogSpecification - from ._models_py3 import ClientDiscoveryForProperties - from ._models_py3 import ClientDiscoveryForServiceSpecification - from ._models_py3 import ClientDiscoveryValueForSingleApi - from ._models_py3 import ClientScriptForConnect - from ._models_py3 import ContainerIdentityInfo - from ._models_py3 import DailyRetentionFormat - from ._models_py3 import DailyRetentionSchedule - from ._models_py3 import Day - from ._models_py3 import DiskExclusionProperties - from ._models_py3 import DiskInformation - from ._models_py3 import DistributedNodesInfo - from ._models_py3 import DpmBackupEngine - from ._models_py3 import DpmContainer - from ._models_py3 import DPMContainerExtendedInfo - from ._models_py3 import DpmErrorInfo - from ._models_py3 import DpmJob - from ._models_py3 import DpmJobExtendedInfo - from ._models_py3 import DpmJobTaskDetails - from ._models_py3 import DPMProtectedItem - from ._models_py3 import DPMProtectedItemExtendedInfo - from ._models_py3 import EncryptionDetails - from ._models_py3 import ErrorAdditionalInfo - from ._models_py3 import ErrorDetail - from ._models_py3 import ErrorResponse, ErrorResponseException - from ._models_py3 import ExportJobsOperationResultInfo - from ._models_py3 import ExtendedProperties - from ._models_py3 import FeatureSupportRequest - from ._models_py3 import GenericContainer - from ._models_py3 import GenericContainerExtendedInfo - from ._models_py3 import GenericProtectedItem - from ._models_py3 import GenericProtectionPolicy - from ._models_py3 import GenericRecoveryPoint - from ._models_py3 import GetProtectedItemQueryObject - from ._models_py3 import IaasVMBackupRequest - from ._models_py3 import IaaSVMContainer - from ._models_py3 import IaasVMILRRegistrationRequest - from ._models_py3 import IaaSVMProtectableItem - from ._models_py3 import IaasVMRecoveryPoint - from ._models_py3 import IaasVMRestoreRequest - from ._models_py3 import ILRRequest - from ._models_py3 import ILRRequestResource - from ._models_py3 import InquiryInfo - from ._models_py3 import InquiryValidation - from ._models_py3 import InstantItemRecoveryTarget - from ._models_py3 import InstantRPAdditionalDetails - from ._models_py3 import Job - from ._models_py3 import JobQueryObject - from ._models_py3 import JobResource - from ._models_py3 import KEKDetails - from ._models_py3 import KeyAndSecretDetails - from ._models_py3 import LogSchedulePolicy - from ._models_py3 import LongTermRetentionPolicy - from ._models_py3 import LongTermSchedulePolicy - from ._models_py3 import MabContainer - from ._models_py3 import MabContainerExtendedInfo - from ._models_py3 import MABContainerHealthDetails - from ._models_py3 import MabErrorInfo - from ._models_py3 import MabFileFolderProtectedItem - from ._models_py3 import MabFileFolderProtectedItemExtendedInfo - from ._models_py3 import MabJob - from ._models_py3 import MabJobExtendedInfo - from ._models_py3 import MabJobTaskDetails - from ._models_py3 import MabProtectionPolicy - from ._models_py3 import MonthlyRetentionSchedule - from ._models_py3 import NameInfo - from ._models_py3 import OperationResultInfo - from ._models_py3 import OperationResultInfoBase - from ._models_py3 import OperationResultInfoBaseResource - from ._models_py3 import OperationStatus - from ._models_py3 import OperationStatusError - from ._models_py3 import OperationStatusExtendedInfo - from ._models_py3 import OperationStatusJobExtendedInfo - from ._models_py3 import OperationStatusJobsExtendedInfo - from ._models_py3 import OperationStatusProvisionILRExtendedInfo - from ._models_py3 import OperationWorkerResponse - from ._models_py3 import PointInTimeRange - from ._models_py3 import PreBackupValidation - from ._models_py3 import PreValidateEnableBackupRequest - from ._models_py3 import PreValidateEnableBackupResponse - from ._models_py3 import PrivateEndpoint - from ._models_py3 import PrivateEndpointConnection - from ._models_py3 import PrivateEndpointConnectionResource - from ._models_py3 import PrivateLinkServiceConnectionState - from ._models_py3 import ProtectableContainer - from ._models_py3 import ProtectableContainerResource - from ._models_py3 import ProtectedItem - from ._models_py3 import ProtectedItemQueryObject - from ._models_py3 import ProtectedItemResource - from ._models_py3 import ProtectionContainer - from ._models_py3 import ProtectionContainerResource - from ._models_py3 import ProtectionIntent - from ._models_py3 import ProtectionIntentQueryObject - from ._models_py3 import ProtectionIntentResource - from ._models_py3 import ProtectionPolicy - from ._models_py3 import ProtectionPolicyQueryObject - from ._models_py3 import ProtectionPolicyResource - from ._models_py3 import RecoveryPoint - from ._models_py3 import RecoveryPointDiskConfiguration - from ._models_py3 import RecoveryPointResource - from ._models_py3 import RecoveryPointTierInformation - from ._models_py3 import Resource - from ._models_py3 import ResourceList - from ._models_py3 import RestoreFileSpecs - from ._models_py3 import RestoreRequest - from ._models_py3 import RestoreRequestResource - from ._models_py3 import RetentionDuration - from ._models_py3 import RetentionPolicy - from ._models_py3 import SchedulePolicy - from ._models_py3 import Settings - from ._models_py3 import SimpleRetentionPolicy - from ._models_py3 import SimpleSchedulePolicy - from ._models_py3 import SQLDataDirectory - from ._models_py3 import SQLDataDirectoryMapping - from ._models_py3 import SubProtectionPolicy - from ._models_py3 import TargetAFSRestoreInfo - from ._models_py3 import TargetRestoreInfo - from ._models_py3 import TokenInformation - from ._models_py3 import ValidateIaasVMRestoreOperationRequest - from ._models_py3 import ValidateOperationRequest - from ._models_py3 import ValidateOperationResponse - from ._models_py3 import ValidateOperationsResponse - from ._models_py3 import ValidateRestoreOperationRequest - from ._models_py3 import WeeklyRetentionFormat - from ._models_py3 import WeeklyRetentionSchedule - from ._models_py3 import WorkloadInquiryDetails - from ._models_py3 import WorkloadItem - from ._models_py3 import WorkloadItemResource - from ._models_py3 import WorkloadProtectableItem - from ._models_py3 import WorkloadProtectableItemResource - from ._models_py3 import YearlyRetentionSchedule -except (SyntaxError, ImportError): - from ._models import AzureBackupGoalFeatureSupportRequest - from ._models import AzureBackupServerContainer - from ._models import AzureBackupServerEngine - from ._models import AzureFileShareBackupRequest - from ._models import AzureFileShareProtectableItem - from ._models import AzureFileshareProtectedItem - from ._models import AzureFileshareProtectedItemExtendedInfo - from ._models import AzureFileShareProtectionPolicy - from ._models import AzureFileShareProvisionILRRequest - from ._models import AzureFileShareRecoveryPoint - from ._models import AzureFileShareRestoreRequest - from ._models import AzureIaaSClassicComputeVMContainer - from ._models import AzureIaaSClassicComputeVMProtectableItem - from ._models import AzureIaaSClassicComputeVMProtectedItem - from ._models import AzureIaaSComputeVMContainer - from ._models import AzureIaaSComputeVMProtectableItem - from ._models import AzureIaaSComputeVMProtectedItem - from ._models import AzureIaaSVMErrorInfo - from ._models import AzureIaaSVMHealthDetails - from ._models import AzureIaaSVMJob - from ._models import AzureIaaSVMJobExtendedInfo - from ._models import AzureIaaSVMJobTaskDetails - from ._models import AzureIaaSVMProtectedItem - from ._models import AzureIaaSVMProtectedItemExtendedInfo - from ._models import AzureIaaSVMProtectionPolicy - from ._models import AzureRecoveryServiceVaultProtectionIntent - from ._models import AzureResourceProtectionIntent - from ._models import AzureSQLAGWorkloadContainerProtectionContainer - from ._models import AzureSqlContainer - from ._models import AzureSqlProtectedItem - from ._models import AzureSqlProtectedItemExtendedInfo - from ._models import AzureSqlProtectionPolicy - from ._models import AzureStorageContainer - from ._models import AzureStorageErrorInfo - from ._models import AzureStorageJob - from ._models import AzureStorageJobExtendedInfo - from ._models import AzureStorageJobTaskDetails - from ._models import AzureStorageProtectableContainer - from ._models import AzureVMAppContainerProtectableContainer - from ._models import AzureVMAppContainerProtectionContainer - from ._models import AzureVMResourceFeatureSupportRequest - from ._models import AzureVMResourceFeatureSupportResponse - from ._models import AzureVmWorkloadItem - from ._models import AzureVmWorkloadProtectableItem - from ._models import AzureVmWorkloadProtectedItem - from ._models import AzureVmWorkloadProtectedItemExtendedInfo - from ._models import AzureVmWorkloadProtectionPolicy - from ._models import AzureVmWorkloadSAPAseDatabaseProtectedItem - from ._models import AzureVmWorkloadSAPAseDatabaseWorkloadItem - from ._models import AzureVmWorkloadSAPAseSystemProtectableItem - from ._models import AzureVmWorkloadSAPAseSystemWorkloadItem - from ._models import AzureVmWorkloadSAPHanaDatabaseProtectableItem - from ._models import AzureVmWorkloadSAPHanaDatabaseProtectedItem - from ._models import AzureVmWorkloadSAPHanaDatabaseWorkloadItem - from ._models import AzureVmWorkloadSAPHanaSystemProtectableItem - from ._models import AzureVmWorkloadSAPHanaSystemWorkloadItem - from ._models import AzureVmWorkloadSQLAvailabilityGroupProtectableItem - from ._models import AzureVmWorkloadSQLDatabaseProtectableItem - from ._models import AzureVmWorkloadSQLDatabaseProtectedItem - from ._models import AzureVmWorkloadSQLDatabaseWorkloadItem - from ._models import AzureVmWorkloadSQLInstanceProtectableItem - from ._models import AzureVmWorkloadSQLInstanceWorkloadItem - from ._models import AzureWorkloadAutoProtectionIntent - from ._models import AzureWorkloadBackupRequest - from ._models import AzureWorkloadContainer - from ._models import AzureWorkloadContainerExtendedInfo - from ._models import AzureWorkloadErrorInfo - from ._models import AzureWorkloadJob - from ._models import AzureWorkloadJobExtendedInfo - from ._models import AzureWorkloadJobTaskDetails - from ._models import AzureWorkloadPointInTimeRecoveryPoint - from ._models import AzureWorkloadPointInTimeRestoreRequest - from ._models import AzureWorkloadRecoveryPoint - from ._models import AzureWorkloadRestoreRequest - from ._models import AzureWorkloadSAPHanaPointInTimeRecoveryPoint - from ._models import AzureWorkloadSAPHanaPointInTimeRestoreRequest - from ._models import AzureWorkloadSAPHanaRecoveryPoint - from ._models import AzureWorkloadSAPHanaRestoreRequest - from ._models import AzureWorkloadSQLAutoProtectionIntent - from ._models import AzureWorkloadSQLPointInTimeRecoveryPoint - from ._models import AzureWorkloadSQLPointInTimeRestoreRequest - from ._models import AzureWorkloadSQLRecoveryPoint - from ._models import AzureWorkloadSQLRecoveryPointExtendedInfo - from ._models import AzureWorkloadSQLRestoreRequest - from ._models import BackupEngineBase - from ._models import BackupEngineBaseResource - from ._models import BackupEngineExtendedInfo - from ._models import BackupManagementUsage - from ._models import BackupRequest - from ._models import BackupRequestResource - from ._models import BackupResourceConfig - from ._models import BackupResourceConfigResource - from ._models import BackupResourceVaultConfig - from ._models import BackupResourceVaultConfigResource - from ._models import BackupStatusRequest - from ._models import BackupStatusResponse - from ._models import BEKDetails - from ._models import BMSBackupEngineQueryObject - from ._models import BMSBackupEnginesQueryObject - from ._models import BMSBackupSummariesQueryObject - from ._models import BMSContainerQueryObject - from ._models import BMSContainersInquiryQueryObject - from ._models import BMSPOQueryObject - from ._models import BMSRefreshContainersQueryObject - from ._models import BMSRPQueryObject - from ._models import BMSWorkloadItemQueryObject - from ._models import ClientDiscoveryDisplay - from ._models import ClientDiscoveryForLogSpecification - from ._models import ClientDiscoveryForProperties - from ._models import ClientDiscoveryForServiceSpecification - from ._models import ClientDiscoveryValueForSingleApi - from ._models import ClientScriptForConnect - from ._models import ContainerIdentityInfo - from ._models import DailyRetentionFormat - from ._models import DailyRetentionSchedule - from ._models import Day - from ._models import DiskExclusionProperties - from ._models import DiskInformation - from ._models import DistributedNodesInfo - from ._models import DpmBackupEngine - from ._models import DpmContainer - from ._models import DPMContainerExtendedInfo - from ._models import DpmErrorInfo - from ._models import DpmJob - from ._models import DpmJobExtendedInfo - from ._models import DpmJobTaskDetails - from ._models import DPMProtectedItem - from ._models import DPMProtectedItemExtendedInfo - from ._models import EncryptionDetails - from ._models import ErrorAdditionalInfo - from ._models import ErrorDetail - from ._models import ErrorResponse, ErrorResponseException - from ._models import ExportJobsOperationResultInfo - from ._models import ExtendedProperties - from ._models import FeatureSupportRequest - from ._models import GenericContainer - from ._models import GenericContainerExtendedInfo - from ._models import GenericProtectedItem - from ._models import GenericProtectionPolicy - from ._models import GenericRecoveryPoint - from ._models import GetProtectedItemQueryObject - from ._models import IaasVMBackupRequest - from ._models import IaaSVMContainer - from ._models import IaasVMILRRegistrationRequest - from ._models import IaaSVMProtectableItem - from ._models import IaasVMRecoveryPoint - from ._models import IaasVMRestoreRequest - from ._models import ILRRequest - from ._models import ILRRequestResource - from ._models import InquiryInfo - from ._models import InquiryValidation - from ._models import InstantItemRecoveryTarget - from ._models import InstantRPAdditionalDetails - from ._models import Job - from ._models import JobQueryObject - from ._models import JobResource - from ._models import KEKDetails - from ._models import KeyAndSecretDetails - from ._models import LogSchedulePolicy - from ._models import LongTermRetentionPolicy - from ._models import LongTermSchedulePolicy - from ._models import MabContainer - from ._models import MabContainerExtendedInfo - from ._models import MABContainerHealthDetails - from ._models import MabErrorInfo - from ._models import MabFileFolderProtectedItem - from ._models import MabFileFolderProtectedItemExtendedInfo - from ._models import MabJob - from ._models import MabJobExtendedInfo - from ._models import MabJobTaskDetails - from ._models import MabProtectionPolicy - from ._models import MonthlyRetentionSchedule - from ._models import NameInfo - from ._models import OperationResultInfo - from ._models import OperationResultInfoBase - from ._models import OperationResultInfoBaseResource - from ._models import OperationStatus - from ._models import OperationStatusError - from ._models import OperationStatusExtendedInfo - from ._models import OperationStatusJobExtendedInfo - from ._models import OperationStatusJobsExtendedInfo - from ._models import OperationStatusProvisionILRExtendedInfo - from ._models import OperationWorkerResponse - from ._models import PointInTimeRange - from ._models import PreBackupValidation - from ._models import PreValidateEnableBackupRequest - from ._models import PreValidateEnableBackupResponse - from ._models import PrivateEndpoint - from ._models import PrivateEndpointConnection - from ._models import PrivateEndpointConnectionResource - from ._models import PrivateLinkServiceConnectionState - from ._models import ProtectableContainer - from ._models import ProtectableContainerResource - from ._models import ProtectedItem - from ._models import ProtectedItemQueryObject - from ._models import ProtectedItemResource - from ._models import ProtectionContainer - from ._models import ProtectionContainerResource - from ._models import ProtectionIntent - from ._models import ProtectionIntentQueryObject - from ._models import ProtectionIntentResource - from ._models import ProtectionPolicy - from ._models import ProtectionPolicyQueryObject - from ._models import ProtectionPolicyResource - from ._models import RecoveryPoint - from ._models import RecoveryPointDiskConfiguration - from ._models import RecoveryPointResource - from ._models import RecoveryPointTierInformation - from ._models import Resource - from ._models import ResourceList - from ._models import RestoreFileSpecs - from ._models import RestoreRequest - from ._models import RestoreRequestResource - from ._models import RetentionDuration - from ._models import RetentionPolicy - from ._models import SchedulePolicy - from ._models import Settings - from ._models import SimpleRetentionPolicy - from ._models import SimpleSchedulePolicy - from ._models import SQLDataDirectory - from ._models import SQLDataDirectoryMapping - from ._models import SubProtectionPolicy - from ._models import TargetAFSRestoreInfo - from ._models import TargetRestoreInfo - from ._models import TokenInformation - from ._models import ValidateIaasVMRestoreOperationRequest - from ._models import ValidateOperationRequest - from ._models import ValidateOperationResponse - from ._models import ValidateOperationsResponse - from ._models import ValidateRestoreOperationRequest - from ._models import WeeklyRetentionFormat - from ._models import WeeklyRetentionSchedule - from ._models import WorkloadInquiryDetails - from ._models import WorkloadItem - from ._models import WorkloadItemResource - from ._models import WorkloadProtectableItem - from ._models import WorkloadProtectableItemResource - from ._models import YearlyRetentionSchedule -from ._paged_models import BackupEngineBaseResourcePaged -from ._paged_models import BackupManagementUsagePaged -from ._paged_models import ClientDiscoveryValueForSingleApiPaged -from ._paged_models import JobResourcePaged -from ._paged_models import ProtectableContainerResourcePaged -from ._paged_models import ProtectedItemResourcePaged -from ._paged_models import ProtectionContainerResourcePaged -from ._paged_models import ProtectionIntentResourcePaged -from ._paged_models import ProtectionPolicyResourcePaged -from ._paged_models import RecoveryPointResourcePaged -from ._paged_models import WorkloadItemResourcePaged -from ._paged_models import WorkloadProtectableItemResourcePaged -from ._recovery_services_backup_client_enums import ( - OperationStatusValues, - ProvisioningState, - PrivateEndpointConnectionStatus, - ProtectionState, - HealthStatus, - RecoveryType, - CopyOptions, - RestoreRequestType, - WorkloadType, - PolicyType, - JobSupportedAction, - ProtectedItemState, - LastBackupStatus, - ProtectedItemHealthStatus, - RestorePointType, - OverwriteOptions, - RecoveryMode, - SQLDataDirectoryType, - StorageType, - StorageTypeState, - EnhancedSecurityState, - SoftDeleteFeatureState, - RestorePointQueryType, - RetentionDurationType, - RecoveryPointTierType, - RecoveryPointTierStatus, - BackupManagementType, - JobStatus, - JobOperationType, - DayOfWeek, - RetentionScheduleFormat, - WeekOfMonth, - MonthOfYear, - MabServerType, - HttpStatusCode, - DataSourceType, - CreateMode, - HealthState, - ScheduleRunType, - SupportStatus, - WorkloadItemType, - UsagesUnit, - ProtectionStatus, - FabricName, - Type, - ValidationStatus, - IntentItemType, - AzureFileShareType, - InquiryStatus, - BackupType, - OperationType, - ContainerType, - BackupItemType, -) - -__all__ = [ - 'AzureBackupGoalFeatureSupportRequest', - 'AzureBackupServerContainer', - 'AzureBackupServerEngine', - 'AzureFileShareBackupRequest', - 'AzureFileShareProtectableItem', - 'AzureFileshareProtectedItem', - 'AzureFileshareProtectedItemExtendedInfo', - 'AzureFileShareProtectionPolicy', - 'AzureFileShareProvisionILRRequest', - 'AzureFileShareRecoveryPoint', - 'AzureFileShareRestoreRequest', - 'AzureIaaSClassicComputeVMContainer', - 'AzureIaaSClassicComputeVMProtectableItem', - 'AzureIaaSClassicComputeVMProtectedItem', - 'AzureIaaSComputeVMContainer', - 'AzureIaaSComputeVMProtectableItem', - 'AzureIaaSComputeVMProtectedItem', - 'AzureIaaSVMErrorInfo', - 'AzureIaaSVMHealthDetails', - 'AzureIaaSVMJob', - 'AzureIaaSVMJobExtendedInfo', - 'AzureIaaSVMJobTaskDetails', - 'AzureIaaSVMProtectedItem', - 'AzureIaaSVMProtectedItemExtendedInfo', - 'AzureIaaSVMProtectionPolicy', - 'AzureRecoveryServiceVaultProtectionIntent', - 'AzureResourceProtectionIntent', - 'AzureSQLAGWorkloadContainerProtectionContainer', - 'AzureSqlContainer', - 'AzureSqlProtectedItem', - 'AzureSqlProtectedItemExtendedInfo', - 'AzureSqlProtectionPolicy', - 'AzureStorageContainer', - 'AzureStorageErrorInfo', - 'AzureStorageJob', - 'AzureStorageJobExtendedInfo', - 'AzureStorageJobTaskDetails', - 'AzureStorageProtectableContainer', - 'AzureVMAppContainerProtectableContainer', - 'AzureVMAppContainerProtectionContainer', - 'AzureVMResourceFeatureSupportRequest', - 'AzureVMResourceFeatureSupportResponse', - 'AzureVmWorkloadItem', - 'AzureVmWorkloadProtectableItem', - 'AzureVmWorkloadProtectedItem', - 'AzureVmWorkloadProtectedItemExtendedInfo', - 'AzureVmWorkloadProtectionPolicy', - 'AzureVmWorkloadSAPAseDatabaseProtectedItem', - 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', - 'AzureVmWorkloadSAPAseSystemProtectableItem', - 'AzureVmWorkloadSAPAseSystemWorkloadItem', - 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', - 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', - 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', - 'AzureVmWorkloadSAPHanaSystemProtectableItem', - 'AzureVmWorkloadSAPHanaSystemWorkloadItem', - 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', - 'AzureVmWorkloadSQLDatabaseProtectableItem', - 'AzureVmWorkloadSQLDatabaseProtectedItem', - 'AzureVmWorkloadSQLDatabaseWorkloadItem', - 'AzureVmWorkloadSQLInstanceProtectableItem', - 'AzureVmWorkloadSQLInstanceWorkloadItem', - 'AzureWorkloadAutoProtectionIntent', - 'AzureWorkloadBackupRequest', - 'AzureWorkloadContainer', - 'AzureWorkloadContainerExtendedInfo', - 'AzureWorkloadErrorInfo', - 'AzureWorkloadJob', - 'AzureWorkloadJobExtendedInfo', - 'AzureWorkloadJobTaskDetails', - 'AzureWorkloadPointInTimeRecoveryPoint', - 'AzureWorkloadPointInTimeRestoreRequest', - 'AzureWorkloadRecoveryPoint', - 'AzureWorkloadRestoreRequest', - 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint', - 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', - 'AzureWorkloadSAPHanaRecoveryPoint', - 'AzureWorkloadSAPHanaRestoreRequest', - 'AzureWorkloadSQLAutoProtectionIntent', - 'AzureWorkloadSQLPointInTimeRecoveryPoint', - 'AzureWorkloadSQLPointInTimeRestoreRequest', - 'AzureWorkloadSQLRecoveryPoint', - 'AzureWorkloadSQLRecoveryPointExtendedInfo', - 'AzureWorkloadSQLRestoreRequest', - 'BackupEngineBase', - 'BackupEngineBaseResource', - 'BackupEngineExtendedInfo', - 'BackupManagementUsage', - 'BackupRequest', - 'BackupRequestResource', - 'BackupResourceConfig', - 'BackupResourceConfigResource', - 'BackupResourceVaultConfig', - 'BackupResourceVaultConfigResource', - 'BackupStatusRequest', - 'BackupStatusResponse', - 'BEKDetails', - 'BMSBackupEngineQueryObject', - 'BMSBackupEnginesQueryObject', - 'BMSBackupSummariesQueryObject', - 'BMSContainerQueryObject', - 'BMSContainersInquiryQueryObject', - 'BMSPOQueryObject', - 'BMSRefreshContainersQueryObject', - 'BMSRPQueryObject', - 'BMSWorkloadItemQueryObject', - 'ClientDiscoveryDisplay', - 'ClientDiscoveryForLogSpecification', - 'ClientDiscoveryForProperties', - 'ClientDiscoveryForServiceSpecification', - 'ClientDiscoveryValueForSingleApi', - 'ClientScriptForConnect', - 'ContainerIdentityInfo', - 'DailyRetentionFormat', - 'DailyRetentionSchedule', - 'Day', - 'DiskExclusionProperties', - 'DiskInformation', - 'DistributedNodesInfo', - 'DpmBackupEngine', - 'DpmContainer', - 'DPMContainerExtendedInfo', - 'DpmErrorInfo', - 'DpmJob', - 'DpmJobExtendedInfo', - 'DpmJobTaskDetails', - 'DPMProtectedItem', - 'DPMProtectedItemExtendedInfo', - 'EncryptionDetails', - 'ErrorAdditionalInfo', - 'ErrorDetail', - 'ErrorResponse', 'ErrorResponseException', - 'ExportJobsOperationResultInfo', - 'ExtendedProperties', - 'FeatureSupportRequest', - 'GenericContainer', - 'GenericContainerExtendedInfo', - 'GenericProtectedItem', - 'GenericProtectionPolicy', - 'GenericRecoveryPoint', - 'GetProtectedItemQueryObject', - 'IaasVMBackupRequest', - 'IaaSVMContainer', - 'IaasVMILRRegistrationRequest', - 'IaaSVMProtectableItem', - 'IaasVMRecoveryPoint', - 'IaasVMRestoreRequest', - 'ILRRequest', - 'ILRRequestResource', - 'InquiryInfo', - 'InquiryValidation', - 'InstantItemRecoveryTarget', - 'InstantRPAdditionalDetails', - 'Job', - 'JobQueryObject', - 'JobResource', - 'KEKDetails', - 'KeyAndSecretDetails', - 'LogSchedulePolicy', - 'LongTermRetentionPolicy', - 'LongTermSchedulePolicy', - 'MabContainer', - 'MabContainerExtendedInfo', - 'MABContainerHealthDetails', - 'MabErrorInfo', - 'MabFileFolderProtectedItem', - 'MabFileFolderProtectedItemExtendedInfo', - 'MabJob', - 'MabJobExtendedInfo', - 'MabJobTaskDetails', - 'MabProtectionPolicy', - 'MonthlyRetentionSchedule', - 'NameInfo', - 'OperationResultInfo', - 'OperationResultInfoBase', - 'OperationResultInfoBaseResource', - 'OperationStatus', - 'OperationStatusError', - 'OperationStatusExtendedInfo', - 'OperationStatusJobExtendedInfo', - 'OperationStatusJobsExtendedInfo', - 'OperationStatusProvisionILRExtendedInfo', - 'OperationWorkerResponse', - 'PointInTimeRange', - 'PreBackupValidation', - 'PreValidateEnableBackupRequest', - 'PreValidateEnableBackupResponse', - 'PrivateEndpoint', - 'PrivateEndpointConnection', - 'PrivateEndpointConnectionResource', - 'PrivateLinkServiceConnectionState', - 'ProtectableContainer', - 'ProtectableContainerResource', - 'ProtectedItem', - 'ProtectedItemQueryObject', - 'ProtectedItemResource', - 'ProtectionContainer', - 'ProtectionContainerResource', - 'ProtectionIntent', - 'ProtectionIntentQueryObject', - 'ProtectionIntentResource', - 'ProtectionPolicy', - 'ProtectionPolicyQueryObject', - 'ProtectionPolicyResource', - 'RecoveryPoint', - 'RecoveryPointDiskConfiguration', - 'RecoveryPointResource', - 'RecoveryPointTierInformation', - 'Resource', - 'ResourceList', - 'RestoreFileSpecs', - 'RestoreRequest', - 'RestoreRequestResource', - 'RetentionDuration', - 'RetentionPolicy', - 'SchedulePolicy', - 'Settings', - 'SimpleRetentionPolicy', - 'SimpleSchedulePolicy', - 'SQLDataDirectory', - 'SQLDataDirectoryMapping', - 'SubProtectionPolicy', - 'TargetAFSRestoreInfo', - 'TargetRestoreInfo', - 'TokenInformation', - 'ValidateIaasVMRestoreOperationRequest', - 'ValidateOperationRequest', - 'ValidateOperationResponse', - 'ValidateOperationsResponse', - 'ValidateRestoreOperationRequest', - 'WeeklyRetentionFormat', - 'WeeklyRetentionSchedule', - 'WorkloadInquiryDetails', - 'WorkloadItem', - 'WorkloadItemResource', - 'WorkloadProtectableItem', - 'WorkloadProtectableItemResource', - 'YearlyRetentionSchedule', - 'RecoveryPointResourcePaged', - 'ProtectionPolicyResourcePaged', - 'JobResourcePaged', - 'ProtectedItemResourcePaged', - 'ProtectionIntentResourcePaged', - 'BackupManagementUsagePaged', - 'BackupEngineBaseResourcePaged', - 'ProtectableContainerResourcePaged', - 'WorkloadItemResourcePaged', - 'WorkloadProtectableItemResourcePaged', - 'ProtectionContainerResourcePaged', - 'ClientDiscoveryValueForSingleApiPaged', - 'OperationStatusValues', - 'ProvisioningState', - 'PrivateEndpointConnectionStatus', - 'ProtectionState', - 'HealthStatus', - 'RecoveryType', - 'CopyOptions', - 'RestoreRequestType', - 'WorkloadType', - 'PolicyType', - 'JobSupportedAction', - 'ProtectedItemState', - 'LastBackupStatus', - 'ProtectedItemHealthStatus', - 'RestorePointType', - 'OverwriteOptions', - 'RecoveryMode', - 'SQLDataDirectoryType', - 'StorageType', - 'StorageTypeState', - 'EnhancedSecurityState', - 'SoftDeleteFeatureState', - 'RestorePointQueryType', - 'RetentionDurationType', - 'RecoveryPointTierType', - 'RecoveryPointTierStatus', - 'BackupManagementType', - 'JobStatus', - 'JobOperationType', - 'DayOfWeek', - 'RetentionScheduleFormat', - 'WeekOfMonth', - 'MonthOfYear', - 'MabServerType', - 'HttpStatusCode', - 'DataSourceType', - 'CreateMode', - 'HealthState', - 'ScheduleRunType', - 'SupportStatus', - 'WorkloadItemType', - 'UsagesUnit', - 'ProtectionStatus', - 'FabricName', - 'Type', - 'ValidationStatus', - 'IntentItemType', - 'AzureFileShareType', - 'InquiryStatus', - 'BackupType', - 'OperationType', - 'ContainerType', - 'BackupItemType', -] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py deleted file mode 100644 index b6f8253d0a21..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py +++ /dev/null @@ -1,10645 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class FeatureSupportRequest(Model): - """Base class for feature request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupGoalFeatureSupportRequest, - AzureVMResourceFeatureSupportRequest - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - _subtype_map = { - 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} - } - - def __init__(self, **kwargs): - super(FeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = None - - -class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): - """Azure backup goal feature specific request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureBackupGoalFeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = 'AzureBackupGoals' - - -class ProtectionContainer(Model): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSqlContainer, AzureStorageContainer, - AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, - MabContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'Windows': 'MabContainer'} - } - - def __init__(self, **kwargs): - super(ProtectionContainer, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.registration_status = kwargs.get('registration_status', None) - self.health_status = kwargs.get('health_status', None) - self.container_type = None - - -class DpmContainer(ProtectionContainer): - """DPM workload-specific protection container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - _subtype_map = { - 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer'} - } - - def __init__(self, **kwargs): - super(DpmContainer, self).__init__(**kwargs) - self.can_re_register = kwargs.get('can_re_register', None) - self.container_id = kwargs.get('container_id', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.dpm_agent_version = kwargs.get('dpm_agent_version', None) - self.dpm_servers = kwargs.get('dpm_servers', None) - self.upgrade_available = kwargs.get('upgrade_available', None) - self.protection_status = kwargs.get('protection_status', None) - self.extended_info = kwargs.get('extended_info', None) - self.container_type = 'DPMContainer' - - -class AzureBackupServerContainer(DpmContainer): - """AzureBackupServer (DPMVenus) workload-specific protection container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureBackupServerContainer, self).__init__(**kwargs) - self.container_type = 'AzureBackupServerContainer' - - -class BackupEngineBase(Model): - """The base backup engine class. All workload specific backup engines derive - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerEngine, DpmBackupEngine - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :param is_dpm_upgrade_available: To check if backup engine upgrade - available - :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backupengine - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_engine_type': {'AzureBackupServerEngine': 'AzureBackupServerEngine', 'DpmBackupEngine': 'DpmBackupEngine'} - } - - def __init__(self, **kwargs): - super(BackupEngineBase, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.registration_status = kwargs.get('registration_status', None) - self.backup_engine_state = kwargs.get('backup_engine_state', None) - self.health_status = kwargs.get('health_status', None) - self.can_re_register = kwargs.get('can_re_register', None) - self.backup_engine_id = kwargs.get('backup_engine_id', None) - self.dpm_version = kwargs.get('dpm_version', None) - self.azure_backup_agent_version = kwargs.get('azure_backup_agent_version', None) - self.is_azure_backup_agent_upgrade_available = kwargs.get('is_azure_backup_agent_upgrade_available', None) - self.is_dpm_upgrade_available = kwargs.get('is_dpm_upgrade_available', None) - self.extended_info = kwargs.get('extended_info', None) - self.backup_engine_type = None - - -class AzureBackupServerEngine(BackupEngineBase): - """Backup engine type when Azure Backup Server is used to manage the backups. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :param is_dpm_upgrade_available: To check if backup engine upgrade - available - :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backupengine - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureBackupServerEngine, self).__init__(**kwargs) - self.backup_engine_type = 'AzureBackupServerEngine' - - -class BackupRequest(Model): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareBackupRequest, AzureWorkloadBackupRequest, - IaasVMBackupRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareBackupRequest': 'AzureFileShareBackupRequest', 'AzureWorkloadBackupRequest': 'AzureWorkloadBackupRequest', 'IaasVMBackupRequest': 'IaasVMBackupRequest'} - } - - def __init__(self, **kwargs): - super(BackupRequest, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareBackupRequest(BackupRequest): - """AzureFileShare workload-specific backup 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 recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - self.object_type = 'AzureFileShareBackupRequest' - - -class WorkloadProtectableItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProtectableItem, - AzureVmWorkloadProtectableItem, IaaSVMProtectableItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_item_type': {'AzureFileShare': 'AzureFileShareProtectableItem', 'AzureVmWorkloadProtectableItem': 'AzureVmWorkloadProtectableItem', 'IaaSVMProtectableItem': 'IaaSVMProtectableItem'} - } - - def __init__(self, **kwargs): - super(WorkloadProtectableItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.protectable_item_type = None - - -class AzureFileShareProtectableItem(WorkloadProtectableItem): - """Protectable item for Azure Fileshare workloads. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_container_fabric_id: Full Fabric ID of container to which - this protectable item belongs. For example, ARM ID. - :type parent_container_fabric_id: str - :param parent_container_friendly_name: Friendly name of container to which - this protectable item belongs. - :type parent_container_friendly_name: str - :param azure_file_share_type: File Share type XSync or XSMB. Possible - values include: 'Invalid', 'XSMB', 'XSync' - :type azure_file_share_type: str or - ~azure.mgmt.recoveryservicesbackup.models.AzureFileShareType - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_container_fabric_id': {'key': 'parentContainerFabricId', 'type': 'str'}, - 'parent_container_friendly_name': {'key': 'parentContainerFriendlyName', 'type': 'str'}, - 'azure_file_share_type': {'key': 'azureFileShareType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareProtectableItem, self).__init__(**kwargs) - self.parent_container_fabric_id = kwargs.get('parent_container_fabric_id', None) - self.parent_container_friendly_name = kwargs.get('parent_container_friendly_name', None) - self.azure_file_share_type = kwargs.get('azure_file_share_type', None) - self.protectable_item_type = 'AzureFileShare' - - -class ProtectedItem(Model): - """Base class for backup items. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, - AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, - GenericProtectedItem, MabFileFolderProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} - } - - def __init__(self, **kwargs): - super(ProtectedItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.container_name = kwargs.get('container_name', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.policy_id = kwargs.get('policy_id', None) - self.last_recovery_point = kwargs.get('last_recovery_point', None) - self.backup_set_name = kwargs.get('backup_set_name', None) - self.create_mode = kwargs.get('create_mode', None) - self.deferred_delete_time_in_utc = kwargs.get('deferred_delete_time_in_utc', None) - self.is_scheduled_for_deferred_delete = kwargs.get('is_scheduled_for_deferred_delete', None) - self.deferred_delete_time_remaining = kwargs.get('deferred_delete_time_remaining', None) - self.is_deferred_delete_schedule_upcoming = kwargs.get('is_deferred_delete_schedule_upcoming', None) - self.is_rehydrate = kwargs.get('is_rehydrate', None) - self.protected_item_type = None - - -class AzureFileshareProtectedItem(ProtectedItem): - """Azure File Share workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the fileshare represented by this - backup item. - :type friendly_name: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: backups running status for this backup item. - Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', - 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. - :type last_backup_status: str - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureFileshareProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.health_status = kwargs.get('health_status', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'AzureFileShareProtectedItem' - - -class AzureFileshareProtectedItemExtendedInfo(Model): - """Additional information about Azure File Share backup item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - :ivar resource_state: Indicates the state of this resource. Possible - values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted} - :vartype resource_state: str - :ivar resource_state_sync_time: The resource state sync time for this - backup item. - :vartype resource_state_sync_time: datetime - """ - - _validation = { - 'resource_state': {'readonly': True}, - 'resource_state_sync_time': {'readonly': True}, - } - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'resource_state': {'key': 'resourceState', 'type': 'str'}, - 'resource_state_sync_time': {'key': 'resourceStateSyncTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - self.resource_state = None - self.resource_state_sync_time = None - - -class ProtectionPolicy(Model): - """Base class for backup policy. Workload-specific backup policies are derived - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadProtectionPolicy, - AzureFileShareProtectionPolicy, AzureIaaSVMProtectionPolicy, - AzureSqlProtectionPolicy, GenericProtectionPolicy, MabProtectionPolicy - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_management_type': {'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} - } - - def __init__(self, **kwargs): - super(ProtectionPolicy, self).__init__(**kwargs) - self.protected_items_count = kwargs.get('protected_items_count', None) - self.backup_management_type = None - - -class AzureFileShareProtectionPolicy(ProtectionPolicy): - """AzureStorage backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareProtectionPolicy, self).__init__(**kwargs) - self.work_load_type = kwargs.get('work_load_type', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.time_zone = kwargs.get('time_zone', None) - self.backup_management_type = 'AzureStorage' - - -class ILRRequest(Model): - """Parameters to Provision ILR API. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProvisionILRRequest, - IaasVMILRRegistrationRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareProvisionILRRequest': 'AzureFileShareProvisionILRRequest', 'IaasVMILRRegistrationRequest': 'IaasVMILRRegistrationRequest'} - } - - def __init__(self, **kwargs): - super(ILRRequest, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareProvisionILRRequest(ILRRequest): - """Update snapshot Uri with the correct friendly Name of the source Azure file - share. - - 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 recovery_point_id: Recovery point ID. - :type recovery_point_id: str - :param source_resource_id: Source Storage account ARM Id - :type source_resource_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareProvisionILRRequest, self).__init__(**kwargs) - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.object_type = 'AzureFileShareProvisionILRRequest' - - -class RecoveryPoint(Model): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, - GenericRecoveryPoint, IaasVMRecoveryPoint - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} - } - - def __init__(self, **kwargs): - super(RecoveryPoint, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareRecoveryPoint(RecoveryPoint): - """Azure File Share workload specific backup copy. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_type: Type of the backup copy. Specifies whether it - is a crash consistent backup or app consistent. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, - if applicable - :vartype file_share_snapshot_uri: str - :ivar recovery_point_size_in_gb: Contains recovery point size - :vartype recovery_point_size_in_gb: int - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'file_share_snapshot_uri': {'readonly': True}, - 'recovery_point_size_in_gb': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, - 'recovery_point_size_in_gb': {'key': 'recoveryPointSizeInGB', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.file_share_snapshot_uri = None - self.recovery_point_size_in_gb = None - self.object_type = 'AzureFileShareRecoveryPoint' - - -class RestoreRequest(Model): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, - IaasVMRestoreRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} - } - - def __init__(self, **kwargs): - super(RestoreRequest, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareRestoreRequest(RestoreRequest): - """AzureFileShare Restore 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Source storage account ARM Id - :type source_resource_id: str - :param copy_options: Options to resolve copy conflicts. Possible values - include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite', 'FailOnConflict' - :type copy_options: str or - ~azure.mgmt.recoveryservicesbackup.models.CopyOptions - :param restore_request_type: Restore Type (FullShareRestore or - ItemLevelRestore). Possible values include: 'Invalid', 'FullShareRestore', - 'ItemLevelRestore' - :type restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequestType - :param restore_file_specs: List of Source Files/Folders(which need to - recover) and TargetFolderPath details - :type restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.models.RestoreFileSpecs] - :param target_details: Target File Share Details - :type target_details: - ~azure.mgmt.recoveryservicesbackup.models.TargetAFSRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'copy_options': {'key': 'copyOptions', 'type': 'str'}, - 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, - 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, - 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareRestoreRequest, self).__init__(**kwargs) - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.copy_options = kwargs.get('copy_options', None) - self.restore_request_type = kwargs.get('restore_request_type', None) - self.restore_file_specs = kwargs.get('restore_file_specs', None) - self.target_details = kwargs.get('target_details', None) - self.object_type = 'AzureFileShareRestoreRequest' - - -class IaaSVMContainer(ProtectionContainer): - """IaaS VM workload-specific container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMContainer, - AzureIaaSComputeVMContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMContainer', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMContainer'} - } - - def __init__(self, **kwargs): - super(IaaSVMContainer, self).__init__(**kwargs) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.resource_group = kwargs.get('resource_group', None) - self.container_type = 'IaaSVMContainer' - - -class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing a classic virtual - machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSClassicComputeVMContainer, self).__init__(**kwargs) - self.container_type = 'Microsoft.ClassicCompute/virtualMachines' - - -class IaaSVMProtectableItem(WorkloadProtectableItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectableItem, - AzureIaaSComputeVMProtectableItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectableItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectableItem'} - } - - def __init__(self, **kwargs): - super(IaaSVMProtectableItem, self).__init__(**kwargs) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.protectable_item_type = 'IaaSVMProtectableItem' - - -class AzureIaaSClassicComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSClassicComputeVMProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'Microsoft.ClassicCompute/virtualMachines' - - -class AzureIaaSVMProtectedItem(ProtectedItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectedItem, - AzureIaaSComputeVMProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :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 - backup item. - :type last_backup_time: datetime - :param protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - :param extended_properties: - :type extended_properties: - ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - _subtype_map = { - 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} - } - - def __init__(self, **kwargs): - super(AzureIaaSVMProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.protection_status = kwargs.get('protection_status', None) - 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.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) - self.extended_info = kwargs.get('extended_info', None) - self.extended_properties = kwargs.get('extended_properties', None) - self.protected_item_type = 'AzureIaaSVMProtectedItem' - - -class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :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 - backup item. - :type last_backup_time: datetime - :param protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - :param extended_properties: - :type extended_properties: - ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' - - -class AzureIaaSComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing an Azure Resource - Manager virtual machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSComputeVMContainer, self).__init__(**kwargs) - self.container_type = 'Microsoft.Compute/virtualMachines' - - -class AzureIaaSComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSComputeVMProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'Microsoft.Compute/virtualMachines' - - -class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :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 - backup item. - :type last_backup_time: datetime - :param protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - :param extended_properties: - :type extended_properties: - ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.Compute/virtualMachines' - - -class AzureIaaSVMErrorInfo(Model): - """Azure IaaS VM workload-specific error information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_title: Title: Typically, the entity that the error pertains - to. - :vartype error_title: str - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error - code. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_code': {'readonly': True}, - 'error_title': {'readonly': True}, - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMErrorInfo, self).__init__(**kwargs) - self.error_code = None - self.error_title = None - self.error_string = None - self.recommendations = None - - -class AzureIaaSVMHealthDetails(Model): - """Azure IaaS VM workload-specific Health Details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Health Code - :vartype code: int - :ivar title: Health Title - :vartype title: str - :ivar message: Health Message - :vartype message: str - :ivar recommendations: Health Recommended Actions - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'title': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) - self.code = None - self.title = None - self.message = None - self.recommendations = None - - -class Job(Model): - """Defines workload agnostic properties for a job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSVMJob, AzureStorageJob, AzureWorkloadJob, DpmJob, - MabJob - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - } - - _subtype_map = { - 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob'} - } - - def __init__(self, **kwargs): - super(Job, self).__init__(**kwargs) - self.entity_friendly_name = kwargs.get('entity_friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.activity_id = kwargs.get('activity_id', None) - self.job_type = None - - -class AzureIaaSVMJob(Job): - """Azure IaaS VM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMErrorInfo] - :param virtual_machine_version: Specifies whether the backup item is a - Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'AzureIaaSVMJob' - - -class AzureIaaSVMJobExtendedInfo(Model): - """Azure IaaS VM workload-specific additional information for job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param internal_property_bag: Job internal properties. - :type internal_property_bag: dict[str, str] - :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 - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, - '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, **kwargs): - super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - 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) - - -class AzureIaaSVMJobTaskDetails(Model): - """Azure IaaS VM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param instance_id: The instanceId. - :type instance_id: str - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :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 transferred etc - :type task_execution_details: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - '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): - super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.instance_id = kwargs.get('instance_id', None) - 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) - - -class AzureIaaSVMProtectedItemExtendedInfo(Model): - """Additional information on Azure IaaS VM specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_inconsistent: Specifies if backup policy associated with the - backup item is inconsistent. - :type policy_inconsistent: bool - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_inconsistent = kwargs.get('policy_inconsistent', None) - - -class AzureIaaSVMProtectionPolicy(ProtectionPolicy): - """IaaS VM workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param instant_rp_details: - :type instant_rp_details: - ~azure.mgmt.recoveryservicesbackup.models.InstantRPAdditionalDetails - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param instant_rp_retention_range_in_days: Instant RP retention policy - range in days - :type instant_rp_retention_range_in_days: int - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'instant_rp_details': {'key': 'instantRPDetails', 'type': 'InstantRPAdditionalDetails'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMProtectionPolicy, self).__init__(**kwargs) - self.instant_rp_details = kwargs.get('instant_rp_details', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.instant_rp_retention_range_in_days = kwargs.get('instant_rp_retention_range_in_days', None) - self.time_zone = kwargs.get('time_zone', None) - self.backup_management_type = 'AzureIaasVM' - - -class ProtectionIntent(Model): - """Base class for backup ProtectionIntent. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureRecoveryServiceVaultProtectionIntent, - AzureResourceProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceItem': 'AzureResourceProtectionIntent'} - } - - def __init__(self, **kwargs): - super(ProtectionIntent, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.item_id = kwargs.get('item_id', None) - self.policy_id = kwargs.get('policy_id', None) - self.protection_state = kwargs.get('protection_state', None) - self.protection_intent_item_type = None - - -class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadAutoProtectionIntent': 'AzureWorkloadAutoProtectionIntent'} - } - - def __init__(self, **kwargs): - super(AzureRecoveryServiceVaultProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'RecoveryServiceVaultItem' - - -class AzureResourceProtectionIntent(ProtectionIntent): - """IaaS VM specific backup protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureResourceProtectionIntent, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_intent_item_type = 'AzureResourceItem' - - -class AzureWorkloadContainer(ProtectionContainer): - """Container for the workloads running inside Azure Compute or Classic - Compute. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSQLAGWorkloadContainerProtectionContainer, - AzureVMAppContainerProtectionContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'SQLAGWorkLoadContainer': 'AzureSQLAGWorkloadContainerProtectionContainer', 'VMAppContainer': 'AzureVMAppContainerProtectionContainer'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadContainer, self).__init__(**kwargs) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.last_updated_time = kwargs.get('last_updated_time', None) - self.extended_info = kwargs.get('extended_info', None) - self.workload_type = kwargs.get('workload_type', None) - self.operation_type = kwargs.get('operation_type', None) - self.container_type = 'AzureWorkloadContainer' - - -class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under SQL Availability Group. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureSQLAGWorkloadContainerProtectionContainer, self).__init__(**kwargs) - self.container_type = 'SQLAGWorkLoadContainer' - - -class AzureSqlContainer(ProtectionContainer): - """Azure Sql workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureSqlContainer, self).__init__(**kwargs) - self.container_type = 'AzureSqlContainer' - - -class AzureSqlProtectedItem(ProtectedItem): - """Azure SQL workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param protected_item_data_id: Internal ID of a backup item. Used by Azure - SQL Backup engine to contact Recovery Services. - :type protected_item_data_id: str - :param protection_state: Backup state of the backed up item. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureSqlProtectedItem, self).__init__(**kwargs) - self.protected_item_data_id = kwargs.get('protected_item_data_id', None) - self.protection_state = kwargs.get('protection_state', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'Microsoft.Sql/servers/databases' - - -class AzureSqlProtectedItemExtendedInfo(Model): - """Additional information on Azure Sql specific protected item. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: State of the backup policy associated with this - backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureSqlProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - - -class AzureSqlProtectionPolicy(ProtectionPolicy): - """Azure SQL workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, **kwargs): - super(AzureSqlProtectionPolicy, self).__init__(**kwargs) - self.retention_policy = kwargs.get('retention_policy', None) - self.backup_management_type = 'AzureSql' - - -class AzureStorageContainer(ProtectionContainer): - """Azure Storage Account workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: Fully qualified ARM url. - :type source_resource_id: str - :param storage_account_version: Storage account version. - :type storage_account_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(AzureStorageContainer, self).__init__(**kwargs) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.storage_account_version = kwargs.get('storage_account_version', None) - self.resource_group = kwargs.get('resource_group', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.container_type = 'StorageContainer' - - -class AzureStorageErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AzureStorageErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) - - -class AzureStorageJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageErrorInfo] - :param storage_account_name: Specifies friendly name of the storage - account. - :type storage_account_name: str - :param storage_account_version: Specifies whether the Storage account is a - Classic or an Azure Resource Manager Storage account. - :type storage_account_version: str - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureStorageJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.storage_account_version = kwargs.get('storage_account_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'AzureStorageJob' - - -class AzureStorageJobExtendedInfo(Model): - """Azure Storage workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureStorageJobTaskDetails(Model): - """Azure storage workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureStorageJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) - - -class ProtectableContainer(Model): - """Protectable Container Class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureStorageProtectableContainer, - AzureVMAppContainerProtectableContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_container_type': {'StorageContainer': 'AzureStorageProtectableContainer', 'VMAppContainer': 'AzureVMAppContainerProtectableContainer'} - } - - def __init__(self, **kwargs): - super(ProtectableContainer, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.health_status = kwargs.get('health_status', None) - self.container_id = kwargs.get('container_id', None) - self.protectable_container_type = None - - -class AzureStorageProtectableContainer(ProtectableContainer): - """Azure Storage-specific protectable containers. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureStorageProtectableContainer, self).__init__(**kwargs) - self.protectable_container_type = 'StorageContainer' - - -class AzureVMAppContainerProtectableContainer(ProtectableContainer): - """Azure workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMAppContainerProtectableContainer, self).__init__(**kwargs) - self.protectable_container_type = 'VMAppContainer' - - -class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under Azure Virtual Machines. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMAppContainerProtectionContainer, self).__init__(**kwargs) - self.container_type = 'VMAppContainer' - - -class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): - """AzureResource(IaaS VM) Specific feature support request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - :param vm_size: Size of the resource: VM size(A/D series etc) in case of - IaasVM - :type vm_size: str - :param vm_sku: SKUs (Premium/Managed etc) in case of IaasVM - :type vm_sku: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'vm_sku': {'key': 'vmSku', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMResourceFeatureSupportRequest, self).__init__(**kwargs) - self.vm_size = kwargs.get('vm_size', None) - self.vm_sku = kwargs.get('vm_sku', None) - self.feature_type = 'AzureVMResourceBackup' - - -class AzureVMResourceFeatureSupportResponse(Model): - """Response for feature support requests for Azure IaasVm. - - :param support_status: Support status of feature. Possible values include: - 'Invalid', 'Supported', 'DefaultOFF', 'DefaultON', 'NotSupported' - :type support_status: str or - ~azure.mgmt.recoveryservicesbackup.models.SupportStatus - """ - - _attribute_map = { - 'support_status': {'key': 'supportStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMResourceFeatureSupportResponse, self).__init__(**kwargs) - self.support_status = kwargs.get('support_status', None) - - -class WorkloadItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - _subtype_map = { - 'workload_item_type': {'AzureVmWorkloadItem': 'AzureVmWorkloadItem'} - } - - def __init__(self, **kwargs): - super(WorkloadItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.workload_item_type = None - - -class AzureVmWorkloadItem(WorkloadItem): - """Azure VM workload-specific workload item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseWorkloadItem, - AzureVmWorkloadSAPAseSystemWorkloadItem, - AzureVmWorkloadSAPHanaDatabaseWorkloadItem, - AzureVmWorkloadSAPHanaSystemWorkloadItem, - AzureVmWorkloadSQLDatabaseWorkloadItem, - AzureVmWorkloadSQLInstanceWorkloadItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - _subtype_map = { - 'workload_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadItem, self).__init__(**kwargs) - self.parent_name = kwargs.get('parent_name', None) - self.server_name = kwargs.get('server_name', None) - self.is_auto_protectable = kwargs.get('is_auto_protectable', None) - self.subinquireditemcount = kwargs.get('subinquireditemcount', None) - self.sub_workload_item_count = kwargs.get('sub_workload_item_count', None) - self.workload_item_type = 'AzureVmWorkloadItem' - - -class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): - """Azure VM workload-specific protectable item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseSystemProtectableItem, - AzureVmWorkloadSAPHanaDatabaseProtectableItem, - AzureVmWorkloadSAPHanaSystemProtectableItem, - AzureVmWorkloadSQLAvailabilityGroupProtectableItem, - AzureVmWorkloadSQLDatabaseProtectableItem, - AzureVmWorkloadSQLInstanceProtectableItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - _subtype_map = { - 'protectable_item_type': {'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectableItem, self).__init__(**kwargs) - self.parent_name = kwargs.get('parent_name', None) - self.parent_unique_name = kwargs.get('parent_unique_name', None) - self.server_name = kwargs.get('server_name', None) - self.is_auto_protectable = kwargs.get('is_auto_protectable', None) - self.is_auto_protected = kwargs.get('is_auto_protected', None) - self.subinquireditemcount = kwargs.get('subinquireditemcount', None) - self.subprotectableitemcount = kwargs.get('subprotectableitemcount', None) - self.prebackupvalidation = kwargs.get('prebackupvalidation', None) - self.protectable_item_type = 'AzureVmWorkloadProtectableItem' - - -class AzureVmWorkloadProtectedItem(ProtectedItem): - """Azure VM workload-specific protected item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, - AzureVmWorkloadSAPHanaDatabaseProtectedItem, - AzureVmWorkloadSQLDatabaseProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.server_name = kwargs.get('server_name', None) - self.parent_name = kwargs.get('parent_name', None) - self.parent_type = kwargs.get('parent_type', None) - self.protection_status = kwargs.get('protection_status', None) - 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.last_backup_error_detail = kwargs.get('last_backup_error_detail', None) - 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.protected_item_type = 'AzureVmWorkloadProtectedItem' - - -class AzureVmWorkloadProtectedItemExtendedInfo(Model): - """Additional information on Azure Workload for SQL specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - - -class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param settings: Common settings for the backup management - :type settings: ~azure.mgmt.recoveryservicesbackup.models.Settings - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - :param make_policy_consistent: Fix the policy inconsistency - :type make_policy_consistent: bool - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': 'Settings'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'make_policy_consistent': {'key': 'makePolicyConsistent', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectionPolicy, self).__init__(**kwargs) - self.work_load_type = kwargs.get('work_load_type', None) - self.settings = kwargs.get('settings', None) - self.sub_protection_policy = kwargs.get('sub_protection_policy', None) - self.make_policy_consistent = kwargs.get('make_policy_consistent', None) - self.backup_management_type = 'AzureWorkload' - - -class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' - - -class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPAseDatabase' - - -class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP ASE System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseSystemProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPAseSystem' - - -class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseSystemWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPAseSystem' - - -class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaDatabaseProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPHanaDatabase' - - -class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' - - -class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPHanaDatabase' - - -class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaSystemProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPHanaSystem' - - -class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaSystemWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPHanaSystem' - - -class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Availability - Group. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLAvailabilityGroupProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLAvailabilityGroupContainer' - - -class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLDatabaseProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLDataBase' - - -class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSQLDatabase' - - -class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SQLDataBase' - - -class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Instance. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLInstanceProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLInstance' - - -class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL Instance. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - :param data_directory_paths: Data Directory Paths for default directories - :type data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLInstanceWorkloadItem, self).__init__(**kwargs) - self.data_directory_paths = kwargs.get('data_directory_paths', None) - self.workload_item_type = 'SQLInstance' - - -class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadSQLAutoProtectionIntent': 'AzureWorkloadSQLAutoProtectionIntent'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadAutoProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'AzureWorkloadAutoProtectionIntent' - - -class AzureWorkloadBackupRequest(BackupRequest): - """AzureWorkload workload-specific backup 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 backup_type: Type of backup, viz. Full, Differential, Log or - CopyOnlyFull. Possible values include: 'Invalid', 'Full', 'Differential', - 'Log', 'CopyOnlyFull' - :type backup_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupType - :param enable_compression: Bool for Compression setting - :type enable_compression: bool - :param recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'enable_compression': {'key': 'enableCompression', 'type': 'bool'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadBackupRequest, self).__init__(**kwargs) - self.backup_type = kwargs.get('backup_type', None) - self.enable_compression = kwargs.get('enable_compression', None) - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - self.object_type = 'AzureWorkloadBackupRequest' - - -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. - :type host_server_name: str - :param inquiry_info: Inquiry Status for the container. - :type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo - :param nodes_list: List of the nodes in case of distributed container. - :type nodes_list: - list[~azure.mgmt.recoveryservicesbackup.models.DistributedNodesInfo] - """ - - _attribute_map = { - 'host_server_name': {'key': 'hostServerName', 'type': 'str'}, - 'inquiry_info': {'key': 'inquiryInfo', 'type': 'InquiryInfo'}, - 'nodes_list': {'key': 'nodesList', 'type': '[DistributedNodesInfo]'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadContainerExtendedInfo, self).__init__(**kwargs) - self.host_server_name = kwargs.get('host_server_name', None) - self.inquiry_info = kwargs.get('inquiry_info', None) - self.nodes_list = kwargs.get('nodes_list', None) - - -class AzureWorkloadErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param error_title: Title: Typically, the entity that the error pertains - to. - :type error_title: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - :param additional_details: Additional details for above error code. - :type additional_details: str - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.error_title = kwargs.get('error_title', None) - self.recommendations = kwargs.get('recommendations', None) - self.additional_details = kwargs.get('additional_details', None) - - -class AzureWorkloadJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param workload_type: Workload type of the job - :type workload_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadErrorInfo] - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadJob, self).__init__(**kwargs) - self.workload_type = kwargs.get('workload_type', None) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'AzureWorkloadJob' - - -class AzureWorkloadJobExtendedInfo(Model): - """Azure VM workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureWorkloadJobTaskDetails(Model): - """Azure VM workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) - - -class AzureWorkloadRecoveryPoint(RecoveryPoint): - """Workload specific recovery point, specifically encapsulates full/diff - recovery point. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, - AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_time_in_utc = None - self.type = None - self.object_type = 'AzureWorkloadRecoveryPoint' - - -class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): - """Recovery point specific to PointInTime. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.time_ranges = kwargs.get('time_ranges', None) - self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' - - -class AzureWorkloadRestoreRequest(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.property_bag = kwargs.get('property_bag', None) - self.target_info = kwargs.get('target_info', None) - self.recovery_mode = kwargs.get('recovery_mode', None) - self.object_type = 'AzureWorkloadRestoreRequest' - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(**kwargs) - self.point_in_time = kwargs.get('point_in_time', None) - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' - - -class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): - """Recovery point specific to PointInTime in SAPHana. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' - - -class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(**kwargs) - self.point_in_time = kwargs.get('point_in_time', None) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' - - -class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recoverypoint, specifically encapsulates full/diff - recoverypoints. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' - - -class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): - """Azure Workload SQL Auto Protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param workload_item_type: Workload item type of the item for which intent - is to be set. Possible values include: 'Invalid', 'SQLInstance', - 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLAutoProtectionIntent, self).__init__(**kwargs) - self.workload_item_type = kwargs.get('workload_item_type', None) - self.protection_intent_item_type = 'AzureWorkloadSQLAutoProtectionIntent' - - -class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recoverypoint, specifically encapsulates full/diff - recoverypoint along with extended info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLRecoveryPoint, self).__init__(**kwargs) - self.extended_info = kwargs.get('extended_info', None) - self.object_type = 'AzureWorkloadSQLRecoveryPoint' - - -class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): - """Recovery point specific to PointInTime. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.time_ranges = kwargs.get('time_ranges', None) - self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' - - -class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param should_use_alternate_target_location: Default option set to true. - If this is set to false, alternate data directory must be provided - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLRestoreRequest, self).__init__(**kwargs) - self.should_use_alternate_target_location = kwargs.get('should_use_alternate_target_location', None) - self.is_non_recoverable = kwargs.get('is_non_recoverable', None) - self.alternate_directory_paths = kwargs.get('alternate_directory_paths', None) - self.object_type = 'AzureWorkloadSQLRestoreRequest' - - -class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log - restore. - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param should_use_alternate_target_location: Default option set to true. - If this is set to false, alternate data directory must be provided - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(**kwargs) - self.point_in_time = kwargs.get('point_in_time', None) - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' - - -class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): - """Extended info class details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar data_directory_time_in_utc: UTC time at which data directory info - was captured - :vartype data_directory_time_in_utc: datetime - :ivar data_directory_paths: List of data directory paths during restore - operation. - :vartype data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _validation = { - 'data_directory_time_in_utc': {'readonly': True}, - 'data_directory_paths': {'readonly': True}, - } - - _attribute_map = { - 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = None - self.data_directory_paths = None - - -class Resource(Model): - """ARM Resource. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.e_tag = kwargs.get('e_tag', None) - - -class BackupEngineBaseResource(Resource): - """The base backup engine class. All workload specific backup engines derive - from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupEngineBaseResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBase - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupEngineBase'}, - } - - def __init__(self, **kwargs): - super(BackupEngineBaseResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupEngineExtendedInfo(Model): - """Additional information on backup engine. - - :param database_name: Database name of backup engine. - :type database_name: str - :param protected_items_count: Number of protected items in the backup - engine. - :type protected_items_count: int - :param protected_servers_count: Number of protected servers in the backup - engine. - :type protected_servers_count: int - :param disk_count: Number of disks in the backup engine. - :type disk_count: int - :param used_disk_space: Disk space used in the backup engine. - :type used_disk_space: float - :param available_disk_space: Disk space currently available in the backup - engine. - :type available_disk_space: float - :param refreshed_at: Last refresh time in the backup engine. - :type refreshed_at: datetime - :param azure_protected_instances: Protected instances in the backup - engine. - :type azure_protected_instances: int - """ - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'protected_servers_count': {'key': 'protectedServersCount', 'type': 'int'}, - 'disk_count': {'key': 'diskCount', 'type': 'int'}, - 'used_disk_space': {'key': 'usedDiskSpace', 'type': 'float'}, - 'available_disk_space': {'key': 'availableDiskSpace', 'type': 'float'}, - 'refreshed_at': {'key': 'refreshedAt', 'type': 'iso-8601'}, - 'azure_protected_instances': {'key': 'azureProtectedInstances', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(BackupEngineExtendedInfo, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.protected_items_count = kwargs.get('protected_items_count', None) - self.protected_servers_count = kwargs.get('protected_servers_count', None) - self.disk_count = kwargs.get('disk_count', None) - self.used_disk_space = kwargs.get('used_disk_space', None) - self.available_disk_space = kwargs.get('available_disk_space', None) - self.refreshed_at = kwargs.get('refreshed_at', None) - self.azure_protected_instances = kwargs.get('azure_protected_instances', None) - - -class BackupManagementUsage(Model): - """Backup management usages of a vault. - - :param unit: Unit of the usage. Possible values include: 'Count', 'Bytes', - 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - :type unit: str or ~azure.mgmt.recoveryservicesbackup.models.UsagesUnit - :param quota_period: Quota period of usage. - :type quota_period: str - :param next_reset_time: Next reset time of usage. - :type next_reset_time: datetime - :param current_value: Current value of usage. - :type current_value: long - :param limit: Limit of usage. - :type limit: long - :param name: Name of usage. - :type name: ~azure.mgmt.recoveryservicesbackup.models.NameInfo - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, - 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, - 'current_value': {'key': 'currentValue', 'type': 'long'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'NameInfo'}, - } - - def __init__(self, **kwargs): - super(BackupManagementUsage, self).__init__(**kwargs) - self.unit = kwargs.get('unit', None) - self.quota_period = kwargs.get('quota_period', None) - self.next_reset_time = kwargs.get('next_reset_time', None) - self.current_value = kwargs.get('current_value', None) - self.limit = kwargs.get('limit', None) - self.name = kwargs.get('name', None) - - -class BackupRequestResource(Resource): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.BackupRequest - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupRequest'}, - } - - def __init__(self, **kwargs): - super(BackupRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupResourceConfig(Model): - """The resource storage details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupResourceConfig, self).__init__(**kwargs) - self.storage_model_type = kwargs.get('storage_model_type', None) - self.storage_type = kwargs.get('storage_type', None) - self.storage_type_state = kwargs.get('storage_type_state', None) - - -class BackupResourceConfigResource(Resource): - """The resource storage details. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfig - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, - } - - def __init__(self, **kwargs): - super(BackupResourceConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupResourceVaultConfig(Model): - """Backup resource vault config details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - :param enhanced_security_state: Enabled or Disabled. Possible values - include: 'Invalid', 'Enabled', 'Disabled' - :type enhanced_security_state: str or - ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState - :param soft_delete_feature_state: Soft Delete feature state. Possible - values include: 'Invalid', 'Enabled', 'Disabled' - :type soft_delete_feature_state: str or - ~azure.mgmt.recoveryservicesbackup.models.SoftDeleteFeatureState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, - 'soft_delete_feature_state': {'key': 'softDeleteFeatureState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupResourceVaultConfig, self).__init__(**kwargs) - self.storage_model_type = kwargs.get('storage_model_type', None) - self.storage_type = kwargs.get('storage_type', None) - self.storage_type_state = kwargs.get('storage_type_state', None) - self.enhanced_security_state = kwargs.get('enhanced_security_state', None) - self.soft_delete_feature_state = kwargs.get('soft_delete_feature_state', None) - - -class BackupResourceVaultConfigResource(Resource): - """Backup resource vault config details. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceVaultConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfig - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceVaultConfig'}, - } - - def __init__(self, **kwargs): - super(BackupResourceVaultConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupStatusRequest(Model): - """BackupStatus request. - - :param resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param po_logical_name: Protectable Item Logical Name - :type po_logical_name: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'po_logical_name': {'key': 'poLogicalName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupStatusRequest, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.resource_id = kwargs.get('resource_id', None) - self.po_logical_name = kwargs.get('po_logical_name', None) - - -class BackupStatusResponse(Model): - """BackupStatus response. - - :param protection_status: Specifies whether the container is registered or - not. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - '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 - ~azure.mgmt.recoveryservicesbackup.models.FabricName - :param container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;csname;vmname. - :type container_name: str - :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. - :type protected_item_name: str - :param error_code: ErrorCode in case of intent failed - :type error_code: str - :param error_message: ErrorMessage in case of intent failed. - :type error_message: str - :param policy_name: Specifies the policy name which is used for protection - :type policy_name: str - :param registration_status: Container registration status - :type registration_status: str - """ - - _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'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - } - - 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) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - self.policy_name = kwargs.get('policy_name', None) - self.registration_status = kwargs.get('registration_status', None) - - -class BEKDetails(Model): - """BEK is bitlocker encryption key. - - :param secret_url: Secret is BEK. - :type secret_url: str - :param secret_vault_id: ID of the Key Vault where this Secret is stored. - :type secret_vault_id: str - :param secret_data: BEK data. - :type secret_data: str - """ - - _attribute_map = { - 'secret_url': {'key': 'secretUrl', 'type': 'str'}, - 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, - 'secret_data': {'key': 'secretData', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BEKDetails, self).__init__(**kwargs) - self.secret_url = kwargs.get('secret_url', None) - self.secret_vault_id = kwargs.get('secret_vault_id', None) - self.secret_data = kwargs.get('secret_data', None) - - -class BMSBackupEngineQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param expand: attribute to add extended info - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSBackupEngineQueryObject, self).__init__(**kwargs) - self.expand = kwargs.get('expand', None) - - -class BMSBackupEnginesQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param backup_management_type: Backup management type for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param expand: Attribute to add extended info. - :type expand: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSBackupEnginesQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.expand = kwargs.get('expand', None) - - -class BMSBackupSummariesQueryObject(Model): - """Query parameters to fetch backup summaries. - - :param type: Backup management type for this container. Possible values - include: 'Invalid', 'BackupProtectedItemCountSummary', - 'BackupProtectionContainerCountSummary' - :type type: str or ~azure.mgmt.recoveryservicesbackup.models.Type - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - - -class BMSContainerQueryObject(Model): - """The query filters that can be used with the list containers API. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Required. Backup management type for this - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param container_type: Type of container for filter. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type container_type: str or - ~azure.mgmt.recoveryservicesbackup.models.ContainerType - :param backup_engine_name: Backup engine name - :type backup_engine_name: str - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param status: Status of registration of this container with the Recovery - Services Vault. - :type status: str - :param friendly_name: Friendly name of this container. - :type friendly_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSContainerQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.container_type = kwargs.get('container_type', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.status = kwargs.get('status', None) - self.friendly_name = kwargs.get('friendly_name', None) - - -class BMSContainersInquiryQueryObject(Model): - """The query filters that can be used with the inquire container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type for this container. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSContainersInquiryQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - - -class BMSPOQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param container_name: Full name of the container whose Protectable - Objects should be returned. - :type container_name: str - :param status: Backup status query parameter. - :type status: str - :param friendly_name: Friendly name. - :type friendly_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSPOQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.container_name = kwargs.get('container_name', None) - self.status = kwargs.get('status', None) - self.friendly_name = kwargs.get('friendly_name', None) - - -class BMSRefreshContainersQueryObject(Model): - """The query filters that can be used with the refresh container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSRefreshContainersQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - - -class BMSRPQueryObject(Model): - """Filters to list backup copies. - - :param start_date: Backup copies created after this time. - :type start_date: datetime - :param end_date: Backup copies created before this time. - :type end_date: datetime - :param restore_point_query_type: RestorePoint type. Possible values - include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', - 'All' - :type restore_point_query_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointQueryType - :param extended_info: In Get Recovery Point, it tells whether extended - information about recovery point is asked. - :type extended_info: bool - """ - - _attribute_map = { - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(BMSRPQueryObject, self).__init__(**kwargs) - self.start_date = kwargs.get('start_date', None) - self.end_date = kwargs.get('end_date', None) - self.restore_point_query_type = kwargs.get('restore_point_query_type', None) - self.extended_info = kwargs.get('extended_info', None) - - -class BMSWorkloadItemQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_item_type: Workload Item type. Possible values include: - 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', - 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param protection_status: Backup status query parameter. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSWorkloadItemQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_item_type = kwargs.get('workload_item_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.protection_status = kwargs.get('protection_status', None) - - -class ClientDiscoveryDisplay(Model): - """Localized display information of an operation. - - :param provider: Name of the provider for display purposes - :type provider: str - :param resource: ResourceType for which this Operation can be performed. - :type resource: str - :param operation: Operations Name itself. - :type operation: str - :param description: Description of the operation having details of what - operation is about. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) - - -class ClientDiscoveryForLogSpecification(Model): - """Class to represent shoebox log specification in json client discovery. - - :param name: Name for shoebox log specification. - :type name: str - :param display_name: Localized display name - :type display_name: str - :param blob_duration: blob duration of shoebox log specification - :type blob_duration: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryForLogSpecification, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display_name = kwargs.get('display_name', None) - self.blob_duration = kwargs.get('blob_duration', None) - - -class ClientDiscoveryForProperties(Model): - """Class to represent shoebox properties in json client discovery. - - :param service_specification: Operation properties. - :type service_specification: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification - """ - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ClientDiscoveryForServiceSpecification'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryForProperties, self).__init__(**kwargs) - self.service_specification = kwargs.get('service_specification', None) - - -class ClientDiscoveryForServiceSpecification(Model): - """Class to represent shoebox service specification in json client discovery. - - :param log_specifications: List of log specifications of this operation. - :type log_specifications: - list[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[ClientDiscoveryForLogSpecification]'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryForServiceSpecification, self).__init__(**kwargs) - self.log_specifications = kwargs.get('log_specifications', None) - - -class ClientDiscoveryValueForSingleApi(Model): - """Available operation details. - - :param name: Name of the Operation. - :type name: str - :param display: Contains the localized display information for this - particular operation - :type display: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryDisplay - :param origin: The intended executor of the operation;governs the display - of the operation in the RBAC UX and the audit logs UX - :type origin: str - :param properties: ShoeBox properties for the given operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForProperties - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ClientDiscoveryDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ClientDiscoveryForProperties'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryValueForSingleApi, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.properties = kwargs.get('properties', None) - - -class ClientScriptForConnect(Model): - """Client script details for file / folder restore. - - :param script_content: File content of the client script for file / folder - restore. - :type script_content: str - :param script_extension: File extension of the client script for file / - folder restore - .ps1 , .sh , etc. - :type script_extension: str - :param os_type: OS type - Windows, Linux etc. for which this file / folder - restore client script works. - :type os_type: str - :param url: URL of Executable from where to source the content. If this is - not null then ScriptContent should not be used - :type url: str - :param script_name_suffix: Mandatory suffix that should be added to the - name of script that is given for download to user. - If its null or empty then , ignore it. - :type script_name_suffix: str - """ - - _attribute_map = { - 'script_content': {'key': 'scriptContent', 'type': 'str'}, - 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientScriptForConnect, self).__init__(**kwargs) - self.script_content = kwargs.get('script_content', None) - self.script_extension = kwargs.get('script_extension', None) - self.os_type = kwargs.get('os_type', None) - self.url = kwargs.get('url', None) - self.script_name_suffix = kwargs.get('script_name_suffix', None) - - -class CloudError(Model): - """CloudError. - """ - - _attribute_map = { - } - - -class ContainerIdentityInfo(Model): - """Container identity information. - - :param unique_name: Unique name of the container - :type unique_name: str - :param aad_tenant_id: Protection container identity - AAD Tenant - :type aad_tenant_id: str - :param service_principal_client_id: Protection container identity - AAD - Service Principal - :type service_principal_client_id: str - :param audience: Protection container identity - Audience - :type audience: str - """ - - _attribute_map = { - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContainerIdentityInfo, self).__init__(**kwargs) - self.unique_name = kwargs.get('unique_name', None) - self.aad_tenant_id = kwargs.get('aad_tenant_id', None) - self.service_principal_client_id = kwargs.get('service_principal_client_id', None) - self.audience = kwargs.get('audience', None) - - -class DailyRetentionFormat(Model): - """Daily retention format. - - :param days_of_the_month: List of days of the month. - :type days_of_the_month: - list[~azure.mgmt.recoveryservicesbackup.models.Day] - """ - - _attribute_map = { - 'days_of_the_month': {'key': 'daysOfTheMonth', 'type': '[Day]'}, - } - - def __init__(self, **kwargs): - super(DailyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_month = kwargs.get('days_of_the_month', None) - - -class DailyRetentionSchedule(Model): - """Daily retention schedule. - - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(DailyRetentionSchedule, self).__init__(**kwargs) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) - - -class Day(Model): - """Day of the week. - - :param date_property: Date of the month - :type date_property: int - :param is_last: Whether Date is last date of month - :type is_last: bool - """ - - _attribute_map = { - 'date_property': {'key': 'date', 'type': 'int'}, - 'is_last': {'key': 'isLast', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(Day, self).__init__(**kwargs) - self.date_property = kwargs.get('date_property', None) - self.is_last = kwargs.get('is_last', None) - - -class DiskExclusionProperties(Model): - """DiskExclusionProperties. - - :param disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used - for VM Protection. - :type disk_lun_list: list[int] - :param is_inclusion_list: Flag to indicate whether DiskLunList is to be - included/ excluded from backup. - :type is_inclusion_list: bool - """ - - _attribute_map = { - 'disk_lun_list': {'key': 'diskLunList', 'type': '[int]'}, - 'is_inclusion_list': {'key': 'isInclusionList', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(DiskExclusionProperties, self).__init__(**kwargs) - self.disk_lun_list = kwargs.get('disk_lun_list', None) - self.is_inclusion_list = kwargs.get('is_inclusion_list', None) - - -class DiskInformation(Model): - """Disk information. - - :param lun: - :type lun: int - :param name: - :type name: str - """ - - _attribute_map = { - 'lun': {'key': 'lun', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DiskInformation, self).__init__(**kwargs) - self.lun = kwargs.get('lun', None) - self.name = kwargs.get('name', None) - - -class DistributedNodesInfo(Model): - """This is used to represent the various nodes of the distributed container. - - :param node_name: Name of the node under a distributed container. - :type node_name: str - :param status: Status of this Node. - Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - """ - - _attribute_map = { - 'node_name': {'key': 'nodeName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - } - - def __init__(self, **kwargs): - super(DistributedNodesInfo, self).__init__(**kwargs) - self.node_name = kwargs.get('node_name', None) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) - - -class DpmBackupEngine(BackupEngineBase): - """Data Protection Manager (DPM) specific backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :param is_dpm_upgrade_available: To check if backup engine upgrade - available - :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backupengine - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DpmBackupEngine, self).__init__(**kwargs) - self.backup_engine_type = 'DpmBackupEngine' - - -class DPMContainerExtendedInfo(Model): - """Additional information of the DPMContainer. - - :param last_refreshed_at: Last refresh time of the DPMContainer. - :type last_refreshed_at: datetime - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(DPMContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - - -class DpmErrorInfo(Model): - """DPM workload-specific error information. - - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(DpmErrorInfo, self).__init__(**kwargs) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) - - -class DpmJob(Job): - """DPM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed for job. - :type duration: timedelta - :param dpm_server_name: DPM server name managing the backup item or backup - job. - :type dpm_server_name: str - :param container_name: Name of cluster/server protecting current backup - item, if any. - :type container_name: str - :param container_type: Type of container. - :type container_type: str - :param workload_type: Type of backup item. - :type workload_type: str - :param actions_info: The state/actions applicable on this job like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.DpmErrorInfo] - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DpmJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(DpmJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.dpm_server_name = kwargs.get('dpm_server_name', None) - self.container_name = kwargs.get('container_name', None) - self.container_type = kwargs.get('container_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'DpmJob' - - -class DpmJobExtendedInfo(Model): - """Additional information on the DPM workload-specific job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.DpmJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DpmJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class DpmJobTaskDetails(Model): - """DPM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DpmJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - - -class DPMProtectedItem(ProtectedItem): - """Additional information on Backup engine specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the managed item - :type friendly_name: str - :param backup_engine_name: Backup Management server protecting this backup - item - :type backup_engine_name: str - :param protection_state: Protection state of the backup engine. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param extended_info: Extended info of the backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(DPMProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'DPMProtectedItem' - - -class DPMProtectedItemExtendedInfo(Model): - """Additional information of DPM Protected item. - - :param protectable_object_load_path: Attribute to provide information on - various DBs. - :type protectable_object_load_path: dict[str, str] - :param protected: To check if backup item is disk protected. - :type protected: bool - :param is_present_on_cloud: To check if backup item is cloud protected. - :type is_present_on_cloud: bool - :param last_backup_status: Last backup status information on backup item. - :type last_backup_status: str - :param last_refreshed_at: Last refresh time on backup item. - :type last_refreshed_at: datetime - :param oldest_recovery_point: Oldest cloud recovery point time. - :type oldest_recovery_point: datetime - :param recovery_point_count: cloud recovery point count. - :type recovery_point_count: int - :param on_premise_oldest_recovery_point: Oldest disk recovery point time. - :type on_premise_oldest_recovery_point: datetime - :param on_premise_latest_recovery_point: latest disk recovery point time. - :type on_premise_latest_recovery_point: datetime - :param on_premise_recovery_point_count: disk recovery point count. - :type on_premise_recovery_point_count: int - :param is_collocated: To check if backup item is collocated. - :type is_collocated: bool - :param protection_group_name: Protection group name of the backup item. - :type protection_group_name: str - :param disk_storage_used_in_bytes: Used Disk storage in bytes. - :type disk_storage_used_in_bytes: str - :param total_disk_storage_size_in_bytes: total Disk storage in bytes. - :type total_disk_storage_size_in_bytes: str - """ - - _attribute_map = { - 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, - 'protected': {'key': 'protected', 'type': 'bool'}, - 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, - 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, - 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, - 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, - 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.protectable_object_load_path = kwargs.get('protectable_object_load_path', None) - self.protected = kwargs.get('protected', None) - self.is_present_on_cloud = kwargs.get('is_present_on_cloud', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.on_premise_oldest_recovery_point = kwargs.get('on_premise_oldest_recovery_point', None) - self.on_premise_latest_recovery_point = kwargs.get('on_premise_latest_recovery_point', None) - self.on_premise_recovery_point_count = kwargs.get('on_premise_recovery_point_count', None) - self.is_collocated = kwargs.get('is_collocated', None) - self.protection_group_name = kwargs.get('protection_group_name', None) - self.disk_storage_used_in_bytes = kwargs.get('disk_storage_used_in_bytes', None) - self.total_disk_storage_size_in_bytes = kwargs.get('total_disk_storage_size_in_bytes', None) - - -class EncryptionDetails(Model): - """Details needed if the VM was encrypted at the time of backup. - - :param encryption_enabled: Identifies whether this backup copy represents - an encrypted VM at the time of backup. - :type encryption_enabled: bool - :param kek_url: Key Url. - :type kek_url: str - :param secret_key_url: Secret Url. - :type secret_key_url: str - :param kek_vault_id: ID of Key Vault where KEK is stored. - :type kek_vault_id: str - :param secret_key_vault_id: ID of Key Vault where Secret is stored. - :type secret_key_vault_id: str - """ - - _attribute_map = { - 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, - 'kek_url': {'key': 'kekUrl', 'type': 'str'}, - 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, - 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, - 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EncryptionDetails, self).__init__(**kwargs) - self.encryption_enabled = kwargs.get('encryption_enabled', None) - self.kek_url = kwargs.get('kek_url', None) - self.secret_key_url = kwargs.get('secret_key_url', None) - self.kek_vault_id = kwargs.get('kek_vault_id', None) - self.secret_key_vault_id = kwargs.get('secret_key_vault_id', None) - - -class ErrorAdditionalInfo(Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: object - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None - - -class ErrorDetail(Model): - """Error Detail class which encapsulates Code, Message and Recommendations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error Message related to the Code. - :vartype message: str - :ivar recommendations: List of recommendation strings. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.recommendations = None - - -class ErrorResponse(Model): - """The resource management error response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorResponse] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorResponse]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) - - -class OperationResultInfoBase(Model): - """Base class for operation result info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ExportJobsOperationResultInfo, OperationResultInfo - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'ExportJobsOperationResultInfo': 'ExportJobsOperationResultInfo', 'OperationResultInfo': 'OperationResultInfo'} - } - - def __init__(self, **kwargs): - super(OperationResultInfoBase, self).__init__(**kwargs) - self.object_type = None - - -class ExportJobsOperationResultInfo(OperationResultInfoBase): - """This class is used to send blob details after exporting jobs. - - 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 blob_url: URL of the blob into which the serialized string of list - of jobs is exported. - :type blob_url: str - :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :type blob_sas_key: str - :param excel_file_blob_url: URL of the blob into which the ExcelFile is - uploaded. - :type excel_file_blob_url: str - :param excel_file_blob_sas_key: SAS key to access the blob. It expires in - 15 mins. - :type excel_file_blob_sas_key: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'blob_url': {'key': 'blobUrl', 'type': 'str'}, - 'blob_sas_key': {'key': 'blobSasKey', 'type': 'str'}, - 'excel_file_blob_url': {'key': 'excelFileBlobUrl', 'type': 'str'}, - 'excel_file_blob_sas_key': {'key': 'excelFileBlobSasKey', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportJobsOperationResultInfo, self).__init__(**kwargs) - self.blob_url = kwargs.get('blob_url', None) - self.blob_sas_key = kwargs.get('blob_sas_key', None) - self.excel_file_blob_url = kwargs.get('excel_file_blob_url', None) - self.excel_file_blob_sas_key = kwargs.get('excel_file_blob_sas_key', None) - self.object_type = 'ExportJobsOperationResultInfo' - - -class ExtendedProperties(Model): - """Extended Properties for Azure IaasVM Backup. - - :param disk_exclusion_properties: Extended Properties for Disk Exclusion. - :type disk_exclusion_properties: - ~azure.mgmt.recoveryservicesbackup.models.DiskExclusionProperties - """ - - _attribute_map = { - 'disk_exclusion_properties': {'key': 'diskExclusionProperties', 'type': 'DiskExclusionProperties'}, - } - - def __init__(self, **kwargs): - super(ExtendedProperties, self).__init__(**kwargs) - self.disk_exclusion_properties = kwargs.get('disk_exclusion_properties', None) - - -class GenericContainer(ProtectionContainer): - """Base class for generic container of backup items. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param fabric_name: Name of the container's fabric - :type fabric_name: str - :param extended_information: Extended information (not returned in List - container API calls) - :type extended_information: - ~azure.mgmt.recoveryservicesbackup.models.GenericContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'extended_information': {'key': 'extendedInformation', 'type': 'GenericContainerExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(GenericContainer, self).__init__(**kwargs) - self.fabric_name = kwargs.get('fabric_name', None) - self.extended_information = kwargs.get('extended_information', None) - self.container_type = 'GenericContainer' - - -class GenericContainerExtendedInfo(Model): - """Container extended information. - - :param raw_cert_data: Public key of container cert - :type raw_cert_data: str - :param container_identity_info: Container identity information - :type container_identity_info: - ~azure.mgmt.recoveryservicesbackup.models.ContainerIdentityInfo - :param service_endpoints: Azure Backup Service Endpoints for the container - :type service_endpoints: dict[str, str] - """ - - _attribute_map = { - 'raw_cert_data': {'key': 'rawCertData', 'type': 'str'}, - 'container_identity_info': {'key': 'containerIdentityInfo', 'type': 'ContainerIdentityInfo'}, - 'service_endpoints': {'key': 'serviceEndpoints', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(GenericContainerExtendedInfo, self).__init__(**kwargs) - self.raw_cert_data = kwargs.get('raw_cert_data', None) - self.container_identity_info = kwargs.get('container_identity_info', None) - self.service_endpoints = kwargs.get('service_endpoints', None) - - -class GenericProtectedItem(ProtectedItem): - """Base class for backup items. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param protected_item_id: Data Plane Service ID of the protected item. - :type protected_item_id: long - :param source_associations: Loosely coupled (type, value) associations - (example - parent of a protected item) - :type source_associations: dict[str, str] - :param fabric_name: Name of this backup item's fabric. - :type fabric_name: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, - 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.policy_state = kwargs.get('policy_state', None) - self.protection_state = kwargs.get('protection_state', None) - self.protected_item_id = kwargs.get('protected_item_id', None) - self.source_associations = kwargs.get('source_associations', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.protected_item_type = 'GenericProtectedItem' - - -class GenericProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param fabric_name: Name of this policy's fabric. - :type fabric_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericProtectionPolicy, self).__init__(**kwargs) - self.sub_protection_policy = kwargs.get('sub_protection_policy', None) - self.time_zone = kwargs.get('time_zone', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.backup_management_type = 'GenericProtectionPolicy' - - -class GenericRecoveryPoint(RecoveryPoint): - """Generic backup copy. - - 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 friendly_name: Friendly name of the backup copy. - :type friendly_name: str - :param recovery_point_type: Type of the backup copy. - :type recovery_point_type: str - :param recovery_point_time: Time at which this backup copy was created. - :type recovery_point_time: datetime - :param recovery_point_additional_info: Additional information associated - with this backup copy. - :type recovery_point_additional_info: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericRecoveryPoint, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.recovery_point_type = kwargs.get('recovery_point_type', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.recovery_point_additional_info = kwargs.get('recovery_point_additional_info', None) - self.object_type = 'GenericRecoveryPoint' - - -class GetProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param expand: Specifies if the additional information should be provided - for this item. - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GetProtectedItemQueryObject, self).__init__(**kwargs) - self.expand = kwargs.get('expand', None) - - -class IaasVMBackupRequest(BackupRequest): - """IaaS VM workload-specific backup 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 recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(IaasVMBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - self.object_type = 'IaasVMBackupRequest' - - -class IaasVMILRRegistrationRequest(ILRRequest): - """Restore files/folders from a backup copy of IaaS VM. - - 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 recovery_point_id: ID of the IaaS VM backup copy from where the - files/folders have to be restored. - :type recovery_point_id: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - whose the files / folders have to be restored. - :type virtual_machine_id: str - :param initiator_name: iSCSI initiator name. - :type initiator_name: str - :param renew_existing_registration: Whether to renew existing registration - with the iSCSI server. - :type renew_existing_registration: bool - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'initiator_name': {'key': 'initiatorName', 'type': 'str'}, - 'renew_existing_registration': {'key': 'renewExistingRegistration', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(IaasVMILRRegistrationRequest, self).__init__(**kwargs) - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.initiator_name = kwargs.get('initiator_name', None) - self.renew_existing_registration = kwargs.get('renew_existing_registration', None) - self.object_type = 'IaasVMILRRegistrationRequest' - - -class IaasVMRecoveryPoint(RecoveryPoint): - """IaaS VM workload specific backup copy. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar recovery_point_additional_info: Additional information associated - with this backup copy. - :vartype recovery_point_additional_info: str - :ivar source_vm_storage_type: Storage type of the VM whose backup copy is - created. - :vartype source_vm_storage_type: str - :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when - the backup copy is created. - :vartype is_source_vm_encrypted: bool - :param key_and_secret: Required details for recovering an encrypted VM. - Applicable only when IsSourceVMEncrypted is true. - :type key_and_secret: - ~azure.mgmt.recoveryservicesbackup.models.KeyAndSecretDetails - :param is_instant_ilr_session_active: Is the session to recover items from - this backup copy still active. - :type is_instant_ilr_session_active: bool - :param recovery_point_tier_details: Recovery point tier information. - :type recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierInformation] - :param is_managed_virtual_machine: Whether VM is with Managed Disks - :type is_managed_virtual_machine: bool - :param virtual_machine_size: Virtual Machine Size - :type virtual_machine_size: str - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param os_type: OS type - :type os_type: str - :param recovery_point_disk_configuration: Disk configuration - :type recovery_point_disk_configuration: - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointDiskConfiguration - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'recovery_point_additional_info': {'readonly': True}, - 'source_vm_storage_type': {'readonly': True}, - 'is_source_vm_encrypted': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, - 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, - 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, - 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, - 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'recovery_point_disk_configuration': {'key': 'recoveryPointDiskConfiguration', 'type': 'RecoveryPointDiskConfiguration'}, - } - - def __init__(self, **kwargs): - super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.recovery_point_additional_info = None - self.source_vm_storage_type = None - self.is_source_vm_encrypted = None - self.key_and_secret = kwargs.get('key_and_secret', None) - self.is_instant_ilr_session_active = kwargs.get('is_instant_ilr_session_active', None) - self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) - self.is_managed_virtual_machine = kwargs.get('is_managed_virtual_machine', None) - self.virtual_machine_size = kwargs.get('virtual_machine_size', None) - self.original_storage_account_option = kwargs.get('original_storage_account_option', None) - self.os_type = kwargs.get('os_type', None) - self.recovery_point_disk_configuration = kwargs.get('recovery_point_disk_configuration', None) - self.object_type = 'IaasVMRecoveryPoint' - - -class IaasVMRestoreRequest(RestoreRequest): - """IaaS VM workload-specific restore. - - 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 recovery_point_id: ID of the backup copy to be recovered. - :type recovery_point_id: str - :param recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM which is being - recovered. - :type source_resource_id: str - :param target_virtual_machine_id: This is the complete ARM Id of the VM - that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} - :type target_virtual_machine_id: str - :param target_resource_group_id: This is the ARM Id of the resource group - that you want to create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg} - :type target_resource_group_id: str - :param storage_account_id: Fully qualified ARM ID of the storage account - to which the VM has to be restored. - :type storage_account_id: str - :param virtual_network_id: This is the virtual network Id of the vnet that - will be attached to the virtual machine. - 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. - :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 - Virtual Machines. - :type target_domain_name_id: str - :param region: Region in which the virtual machine is restored. - :type region: str - :param affinity_group: Affinity group associated to VM to be restored. - Used only for Classic Compute Virtual Machines. - :type affinity_group: str - :param create_new_cloud_service: Should a new cloud service be created - while restoring the VM. If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :type create_new_cloud_service: bool - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param encryption_details: Details needed if the VM was encrypted at the - time of backup. - :type encryption_details: - ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails - :param restore_disk_lun_list: List of Disk LUNs for partial restore - :type restore_disk_lun_list: list[int] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'}, - 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, - 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, - 'restore_disk_lun_list': {'key': 'restoreDiskLunList', 'type': '[int]'}, - } - - def __init__(self, **kwargs): - super(IaasVMRestoreRequest, self).__init__(**kwargs) - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) - self.target_resource_group_id = kwargs.get('target_resource_group_id', None) - self.storage_account_id = kwargs.get('storage_account_id', None) - self.virtual_network_id = kwargs.get('virtual_network_id', None) - self.subnet_id = kwargs.get('subnet_id', None) - self.target_domain_name_id = kwargs.get('target_domain_name_id', None) - self.region = kwargs.get('region', None) - self.affinity_group = kwargs.get('affinity_group', None) - self.create_new_cloud_service = kwargs.get('create_new_cloud_service', None) - self.original_storage_account_option = kwargs.get('original_storage_account_option', None) - self.encryption_details = kwargs.get('encryption_details', None) - self.restore_disk_lun_list = kwargs.get('restore_disk_lun_list', None) - self.object_type = 'IaasVMRestoreRequest' - - -class ILRRequestResource(Resource): - """Parameters to Provision ILR API. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ILRRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ILRRequest - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ILRRequest'}, - } - - def __init__(self, **kwargs): - super(ILRRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class InquiryInfo(Model): - """Details about inquired protectable items under a given container. - - :param status: Inquiry Status for this container such as - InProgress | Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param inquiry_details: Inquiry Details which will have workload specific - details. - For e.g. - For SQL and oracle this will contain different details. - :type inquiry_details: - list[~azure.mgmt.recoveryservicesbackup.models.WorkloadInquiryDetails] - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'inquiry_details': {'key': 'inquiryDetails', 'type': '[WorkloadInquiryDetails]'}, - } - - def __init__(self, **kwargs): - super(InquiryInfo, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) - self.inquiry_details = kwargs.get('inquiry_details', None) - - -class InquiryValidation(Model): - """Validation for inquired protectable items under a given container. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param status: Status for the Inquiry Validation. - :type status: str - :param error_detail: Error Detail in case the status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :ivar additional_detail: Error Additional Detail in case the status is - non-success. - :vartype additional_detail: str - """ - - _validation = { - 'additional_detail': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'additional_detail': {'key': 'additionalDetail', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(InquiryValidation, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) - self.additional_detail = None - - -class InstantItemRecoveryTarget(Model): - """Target details for file / folder restore. - - :param client_scripts: List of client scripts. - :type client_scripts: - list[~azure.mgmt.recoveryservicesbackup.models.ClientScriptForConnect] - """ - - _attribute_map = { - 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, - } - - def __init__(self, **kwargs): - super(InstantItemRecoveryTarget, self).__init__(**kwargs) - self.client_scripts = kwargs.get('client_scripts', None) - - -class InstantRPAdditionalDetails(Model): - """InstantRPAdditionalDetails. - - :param azure_backup_rg_name_prefix: - :type azure_backup_rg_name_prefix: str - :param azure_backup_rg_name_suffix: - :type azure_backup_rg_name_suffix: str - """ - - _attribute_map = { - 'azure_backup_rg_name_prefix': {'key': 'azureBackupRGNamePrefix', 'type': 'str'}, - 'azure_backup_rg_name_suffix': {'key': 'azureBackupRGNameSuffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(InstantRPAdditionalDetails, self).__init__(**kwargs) - self.azure_backup_rg_name_prefix = kwargs.get('azure_backup_rg_name_prefix', None) - self.azure_backup_rg_name_suffix = kwargs.get('azure_backup_rg_name_suffix', None) - - -class JobQueryObject(Model): - """Filters to list the jobs. - - :param status: Status of the job. Possible values include: 'Invalid', - 'InProgress', 'Completed', 'Failed', 'CompletedWithWarnings', 'Cancelled', - 'Cancelling' - :type status: str or ~azure.mgmt.recoveryservicesbackup.models.JobStatus - :param backup_management_type: Type of backup management for the job. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: Type of operation. Possible values include: 'Invalid', - 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', - 'DisableBackup', 'DeleteBackupData', 'CrossRegionRestore', 'Undelete' - :type operation: str or - ~azure.mgmt.recoveryservicesbackup.models.JobOperationType - :param job_id: JobID represents the job uniquely. - :type job_id: str - :param start_time: Job has started at this time. Value is in UTC. - :type start_time: datetime - :param end_time: Job has ended at this time. Value is in UTC. - :type end_time: datetime - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(JobQueryObject, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.job_id = kwargs.get('job_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - - -class JobResource(Resource): - """Defines workload agnostic properties for a job. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: JobResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.Job - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Job'}, - } - - def __init__(self, **kwargs): - super(JobResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class KEKDetails(Model): - """KEK is encryption key for BEK. - - :param key_url: Key is KEK. - :type key_url: str - :param key_vault_id: Key Vault ID where this Key is stored. - :type key_vault_id: str - :param key_backup_data: KEK data. - :type key_backup_data: str - """ - - _attribute_map = { - 'key_url': {'key': 'keyUrl', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(KEKDetails, self).__init__(**kwargs) - self.key_url = kwargs.get('key_url', None) - self.key_vault_id = kwargs.get('key_vault_id', None) - self.key_backup_data = kwargs.get('key_backup_data', None) - - -class KeyAndSecretDetails(Model): - """BEK is bitlocker key. - KEK is encryption key for BEK - If the VM was encrypted then we will store following details : - 1. Secret(BEK) - Url + Backup Data + vaultId. - 2. Key(KEK) - Url + Backup Data + vaultId. - 3. EncryptionMechanism - BEK and KEK can potentially have different vault ids. - - :param kek_details: KEK is encryption key for BEK. - :type kek_details: ~azure.mgmt.recoveryservicesbackup.models.KEKDetails - :param bek_details: BEK is bitlocker encryption key. - :type bek_details: ~azure.mgmt.recoveryservicesbackup.models.BEKDetails - :param encryption_mechanism: Encryption mechanism: None/ SinglePass/ - DoublePass - :type encryption_mechanism: str - """ - - _attribute_map = { - 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, - 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, - 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(KeyAndSecretDetails, self).__init__(**kwargs) - self.kek_details = kwargs.get('kek_details', None) - self.bek_details = kwargs.get('bek_details', None) - self.encryption_mechanism = kwargs.get('encryption_mechanism', None) - - -class SchedulePolicy(Model): - """Base class for backup schedule. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, - SimpleSchedulePolicy - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} - } - - def __init__(self, **kwargs): - super(SchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = None - - -class LogSchedulePolicy(SchedulePolicy): - """Log policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_frequency_in_mins: Frequency of the log schedule operation - of this policy in minutes. - :type schedule_frequency_in_mins: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_frequency_in_mins': {'key': 'scheduleFrequencyInMins', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(LogSchedulePolicy, self).__init__(**kwargs) - self.schedule_frequency_in_mins = kwargs.get('schedule_frequency_in_mins', None) - self.schedule_policy_type = 'LogSchedulePolicy' - - -class RetentionPolicy(Model): - """Base class for retention policy. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LongTermRetentionPolicy, SimpleRetentionPolicy - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'retention_policy_type': {'LongTermRetentionPolicy': 'LongTermRetentionPolicy', 'SimpleRetentionPolicy': 'SimpleRetentionPolicy'} - } - - def __init__(self, **kwargs): - super(RetentionPolicy, self).__init__(**kwargs) - self.retention_policy_type = None - - -class LongTermRetentionPolicy(RetentionPolicy): - """Long term retention policy. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param daily_schedule: Daily retention schedule of the protection policy. - :type daily_schedule: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionSchedule - :param weekly_schedule: Weekly retention schedule of the protection - policy. - :type weekly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionSchedule - :param monthly_schedule: Monthly retention schedule of the protection - policy. - :type monthly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.MonthlyRetentionSchedule - :param yearly_schedule: Yearly retention schedule of the protection - policy. - :type yearly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.YearlyRetentionSchedule - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailyRetentionSchedule'}, - 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklyRetentionSchedule'}, - 'monthly_schedule': {'key': 'monthlySchedule', 'type': 'MonthlyRetentionSchedule'}, - 'yearly_schedule': {'key': 'yearlySchedule', 'type': 'YearlyRetentionSchedule'}, - } - - def __init__(self, **kwargs): - super(LongTermRetentionPolicy, self).__init__(**kwargs) - self.daily_schedule = kwargs.get('daily_schedule', None) - self.weekly_schedule = kwargs.get('weekly_schedule', None) - self.monthly_schedule = kwargs.get('monthly_schedule', None) - self.yearly_schedule = kwargs.get('yearly_schedule', None) - self.retention_policy_type = 'LongTermRetentionPolicy' - - -class LongTermSchedulePolicy(SchedulePolicy): - """Long term policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LongTermSchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = 'LongTermSchedulePolicy' - - -class MabContainer(ProtectionContainer): - """Container with items backed up using MAB backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Can the container be registered one more time. - :type can_re_register: bool - :param container_id: ContainerID represents the container. - :type container_id: long - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - :param agent_version: Agent version of this container. - :type agent_version: str - :param extended_info: Additional information for this container - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabContainerExtendedInfo - :param mab_container_health_details: Health details on this mab container. - :type mab_container_health_details: - list[~azure.mgmt.recoveryservicesbackup.models.MABContainerHealthDetails] - :param container_health_state: Health state of mab container. - :type container_health_state: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'long'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabContainerExtendedInfo'}, - 'mab_container_health_details': {'key': 'mabContainerHealthDetails', 'type': '[MABContainerHealthDetails]'}, - 'container_health_state': {'key': 'containerHealthState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabContainer, self).__init__(**kwargs) - self.can_re_register = kwargs.get('can_re_register', None) - self.container_id = kwargs.get('container_id', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.agent_version = kwargs.get('agent_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.mab_container_health_details = kwargs.get('mab_container_health_details', None) - self.container_health_state = kwargs.get('container_health_state', None) - self.container_type = 'Windows' - - -class MabContainerExtendedInfo(Model): - """Additional information of the container. - - :param last_refreshed_at: Time stamp when this container was refreshed. - :type last_refreshed_at: datetime - :param backup_item_type: Type of backup items associated with this - container. Possible values include: 'Invalid', 'VM', 'FileFolder', - 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type backup_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupItemType - :param backup_items: List of backup items associated with this container. - :type backup_items: list[str] - :param policy_name: Backup policy associated with this container. - :type policy_name: str - :param last_backup_status: Latest backup status of this container. - :type last_backup_status: str - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'backup_item_type': {'key': 'backupItemType', 'type': 'str'}, - 'backup_items': {'key': 'backupItems', 'type': '[str]'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.backup_item_type = kwargs.get('backup_item_type', None) - self.backup_items = kwargs.get('backup_items', None) - self.policy_name = kwargs.get('policy_name', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - - -class MABContainerHealthDetails(Model): - """MAB workload-specific Health Details. - - :param code: Health Code - :type code: int - :param title: Health Title - :type title: str - :param message: Health Message - :type message: str - :param recommendations: Health Recommended Actions - :type recommendations: list[str] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(MABContainerHealthDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.title = kwargs.get('title', None) - self.message = kwargs.get('message', None) - self.recommendations = kwargs.get('recommendations', None) - - -class MabErrorInfo(Model): - """MAB workload-specific error information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = None - self.recommendations = None - - -class MabFileFolderProtectedItem(ProtectedItem): - """MAB workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of this backup item. - :type friendly_name: str - :param computer_name: Name of the computer associated with this backup - item. - :type computer_name: str - :param last_backup_status: Status of last backup operation. - :type last_backup_status: str - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param protection_state: Protected, ProtectionStopped, IRPending or - ProtectionError - :type protection_state: str - :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion - in UTC - :type deferred_delete_sync_time_in_utc: long - :param extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'deferred_delete_sync_time_in_utc': {'key': 'deferredDeleteSyncTimeInUTC', 'type': 'long'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(MabFileFolderProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.computer_name = kwargs.get('computer_name', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.protection_state = kwargs.get('protection_state', None) - self.deferred_delete_sync_time_in_utc = kwargs.get('deferred_delete_sync_time_in_utc', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'MabFileFolderProtectedItem' - - -class MabFileFolderProtectedItemExtendedInfo(Model): - """Additional information on the backed up item. - - :param last_refreshed_at: Last time when the agent data synced to service. - :type last_refreshed_at: datetime - :param oldest_recovery_point: The oldest backup copy available. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies associated with the - backup item. - :type recovery_point_count: int - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - - -class MabJob(Job): - """MAB workload-specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time taken by job to run. - :type duration: timedelta - :param actions_info: The state/actions applicable on jobs like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param mab_server_name: Name of server protecting the DS. - :type mab_server_name: str - :param mab_server_type: Server type of MAB container. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.models.MabServerType - :param workload_type: Workload type of backup item. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.MabErrorInfo] - :param extended_info: Additional information on the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, - 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(MabJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.mab_server_name = kwargs.get('mab_server_name', None) - self.mab_server_type = kwargs.get('mab_server_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'MabJob' - - -class MabJobExtendedInfo(Model): - """Additional information for the MAB workload-specific job. - - :param tasks_list: List of tasks for this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.MabJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message specific to this - job. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class MabJobTaskDetails(Model): - """MAB workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - - -class MabProtectionPolicy(ProtectionPolicy): - """Mab container-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param schedule_policy: Backup schedule of backup policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, **kwargs): - super(MabProtectionPolicy, self).__init__(**kwargs) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.backup_management_type = 'MAB' - - -class MonthlyRetentionSchedule(Model): - """Monthly retention schedule. - - :param retention_schedule_format_type: Retention schedule format type for - monthly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param retention_schedule_daily: Daily retention format for monthly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for monthly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(MonthlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) - self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) - self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) - - -class NameInfo(Model): - """The name of usage. - - :param value: Value of usage. - :type value: str - :param localized_value: Localized value of usage. - :type localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NameInfo, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.localized_value = kwargs.get('localized_value', None) - - -class OperationResultInfo(OperationResultInfoBase): - """Operation result info. - - 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 job_list: List of jobs created by this operation. - :type job_list: list[str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_list': {'key': 'jobList', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(OperationResultInfo, self).__init__(**kwargs) - self.job_list = kwargs.get('job_list', None) - self.object_type = 'OperationResultInfo' - - -class OperationWorkerResponse(Model): - """This is the base class for operation result responses. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - } - - def __init__(self, **kwargs): - super(OperationWorkerResponse, self).__init__(**kwargs) - self.status_code = kwargs.get('status_code', None) - self.headers = kwargs.get('headers', None) - - -class OperationResultInfoBaseResource(OperationWorkerResponse): - """Base class for operation result info. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - :param operation: OperationResultInfoBaseResource operation - :type operation: - ~azure.mgmt.recoveryservicesbackup.models.OperationResultInfoBase - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - 'operation': {'key': 'operation', 'type': 'OperationResultInfoBase'}, - } - - def __init__(self, **kwargs): - super(OperationResultInfoBaseResource, self).__init__(**kwargs) - self.operation = kwargs.get('operation', None) - - -class OperationStatus(Model): - """Operation status. - - :param id: ID of the operation. - :type id: str - :param name: Name of the operation. - :type name: str - :param status: Operation status. Possible values include: 'Invalid', - 'InProgress', 'Succeeded', 'Failed', 'Canceled' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusValues - :param start_time: Operation start time. Format: ISO-8601. - :type start_time: datetime - :param end_time: Operation end time. Format: ISO-8601. - :type end_time: datetime - :param error: Error information related to this operation. - :type error: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusError - :param properties: Additional information associated with this operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusExtendedInfo - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationStatusError'}, - 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(OperationStatus, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) - - -class OperationStatusError(Model): - """Error information associated with operation status call. - - :param code: Error code of the operation failure. - :type code: str - :param message: Error message displayed if the operation failure. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationStatusError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - - -class OperationStatusExtendedInfo(Model): - """Base class for additional information of operation status. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OperationStatusJobExtendedInfo, - OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} - } - - def __init__(self, **kwargs): - super(OperationStatusExtendedInfo, self).__init__(**kwargs) - self.object_type = None - - -class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): - """Operation status job extended info. - - 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 job_id: ID of the job created for this protected item. - :type job_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) - self.job_id = kwargs.get('job_id', None) - self.object_type = 'OperationStatusJobExtendedInfo' - - -class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for list of jobs. - - 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 job_ids: IDs of the jobs created for the protected item. - :type job_ids: list[str] - :param failed_jobs_error: Stores all the failed jobs along with the - corresponding error codes. - :type failed_jobs_error: dict[str, str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_ids': {'key': 'jobIds', 'type': '[str]'}, - 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) - self.job_ids = kwargs.get('job_ids', None) - self.failed_jobs_error = kwargs.get('failed_jobs_error', None) - self.object_type = 'OperationStatusJobsExtendedInfo' - - -class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for ILR provision 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 recovery_target: Target details for file / folder restore. - :type recovery_target: - ~azure.mgmt.recoveryservicesbackup.models.InstantItemRecoveryTarget - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, - } - - def __init__(self, **kwargs): - super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) - self.recovery_target = kwargs.get('recovery_target', None) - self.object_type = 'OperationStatusProvisionILRExtendedInfo' - - -class PointInTimeRange(Model): - """Provides details for log ranges. - - :param start_time: Start time of the time range for log recovery. - :type start_time: datetime - :param end_time: End time of the time range for log recovery. - :type end_time: datetime - """ - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(PointInTimeRange, self).__init__(**kwargs) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - - -class PreBackupValidation(Model): - """Pre-backup validation for Azure VM Workload provider. - - :param status: Status of protectable item, i.e. - InProgress,Succeeded,Failed. Possible values include: 'Invalid', - 'Success', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.InquiryStatus - :param code: Error code of protectable item - :type code: str - :param message: Message corresponding to the error code for the - protectable item - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PreBackupValidation, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - - -class PreValidateEnableBackupRequest(Model): - """Contract to validate if backup can be enabled on the given resource in a - given vault and given configuration. - It will validate followings - 1. Vault capacity - 2. VM is already protected - 3. Any VM related configuration passed in properties. - - :param resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare - etc. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: ARM Virtual Machine Id - :type resource_id: str - :param vault_id: ARM id of the Recovery Services Vault - :type vault_id: str - :param properties: Configuration of VM if any needs to be validated like - OS type etc - :type properties: str - """ - - _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) - - -class PreValidateEnableBackupResponse(Model): - """Response contract for enable backup validation request. - - :param status: Validation Status. Possible values include: 'Invalid', - 'Succeeded', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.ValidationStatus - :param error_code: Response error code - :type error_code: str - :param error_message: Response error message - :type error_message: str - :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 - :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 - :type protected_item_name: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'recommendation': {'key': 'recommendation', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PreValidateEnableBackupResponse, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - self.recommendation = kwargs.get('recommendation', None) - self.container_name = kwargs.get('container_name', None) - self.protected_item_name = kwargs.get('protected_item_name', None) - - -class PrivateEndpoint(Model): - """The Private Endpoint network resource that is linked to the Private - Endpoint connection. - - :param id: Gets or sets id - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PrivateEndpoint, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - - -class PrivateEndpointConnection(Model): - """Private Endpoint Connection Response Properties. - - :param provisioning_state: Gets or sets provisioning state of the private - endpoint connection. Possible values include: 'Succeeded', 'Deleting', - 'Failed', 'Pending' - :type provisioning_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProvisioningState - :param private_endpoint: Gets or sets private endpoint associated with the - private endpoint connection - :type private_endpoint: - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpoint - :param private_link_service_connection_state: Gets or sets private link - service connection state - :type private_link_service_connection_state: - ~azure.mgmt.recoveryservicesbackup.models.PrivateLinkServiceConnectionState - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpoint'}, - 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, - } - - def __init__(self, **kwargs): - super(PrivateEndpointConnection, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.private_endpoint = kwargs.get('private_endpoint', None) - self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) - - -class PrivateEndpointConnectionResource(Resource): - """Private Endpoint Connection Response Properties. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: PrivateEndpointConnectionResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnection - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnection'}, - } - - def __init__(self, **kwargs): - super(PrivateEndpointConnectionResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class PrivateLinkServiceConnectionState(Model): - """Private Link Service Connection State. - - :param status: Gets or sets the status. Possible values include: - 'Pending', 'Approved', 'Rejected', 'Disconnected' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnectionStatus - :param description: Gets or sets description - :type description: str - :param action_required: Gets or sets actions required - :type action_required: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'action_required': {'key': 'actionRequired', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.description = kwargs.get('description', None) - self.action_required = kwargs.get('action_required', None) - - -class ProtectableContainerResource(Resource): - """Protectable Container Class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectableContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainer - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectableContainer'}, - } - - def __init__(self, **kwargs): - super(ProtectableContainerResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param health_state: Health State for the backed up item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_state: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthState - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param policy_name: Backup policy name associated with the backup item. - :type policy_name: str - :param container_name: Name of the container. - :type container_name: str - :param backup_engine_name: Backup Engine name - :type backup_engine_name: str - :param friendly_name: Friendly name of protected item - :type friendly_name: str - :param fabric_name: Name of the fabric. - :type fabric_name: str - :param backup_set_name: Name of the backup set. - :type backup_set_name: str - """ - - _attribute_map = { - 'health_state': {'key': 'healthState', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProtectedItemQueryObject, self).__init__(**kwargs) - self.health_state = kwargs.get('health_state', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.item_type = kwargs.get('item_type', None) - self.policy_name = kwargs.get('policy_name', None) - self.container_name = kwargs.get('container_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.backup_set_name = kwargs.get('backup_set_name', None) - - -class ProtectedItemResource(Resource): - """Base class for backup items. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectedItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ProtectedItem - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, - } - - def __init__(self, **kwargs): - super(ProtectedItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectionContainerResource(Resource): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainer - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionContainer'}, - } - - def __init__(self, **kwargs): - super(ProtectionContainerResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectionIntentQueryObject(Model): - """Filters to list protection intent. - - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'SQLInstance', 'SQLAvailabilityGroupContainer' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.IntentItemType - :param parent_name: Parent name of the intent - :type parent_name: str - :param item_name: Item name of the intent - :type item_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'item_name': {'key': 'itemName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProtectionIntentQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.item_type = kwargs.get('item_type', None) - self.parent_name = kwargs.get('parent_name', None) - self.item_name = kwargs.get('item_name', None) - - -class ProtectionIntentResource(Resource): - """Base class for backup ProtectionIntent. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionIntentResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntent - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionIntent'}, - } - - def __init__(self, **kwargs): - super(ProtectionIntentResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectionPolicyQueryObject(Model): - """Filters the list backup policies API. - - :param backup_management_type: Backup management type for the backup - policy. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param workload_type: Workload type for the backup policy. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProtectionPolicyQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.workload_type = kwargs.get('workload_type', None) - - -class ProtectionPolicyResource(Resource): - """Base class for backup policy. Workload-specific backup policies are derived - from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionPolicyResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicy - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionPolicy'}, - } - - def __init__(self, **kwargs): - super(ProtectionPolicyResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class RecoveryPointDiskConfiguration(Model): - """Disk configuration. - - :param number_of_disks_included_in_backup: Number of disks included in - backup - :type number_of_disks_included_in_backup: int - :param number_of_disks_attached_to_vm: Number of disks attached to the VM - :type number_of_disks_attached_to_vm: int - :param included_disk_list: Information of disks included in backup - :type included_disk_list: - list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] - :param excluded_disk_list: Information of disks excluded from backup - :type excluded_disk_list: - list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] - """ - - _attribute_map = { - 'number_of_disks_included_in_backup': {'key': 'numberOfDisksIncludedInBackup', 'type': 'int'}, - 'number_of_disks_attached_to_vm': {'key': 'numberOfDisksAttachedToVm', 'type': 'int'}, - 'included_disk_list': {'key': 'includedDiskList', 'type': '[DiskInformation]'}, - 'excluded_disk_list': {'key': 'excludedDiskList', 'type': '[DiskInformation]'}, - } - - def __init__(self, **kwargs): - super(RecoveryPointDiskConfiguration, self).__init__(**kwargs) - self.number_of_disks_included_in_backup = kwargs.get('number_of_disks_included_in_backup', None) - self.number_of_disks_attached_to_vm = kwargs.get('number_of_disks_attached_to_vm', None) - self.included_disk_list = kwargs.get('included_disk_list', None) - self.excluded_disk_list = kwargs.get('excluded_disk_list', None) - - -class RecoveryPointResource(Resource): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RecoveryPointResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, - } - - def __init__(self, **kwargs): - super(RecoveryPointResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class RecoveryPointTierInformation(Model): - """Recovery point tier information. - - :param type: Recovery point tier type. Possible values include: 'Invalid', - 'InstantRP', 'HardenedRP' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierType - :param status: Recovery point tier status. Possible values include: - 'Invalid', 'Valid', 'Disabled', 'Deleted' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierStatus - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'RecoveryPointTierType'}, - 'status': {'key': 'status', 'type': 'RecoveryPointTierStatus'}, - } - - def __init__(self, **kwargs): - super(RecoveryPointTierInformation, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.status = kwargs.get('status', None) - - -class ResourceList(Model): - """Base for all lists of resources. - - :param next_link: The uri to fetch the next page of resources. Call - ListNext() fetches next page of resources. - :type next_link: str - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceList, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - - -class RestoreFileSpecs(Model): - """Restore file specs like file path, type and target folder path info. - - :param path: Source File/Folder path - :type path: str - :param file_spec_type: Indicates what the Path variable stands for - :type file_spec_type: str - :param target_folder_path: Destination folder path in target FileShare - :type target_folder_path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, - 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RestoreFileSpecs, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.file_spec_type = kwargs.get('file_spec_type', None) - self.target_folder_path = kwargs.get('target_folder_path', None) - - -class RestoreRequestResource(Resource): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RestoreRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RestoreRequest'}, - } - - def __init__(self, **kwargs): - super(RestoreRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class RetentionDuration(Model): - """Retention duration. - - :param count: Count of duration types. Retention duration is obtained by - the counting the duration type Count times. - For example, when Count = 3 and DurationType = Weeks, retention duration - will be three weeks. - :type count: int - :param duration_type: Retention duration type of retention policy. - Possible values include: 'Invalid', 'Days', 'Weeks', 'Months', 'Years' - :type duration_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionDurationType - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration_type': {'key': 'durationType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RetentionDuration, self).__init__(**kwargs) - self.count = kwargs.get('count', None) - self.duration_type = kwargs.get('duration_type', None) - - -class Settings(Model): - """Common settings field for backup management. - - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param issqlcompression: SQL compression flag - :type issqlcompression: bool - :param is_compression: Workload compression flag. This has been added so - that 'isSqlCompression' - will be deprecated once clients upgrade to consider this flag. - :type is_compression: bool - """ - - _attribute_map = { - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'issqlcompression': {'key': 'issqlcompression', 'type': 'bool'}, - 'is_compression': {'key': 'isCompression', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(Settings, self).__init__(**kwargs) - self.time_zone = kwargs.get('time_zone', None) - self.issqlcompression = kwargs.get('issqlcompression', None) - self.is_compression = kwargs.get('is_compression', None) - - -class SimpleRetentionPolicy(RetentionPolicy): - """Simple policy retention. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param retention_duration: Retention duration of the protection policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(SimpleRetentionPolicy, self).__init__(**kwargs) - self.retention_duration = kwargs.get('retention_duration', None) - self.retention_policy_type = 'SimpleRetentionPolicy' - - -class SimpleSchedulePolicy(SchedulePolicy): - """Simple policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_run_frequency: Frequency of the schedule operation of this - policy. Possible values include: 'Invalid', 'Daily', 'Weekly' - :type schedule_run_frequency: str or - ~azure.mgmt.recoveryservicesbackup.models.ScheduleRunType - :param schedule_run_days: List of days of week this schedule has to be - run. - :type schedule_run_days: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param schedule_run_times: List of times of day this schedule has to be - run. - :type schedule_run_times: list[datetime] - :param schedule_weekly_frequency: At every number weeks this schedule has - to be run. - :type schedule_weekly_frequency: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, - 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[DayOfWeek]'}, - 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, - 'schedule_weekly_frequency': {'key': 'scheduleWeeklyFrequency', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(SimpleSchedulePolicy, self).__init__(**kwargs) - self.schedule_run_frequency = kwargs.get('schedule_run_frequency', None) - self.schedule_run_days = kwargs.get('schedule_run_days', None) - self.schedule_run_times = kwargs.get('schedule_run_times', None) - self.schedule_weekly_frequency = kwargs.get('schedule_weekly_frequency', None) - self.schedule_policy_type = 'SimpleSchedulePolicy' - - -class SQLDataDirectory(Model): - """SQLDataDirectory info. - - :param type: Type of data directory mapping. Possible values include: - 'Invalid', 'Data', 'Log' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param path: File path - :type path: str - :param logical_name: Logical name of the file - :type logical_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SQLDataDirectory, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.path = kwargs.get('path', None) - self.logical_name = kwargs.get('logical_name', None) - - -class SQLDataDirectoryMapping(Model): - """Encapsulates information regarding data directory. - - :param mapping_type: Type of data directory mapping. Possible values - include: 'Invalid', 'Data', 'Log' - :type mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param source_logical_name: Restore source logical name path - :type source_logical_name: str - :param source_path: Restore source path - :type source_path: str - :param target_path: Target path - :type target_path: str - """ - - _attribute_map = { - 'mapping_type': {'key': 'mappingType', 'type': 'str'}, - 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, - 'source_path': {'key': 'sourcePath', 'type': 'str'}, - 'target_path': {'key': 'targetPath', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SQLDataDirectoryMapping, self).__init__(**kwargs) - self.mapping_type = kwargs.get('mapping_type', None) - self.source_logical_name = kwargs.get('source_logical_name', None) - self.source_path = kwargs.get('source_path', None) - self.target_path = kwargs.get('target_path', None) - - -class SubProtectionPolicy(Model): - """Sub-protection policy which includes schedule and retention. - - :param policy_type: Type of backup policy type. Possible values include: - 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' - :type policy_type: str or - ~azure.mgmt.recoveryservicesbackup.models.PolicyType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _attribute_map = { - 'policy_type': {'key': 'policyType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, **kwargs): - super(SubProtectionPolicy, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - - -class TargetAFSRestoreInfo(Model): - """Target Azure File Share Info. - - :param name: File share name - :type name: str - :param target_resource_id: Target file share resource ARM ID - :type target_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetAFSRestoreInfo, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.target_resource_id = kwargs.get('target_resource_id', None) - - -class TargetRestoreInfo(Model): - """Details about target workload during restore operation. - - :param overwrite_option: Can Overwrite if Target DataBase already exists. - Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' - :type overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.models.OverwriteOptions - :param container_id: Resource Id name of the container in which Target - DataBase resides - :type container_id: str - :param database_name: Database name InstanceName/DataBaseName for SQL or - System/DbName for SAP Hana - :type database_name: str - :param target_directory_for_file_restore: Target directory location for - restore as files. - :type target_directory_for_file_restore: str - """ - - _attribute_map = { - 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'target_directory_for_file_restore': {'key': 'targetDirectoryForFileRestore', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetRestoreInfo, self).__init__(**kwargs) - self.overwrite_option = kwargs.get('overwrite_option', None) - self.container_id = kwargs.get('container_id', None) - self.database_name = kwargs.get('database_name', None) - self.target_directory_for_file_restore = kwargs.get('target_directory_for_file_restore', None) - - -class TokenInformation(Model): - """The token information details. - - :param token: Token value. - :type token: str - :param expiry_time_in_utc_ticks: Expiry time of token. - :type expiry_time_in_utc_ticks: long - :param security_pin: Security PIN - :type security_pin: str - """ - - _attribute_map = { - 'token': {'key': 'token', 'type': 'str'}, - 'expiry_time_in_utc_ticks': {'key': 'expiryTimeInUtcTicks', 'type': 'long'}, - 'security_pin': {'key': 'securityPIN', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TokenInformation, self).__init__(**kwargs) - self.token = kwargs.get('token', None) - self.expiry_time_in_utc_ticks = kwargs.get('expiry_time_in_utc_ticks', None) - self.security_pin = kwargs.get('security_pin', None) - - -class ValidateOperationRequest(Model): - """Base class for validate operation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateRestoreOperationRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'ValidateRestoreOperationRequest': 'ValidateRestoreOperationRequest'} - } - - def __init__(self, **kwargs): - super(ValidateOperationRequest, self).__init__(**kwargs) - self.object_type = None - - -class ValidateRestoreOperationRequest(ValidateOperationRequest): - """AzureRestoreValidation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateIaasVMRestoreOperationRequest - - 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'}, - } - - _subtype_map = { - 'object_type': {'ValidateIaasVMRestoreOperationRequest': 'ValidateIaasVMRestoreOperationRequest'} - } - - def __init__(self, **kwargs): - super(ValidateRestoreOperationRequest, self).__init__(**kwargs) - self.restore_request = kwargs.get('restore_request', None) - self.object_type = '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' - - -class ValidateOperationResponse(Model): - """Base class for validate operation response. - - :param validation_results: Gets the validation result - :type validation_results: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorDetail] - """ - - _attribute_map = { - 'validation_results': {'key': 'validationResults', 'type': '[ErrorDetail]'}, - } - - def __init__(self, **kwargs): - super(ValidateOperationResponse, self).__init__(**kwargs) - self.validation_results = kwargs.get('validation_results', None) - - -class ValidateOperationsResponse(Model): - """ValidateOperationsResponse. - - :param validate_operation_response: - :type validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse - """ - - _attribute_map = { - 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, - } - - def __init__(self, **kwargs): - super(ValidateOperationsResponse, self).__init__(**kwargs) - self.validate_operation_response = kwargs.get('validate_operation_response', None) - - -class WeeklyRetentionFormat(Model): - """Weekly retention format. - - :param days_of_the_week: List of days of the week. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param weeks_of_the_month: List of weeks of month. - :type weeks_of_the_month: list[str or - ~azure.mgmt.recoveryservicesbackup.models.WeekOfMonth] - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'weeks_of_the_month': {'key': 'weeksOfTheMonth', 'type': '[WeekOfMonth]'}, - } - - def __init__(self, **kwargs): - super(WeeklyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_week = kwargs.get('days_of_the_week', None) - self.weeks_of_the_month = kwargs.get('weeks_of_the_month', None) - - -class WeeklyRetentionSchedule(Model): - """Weekly retention schedule. - - :param days_of_the_week: List of days of week for weekly retention policy. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(WeeklyRetentionSchedule, self).__init__(**kwargs) - self.days_of_the_week = kwargs.get('days_of_the_week', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) - - -class WorkloadInquiryDetails(Model): - """Details of an inquired protectable item. - - :param type: Type of the Workload such as SQL, Oracle etc. - :type type: str - :param item_count: Contains the protectable item Count inside this - Container. - :type item_count: long - :param inquiry_validation: Inquiry validation such as permissions and - other backup validations. - :type inquiry_validation: - ~azure.mgmt.recoveryservicesbackup.models.InquiryValidation - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'item_count': {'key': 'itemCount', 'type': 'long'}, - 'inquiry_validation': {'key': 'inquiryValidation', 'type': 'InquiryValidation'}, - } - - def __init__(self, **kwargs): - super(WorkloadInquiryDetails, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.item_count = kwargs.get('item_count', None) - self.inquiry_validation = kwargs.get('inquiry_validation', None) - - -class WorkloadItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.WorkloadItem - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadItem'}, - } - - def __init__(self, **kwargs): - super(WorkloadItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class WorkloadProtectableItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadProtectableItemResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItem - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadProtectableItem'}, - } - - def __init__(self, **kwargs): - super(WorkloadProtectableItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class YearlyRetentionSchedule(Model): - """Yearly retention schedule. - - :param retention_schedule_format_type: Retention schedule format for - yearly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param months_of_year: List of months of year of yearly retention policy. - :type months_of_year: list[str or - ~azure.mgmt.recoveryservicesbackup.models.MonthOfYear] - :param retention_schedule_daily: Daily retention format for yearly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for yearly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'months_of_year': {'key': 'monthsOfYear', 'type': '[MonthOfYear]'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(YearlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) - self.months_of_year = kwargs.get('months_of_year', None) - self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) - self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py deleted file mode 100644 index fff346c31ab1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py +++ /dev/null @@ -1,10645 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class FeatureSupportRequest(Model): - """Base class for feature request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupGoalFeatureSupportRequest, - AzureVMResourceFeatureSupportRequest - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - _subtype_map = { - 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} - } - - def __init__(self, **kwargs) -> None: - super(FeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = None - - -class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): - """Azure backup goal feature specific request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureBackupGoalFeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = 'AzureBackupGoals' - - -class ProtectionContainer(Model): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSqlContainer, AzureStorageContainer, - AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, - MabContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'Windows': 'MabContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, **kwargs) -> None: - super(ProtectionContainer, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.backup_management_type = backup_management_type - self.registration_status = registration_status - self.health_status = health_status - self.container_type = None - - -class DpmContainer(ProtectionContainer): - """DPM workload-specific protection container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - _subtype_map = { - 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: str=None, protected_item_count: int=None, dpm_agent_version: str=None, dpm_servers=None, upgrade_available: bool=None, protection_status: str=None, extended_info=None, **kwargs) -> None: - super(DpmContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.can_re_register = can_re_register - self.container_id = container_id - self.protected_item_count = protected_item_count - self.dpm_agent_version = dpm_agent_version - self.dpm_servers = dpm_servers - self.upgrade_available = upgrade_available - self.protection_status = protection_status - self.extended_info = extended_info - self.container_type = 'DPMContainer' - - -class AzureBackupServerContainer(DpmContainer): - """AzureBackupServer (DPMVenus) workload-specific protection container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: str=None, protected_item_count: int=None, dpm_agent_version: str=None, dpm_servers=None, upgrade_available: bool=None, protection_status: str=None, extended_info=None, **kwargs) -> None: - super(AzureBackupServerContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, can_re_register=can_re_register, container_id=container_id, protected_item_count=protected_item_count, dpm_agent_version=dpm_agent_version, dpm_servers=dpm_servers, upgrade_available=upgrade_available, protection_status=protection_status, extended_info=extended_info, **kwargs) - self.container_type = 'AzureBackupServerContainer' - - -class BackupEngineBase(Model): - """The base backup engine class. All workload specific backup engines derive - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerEngine, DpmBackupEngine - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :param is_dpm_upgrade_available: To check if backup engine upgrade - available - :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backupengine - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_engine_type': {'AzureBackupServerEngine': 'AzureBackupServerEngine', 'DpmBackupEngine': 'DpmBackupEngine'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: - super(BackupEngineBase, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.backup_management_type = backup_management_type - self.registration_status = registration_status - self.backup_engine_state = backup_engine_state - self.health_status = health_status - self.can_re_register = can_re_register - self.backup_engine_id = backup_engine_id - self.dpm_version = dpm_version - self.azure_backup_agent_version = azure_backup_agent_version - self.is_azure_backup_agent_upgrade_available = is_azure_backup_agent_upgrade_available - self.is_dpm_upgrade_available = is_dpm_upgrade_available - self.extended_info = extended_info - self.backup_engine_type = None - - -class AzureBackupServerEngine(BackupEngineBase): - """Backup engine type when Azure Backup Server is used to manage the backups. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :param is_dpm_upgrade_available: To check if backup engine upgrade - available - :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backupengine - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: - super(AzureBackupServerEngine, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, backup_engine_state=backup_engine_state, health_status=health_status, can_re_register=can_re_register, backup_engine_id=backup_engine_id, dpm_version=dpm_version, azure_backup_agent_version=azure_backup_agent_version, is_azure_backup_agent_upgrade_available=is_azure_backup_agent_upgrade_available, is_dpm_upgrade_available=is_dpm_upgrade_available, extended_info=extended_info, **kwargs) - self.backup_engine_type = 'AzureBackupServerEngine' - - -class BackupRequest(Model): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareBackupRequest, AzureWorkloadBackupRequest, - IaasVMBackupRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareBackupRequest': 'AzureFileShareBackupRequest', 'AzureWorkloadBackupRequest': 'AzureWorkloadBackupRequest', 'IaasVMBackupRequest': 'IaasVMBackupRequest'} - } - - def __init__(self, **kwargs) -> None: - super(BackupRequest, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareBackupRequest(BackupRequest): - """AzureFileShare workload-specific backup 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 recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, *, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: - super(AzureFileShareBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc - self.object_type = 'AzureFileShareBackupRequest' - - -class WorkloadProtectableItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProtectableItem, - AzureVmWorkloadProtectableItem, IaaSVMProtectableItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_item_type': {'AzureFileShare': 'AzureFileShareProtectableItem', 'AzureVmWorkloadProtectableItem': 'AzureVmWorkloadProtectableItem', 'IaaSVMProtectableItem': 'IaaSVMProtectableItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, **kwargs) -> None: - super(WorkloadProtectableItem, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.friendly_name = friendly_name - self.protection_state = protection_state - self.protectable_item_type = None - - -class AzureFileShareProtectableItem(WorkloadProtectableItem): - """Protectable item for Azure Fileshare workloads. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_container_fabric_id: Full Fabric ID of container to which - this protectable item belongs. For example, ARM ID. - :type parent_container_fabric_id: str - :param parent_container_friendly_name: Friendly name of container to which - this protectable item belongs. - :type parent_container_friendly_name: str - :param azure_file_share_type: File Share type XSync or XSMB. Possible - values include: 'Invalid', 'XSMB', 'XSync' - :type azure_file_share_type: str or - ~azure.mgmt.recoveryservicesbackup.models.AzureFileShareType - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_container_fabric_id': {'key': 'parentContainerFabricId', 'type': 'str'}, - 'parent_container_friendly_name': {'key': 'parentContainerFriendlyName', 'type': 'str'}, - 'azure_file_share_type': {'key': 'azureFileShareType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_container_fabric_id: str=None, parent_container_friendly_name: str=None, azure_file_share_type=None, **kwargs) -> None: - super(AzureFileShareProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.parent_container_fabric_id = parent_container_fabric_id - self.parent_container_friendly_name = parent_container_friendly_name - self.azure_file_share_type = azure_file_share_type - self.protectable_item_type = 'AzureFileShare' - - -class ProtectedItem(Model): - """Base class for backup items. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, - AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, - GenericProtectedItem, MabFileFolderProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, **kwargs) -> None: - super(ProtectedItem, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.container_name = container_name - self.source_resource_id = source_resource_id - self.policy_id = policy_id - self.last_recovery_point = last_recovery_point - self.backup_set_name = backup_set_name - self.create_mode = create_mode - self.deferred_delete_time_in_utc = deferred_delete_time_in_utc - self.is_scheduled_for_deferred_delete = is_scheduled_for_deferred_delete - self.deferred_delete_time_remaining = deferred_delete_time_remaining - self.is_deferred_delete_schedule_upcoming = is_deferred_delete_schedule_upcoming - self.is_rehydrate = is_rehydrate - self.protected_item_type = None - - -class AzureFileshareProtectedItem(ProtectedItem): - """Azure File Share workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the fileshare represented by this - backup item. - :type friendly_name: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: backups running status for this backup item. - Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', - 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. - :type last_backup_status: str - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, protection_status: str=None, protection_state=None, health_status=None, last_backup_status: str=None, last_backup_time=None, extended_info=None, **kwargs) -> None: - super(AzureFileshareProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) - self.friendly_name = friendly_name - self.protection_status = protection_status - self.protection_state = protection_state - self.health_status = health_status - self.last_backup_status = last_backup_status - self.last_backup_time = last_backup_time - self.extended_info = extended_info - self.protected_item_type = 'AzureFileShareProtectedItem' - - -class AzureFileshareProtectedItemExtendedInfo(Model): - """Additional information about Azure File Share backup item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - :ivar resource_state: Indicates the state of this resource. Possible - values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted} - :vartype resource_state: str - :ivar resource_state_sync_time: The resource state sync time for this - backup item. - :vartype resource_state_sync_time: datetime - """ - - _validation = { - 'resource_state': {'readonly': True}, - 'resource_state_sync_time': {'readonly': True}, - } - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'resource_state': {'key': 'resourceState', 'type': 'str'}, - 'resource_state_sync_time': {'key': 'resourceStateSyncTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: - super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_state = policy_state - self.resource_state = None - self.resource_state_sync_time = None - - -class ProtectionPolicy(Model): - """Base class for backup policy. Workload-specific backup policies are derived - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadProtectionPolicy, - AzureFileShareProtectionPolicy, AzureIaaSVMProtectionPolicy, - AzureSqlProtectionPolicy, GenericProtectionPolicy, MabProtectionPolicy - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_management_type': {'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} - } - - def __init__(self, *, protected_items_count: int=None, **kwargs) -> None: - super(ProtectionPolicy, self).__init__(**kwargs) - self.protected_items_count = protected_items_count - self.backup_management_type = None - - -class AzureFileShareProtectionPolicy(ProtectionPolicy): - """AzureStorage backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, *, protected_items_count: int=None, work_load_type=None, schedule_policy=None, retention_policy=None, time_zone: str=None, **kwargs) -> None: - super(AzureFileShareProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.work_load_type = work_load_type - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy - self.time_zone = time_zone - self.backup_management_type = 'AzureStorage' - - -class ILRRequest(Model): - """Parameters to Provision ILR API. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProvisionILRRequest, - IaasVMILRRegistrationRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareProvisionILRRequest': 'AzureFileShareProvisionILRRequest', 'IaasVMILRRegistrationRequest': 'IaasVMILRRegistrationRequest'} - } - - def __init__(self, **kwargs) -> None: - super(ILRRequest, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareProvisionILRRequest(ILRRequest): - """Update snapshot Uri with the correct friendly Name of the source Azure file - share. - - 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 recovery_point_id: Recovery point ID. - :type recovery_point_id: str - :param source_resource_id: Source Storage account ARM Id - :type source_resource_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - } - - def __init__(self, *, recovery_point_id: str=None, source_resource_id: str=None, **kwargs) -> None: - super(AzureFileShareProvisionILRRequest, self).__init__(**kwargs) - self.recovery_point_id = recovery_point_id - self.source_resource_id = source_resource_id - self.object_type = 'AzureFileShareProvisionILRRequest' - - -class RecoveryPoint(Model): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, - GenericRecoveryPoint, IaasVMRecoveryPoint - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} - } - - def __init__(self, **kwargs) -> None: - super(RecoveryPoint, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareRecoveryPoint(RecoveryPoint): - """Azure File Share workload specific backup copy. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_type: Type of the backup copy. Specifies whether it - is a crash consistent backup or app consistent. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, - if applicable - :vartype file_share_snapshot_uri: str - :ivar recovery_point_size_in_gb: Contains recovery point size - :vartype recovery_point_size_in_gb: int - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'file_share_snapshot_uri': {'readonly': True}, - 'recovery_point_size_in_gb': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, - 'recovery_point_size_in_gb': {'key': 'recoveryPointSizeInGB', 'type': 'int'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.file_share_snapshot_uri = None - self.recovery_point_size_in_gb = None - self.object_type = 'AzureFileShareRecoveryPoint' - - -class RestoreRequest(Model): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, - IaasVMRestoreRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} - } - - def __init__(self, **kwargs) -> None: - super(RestoreRequest, self).__init__(**kwargs) - self.object_type = None - - -class AzureFileShareRestoreRequest(RestoreRequest): - """AzureFileShare Restore 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Source storage account ARM Id - :type source_resource_id: str - :param copy_options: Options to resolve copy conflicts. Possible values - include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite', 'FailOnConflict' - :type copy_options: str or - ~azure.mgmt.recoveryservicesbackup.models.CopyOptions - :param restore_request_type: Restore Type (FullShareRestore or - ItemLevelRestore). Possible values include: 'Invalid', 'FullShareRestore', - 'ItemLevelRestore' - :type restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequestType - :param restore_file_specs: List of Source Files/Folders(which need to - recover) and TargetFolderPath details - :type restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.models.RestoreFileSpecs] - :param target_details: Target File Share Details - :type target_details: - ~azure.mgmt.recoveryservicesbackup.models.TargetAFSRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'copy_options': {'key': 'copyOptions', 'type': 'str'}, - 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, - 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, - 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, copy_options=None, restore_request_type=None, restore_file_specs=None, target_details=None, **kwargs) -> None: - super(AzureFileShareRestoreRequest, self).__init__(**kwargs) - self.recovery_type = recovery_type - self.source_resource_id = source_resource_id - self.copy_options = copy_options - self.restore_request_type = restore_request_type - self.restore_file_specs = restore_file_specs - self.target_details = target_details - self.object_type = 'AzureFileShareRestoreRequest' - - -class IaaSVMContainer(ProtectionContainer): - """IaaS VM workload-specific container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMContainer, - AzureIaaSComputeVMContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMContainer', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: - super(IaaSVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.virtual_machine_id = virtual_machine_id - self.virtual_machine_version = virtual_machine_version - self.resource_group = resource_group - self.container_type = 'IaaSVMContainer' - - -class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing a classic virtual - machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: - super(AzureIaaSClassicComputeVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, virtual_machine_id=virtual_machine_id, virtual_machine_version=virtual_machine_version, resource_group=resource_group, **kwargs) - self.container_type = 'Microsoft.ClassicCompute/virtualMachines' - - -class IaaSVMProtectableItem(WorkloadProtectableItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectableItem, - AzureIaaSComputeVMProtectableItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectableItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectableItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: - super(IaaSVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.virtual_machine_id = virtual_machine_id - self.protectable_item_type = 'IaaSVMProtectableItem' - - -class AzureIaaSClassicComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: - super(AzureIaaSClassicComputeVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, virtual_machine_id=virtual_machine_id, **kwargs) - self.protectable_item_type = 'Microsoft.ClassicCompute/virtualMachines' - - -class AzureIaaSVMProtectedItem(ProtectedItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectedItem, - AzureIaaSComputeVMProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :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 - backup item. - :type last_backup_time: datetime - :param protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - :param extended_properties: - :type extended_properties: - ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - _subtype_map = { - 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: - super(AzureIaaSVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) - self.friendly_name = friendly_name - self.virtual_machine_id = virtual_machine_id - self.protection_status = protection_status - self.protection_state = protection_state - self.health_status = health_status - self.health_details = health_details - self.last_backup_status = last_backup_status - self.last_backup_time = last_backup_time - self.protected_item_data_id = protected_item_data_id - self.extended_info = extended_info - self.extended_properties = extended_properties - self.protected_item_type = 'AzureIaaSVMProtectedItem' - - -class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :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 - backup item. - :type last_backup_time: datetime - :param protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - :param extended_properties: - :type extended_properties: - ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: - super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) - self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' - - -class AzureIaaSComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing an Azure Resource - Manager virtual machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: - super(AzureIaaSComputeVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, virtual_machine_id=virtual_machine_id, virtual_machine_version=virtual_machine_version, resource_group=resource_group, **kwargs) - self.container_type = 'Microsoft.Compute/virtualMachines' - - -class AzureIaaSComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: - super(AzureIaaSComputeVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, virtual_machine_id=virtual_machine_id, **kwargs) - self.protectable_item_type = 'Microsoft.Compute/virtualMachines' - - -class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :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 - backup item. - :type last_backup_time: datetime - :param protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - :param extended_properties: - :type extended_properties: - ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: - super(AzureIaaSComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) - self.protected_item_type = 'Microsoft.Compute/virtualMachines' - - -class AzureIaaSVMErrorInfo(Model): - """Azure IaaS VM workload-specific error information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_title: Title: Typically, the entity that the error pertains - to. - :vartype error_title: str - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error - code. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_code': {'readonly': True}, - 'error_title': {'readonly': True}, - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureIaaSVMErrorInfo, self).__init__(**kwargs) - self.error_code = None - self.error_title = None - self.error_string = None - self.recommendations = None - - -class AzureIaaSVMHealthDetails(Model): - """Azure IaaS VM workload-specific Health Details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Health Code - :vartype code: int - :ivar title: Health Title - :vartype title: str - :ivar message: Health Message - :vartype message: str - :ivar recommendations: Health Recommended Actions - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'title': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) - self.code = None - self.title = None - self.message = None - self.recommendations = None - - -class Job(Model): - """Defines workload agnostic properties for a job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSVMJob, AzureStorageJob, AzureWorkloadJob, DpmJob, - MabJob - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - } - - _subtype_map = { - 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob'} - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, **kwargs) -> None: - super(Job, self).__init__(**kwargs) - self.entity_friendly_name = entity_friendly_name - self.backup_management_type = backup_management_type - self.operation = operation - self.status = status - self.start_time = start_time - self.end_time = end_time - self.activity_id = activity_id - self.job_type = None - - -class AzureIaaSVMJob(Job): - """Azure IaaS VM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMErrorInfo] - :param virtual_machine_version: Specifies whether the backup item is a - Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, error_details=None, virtual_machine_version: str=None, extended_info=None, **kwargs) -> None: - super(AzureIaaSVMJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.actions_info = actions_info - self.error_details = error_details - self.virtual_machine_version = virtual_machine_version - self.extended_info = extended_info - self.job_type = 'AzureIaaSVMJob' - - -class AzureIaaSVMJobExtendedInfo(Model): - """Azure IaaS VM workload-specific additional information for job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param internal_property_bag: Job internal properties. - :type internal_property_bag: dict[str, str] - :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 - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, - '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, 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 - - -class AzureIaaSVMJobTaskDetails(Model): - """Azure IaaS VM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param instance_id: The instanceId. - :type instance_id: str - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :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 transferred etc - :type task_execution_details: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - '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, task_execution_details: str=None, **kwargs) -> None: - super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.start_time = start_time - self.end_time = end_time - self.instance_id = instance_id - self.duration = duration - self.status = status - self.progress_percentage = progress_percentage - self.task_execution_details = task_execution_details - - -class AzureIaaSVMProtectedItemExtendedInfo(Model): - """Additional information on Azure IaaS VM specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_inconsistent: Specifies if backup policy associated with the - backup item is inconsistent. - :type policy_inconsistent: bool - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_inconsistent: bool=None, **kwargs) -> None: - super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_inconsistent = policy_inconsistent - - -class AzureIaaSVMProtectionPolicy(ProtectionPolicy): - """IaaS VM workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param instant_rp_details: - :type instant_rp_details: - ~azure.mgmt.recoveryservicesbackup.models.InstantRPAdditionalDetails - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param instant_rp_retention_range_in_days: Instant RP retention policy - range in days - :type instant_rp_retention_range_in_days: int - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'instant_rp_details': {'key': 'instantRPDetails', 'type': 'InstantRPAdditionalDetails'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, *, protected_items_count: int=None, instant_rp_details=None, schedule_policy=None, retention_policy=None, instant_rp_retention_range_in_days: int=None, time_zone: str=None, **kwargs) -> None: - super(AzureIaaSVMProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.instant_rp_details = instant_rp_details - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy - self.instant_rp_retention_range_in_days = instant_rp_retention_range_in_days - self.time_zone = time_zone - self.backup_management_type = 'AzureIaasVM' - - -class ProtectionIntent(Model): - """Base class for backup ProtectionIntent. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureRecoveryServiceVaultProtectionIntent, - AzureResourceProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceItem': 'AzureResourceProtectionIntent'} - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: - super(ProtectionIntent, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.source_resource_id = source_resource_id - self.item_id = item_id - self.policy_id = policy_id - self.protection_state = protection_state - self.protection_intent_item_type = None - - -class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadAutoProtectionIntent': 'AzureWorkloadAutoProtectionIntent'} - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: - super(AzureRecoveryServiceVaultProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.protection_intent_item_type = 'RecoveryServiceVaultItem' - - -class AzureResourceProtectionIntent(ProtectionIntent): - """IaaS VM specific backup protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, friendly_name: str=None, **kwargs) -> None: - super(AzureResourceProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.friendly_name = friendly_name - self.protection_intent_item_type = 'AzureResourceItem' - - -class AzureWorkloadContainer(ProtectionContainer): - """Container for the workloads running inside Azure Compute or Classic - Compute. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSQLAGWorkloadContainerProtectionContainer, - AzureVMAppContainerProtectionContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'SQLAGWorkLoadContainer': 'AzureSQLAGWorkloadContainerProtectionContainer', 'VMAppContainer': 'AzureVMAppContainerProtectionContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: - super(AzureWorkloadContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.source_resource_id = source_resource_id - self.last_updated_time = last_updated_time - self.extended_info = extended_info - self.workload_type = workload_type - self.operation_type = operation_type - self.container_type = 'AzureWorkloadContainer' - - -class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under SQL Availability Group. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: - super(AzureSQLAGWorkloadContainerProtectionContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, source_resource_id=source_resource_id, last_updated_time=last_updated_time, extended_info=extended_info, workload_type=workload_type, operation_type=operation_type, **kwargs) - self.container_type = 'SQLAGWorkLoadContainer' - - -class AzureSqlContainer(ProtectionContainer): - """Azure Sql workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, **kwargs) -> None: - super(AzureSqlContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.container_type = 'AzureSqlContainer' - - -class AzureSqlProtectedItem(ProtectedItem): - """Azure SQL workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param protected_item_data_id: Internal ID of a backup item. Used by Azure - SQL Backup engine to contact Recovery Services. - :type protected_item_data_id: str - :param protection_state: Backup state of the backed up item. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, protected_item_data_id: str=None, protection_state=None, extended_info=None, **kwargs) -> None: - super(AzureSqlProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) - self.protected_item_data_id = protected_item_data_id - self.protection_state = protection_state - self.extended_info = extended_info - self.protected_item_type = 'Microsoft.Sql/servers/databases' - - -class AzureSqlProtectedItemExtendedInfo(Model): - """Additional information on Azure Sql specific protected item. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: State of the backup policy associated with this - backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: - super(AzureSqlProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_state = policy_state - - -class AzureSqlProtectionPolicy(ProtectionPolicy): - """Azure SQL workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, *, protected_items_count: int=None, retention_policy=None, **kwargs) -> None: - super(AzureSqlProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.retention_policy = retention_policy - self.backup_management_type = 'AzureSql' - - -class AzureStorageContainer(ProtectionContainer): - """Azure Storage Account workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: Fully qualified ARM url. - :type source_resource_id: str - :param storage_account_version: Storage account version. - :type storage_account_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, storage_account_version: str=None, resource_group: str=None, protected_item_count: int=None, **kwargs) -> None: - super(AzureStorageContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.source_resource_id = source_resource_id - self.storage_account_version = storage_account_version - self.resource_group = resource_group - self.protected_item_count = protected_item_count - self.container_type = 'StorageContainer' - - -class AzureStorageErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, error_code: int=None, error_string: str=None, recommendations=None, **kwargs) -> None: - super(AzureStorageErrorInfo, self).__init__(**kwargs) - self.error_code = error_code - self.error_string = error_string - self.recommendations = recommendations - - -class AzureStorageJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageErrorInfo] - :param storage_account_name: Specifies friendly name of the storage - account. - :type storage_account_name: str - :param storage_account_version: Specifies whether the Storage account is a - Classic or an Azure Resource Manager Storage account. - :type storage_account_version: str - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, error_details=None, storage_account_name: str=None, storage_account_version: str=None, extended_info=None, **kwargs) -> None: - super(AzureStorageJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.actions_info = actions_info - self.error_details = error_details - self.storage_account_name = storage_account_name - self.storage_account_version = storage_account_version - self.extended_info = extended_info - self.job_type = 'AzureStorageJob' - - -class AzureStorageJobExtendedInfo(Model): - """Azure Storage workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message - - -class AzureStorageJobTaskDetails(Model): - """Azure storage workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, status: str=None, **kwargs) -> None: - super(AzureStorageJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.status = status - - -class ProtectableContainer(Model): - """Protectable Container Class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureStorageProtectableContainer, - AzureVMAppContainerProtectableContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_container_type': {'StorageContainer': 'AzureStorageProtectableContainer', 'VMAppContainer': 'AzureVMAppContainerProtectableContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: - super(ProtectableContainer, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.backup_management_type = backup_management_type - self.health_status = health_status - self.container_id = container_id - self.protectable_container_type = None - - -class AzureStorageProtectableContainer(ProtectableContainer): - """Azure Storage-specific protectable containers. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: - super(AzureStorageProtectableContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, health_status=health_status, container_id=container_id, **kwargs) - self.protectable_container_type = 'StorageContainer' - - -class AzureVMAppContainerProtectableContainer(ProtectableContainer): - """Azure workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: - super(AzureVMAppContainerProtectableContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, health_status=health_status, container_id=container_id, **kwargs) - self.protectable_container_type = 'VMAppContainer' - - -class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under Azure Virtual Machines. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: - super(AzureVMAppContainerProtectionContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, source_resource_id=source_resource_id, last_updated_time=last_updated_time, extended_info=extended_info, workload_type=workload_type, operation_type=operation_type, **kwargs) - self.container_type = 'VMAppContainer' - - -class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): - """AzureResource(IaaS VM) Specific feature support request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - :param vm_size: Size of the resource: VM size(A/D series etc) in case of - IaasVM - :type vm_size: str - :param vm_sku: SKUs (Premium/Managed etc) in case of IaasVM - :type vm_sku: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'vm_sku': {'key': 'vmSku', 'type': 'str'}, - } - - def __init__(self, *, vm_size: str=None, vm_sku: str=None, **kwargs) -> None: - super(AzureVMResourceFeatureSupportRequest, self).__init__(**kwargs) - self.vm_size = vm_size - self.vm_sku = vm_sku - self.feature_type = 'AzureVMResourceBackup' - - -class AzureVMResourceFeatureSupportResponse(Model): - """Response for feature support requests for Azure IaasVm. - - :param support_status: Support status of feature. Possible values include: - 'Invalid', 'Supported', 'DefaultOFF', 'DefaultON', 'NotSupported' - :type support_status: str or - ~azure.mgmt.recoveryservicesbackup.models.SupportStatus - """ - - _attribute_map = { - 'support_status': {'key': 'supportStatus', 'type': 'str'}, - } - - def __init__(self, *, support_status=None, **kwargs) -> None: - super(AzureVMResourceFeatureSupportResponse, self).__init__(**kwargs) - self.support_status = support_status - - -class WorkloadItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - _subtype_map = { - 'workload_item_type': {'AzureVmWorkloadItem': 'AzureVmWorkloadItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, **kwargs) -> None: - super(WorkloadItem, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.friendly_name = friendly_name - self.protection_state = protection_state - self.workload_item_type = None - - -class AzureVmWorkloadItem(WorkloadItem): - """Azure VM workload-specific workload item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseWorkloadItem, - AzureVmWorkloadSAPAseSystemWorkloadItem, - AzureVmWorkloadSAPHanaDatabaseWorkloadItem, - AzureVmWorkloadSAPHanaSystemWorkloadItem, - AzureVmWorkloadSQLDatabaseWorkloadItem, - AzureVmWorkloadSQLInstanceWorkloadItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - _subtype_map = { - 'workload_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.parent_name = parent_name - self.server_name = server_name - self.is_auto_protectable = is_auto_protectable - self.subinquireditemcount = subinquireditemcount - self.sub_workload_item_count = sub_workload_item_count - self.workload_item_type = 'AzureVmWorkloadItem' - - -class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): - """Azure VM workload-specific protectable item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseSystemProtectableItem, - AzureVmWorkloadSAPHanaDatabaseProtectableItem, - AzureVmWorkloadSAPHanaSystemProtectableItem, - AzureVmWorkloadSQLAvailabilityGroupProtectableItem, - AzureVmWorkloadSQLDatabaseProtectableItem, - AzureVmWorkloadSQLInstanceProtectableItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - _subtype_map = { - 'protectable_item_type': {'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.parent_name = parent_name - self.parent_unique_name = parent_unique_name - self.server_name = server_name - self.is_auto_protectable = is_auto_protectable - self.is_auto_protected = is_auto_protected - self.subinquireditemcount = subinquireditemcount - self.subprotectableitemcount = subprotectableitemcount - self.prebackupvalidation = prebackupvalidation - self.protectable_item_type = 'AzureVmWorkloadProtectableItem' - - -class AzureVmWorkloadProtectedItem(ProtectedItem): - """Azure VM workload-specific protected item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, - AzureVmWorkloadSAPHanaDatabaseProtectedItem, - AzureVmWorkloadSQLDatabaseProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) - self.friendly_name = friendly_name - self.server_name = server_name - self.parent_name = parent_name - self.parent_type = parent_type - self.protection_status = protection_status - self.protection_state = protection_state - self.last_backup_status = last_backup_status - self.last_backup_time = last_backup_time - self.last_backup_error_detail = last_backup_error_detail - self.protected_item_data_source_id = protected_item_data_source_id - self.protected_item_health_status = protected_item_health_status - self.extended_info = extended_info - self.protected_item_type = 'AzureVmWorkloadProtectedItem' - - -class AzureVmWorkloadProtectedItemExtendedInfo(Model): - """Additional information on Azure Workload for SQL specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: - super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_state = policy_state - - -class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param settings: Common settings for the backup management - :type settings: ~azure.mgmt.recoveryservicesbackup.models.Settings - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - :param make_policy_consistent: Fix the policy inconsistency - :type make_policy_consistent: bool - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': 'Settings'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'make_policy_consistent': {'key': 'makePolicyConsistent', 'type': 'bool'}, - } - - def __init__(self, *, protected_items_count: int=None, work_load_type=None, settings=None, sub_protection_policy=None, make_policy_consistent: bool=None, **kwargs) -> None: - super(AzureVmWorkloadProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.work_load_type = work_load_type - self.settings = settings - self.sub_protection_policy = sub_protection_policy - self.make_policy_consistent = make_policy_consistent - self.backup_management_type = 'AzureWorkload' - - -class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' - - -class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPAseDatabase' - - -class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP ASE System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseSystemProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) - self.protectable_item_type = 'SAPAseSystem' - - -class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseSystemWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPAseSystem' - - -class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaDatabaseProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) - self.protectable_item_type = 'SAPHanaDatabase' - - -class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' - - -class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPHanaDatabase' - - -class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaSystemProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) - self.protectable_item_type = 'SAPHanaSystem' - - -class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA System. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaSystemWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPHanaSystem' - - -class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Availability - Group. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadSQLAvailabilityGroupProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) - self.protectable_item_type = 'SQLAvailabilityGroupContainer' - - -class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadSQLDatabaseProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) - self.protectable_item_type = 'SQLDataBase' - - -class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) - self.protected_item_type = 'AzureVmWorkloadSQLDatabase' - - -class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSQLDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SQLDataBase' - - -class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Instance. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DB's to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadSQLInstanceProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) - self.protectable_item_type = 'SQLInstance' - - -class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL Instance. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if workload item is auto-protectable - :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DB's - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DB's to be protected - :type sub_workload_item_count: int - :param data_directory_paths: Data Directory Paths for default directories - :type data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _validation = { - 'workload_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, data_directory_paths=None, **kwargs) -> None: - super(AzureVmWorkloadSQLInstanceWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.data_directory_paths = data_directory_paths - self.workload_item_type = 'SQLInstance' - - -class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadSQLAutoProtectionIntent': 'AzureWorkloadSQLAutoProtectionIntent'} - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: - super(AzureWorkloadAutoProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.protection_intent_item_type = 'AzureWorkloadAutoProtectionIntent' - - -class AzureWorkloadBackupRequest(BackupRequest): - """AzureWorkload workload-specific backup 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 backup_type: Type of backup, viz. Full, Differential, Log or - CopyOnlyFull. Possible values include: 'Invalid', 'Full', 'Differential', - 'Log', 'CopyOnlyFull' - :type backup_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupType - :param enable_compression: Bool for Compression setting - :type enable_compression: bool - :param recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'enable_compression': {'key': 'enableCompression', 'type': 'bool'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, *, backup_type=None, enable_compression: bool=None, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: - super(AzureWorkloadBackupRequest, self).__init__(**kwargs) - self.backup_type = backup_type - self.enable_compression = enable_compression - self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc - self.object_type = 'AzureWorkloadBackupRequest' - - -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. - :type host_server_name: str - :param inquiry_info: Inquiry Status for the container. - :type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo - :param nodes_list: List of the nodes in case of distributed container. - :type nodes_list: - list[~azure.mgmt.recoveryservicesbackup.models.DistributedNodesInfo] - """ - - _attribute_map = { - 'host_server_name': {'key': 'hostServerName', 'type': 'str'}, - 'inquiry_info': {'key': 'inquiryInfo', 'type': 'InquiryInfo'}, - 'nodes_list': {'key': 'nodesList', 'type': '[DistributedNodesInfo]'}, - } - - def __init__(self, *, host_server_name: str=None, inquiry_info=None, nodes_list=None, **kwargs) -> None: - super(AzureWorkloadContainerExtendedInfo, self).__init__(**kwargs) - self.host_server_name = host_server_name - self.inquiry_info = inquiry_info - self.nodes_list = nodes_list - - -class AzureWorkloadErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param error_title: Title: Typically, the entity that the error pertains - to. - :type error_title: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - :param additional_details: Additional details for above error code. - :type additional_details: str - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, - } - - def __init__(self, *, error_code: int=None, error_string: str=None, error_title: str=None, recommendations=None, additional_details: str=None, **kwargs) -> None: - super(AzureWorkloadErrorInfo, self).__init__(**kwargs) - self.error_code = error_code - self.error_string = error_string - self.error_title = error_title - self.recommendations = recommendations - self.additional_details = additional_details - - -class AzureWorkloadJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param workload_type: Workload type of the job - :type workload_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadErrorInfo] - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, workload_type: str=None, duration=None, actions_info=None, error_details=None, extended_info=None, **kwargs) -> None: - super(AzureWorkloadJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.workload_type = workload_type - self.duration = duration - self.actions_info = actions_info - self.error_details = error_details - self.extended_info = extended_info - self.job_type = 'AzureWorkloadJob' - - -class AzureWorkloadJobExtendedInfo(Model): - """Azure VM workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message - - -class AzureWorkloadJobTaskDetails(Model): - """Azure VM workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, status: str=None, **kwargs) -> None: - super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.status = status - - -class AzureWorkloadRecoveryPoint(RecoveryPoint): - """Workload specific recovery point, specifically encapsulates full/diff - recovery point. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, - AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} - } - - def __init__(self, **kwargs) -> None: - super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_time_in_utc = None - self.type = None - self.object_type = 'AzureWorkloadRecoveryPoint' - - -class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): - """Recovery point specific to PointInTime. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} - } - - def __init__(self, *, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.time_ranges = time_ranges - self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' - - -class AzureWorkloadRestoreRequest(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, **kwargs) -> None: - super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) - self.recovery_type = recovery_type - self.source_resource_id = source_resource_id - self.property_bag = property_bag - self.target_info = target_info - self.recovery_mode = recovery_mode - self.object_type = 'AzureWorkloadRestoreRequest' - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, point_in_time=None, **kwargs) -> None: - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.point_in_time = point_in_time - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' - - -class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): - """Recovery point specific to PointInTime in SAPHana. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__(self, *, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(time_ranges=time_ranges, **kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' - - -class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, point_in_time=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.point_in_time = point_in_time - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' - - -class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recoverypoint, specifically encapsulates full/diff - recoverypoints. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' - - -class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): - """Azure Workload SQL Auto Protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param workload_item_type: Workload item type of the item for which intent - is to be set. Possible values include: 'Invalid', 'SQLInstance', - 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, workload_item_type=None, **kwargs) -> None: - super(AzureWorkloadSQLAutoProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.workload_item_type = workload_item_type - self.protection_intent_item_type = 'AzureWorkloadSQLAutoProtectionIntent' - - -class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recoverypoint, specifically encapsulates full/diff - recoverypoint along with extended info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} - } - - def __init__(self, *, extended_info=None, **kwargs) -> None: - super(AzureWorkloadSQLRecoveryPoint, self).__init__(**kwargs) - self.extended_info = extended_info - self.object_type = 'AzureWorkloadSQLRecoveryPoint' - - -class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): - """Recovery point specific to PointInTime. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_time_in_utc: UTC time at which recovery point was - created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__(self, *, extended_info=None, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(extended_info=extended_info, **kwargs) - self.time_ranges = time_ranges - self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' - - -class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param should_use_alternate_target_location: Default option set to true. - If this is set to false, alternate data directory must be provided - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest'} - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, should_use_alternate_target_location: bool=None, is_non_recoverable: bool=None, alternate_directory_paths=None, **kwargs) -> None: - super(AzureWorkloadSQLRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.should_use_alternate_target_location = should_use_alternate_target_location - self.is_non_recoverable = is_non_recoverable - self.alternate_directory_paths = alternate_directory_paths - self.object_type = 'AzureWorkloadSQLRestoreRequest' - - -class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log - restore. - - 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 recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file - restore or database restore. Possible values include: 'Invalid', - 'FileRecovery', 'WorkloadRecovery' - :type recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param should_use_alternate_target_location: Default option set to true. - If this is set to false, alternate data directory must be provided - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, should_use_alternate_target_location: bool=None, is_non_recoverable: bool=None, alternate_directory_paths=None, point_in_time=None, **kwargs) -> None: - super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) - self.point_in_time = point_in_time - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' - - -class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): - """Extended info class details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar data_directory_time_in_utc: UTC time at which data directory info - was captured - :vartype data_directory_time_in_utc: datetime - :ivar data_directory_paths: List of data directory paths during restore - operation. - :vartype data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _validation = { - 'data_directory_time_in_utc': {'readonly': True}, - 'data_directory_paths': {'readonly': True}, - } - - _attribute_map = { - 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = None - self.data_directory_paths = None - - -class Resource(Model): - """ARM Resource. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags - self.e_tag = e_tag - - -class BackupEngineBaseResource(Resource): - """The base backup engine class. All workload specific backup engines derive - from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupEngineBaseResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBase - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupEngineBase'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupEngineBaseResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class BackupEngineExtendedInfo(Model): - """Additional information on backup engine. - - :param database_name: Database name of backup engine. - :type database_name: str - :param protected_items_count: Number of protected items in the backup - engine. - :type protected_items_count: int - :param protected_servers_count: Number of protected servers in the backup - engine. - :type protected_servers_count: int - :param disk_count: Number of disks in the backup engine. - :type disk_count: int - :param used_disk_space: Disk space used in the backup engine. - :type used_disk_space: float - :param available_disk_space: Disk space currently available in the backup - engine. - :type available_disk_space: float - :param refreshed_at: Last refresh time in the backup engine. - :type refreshed_at: datetime - :param azure_protected_instances: Protected instances in the backup - engine. - :type azure_protected_instances: int - """ - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'protected_servers_count': {'key': 'protectedServersCount', 'type': 'int'}, - 'disk_count': {'key': 'diskCount', 'type': 'int'}, - 'used_disk_space': {'key': 'usedDiskSpace', 'type': 'float'}, - 'available_disk_space': {'key': 'availableDiskSpace', 'type': 'float'}, - 'refreshed_at': {'key': 'refreshedAt', 'type': 'iso-8601'}, - 'azure_protected_instances': {'key': 'azureProtectedInstances', 'type': 'int'}, - } - - def __init__(self, *, database_name: str=None, protected_items_count: int=None, protected_servers_count: int=None, disk_count: int=None, used_disk_space: float=None, available_disk_space: float=None, refreshed_at=None, azure_protected_instances: int=None, **kwargs) -> None: - super(BackupEngineExtendedInfo, self).__init__(**kwargs) - self.database_name = database_name - self.protected_items_count = protected_items_count - self.protected_servers_count = protected_servers_count - self.disk_count = disk_count - self.used_disk_space = used_disk_space - self.available_disk_space = available_disk_space - self.refreshed_at = refreshed_at - self.azure_protected_instances = azure_protected_instances - - -class BackupManagementUsage(Model): - """Backup management usages of a vault. - - :param unit: Unit of the usage. Possible values include: 'Count', 'Bytes', - 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - :type unit: str or ~azure.mgmt.recoveryservicesbackup.models.UsagesUnit - :param quota_period: Quota period of usage. - :type quota_period: str - :param next_reset_time: Next reset time of usage. - :type next_reset_time: datetime - :param current_value: Current value of usage. - :type current_value: long - :param limit: Limit of usage. - :type limit: long - :param name: Name of usage. - :type name: ~azure.mgmt.recoveryservicesbackup.models.NameInfo - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, - 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, - 'current_value': {'key': 'currentValue', 'type': 'long'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'NameInfo'}, - } - - def __init__(self, *, unit=None, quota_period: str=None, next_reset_time=None, current_value: int=None, limit: int=None, name=None, **kwargs) -> None: - super(BackupManagementUsage, self).__init__(**kwargs) - self.unit = unit - self.quota_period = quota_period - self.next_reset_time = next_reset_time - self.current_value = current_value - self.limit = limit - self.name = name - - -class BackupRequestResource(Resource): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.BackupRequest - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class BackupResourceConfig(Model): - """The resource storage details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - } - - def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, **kwargs) -> None: - super(BackupResourceConfig, self).__init__(**kwargs) - self.storage_model_type = storage_model_type - self.storage_type = storage_type - self.storage_type_state = storage_type_state - - -class BackupResourceConfigResource(Resource): - """The resource storage details. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfig - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupResourceConfigResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class BackupResourceVaultConfig(Model): - """Backup resource vault config details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - :param enhanced_security_state: Enabled or Disabled. Possible values - include: 'Invalid', 'Enabled', 'Disabled' - :type enhanced_security_state: str or - ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState - :param soft_delete_feature_state: Soft Delete feature state. Possible - values include: 'Invalid', 'Enabled', 'Disabled' - :type soft_delete_feature_state: str or - ~azure.mgmt.recoveryservicesbackup.models.SoftDeleteFeatureState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, - 'soft_delete_feature_state': {'key': 'softDeleteFeatureState', 'type': 'str'}, - } - - def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, enhanced_security_state=None, soft_delete_feature_state=None, **kwargs) -> None: - super(BackupResourceVaultConfig, self).__init__(**kwargs) - self.storage_model_type = storage_model_type - self.storage_type = storage_type - self.storage_type_state = storage_type_state - self.enhanced_security_state = enhanced_security_state - self.soft_delete_feature_state = soft_delete_feature_state - - -class BackupResourceVaultConfigResource(Resource): - """Backup resource vault config details. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceVaultConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfig - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceVaultConfig'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupResourceVaultConfigResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class BackupStatusRequest(Model): - """BackupStatus request. - - :param resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param po_logical_name: Protectable Item Logical Name - :type po_logical_name: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'po_logical_name': {'key': 'poLogicalName', 'type': 'str'}, - } - - def __init__(self, *, resource_type=None, resource_id: str=None, po_logical_name: str=None, **kwargs) -> None: - super(BackupStatusRequest, self).__init__(**kwargs) - self.resource_type = resource_type - self.resource_id = resource_id - self.po_logical_name = po_logical_name - - -class BackupStatusResponse(Model): - """BackupStatus response. - - :param protection_status: Specifies whether the container is registered or - not. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - '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 - ~azure.mgmt.recoveryservicesbackup.models.FabricName - :param container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;csname;vmname. - :type container_name: str - :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. - :type protected_item_name: str - :param error_code: ErrorCode in case of intent failed - :type error_code: str - :param error_message: ErrorMessage in case of intent failed. - :type error_message: str - :param policy_name: Specifies the policy name which is used for protection - :type policy_name: str - :param registration_status: Container registration status - :type registration_status: str - """ - - _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'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - } - - 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 - self.error_code = error_code - self.error_message = error_message - self.policy_name = policy_name - self.registration_status = registration_status - - -class BEKDetails(Model): - """BEK is bitlocker encryption key. - - :param secret_url: Secret is BEK. - :type secret_url: str - :param secret_vault_id: ID of the Key Vault where this Secret is stored. - :type secret_vault_id: str - :param secret_data: BEK data. - :type secret_data: str - """ - - _attribute_map = { - 'secret_url': {'key': 'secretUrl', 'type': 'str'}, - 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, - 'secret_data': {'key': 'secretData', 'type': 'str'}, - } - - def __init__(self, *, secret_url: str=None, secret_vault_id: str=None, secret_data: str=None, **kwargs) -> None: - super(BEKDetails, self).__init__(**kwargs) - self.secret_url = secret_url - self.secret_vault_id = secret_vault_id - self.secret_data = secret_data - - -class BMSBackupEngineQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param expand: attribute to add extended info - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, *, expand: str=None, **kwargs) -> None: - super(BMSBackupEngineQueryObject, self).__init__(**kwargs) - self.expand = expand - - -class BMSBackupEnginesQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param backup_management_type: Backup management type for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param expand: Attribute to add extended info. - :type expand: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, friendly_name: str=None, expand: str=None, **kwargs) -> None: - super(BMSBackupEnginesQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.friendly_name = friendly_name - self.expand = expand - - -class BMSBackupSummariesQueryObject(Model): - """Query parameters to fetch backup summaries. - - :param type: Backup management type for this container. Possible values - include: 'Invalid', 'BackupProtectedItemCountSummary', - 'BackupProtectionContainerCountSummary' - :type type: str or ~azure.mgmt.recoveryservicesbackup.models.Type - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) - self.type = type - - -class BMSContainerQueryObject(Model): - """The query filters that can be used with the list containers API. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Required. Backup management type for this - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param container_type: Type of container for filter. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type container_type: str or - ~azure.mgmt.recoveryservicesbackup.models.ContainerType - :param backup_engine_name: Backup engine name - :type backup_engine_name: str - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param status: Status of registration of this container with the Recovery - Services Vault. - :type status: str - :param friendly_name: Friendly name of this container. - :type friendly_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type, container_type=None, backup_engine_name: str=None, fabric_name: str=None, status: str=None, friendly_name: str=None, **kwargs) -> None: - super(BMSContainerQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.container_type = container_type - self.backup_engine_name = backup_engine_name - self.fabric_name = fabric_name - self.status = status - self.friendly_name = friendly_name - - -class BMSContainersInquiryQueryObject(Model): - """The query filters that can be used with the inquire container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type for this container. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, **kwargs) -> None: - super(BMSContainersInquiryQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - - -class BMSPOQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param container_name: Full name of the container whose Protectable - Objects should be returned. - :type container_name: str - :param status: Backup status query parameter. - :type status: str - :param friendly_name: Friendly name. - :type friendly_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, status: str=None, friendly_name: str=None, **kwargs) -> None: - super(BMSPOQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.container_name = container_name - self.status = status - self.friendly_name = friendly_name - - -class BMSRefreshContainersQueryObject(Model): - """The query filters that can be used with the refresh container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, **kwargs) -> None: - super(BMSRefreshContainersQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - - -class BMSRPQueryObject(Model): - """Filters to list backup copies. - - :param start_date: Backup copies created after this time. - :type start_date: datetime - :param end_date: Backup copies created before this time. - :type end_date: datetime - :param restore_point_query_type: RestorePoint type. Possible values - include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', - 'All' - :type restore_point_query_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointQueryType - :param extended_info: In Get Recovery Point, it tells whether extended - information about recovery point is asked. - :type extended_info: bool - """ - - _attribute_map = { - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, - } - - def __init__(self, *, start_date=None, end_date=None, restore_point_query_type=None, extended_info: bool=None, **kwargs) -> None: - super(BMSRPQueryObject, self).__init__(**kwargs) - self.start_date = start_date - self.end_date = end_date - self.restore_point_query_type = restore_point_query_type - self.extended_info = extended_info - - -class BMSWorkloadItemQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_item_type: Workload Item type. Possible values include: - 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', - 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param protection_status: Backup status query parameter. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, workload_item_type=None, workload_type=None, protection_status=None, **kwargs) -> None: - super(BMSWorkloadItemQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_item_type = workload_item_type - self.workload_type = workload_type - self.protection_status = protection_status - - -class ClientDiscoveryDisplay(Model): - """Localized display information of an operation. - - :param provider: Name of the provider for display purposes - :type provider: str - :param resource: ResourceType for which this Operation can be performed. - :type resource: str - :param operation: Operations Name itself. - :type operation: str - :param description: Description of the operation having details of what - operation is about. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ClientDiscoveryDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class ClientDiscoveryForLogSpecification(Model): - """Class to represent shoebox log specification in json client discovery. - - :param name: Name for shoebox log specification. - :type name: str - :param display_name: Localized display name - :type display_name: str - :param blob_duration: blob duration of shoebox log specification - :type blob_duration: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, display_name: str=None, blob_duration: str=None, **kwargs) -> None: - super(ClientDiscoveryForLogSpecification, self).__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ClientDiscoveryForProperties(Model): - """Class to represent shoebox properties in json client discovery. - - :param service_specification: Operation properties. - :type service_specification: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification - """ - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ClientDiscoveryForServiceSpecification'}, - } - - def __init__(self, *, service_specification=None, **kwargs) -> None: - super(ClientDiscoveryForProperties, self).__init__(**kwargs) - self.service_specification = service_specification - - -class ClientDiscoveryForServiceSpecification(Model): - """Class to represent shoebox service specification in json client discovery. - - :param log_specifications: List of log specifications of this operation. - :type log_specifications: - list[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[ClientDiscoveryForLogSpecification]'}, - } - - def __init__(self, *, log_specifications=None, **kwargs) -> None: - super(ClientDiscoveryForServiceSpecification, self).__init__(**kwargs) - self.log_specifications = log_specifications - - -class ClientDiscoveryValueForSingleApi(Model): - """Available operation details. - - :param name: Name of the Operation. - :type name: str - :param display: Contains the localized display information for this - particular operation - :type display: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryDisplay - :param origin: The intended executor of the operation;governs the display - of the operation in the RBAC UX and the audit logs UX - :type origin: str - :param properties: ShoeBox properties for the given operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForProperties - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ClientDiscoveryDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ClientDiscoveryForProperties'}, - } - - def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: - super(ClientDiscoveryValueForSingleApi, self).__init__(**kwargs) - self.name = name - self.display = display - self.origin = origin - self.properties = properties - - -class ClientScriptForConnect(Model): - """Client script details for file / folder restore. - - :param script_content: File content of the client script for file / folder - restore. - :type script_content: str - :param script_extension: File extension of the client script for file / - folder restore - .ps1 , .sh , etc. - :type script_extension: str - :param os_type: OS type - Windows, Linux etc. for which this file / folder - restore client script works. - :type os_type: str - :param url: URL of Executable from where to source the content. If this is - not null then ScriptContent should not be used - :type url: str - :param script_name_suffix: Mandatory suffix that should be added to the - name of script that is given for download to user. - If its null or empty then , ignore it. - :type script_name_suffix: str - """ - - _attribute_map = { - 'script_content': {'key': 'scriptContent', 'type': 'str'}, - 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, - } - - def __init__(self, *, script_content: str=None, script_extension: str=None, os_type: str=None, url: str=None, script_name_suffix: str=None, **kwargs) -> None: - super(ClientScriptForConnect, self).__init__(**kwargs) - self.script_content = script_content - self.script_extension = script_extension - self.os_type = os_type - self.url = url - self.script_name_suffix = script_name_suffix - - -class CloudError(Model): - """CloudError. - """ - - _attribute_map = { - } - - -class ContainerIdentityInfo(Model): - """Container identity information. - - :param unique_name: Unique name of the container - :type unique_name: str - :param aad_tenant_id: Protection container identity - AAD Tenant - :type aad_tenant_id: str - :param service_principal_client_id: Protection container identity - AAD - Service Principal - :type service_principal_client_id: str - :param audience: Protection container identity - Audience - :type audience: str - """ - - _attribute_map = { - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - } - - def __init__(self, *, unique_name: str=None, aad_tenant_id: str=None, service_principal_client_id: str=None, audience: str=None, **kwargs) -> None: - super(ContainerIdentityInfo, self).__init__(**kwargs) - self.unique_name = unique_name - self.aad_tenant_id = aad_tenant_id - self.service_principal_client_id = service_principal_client_id - self.audience = audience - - -class DailyRetentionFormat(Model): - """Daily retention format. - - :param days_of_the_month: List of days of the month. - :type days_of_the_month: - list[~azure.mgmt.recoveryservicesbackup.models.Day] - """ - - _attribute_map = { - 'days_of_the_month': {'key': 'daysOfTheMonth', 'type': '[Day]'}, - } - - def __init__(self, *, days_of_the_month=None, **kwargs) -> None: - super(DailyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_month = days_of_the_month - - -class DailyRetentionSchedule(Model): - """Daily retention schedule. - - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_times=None, retention_duration=None, **kwargs) -> None: - super(DailyRetentionSchedule, self).__init__(**kwargs) - self.retention_times = retention_times - self.retention_duration = retention_duration - - -class Day(Model): - """Day of the week. - - :param date_property: Date of the month - :type date_property: int - :param is_last: Whether Date is last date of month - :type is_last: bool - """ - - _attribute_map = { - 'date_property': {'key': 'date', 'type': 'int'}, - 'is_last': {'key': 'isLast', 'type': 'bool'}, - } - - def __init__(self, *, date_property: int=None, is_last: bool=None, **kwargs) -> None: - super(Day, self).__init__(**kwargs) - self.date_property = date_property - self.is_last = is_last - - -class DiskExclusionProperties(Model): - """DiskExclusionProperties. - - :param disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used - for VM Protection. - :type disk_lun_list: list[int] - :param is_inclusion_list: Flag to indicate whether DiskLunList is to be - included/ excluded from backup. - :type is_inclusion_list: bool - """ - - _attribute_map = { - 'disk_lun_list': {'key': 'diskLunList', 'type': '[int]'}, - 'is_inclusion_list': {'key': 'isInclusionList', 'type': 'bool'}, - } - - def __init__(self, *, disk_lun_list=None, is_inclusion_list: bool=None, **kwargs) -> None: - super(DiskExclusionProperties, self).__init__(**kwargs) - self.disk_lun_list = disk_lun_list - self.is_inclusion_list = is_inclusion_list - - -class DiskInformation(Model): - """Disk information. - - :param lun: - :type lun: int - :param name: - :type name: str - """ - - _attribute_map = { - 'lun': {'key': 'lun', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, lun: int=None, name: str=None, **kwargs) -> None: - super(DiskInformation, self).__init__(**kwargs) - self.lun = lun - self.name = name - - -class DistributedNodesInfo(Model): - """This is used to represent the various nodes of the distributed container. - - :param node_name: Name of the node under a distributed container. - :type node_name: str - :param status: Status of this Node. - Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - """ - - _attribute_map = { - 'node_name': {'key': 'nodeName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - } - - def __init__(self, *, node_name: str=None, status: str=None, error_detail=None, **kwargs) -> None: - super(DistributedNodesInfo, self).__init__(**kwargs) - self.node_name = node_name - self.status = status - self.error_detail = error_detail - - -class DpmBackupEngine(BackupEngineBase): - """Data Protection Manager (DPM) specific backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :param is_dpm_upgrade_available: To check if backup engine upgrade - available - :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backupengine - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: - super(DpmBackupEngine, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, backup_engine_state=backup_engine_state, health_status=health_status, can_re_register=can_re_register, backup_engine_id=backup_engine_id, dpm_version=dpm_version, azure_backup_agent_version=azure_backup_agent_version, is_azure_backup_agent_upgrade_available=is_azure_backup_agent_upgrade_available, is_dpm_upgrade_available=is_dpm_upgrade_available, extended_info=extended_info, **kwargs) - self.backup_engine_type = 'DpmBackupEngine' - - -class DPMContainerExtendedInfo(Model): - """Additional information of the DPMContainer. - - :param last_refreshed_at: Last refresh time of the DPMContainer. - :type last_refreshed_at: datetime - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - } - - def __init__(self, *, last_refreshed_at=None, **kwargs) -> None: - super(DPMContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = last_refreshed_at - - -class DpmErrorInfo(Model): - """DPM workload-specific error information. - - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, error_string: str=None, recommendations=None, **kwargs) -> None: - super(DpmErrorInfo, self).__init__(**kwargs) - self.error_string = error_string - self.recommendations = recommendations - - -class DpmJob(Job): - """DPM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed for job. - :type duration: timedelta - :param dpm_server_name: DPM server name managing the backup item or backup - job. - :type dpm_server_name: str - :param container_name: Name of cluster/server protecting current backup - item, if any. - :type container_name: str - :param container_type: Type of container. - :type container_type: str - :param workload_type: Type of backup item. - :type workload_type: str - :param actions_info: The state/actions applicable on this job like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.DpmErrorInfo] - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DpmJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, dpm_server_name: str=None, container_name: str=None, container_type: str=None, workload_type: str=None, actions_info=None, error_details=None, extended_info=None, **kwargs) -> None: - super(DpmJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.dpm_server_name = dpm_server_name - self.container_name = container_name - self.container_type = container_type - self.workload_type = workload_type - self.actions_info = actions_info - self.error_details = error_details - self.extended_info = extended_info - self.job_type = 'DpmJob' - - -class DpmJobExtendedInfo(Model): - """Additional information on the DPM workload-specific job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.DpmJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(DpmJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message - - -class DpmJobTaskDetails(Model): - """DPM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, start_time=None, end_time=None, duration=None, status: str=None, **kwargs) -> None: - super(DpmJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.start_time = start_time - self.end_time = end_time - self.duration = duration - self.status = status - - -class DPMProtectedItem(ProtectedItem): - """Additional information on Backup engine specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the managed item - :type friendly_name: str - :param backup_engine_name: Backup Management server protecting this backup - item - :type backup_engine_name: str - :param protection_state: Protection state of the backup engine. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param extended_info: Extended info of the backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, backup_engine_name: str=None, protection_state=None, extended_info=None, **kwargs) -> None: - super(DPMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) - self.friendly_name = friendly_name - self.backup_engine_name = backup_engine_name - self.protection_state = protection_state - self.extended_info = extended_info - self.protected_item_type = 'DPMProtectedItem' - - -class DPMProtectedItemExtendedInfo(Model): - """Additional information of DPM Protected item. - - :param protectable_object_load_path: Attribute to provide information on - various DBs. - :type protectable_object_load_path: dict[str, str] - :param protected: To check if backup item is disk protected. - :type protected: bool - :param is_present_on_cloud: To check if backup item is cloud protected. - :type is_present_on_cloud: bool - :param last_backup_status: Last backup status information on backup item. - :type last_backup_status: str - :param last_refreshed_at: Last refresh time on backup item. - :type last_refreshed_at: datetime - :param oldest_recovery_point: Oldest cloud recovery point time. - :type oldest_recovery_point: datetime - :param recovery_point_count: cloud recovery point count. - :type recovery_point_count: int - :param on_premise_oldest_recovery_point: Oldest disk recovery point time. - :type on_premise_oldest_recovery_point: datetime - :param on_premise_latest_recovery_point: latest disk recovery point time. - :type on_premise_latest_recovery_point: datetime - :param on_premise_recovery_point_count: disk recovery point count. - :type on_premise_recovery_point_count: int - :param is_collocated: To check if backup item is collocated. - :type is_collocated: bool - :param protection_group_name: Protection group name of the backup item. - :type protection_group_name: str - :param disk_storage_used_in_bytes: Used Disk storage in bytes. - :type disk_storage_used_in_bytes: str - :param total_disk_storage_size_in_bytes: total Disk storage in bytes. - :type total_disk_storage_size_in_bytes: str - """ - - _attribute_map = { - 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, - 'protected': {'key': 'protected', 'type': 'bool'}, - 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, - 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, - 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, - 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, - 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, - } - - def __init__(self, *, protectable_object_load_path=None, protected: bool=None, is_present_on_cloud: bool=None, last_backup_status: str=None, last_refreshed_at=None, oldest_recovery_point=None, recovery_point_count: int=None, on_premise_oldest_recovery_point=None, on_premise_latest_recovery_point=None, on_premise_recovery_point_count: int=None, is_collocated: bool=None, protection_group_name: str=None, disk_storage_used_in_bytes: str=None, total_disk_storage_size_in_bytes: str=None, **kwargs) -> None: - super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.protectable_object_load_path = protectable_object_load_path - self.protected = protected - self.is_present_on_cloud = is_present_on_cloud - self.last_backup_status = last_backup_status - self.last_refreshed_at = last_refreshed_at - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.on_premise_oldest_recovery_point = on_premise_oldest_recovery_point - self.on_premise_latest_recovery_point = on_premise_latest_recovery_point - self.on_premise_recovery_point_count = on_premise_recovery_point_count - self.is_collocated = is_collocated - self.protection_group_name = protection_group_name - self.disk_storage_used_in_bytes = disk_storage_used_in_bytes - self.total_disk_storage_size_in_bytes = total_disk_storage_size_in_bytes - - -class EncryptionDetails(Model): - """Details needed if the VM was encrypted at the time of backup. - - :param encryption_enabled: Identifies whether this backup copy represents - an encrypted VM at the time of backup. - :type encryption_enabled: bool - :param kek_url: Key Url. - :type kek_url: str - :param secret_key_url: Secret Url. - :type secret_key_url: str - :param kek_vault_id: ID of Key Vault where KEK is stored. - :type kek_vault_id: str - :param secret_key_vault_id: ID of Key Vault where Secret is stored. - :type secret_key_vault_id: str - """ - - _attribute_map = { - 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, - 'kek_url': {'key': 'kekUrl', 'type': 'str'}, - 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, - 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, - 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, - } - - def __init__(self, *, encryption_enabled: bool=None, kek_url: str=None, secret_key_url: str=None, kek_vault_id: str=None, secret_key_vault_id: str=None, **kwargs) -> None: - super(EncryptionDetails, self).__init__(**kwargs) - self.encryption_enabled = encryption_enabled - self.kek_url = kek_url - self.secret_key_url = secret_key_url - self.kek_vault_id = kek_vault_id - self.secret_key_vault_id = secret_key_vault_id - - -class ErrorAdditionalInfo(Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: object - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None - - -class ErrorDetail(Model): - """Error Detail class which encapsulates Code, Message and Recommendations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error Message related to the Code. - :vartype message: str - :ivar recommendations: List of recommendation strings. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.recommendations = None - - -class ErrorResponse(Model): - """The resource management error response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorResponse] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorResponse]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) - - -class OperationResultInfoBase(Model): - """Base class for operation result info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ExportJobsOperationResultInfo, OperationResultInfo - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'ExportJobsOperationResultInfo': 'ExportJobsOperationResultInfo', 'OperationResultInfo': 'OperationResultInfo'} - } - - def __init__(self, **kwargs) -> None: - super(OperationResultInfoBase, self).__init__(**kwargs) - self.object_type = None - - -class ExportJobsOperationResultInfo(OperationResultInfoBase): - """This class is used to send blob details after exporting jobs. - - 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 blob_url: URL of the blob into which the serialized string of list - of jobs is exported. - :type blob_url: str - :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :type blob_sas_key: str - :param excel_file_blob_url: URL of the blob into which the ExcelFile is - uploaded. - :type excel_file_blob_url: str - :param excel_file_blob_sas_key: SAS key to access the blob. It expires in - 15 mins. - :type excel_file_blob_sas_key: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'blob_url': {'key': 'blobUrl', 'type': 'str'}, - 'blob_sas_key': {'key': 'blobSasKey', 'type': 'str'}, - 'excel_file_blob_url': {'key': 'excelFileBlobUrl', 'type': 'str'}, - 'excel_file_blob_sas_key': {'key': 'excelFileBlobSasKey', 'type': 'str'}, - } - - def __init__(self, *, blob_url: str=None, blob_sas_key: str=None, excel_file_blob_url: str=None, excel_file_blob_sas_key: str=None, **kwargs) -> None: - super(ExportJobsOperationResultInfo, self).__init__(**kwargs) - self.blob_url = blob_url - self.blob_sas_key = blob_sas_key - self.excel_file_blob_url = excel_file_blob_url - self.excel_file_blob_sas_key = excel_file_blob_sas_key - self.object_type = 'ExportJobsOperationResultInfo' - - -class ExtendedProperties(Model): - """Extended Properties for Azure IaasVM Backup. - - :param disk_exclusion_properties: Extended Properties for Disk Exclusion. - :type disk_exclusion_properties: - ~azure.mgmt.recoveryservicesbackup.models.DiskExclusionProperties - """ - - _attribute_map = { - 'disk_exclusion_properties': {'key': 'diskExclusionProperties', 'type': 'DiskExclusionProperties'}, - } - - def __init__(self, *, disk_exclusion_properties=None, **kwargs) -> None: - super(ExtendedProperties, self).__init__(**kwargs) - self.disk_exclusion_properties = disk_exclusion_properties - - -class GenericContainer(ProtectionContainer): - """Base class for generic container of backup items. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param fabric_name: Name of the container's fabric - :type fabric_name: str - :param extended_information: Extended information (not returned in List - container API calls) - :type extended_information: - ~azure.mgmt.recoveryservicesbackup.models.GenericContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'extended_information': {'key': 'extendedInformation', 'type': 'GenericContainerExtendedInfo'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, fabric_name: str=None, extended_information=None, **kwargs) -> None: - super(GenericContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.fabric_name = fabric_name - self.extended_information = extended_information - self.container_type = 'GenericContainer' - - -class GenericContainerExtendedInfo(Model): - """Container extended information. - - :param raw_cert_data: Public key of container cert - :type raw_cert_data: str - :param container_identity_info: Container identity information - :type container_identity_info: - ~azure.mgmt.recoveryservicesbackup.models.ContainerIdentityInfo - :param service_endpoints: Azure Backup Service Endpoints for the container - :type service_endpoints: dict[str, str] - """ - - _attribute_map = { - 'raw_cert_data': {'key': 'rawCertData', 'type': 'str'}, - 'container_identity_info': {'key': 'containerIdentityInfo', 'type': 'ContainerIdentityInfo'}, - 'service_endpoints': {'key': 'serviceEndpoints', 'type': '{str}'}, - } - - def __init__(self, *, raw_cert_data: str=None, container_identity_info=None, service_endpoints=None, **kwargs) -> None: - super(GenericContainerExtendedInfo, self).__init__(**kwargs) - self.raw_cert_data = raw_cert_data - self.container_identity_info = container_identity_info - self.service_endpoints = service_endpoints - - -class GenericProtectedItem(ProtectedItem): - """Base class for backup items. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param protected_item_id: Data Plane Service ID of the protected item. - :type protected_item_id: long - :param source_associations: Loosely coupled (type, value) associations - (example - parent of a protected item) - :type source_associations: dict[str, str] - :param fabric_name: Name of this backup item's fabric. - :type fabric_name: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, - 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, policy_state: str=None, protection_state=None, protected_item_id: int=None, source_associations=None, fabric_name: str=None, **kwargs) -> None: - super(GenericProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) - self.friendly_name = friendly_name - self.policy_state = policy_state - self.protection_state = protection_state - self.protected_item_id = protected_item_id - self.source_associations = source_associations - self.fabric_name = fabric_name - self.protected_item_type = 'GenericProtectedItem' - - -class GenericProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param fabric_name: Name of this policy's fabric. - :type fabric_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__(self, *, protected_items_count: int=None, sub_protection_policy=None, time_zone: str=None, fabric_name: str=None, **kwargs) -> None: - super(GenericProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.sub_protection_policy = sub_protection_policy - self.time_zone = time_zone - self.fabric_name = fabric_name - self.backup_management_type = 'GenericProtectionPolicy' - - -class GenericRecoveryPoint(RecoveryPoint): - """Generic backup copy. - - 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 friendly_name: Friendly name of the backup copy. - :type friendly_name: str - :param recovery_point_type: Type of the backup copy. - :type recovery_point_type: str - :param recovery_point_time: Time at which this backup copy was created. - :type recovery_point_time: datetime - :param recovery_point_additional_info: Additional information associated - with this backup copy. - :type recovery_point_additional_info: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, recovery_point_type: str=None, recovery_point_time=None, recovery_point_additional_info: str=None, **kwargs) -> None: - super(GenericRecoveryPoint, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.recovery_point_type = recovery_point_type - self.recovery_point_time = recovery_point_time - self.recovery_point_additional_info = recovery_point_additional_info - self.object_type = 'GenericRecoveryPoint' - - -class GetProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param expand: Specifies if the additional information should be provided - for this item. - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, *, expand: str=None, **kwargs) -> None: - super(GetProtectedItemQueryObject, self).__init__(**kwargs) - self.expand = expand - - -class IaasVMBackupRequest(BackupRequest): - """IaaS VM workload-specific backup 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 recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, *, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: - super(IaasVMBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc - self.object_type = 'IaasVMBackupRequest' - - -class IaasVMILRRegistrationRequest(ILRRequest): - """Restore files/folders from a backup copy of IaaS VM. - - 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 recovery_point_id: ID of the IaaS VM backup copy from where the - files/folders have to be restored. - :type recovery_point_id: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - whose the files / folders have to be restored. - :type virtual_machine_id: str - :param initiator_name: iSCSI initiator name. - :type initiator_name: str - :param renew_existing_registration: Whether to renew existing registration - with the iSCSI server. - :type renew_existing_registration: bool - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'initiator_name': {'key': 'initiatorName', 'type': 'str'}, - 'renew_existing_registration': {'key': 'renewExistingRegistration', 'type': 'bool'}, - } - - def __init__(self, *, recovery_point_id: str=None, virtual_machine_id: str=None, initiator_name: str=None, renew_existing_registration: bool=None, **kwargs) -> None: - super(IaasVMILRRegistrationRequest, self).__init__(**kwargs) - self.recovery_point_id = recovery_point_id - self.virtual_machine_id = virtual_machine_id - self.initiator_name = initiator_name - self.renew_existing_registration = renew_existing_registration - self.object_type = 'IaasVMILRRegistrationRequest' - - -class IaasVMRecoveryPoint(RecoveryPoint): - """IaaS VM workload specific backup copy. - - Variables are only populated by the server, and will be ignored when - sending a 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 - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar recovery_point_additional_info: Additional information associated - with this backup copy. - :vartype recovery_point_additional_info: str - :ivar source_vm_storage_type: Storage type of the VM whose backup copy is - created. - :vartype source_vm_storage_type: str - :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when - the backup copy is created. - :vartype is_source_vm_encrypted: bool - :param key_and_secret: Required details for recovering an encrypted VM. - Applicable only when IsSourceVMEncrypted is true. - :type key_and_secret: - ~azure.mgmt.recoveryservicesbackup.models.KeyAndSecretDetails - :param is_instant_ilr_session_active: Is the session to recover items from - this backup copy still active. - :type is_instant_ilr_session_active: bool - :param recovery_point_tier_details: Recovery point tier information. - :type recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierInformation] - :param is_managed_virtual_machine: Whether VM is with Managed Disks - :type is_managed_virtual_machine: bool - :param virtual_machine_size: Virtual Machine Size - :type virtual_machine_size: str - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param os_type: OS type - :type os_type: str - :param recovery_point_disk_configuration: Disk configuration - :type recovery_point_disk_configuration: - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointDiskConfiguration - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'recovery_point_additional_info': {'readonly': True}, - 'source_vm_storage_type': {'readonly': True}, - 'is_source_vm_encrypted': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, - 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, - 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, - 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, - 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'recovery_point_disk_configuration': {'key': 'recoveryPointDiskConfiguration', 'type': 'RecoveryPointDiskConfiguration'}, - } - - def __init__(self, *, key_and_secret=None, is_instant_ilr_session_active: bool=None, recovery_point_tier_details=None, is_managed_virtual_machine: bool=None, virtual_machine_size: str=None, original_storage_account_option: bool=None, os_type: str=None, recovery_point_disk_configuration=None, **kwargs) -> None: - super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.recovery_point_additional_info = None - self.source_vm_storage_type = None - self.is_source_vm_encrypted = None - self.key_and_secret = key_and_secret - self.is_instant_ilr_session_active = is_instant_ilr_session_active - self.recovery_point_tier_details = recovery_point_tier_details - self.is_managed_virtual_machine = is_managed_virtual_machine - self.virtual_machine_size = virtual_machine_size - self.original_storage_account_option = original_storage_account_option - self.os_type = os_type - self.recovery_point_disk_configuration = recovery_point_disk_configuration - self.object_type = 'IaasVMRecoveryPoint' - - -class IaasVMRestoreRequest(RestoreRequest): - """IaaS VM workload-specific restore. - - 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 recovery_point_id: ID of the backup copy to be recovered. - :type recovery_point_id: str - :param recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', - 'Offline' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM which is being - recovered. - :type source_resource_id: str - :param target_virtual_machine_id: This is the complete ARM Id of the VM - that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} - :type target_virtual_machine_id: str - :param target_resource_group_id: This is the ARM Id of the resource group - that you want to create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg} - :type target_resource_group_id: str - :param storage_account_id: Fully qualified ARM ID of the storage account - to which the VM has to be restored. - :type storage_account_id: str - :param virtual_network_id: This is the virtual network Id of the vnet that - will be attached to the virtual machine. - 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. - :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 - Virtual Machines. - :type target_domain_name_id: str - :param region: Region in which the virtual machine is restored. - :type region: str - :param affinity_group: Affinity group associated to VM to be restored. - Used only for Classic Compute Virtual Machines. - :type affinity_group: str - :param create_new_cloud_service: Should a new cloud service be created - while restoring the VM. If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :type create_new_cloud_service: bool - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param encryption_details: Details needed if the VM was encrypted at the - time of backup. - :type encryption_details: - ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails - :param restore_disk_lun_list: List of Disk LUNs for partial restore - :type restore_disk_lun_list: list[int] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'}, - 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, - 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, - 'restore_disk_lun_list': {'key': 'restoreDiskLunList', 'type': '[int]'}, - } - - def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_resource_id: str=None, target_virtual_machine_id: str=None, target_resource_group_id: str=None, storage_account_id: str=None, virtual_network_id: str=None, subnet_id: str=None, target_domain_name_id: str=None, region: str=None, affinity_group: str=None, create_new_cloud_service: bool=None, original_storage_account_option: bool=None, encryption_details=None, restore_disk_lun_list=None, **kwargs) -> None: - super(IaasVMRestoreRequest, self).__init__(**kwargs) - self.recovery_point_id = recovery_point_id - self.recovery_type = recovery_type - self.source_resource_id = source_resource_id - self.target_virtual_machine_id = target_virtual_machine_id - self.target_resource_group_id = target_resource_group_id - self.storage_account_id = storage_account_id - self.virtual_network_id = virtual_network_id - self.subnet_id = subnet_id - self.target_domain_name_id = target_domain_name_id - self.region = region - self.affinity_group = affinity_group - self.create_new_cloud_service = create_new_cloud_service - self.original_storage_account_option = original_storage_account_option - self.encryption_details = encryption_details - self.restore_disk_lun_list = restore_disk_lun_list - self.object_type = 'IaasVMRestoreRequest' - - -class ILRRequestResource(Resource): - """Parameters to Provision ILR API. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ILRRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ILRRequest - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ILRRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ILRRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class InquiryInfo(Model): - """Details about inquired protectable items under a given container. - - :param status: Inquiry Status for this container such as - InProgress | Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param inquiry_details: Inquiry Details which will have workload specific - details. - For e.g. - For SQL and oracle this will contain different details. - :type inquiry_details: - list[~azure.mgmt.recoveryservicesbackup.models.WorkloadInquiryDetails] - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'inquiry_details': {'key': 'inquiryDetails', 'type': '[WorkloadInquiryDetails]'}, - } - - def __init__(self, *, status: str=None, error_detail=None, inquiry_details=None, **kwargs) -> None: - super(InquiryInfo, self).__init__(**kwargs) - self.status = status - self.error_detail = error_detail - self.inquiry_details = inquiry_details - - -class InquiryValidation(Model): - """Validation for inquired protectable items under a given container. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param status: Status for the Inquiry Validation. - :type status: str - :param error_detail: Error Detail in case the status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :ivar additional_detail: Error Additional Detail in case the status is - non-success. - :vartype additional_detail: str - """ - - _validation = { - 'additional_detail': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'additional_detail': {'key': 'additionalDetail', 'type': 'str'}, - } - - def __init__(self, *, status: str=None, error_detail=None, **kwargs) -> None: - super(InquiryValidation, self).__init__(**kwargs) - self.status = status - self.error_detail = error_detail - self.additional_detail = None - - -class InstantItemRecoveryTarget(Model): - """Target details for file / folder restore. - - :param client_scripts: List of client scripts. - :type client_scripts: - list[~azure.mgmt.recoveryservicesbackup.models.ClientScriptForConnect] - """ - - _attribute_map = { - 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, - } - - def __init__(self, *, client_scripts=None, **kwargs) -> None: - super(InstantItemRecoveryTarget, self).__init__(**kwargs) - self.client_scripts = client_scripts - - -class InstantRPAdditionalDetails(Model): - """InstantRPAdditionalDetails. - - :param azure_backup_rg_name_prefix: - :type azure_backup_rg_name_prefix: str - :param azure_backup_rg_name_suffix: - :type azure_backup_rg_name_suffix: str - """ - - _attribute_map = { - 'azure_backup_rg_name_prefix': {'key': 'azureBackupRGNamePrefix', 'type': 'str'}, - 'azure_backup_rg_name_suffix': {'key': 'azureBackupRGNameSuffix', 'type': 'str'}, - } - - def __init__(self, *, azure_backup_rg_name_prefix: str=None, azure_backup_rg_name_suffix: str=None, **kwargs) -> None: - super(InstantRPAdditionalDetails, self).__init__(**kwargs) - self.azure_backup_rg_name_prefix = azure_backup_rg_name_prefix - self.azure_backup_rg_name_suffix = azure_backup_rg_name_suffix - - -class JobQueryObject(Model): - """Filters to list the jobs. - - :param status: Status of the job. Possible values include: 'Invalid', - 'InProgress', 'Completed', 'Failed', 'CompletedWithWarnings', 'Cancelled', - 'Cancelling' - :type status: str or ~azure.mgmt.recoveryservicesbackup.models.JobStatus - :param backup_management_type: Type of backup management for the job. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: Type of operation. Possible values include: 'Invalid', - 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', - 'DisableBackup', 'DeleteBackupData', 'CrossRegionRestore', 'Undelete' - :type operation: str or - ~azure.mgmt.recoveryservicesbackup.models.JobOperationType - :param job_id: JobID represents the job uniquely. - :type job_id: str - :param start_time: Job has started at this time. Value is in UTC. - :type start_time: datetime - :param end_time: Job has ended at this time. Value is in UTC. - :type end_time: datetime - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, status=None, backup_management_type=None, operation=None, job_id: str=None, start_time=None, end_time=None, **kwargs) -> None: - super(JobQueryObject, self).__init__(**kwargs) - self.status = status - self.backup_management_type = backup_management_type - self.operation = operation - self.job_id = job_id - self.start_time = start_time - self.end_time = end_time - - -class JobResource(Resource): - """Defines workload agnostic properties for a job. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: JobResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.Job - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Job'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(JobResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class KEKDetails(Model): - """KEK is encryption key for BEK. - - :param key_url: Key is KEK. - :type key_url: str - :param key_vault_id: Key Vault ID where this Key is stored. - :type key_vault_id: str - :param key_backup_data: KEK data. - :type key_backup_data: str - """ - - _attribute_map = { - 'key_url': {'key': 'keyUrl', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, - } - - def __init__(self, *, key_url: str=None, key_vault_id: str=None, key_backup_data: str=None, **kwargs) -> None: - super(KEKDetails, self).__init__(**kwargs) - self.key_url = key_url - self.key_vault_id = key_vault_id - self.key_backup_data = key_backup_data - - -class KeyAndSecretDetails(Model): - """BEK is bitlocker key. - KEK is encryption key for BEK - If the VM was encrypted then we will store following details : - 1. Secret(BEK) - Url + Backup Data + vaultId. - 2. Key(KEK) - Url + Backup Data + vaultId. - 3. EncryptionMechanism - BEK and KEK can potentially have different vault ids. - - :param kek_details: KEK is encryption key for BEK. - :type kek_details: ~azure.mgmt.recoveryservicesbackup.models.KEKDetails - :param bek_details: BEK is bitlocker encryption key. - :type bek_details: ~azure.mgmt.recoveryservicesbackup.models.BEKDetails - :param encryption_mechanism: Encryption mechanism: None/ SinglePass/ - DoublePass - :type encryption_mechanism: str - """ - - _attribute_map = { - 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, - 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, - 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, - } - - def __init__(self, *, kek_details=None, bek_details=None, encryption_mechanism: str=None, **kwargs) -> None: - super(KeyAndSecretDetails, self).__init__(**kwargs) - self.kek_details = kek_details - self.bek_details = bek_details - self.encryption_mechanism = encryption_mechanism - - -class SchedulePolicy(Model): - """Base class for backup schedule. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, - SimpleSchedulePolicy - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} - } - - def __init__(self, **kwargs) -> None: - super(SchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = None - - -class LogSchedulePolicy(SchedulePolicy): - """Log policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_frequency_in_mins: Frequency of the log schedule operation - of this policy in minutes. - :type schedule_frequency_in_mins: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_frequency_in_mins': {'key': 'scheduleFrequencyInMins', 'type': 'int'}, - } - - def __init__(self, *, schedule_frequency_in_mins: int=None, **kwargs) -> None: - super(LogSchedulePolicy, self).__init__(**kwargs) - self.schedule_frequency_in_mins = schedule_frequency_in_mins - self.schedule_policy_type = 'LogSchedulePolicy' - - -class RetentionPolicy(Model): - """Base class for retention policy. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LongTermRetentionPolicy, SimpleRetentionPolicy - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'retention_policy_type': {'LongTermRetentionPolicy': 'LongTermRetentionPolicy', 'SimpleRetentionPolicy': 'SimpleRetentionPolicy'} - } - - def __init__(self, **kwargs) -> None: - super(RetentionPolicy, self).__init__(**kwargs) - self.retention_policy_type = None - - -class LongTermRetentionPolicy(RetentionPolicy): - """Long term retention policy. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param daily_schedule: Daily retention schedule of the protection policy. - :type daily_schedule: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionSchedule - :param weekly_schedule: Weekly retention schedule of the protection - policy. - :type weekly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionSchedule - :param monthly_schedule: Monthly retention schedule of the protection - policy. - :type monthly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.MonthlyRetentionSchedule - :param yearly_schedule: Yearly retention schedule of the protection - policy. - :type yearly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.YearlyRetentionSchedule - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailyRetentionSchedule'}, - 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklyRetentionSchedule'}, - 'monthly_schedule': {'key': 'monthlySchedule', 'type': 'MonthlyRetentionSchedule'}, - 'yearly_schedule': {'key': 'yearlySchedule', 'type': 'YearlyRetentionSchedule'}, - } - - def __init__(self, *, daily_schedule=None, weekly_schedule=None, monthly_schedule=None, yearly_schedule=None, **kwargs) -> None: - super(LongTermRetentionPolicy, self).__init__(**kwargs) - self.daily_schedule = daily_schedule - self.weekly_schedule = weekly_schedule - self.monthly_schedule = monthly_schedule - self.yearly_schedule = yearly_schedule - self.retention_policy_type = 'LongTermRetentionPolicy' - - -class LongTermSchedulePolicy(SchedulePolicy): - """Long term policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(LongTermSchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = 'LongTermSchedulePolicy' - - -class MabContainer(ProtectionContainer): - """Container with items backed up using MAB backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Can the container be registered one more time. - :type can_re_register: bool - :param container_id: ContainerID represents the container. - :type container_id: long - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - :param agent_version: Agent version of this container. - :type agent_version: str - :param extended_info: Additional information for this container - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabContainerExtendedInfo - :param mab_container_health_details: Health details on this mab container. - :type mab_container_health_details: - list[~azure.mgmt.recoveryservicesbackup.models.MABContainerHealthDetails] - :param container_health_state: Health state of mab container. - :type container_health_state: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'long'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabContainerExtendedInfo'}, - 'mab_container_health_details': {'key': 'mabContainerHealthDetails', 'type': '[MABContainerHealthDetails]'}, - 'container_health_state': {'key': 'containerHealthState', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: int=None, protected_item_count: int=None, agent_version: str=None, extended_info=None, mab_container_health_details=None, container_health_state: str=None, **kwargs) -> None: - super(MabContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.can_re_register = can_re_register - self.container_id = container_id - self.protected_item_count = protected_item_count - self.agent_version = agent_version - self.extended_info = extended_info - self.mab_container_health_details = mab_container_health_details - self.container_health_state = container_health_state - self.container_type = 'Windows' - - -class MabContainerExtendedInfo(Model): - """Additional information of the container. - - :param last_refreshed_at: Time stamp when this container was refreshed. - :type last_refreshed_at: datetime - :param backup_item_type: Type of backup items associated with this - container. Possible values include: 'Invalid', 'VM', 'FileFolder', - 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type backup_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupItemType - :param backup_items: List of backup items associated with this container. - :type backup_items: list[str] - :param policy_name: Backup policy associated with this container. - :type policy_name: str - :param last_backup_status: Latest backup status of this container. - :type last_backup_status: str - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'backup_item_type': {'key': 'backupItemType', 'type': 'str'}, - 'backup_items': {'key': 'backupItems', 'type': '[str]'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - } - - def __init__(self, *, last_refreshed_at=None, backup_item_type=None, backup_items=None, policy_name: str=None, last_backup_status: str=None, **kwargs) -> None: - super(MabContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = last_refreshed_at - self.backup_item_type = backup_item_type - self.backup_items = backup_items - self.policy_name = policy_name - self.last_backup_status = last_backup_status - - -class MABContainerHealthDetails(Model): - """MAB workload-specific Health Details. - - :param code: Health Code - :type code: int - :param title: Health Title - :type title: str - :param message: Health Message - :type message: str - :param recommendations: Health Recommended Actions - :type recommendations: list[str] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, code: int=None, title: str=None, message: str=None, recommendations=None, **kwargs) -> None: - super(MABContainerHealthDetails, self).__init__(**kwargs) - self.code = code - self.title = title - self.message = message - self.recommendations = recommendations - - -class MabErrorInfo(Model): - """MAB workload-specific error information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs) -> None: - super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = None - self.recommendations = None - - -class MabFileFolderProtectedItem(ProtectedItem): - """MAB workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param deferred_delete_time_in_utc: Time for deferred deletion in UTC - :type deferred_delete_time_in_utc: datetime - :param is_scheduled_for_deferred_delete: Flag to identify whether the DS - is scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_time_remaining: Time remaining before the DS marked - for deferred delete is permanently deleted - :type deferred_delete_time_remaining: str - :param is_deferred_delete_schedule_upcoming: Flag to identify whether the - deferred deleted DS is to be purged soon - :type is_deferred_delete_schedule_upcoming: bool - :param is_rehydrate: Flag to identify that deferred deleted DS is to be - moved into Pause state - :type is_rehydrate: bool - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of this backup item. - :type friendly_name: str - :param computer_name: Name of the computer associated with this backup - item. - :type computer_name: str - :param last_backup_status: Status of last backup operation. - :type last_backup_status: str - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param protection_state: Protected, ProtectionStopped, IRPending or - ProtectionError - :type protection_state: str - :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion - in UTC - :type deferred_delete_sync_time_in_utc: long - :param extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, - 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, - 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'deferred_delete_sync_time_in_utc': {'key': 'deferredDeleteSyncTimeInUTC', 'type': 'long'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, computer_name: str=None, last_backup_status: str=None, last_backup_time=None, protection_state: str=None, deferred_delete_sync_time_in_utc: int=None, extended_info=None, **kwargs) -> None: - super(MabFileFolderProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) - self.friendly_name = friendly_name - self.computer_name = computer_name - self.last_backup_status = last_backup_status - self.last_backup_time = last_backup_time - self.protection_state = protection_state - self.deferred_delete_sync_time_in_utc = deferred_delete_sync_time_in_utc - self.extended_info = extended_info - self.protected_item_type = 'MabFileFolderProtectedItem' - - -class MabFileFolderProtectedItemExtendedInfo(Model): - """Additional information on the backed up item. - - :param last_refreshed_at: Last time when the agent data synced to service. - :type last_refreshed_at: datetime - :param oldest_recovery_point: The oldest backup copy available. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies associated with the - backup item. - :type recovery_point_count: int - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - } - - def __init__(self, *, last_refreshed_at=None, oldest_recovery_point=None, recovery_point_count: int=None, **kwargs) -> None: - super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = last_refreshed_at - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - - -class MabJob(Job): - """MAB workload-specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time taken by job to run. - :type duration: timedelta - :param actions_info: The state/actions applicable on jobs like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param mab_server_name: Name of server protecting the DS. - :type mab_server_name: str - :param mab_server_type: Server type of MAB container. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.models.MabServerType - :param workload_type: Workload type of backup item. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.MabErrorInfo] - :param extended_info: Additional information on the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, - 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, mab_server_name: str=None, mab_server_type=None, workload_type=None, error_details=None, extended_info=None, **kwargs) -> None: - super(MabJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.actions_info = actions_info - self.mab_server_name = mab_server_name - self.mab_server_type = mab_server_type - self.workload_type = workload_type - self.error_details = error_details - self.extended_info = extended_info - self.job_type = 'MabJob' - - -class MabJobExtendedInfo(Model): - """Additional information for the MAB workload-specific job. - - :param tasks_list: List of tasks for this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.MabJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message specific to this - job. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(MabJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message - - -class MabJobTaskDetails(Model): - """MAB workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, start_time=None, end_time=None, duration=None, status: str=None, **kwargs) -> None: - super(MabJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.start_time = start_time - self.end_time = end_time - self.duration = duration - self.status = status - - -class MabProtectionPolicy(ProtectionPolicy): - """Mab container-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param schedule_policy: Backup schedule of backup policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, *, protected_items_count: int=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: - super(MabProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy - self.backup_management_type = 'MAB' - - -class MonthlyRetentionSchedule(Model): - """Monthly retention schedule. - - :param retention_schedule_format_type: Retention schedule format type for - monthly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param retention_schedule_daily: Daily retention format for monthly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for monthly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_schedule_format_type=None, retention_schedule_daily=None, retention_schedule_weekly=None, retention_times=None, retention_duration=None, **kwargs) -> None: - super(MonthlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = retention_schedule_format_type - self.retention_schedule_daily = retention_schedule_daily - self.retention_schedule_weekly = retention_schedule_weekly - self.retention_times = retention_times - self.retention_duration = retention_duration - - -class NameInfo(Model): - """The name of usage. - - :param value: Value of usage. - :type value: str - :param localized_value: Localized value of usage. - :type localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None: - super(NameInfo, self).__init__(**kwargs) - self.value = value - self.localized_value = localized_value - - -class OperationResultInfo(OperationResultInfoBase): - """Operation result info. - - 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 job_list: List of jobs created by this operation. - :type job_list: list[str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_list': {'key': 'jobList', 'type': '[str]'}, - } - - def __init__(self, *, job_list=None, **kwargs) -> None: - super(OperationResultInfo, self).__init__(**kwargs) - self.job_list = job_list - self.object_type = 'OperationResultInfo' - - -class OperationWorkerResponse(Model): - """This is the base class for operation result responses. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - } - - def __init__(self, *, status_code=None, headers=None, **kwargs) -> None: - super(OperationWorkerResponse, self).__init__(**kwargs) - self.status_code = status_code - self.headers = headers - - -class OperationResultInfoBaseResource(OperationWorkerResponse): - """Base class for operation result info. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - :param operation: OperationResultInfoBaseResource operation - :type operation: - ~azure.mgmt.recoveryservicesbackup.models.OperationResultInfoBase - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - 'operation': {'key': 'operation', 'type': 'OperationResultInfoBase'}, - } - - def __init__(self, *, status_code=None, headers=None, operation=None, **kwargs) -> None: - super(OperationResultInfoBaseResource, self).__init__(status_code=status_code, headers=headers, **kwargs) - self.operation = operation - - -class OperationStatus(Model): - """Operation status. - - :param id: ID of the operation. - :type id: str - :param name: Name of the operation. - :type name: str - :param status: Operation status. Possible values include: 'Invalid', - 'InProgress', 'Succeeded', 'Failed', 'Canceled' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusValues - :param start_time: Operation start time. Format: ISO-8601. - :type start_time: datetime - :param end_time: Operation end time. Format: ISO-8601. - :type end_time: datetime - :param error: Error information related to this operation. - :type error: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusError - :param properties: Additional information associated with this operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusExtendedInfo - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationStatusError'}, - 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, - } - - def __init__(self, *, id: str=None, name: str=None, status=None, start_time=None, end_time=None, error=None, properties=None, **kwargs) -> None: - super(OperationStatus, self).__init__(**kwargs) - self.id = id - self.name = name - self.status = status - self.start_time = start_time - self.end_time = end_time - self.error = error - self.properties = properties - - -class OperationStatusError(Model): - """Error information associated with operation status call. - - :param code: Error code of the operation failure. - :type code: str - :param message: Error message displayed if the operation failure. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(OperationStatusError, self).__init__(**kwargs) - self.code = code - self.message = message - - -class OperationStatusExtendedInfo(Model): - """Base class for additional information of operation status. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OperationStatusJobExtendedInfo, - OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} - } - - def __init__(self, **kwargs) -> None: - super(OperationStatusExtendedInfo, self).__init__(**kwargs) - self.object_type = None - - -class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): - """Operation status job extended info. - - 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 job_id: ID of the job created for this protected item. - :type job_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - } - - def __init__(self, *, job_id: str=None, **kwargs) -> None: - super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) - self.job_id = job_id - self.object_type = 'OperationStatusJobExtendedInfo' - - -class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for list of jobs. - - 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 job_ids: IDs of the jobs created for the protected item. - :type job_ids: list[str] - :param failed_jobs_error: Stores all the failed jobs along with the - corresponding error codes. - :type failed_jobs_error: dict[str, str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_ids': {'key': 'jobIds', 'type': '[str]'}, - 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, - } - - def __init__(self, *, job_ids=None, failed_jobs_error=None, **kwargs) -> None: - super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) - self.job_ids = job_ids - self.failed_jobs_error = failed_jobs_error - self.object_type = 'OperationStatusJobsExtendedInfo' - - -class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for ILR provision 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 recovery_target: Target details for file / folder restore. - :type recovery_target: - ~azure.mgmt.recoveryservicesbackup.models.InstantItemRecoveryTarget - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, - } - - def __init__(self, *, recovery_target=None, **kwargs) -> None: - super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) - self.recovery_target = recovery_target - self.object_type = 'OperationStatusProvisionILRExtendedInfo' - - -class PointInTimeRange(Model): - """Provides details for log ranges. - - :param start_time: Start time of the time range for log recovery. - :type start_time: datetime - :param end_time: End time of the time range for log recovery. - :type end_time: datetime - """ - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, start_time=None, end_time=None, **kwargs) -> None: - super(PointInTimeRange, self).__init__(**kwargs) - self.start_time = start_time - self.end_time = end_time - - -class PreBackupValidation(Model): - """Pre-backup validation for Azure VM Workload provider. - - :param status: Status of protectable item, i.e. - InProgress,Succeeded,Failed. Possible values include: 'Invalid', - 'Success', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.InquiryStatus - :param code: Error code of protectable item - :type code: str - :param message: Message corresponding to the error code for the - protectable item - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, status=None, code: str=None, message: str=None, **kwargs) -> None: - super(PreBackupValidation, self).__init__(**kwargs) - self.status = status - self.code = code - self.message = message - - -class PreValidateEnableBackupRequest(Model): - """Contract to validate if backup can be enabled on the given resource in a - given vault and given configuration. - It will validate followings - 1. Vault capacity - 2. VM is already protected - 3. Any VM related configuration passed in properties. - - :param resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare - etc. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: ARM Virtual Machine Id - :type resource_id: str - :param vault_id: ARM id of the Recovery Services Vault - :type vault_id: str - :param properties: Configuration of VM if any needs to be validated like - OS type etc - :type properties: str - """ - - _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, 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 - - -class PreValidateEnableBackupResponse(Model): - """Response contract for enable backup validation request. - - :param status: Validation Status. Possible values include: 'Invalid', - 'Succeeded', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.ValidationStatus - :param error_code: Response error code - :type error_code: str - :param error_message: Response error message - :type error_message: str - :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 - :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 - :type protected_item_name: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'recommendation': {'key': 'recommendation', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - } - - def __init__(self, *, status=None, error_code: str=None, error_message: str=None, recommendation: str=None, container_name: str=None, protected_item_name: str=None, **kwargs) -> None: - super(PreValidateEnableBackupResponse, self).__init__(**kwargs) - self.status = status - self.error_code = error_code - self.error_message = error_message - self.recommendation = recommendation - self.container_name = container_name - self.protected_item_name = protected_item_name - - -class PrivateEndpoint(Model): - """The Private Endpoint network resource that is linked to the Private - Endpoint connection. - - :param id: Gets or sets id - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(PrivateEndpoint, self).__init__(**kwargs) - self.id = id - - -class PrivateEndpointConnection(Model): - """Private Endpoint Connection Response Properties. - - :param provisioning_state: Gets or sets provisioning state of the private - endpoint connection. Possible values include: 'Succeeded', 'Deleting', - 'Failed', 'Pending' - :type provisioning_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProvisioningState - :param private_endpoint: Gets or sets private endpoint associated with the - private endpoint connection - :type private_endpoint: - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpoint - :param private_link_service_connection_state: Gets or sets private link - service connection state - :type private_link_service_connection_state: - ~azure.mgmt.recoveryservicesbackup.models.PrivateLinkServiceConnectionState - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpoint'}, - 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, - } - - def __init__(self, *, provisioning_state=None, private_endpoint=None, private_link_service_connection_state=None, **kwargs) -> None: - super(PrivateEndpointConnection, self).__init__(**kwargs) - self.provisioning_state = provisioning_state - self.private_endpoint = private_endpoint - self.private_link_service_connection_state = private_link_service_connection_state - - -class PrivateEndpointConnectionResource(Resource): - """Private Endpoint Connection Response Properties. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: PrivateEndpointConnectionResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnection - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnection'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(PrivateEndpointConnectionResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class PrivateLinkServiceConnectionState(Model): - """Private Link Service Connection State. - - :param status: Gets or sets the status. Possible values include: - 'Pending', 'Approved', 'Rejected', 'Disconnected' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnectionStatus - :param description: Gets or sets description - :type description: str - :param action_required: Gets or sets actions required - :type action_required: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'action_required': {'key': 'actionRequired', 'type': 'str'}, - } - - def __init__(self, *, status=None, description: str=None, action_required: str=None, **kwargs) -> None: - super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) - self.status = status - self.description = description - self.action_required = action_required - - -class ProtectableContainerResource(Resource): - """Protectable Container Class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectableContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainer - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectableContainer'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectableContainerResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class ProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param health_state: Health State for the backed up item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_state: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthState - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param policy_name: Backup policy name associated with the backup item. - :type policy_name: str - :param container_name: Name of the container. - :type container_name: str - :param backup_engine_name: Backup Engine name - :type backup_engine_name: str - :param friendly_name: Friendly name of protected item - :type friendly_name: str - :param fabric_name: Name of the fabric. - :type fabric_name: str - :param backup_set_name: Name of the backup set. - :type backup_set_name: str - """ - - _attribute_map = { - 'health_state': {'key': 'healthState', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - } - - def __init__(self, *, health_state=None, backup_management_type=None, item_type=None, policy_name: str=None, container_name: str=None, backup_engine_name: str=None, friendly_name: str=None, fabric_name: str=None, backup_set_name: str=None, **kwargs) -> None: - super(ProtectedItemQueryObject, self).__init__(**kwargs) - self.health_state = health_state - self.backup_management_type = backup_management_type - self.item_type = item_type - self.policy_name = policy_name - self.container_name = container_name - self.backup_engine_name = backup_engine_name - self.friendly_name = friendly_name - self.fabric_name = fabric_name - self.backup_set_name = backup_set_name - - -class ProtectedItemResource(Resource): - """Base class for backup items. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectedItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ProtectedItem - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectedItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class ProtectionContainerResource(Resource): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainer - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionContainer'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectionContainerResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class ProtectionIntentQueryObject(Model): - """Filters to list protection intent. - - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'SQLInstance', 'SQLAvailabilityGroupContainer' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.IntentItemType - :param parent_name: Parent name of the intent - :type parent_name: str - :param item_name: Item name of the intent - :type item_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'item_name': {'key': 'itemName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, item_type=None, parent_name: str=None, item_name: str=None, **kwargs) -> None: - super(ProtectionIntentQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.item_type = item_type - self.parent_name = parent_name - self.item_name = item_name - - -class ProtectionIntentResource(Resource): - """Base class for backup ProtectionIntent. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionIntentResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntent - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionIntent'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectionIntentResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class ProtectionPolicyQueryObject(Model): - """Filters the list backup policies API. - - :param backup_management_type: Backup management type for the backup - policy. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param workload_type: Workload type for the backup policy. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, fabric_name: str=None, workload_type=None, **kwargs) -> None: - super(ProtectionPolicyQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.fabric_name = fabric_name - self.workload_type = workload_type - - -class ProtectionPolicyResource(Resource): - """Base class for backup policy. Workload-specific backup policies are derived - from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionPolicyResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicy - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionPolicy'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectionPolicyResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class RecoveryPointDiskConfiguration(Model): - """Disk configuration. - - :param number_of_disks_included_in_backup: Number of disks included in - backup - :type number_of_disks_included_in_backup: int - :param number_of_disks_attached_to_vm: Number of disks attached to the VM - :type number_of_disks_attached_to_vm: int - :param included_disk_list: Information of disks included in backup - :type included_disk_list: - list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] - :param excluded_disk_list: Information of disks excluded from backup - :type excluded_disk_list: - list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] - """ - - _attribute_map = { - 'number_of_disks_included_in_backup': {'key': 'numberOfDisksIncludedInBackup', 'type': 'int'}, - 'number_of_disks_attached_to_vm': {'key': 'numberOfDisksAttachedToVm', 'type': 'int'}, - 'included_disk_list': {'key': 'includedDiskList', 'type': '[DiskInformation]'}, - 'excluded_disk_list': {'key': 'excludedDiskList', 'type': '[DiskInformation]'}, - } - - def __init__(self, *, number_of_disks_included_in_backup: int=None, number_of_disks_attached_to_vm: int=None, included_disk_list=None, excluded_disk_list=None, **kwargs) -> None: - super(RecoveryPointDiskConfiguration, self).__init__(**kwargs) - self.number_of_disks_included_in_backup = number_of_disks_included_in_backup - self.number_of_disks_attached_to_vm = number_of_disks_attached_to_vm - self.included_disk_list = included_disk_list - self.excluded_disk_list = excluded_disk_list - - -class RecoveryPointResource(Resource): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RecoveryPointResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(RecoveryPointResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class RecoveryPointTierInformation(Model): - """Recovery point tier information. - - :param type: Recovery point tier type. Possible values include: 'Invalid', - 'InstantRP', 'HardenedRP' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierType - :param status: Recovery point tier status. Possible values include: - 'Invalid', 'Valid', 'Disabled', 'Deleted' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierStatus - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'RecoveryPointTierType'}, - 'status': {'key': 'status', 'type': 'RecoveryPointTierStatus'}, - } - - def __init__(self, *, type=None, status=None, **kwargs) -> None: - super(RecoveryPointTierInformation, self).__init__(**kwargs) - self.type = type - self.status = status - - -class ResourceList(Model): - """Base for all lists of resources. - - :param next_link: The uri to fetch the next page of resources. Call - ListNext() fetches next page of resources. - :type next_link: str - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, next_link: str=None, **kwargs) -> None: - super(ResourceList, self).__init__(**kwargs) - self.next_link = next_link - - -class RestoreFileSpecs(Model): - """Restore file specs like file path, type and target folder path info. - - :param path: Source File/Folder path - :type path: str - :param file_spec_type: Indicates what the Path variable stands for - :type file_spec_type: str - :param target_folder_path: Destination folder path in target FileShare - :type target_folder_path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, - 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, - } - - def __init__(self, *, path: str=None, file_spec_type: str=None, target_folder_path: str=None, **kwargs) -> None: - super(RestoreFileSpecs, self).__init__(**kwargs) - self.path = path - self.file_spec_type = file_spec_type - self.target_folder_path = target_folder_path - - -class RestoreRequestResource(Resource): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RestoreRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RestoreRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(RestoreRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class RetentionDuration(Model): - """Retention duration. - - :param count: Count of duration types. Retention duration is obtained by - the counting the duration type Count times. - For example, when Count = 3 and DurationType = Weeks, retention duration - will be three weeks. - :type count: int - :param duration_type: Retention duration type of retention policy. - Possible values include: 'Invalid', 'Days', 'Weeks', 'Months', 'Years' - :type duration_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionDurationType - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration_type': {'key': 'durationType', 'type': 'str'}, - } - - def __init__(self, *, count: int=None, duration_type=None, **kwargs) -> None: - super(RetentionDuration, self).__init__(**kwargs) - self.count = count - self.duration_type = duration_type - - -class Settings(Model): - """Common settings field for backup management. - - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param issqlcompression: SQL compression flag - :type issqlcompression: bool - :param is_compression: Workload compression flag. This has been added so - that 'isSqlCompression' - will be deprecated once clients upgrade to consider this flag. - :type is_compression: bool - """ - - _attribute_map = { - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'issqlcompression': {'key': 'issqlcompression', 'type': 'bool'}, - 'is_compression': {'key': 'isCompression', 'type': 'bool'}, - } - - def __init__(self, *, time_zone: str=None, issqlcompression: bool=None, is_compression: bool=None, **kwargs) -> None: - super(Settings, self).__init__(**kwargs) - self.time_zone = time_zone - self.issqlcompression = issqlcompression - self.is_compression = is_compression - - -class SimpleRetentionPolicy(RetentionPolicy): - """Simple policy retention. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param retention_duration: Retention duration of the protection policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_duration=None, **kwargs) -> None: - super(SimpleRetentionPolicy, self).__init__(**kwargs) - self.retention_duration = retention_duration - self.retention_policy_type = 'SimpleRetentionPolicy' - - -class SimpleSchedulePolicy(SchedulePolicy): - """Simple policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_run_frequency: Frequency of the schedule operation of this - policy. Possible values include: 'Invalid', 'Daily', 'Weekly' - :type schedule_run_frequency: str or - ~azure.mgmt.recoveryservicesbackup.models.ScheduleRunType - :param schedule_run_days: List of days of week this schedule has to be - run. - :type schedule_run_days: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param schedule_run_times: List of times of day this schedule has to be - run. - :type schedule_run_times: list[datetime] - :param schedule_weekly_frequency: At every number weeks this schedule has - to be run. - :type schedule_weekly_frequency: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, - 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[DayOfWeek]'}, - 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, - 'schedule_weekly_frequency': {'key': 'scheduleWeeklyFrequency', 'type': 'int'}, - } - - def __init__(self, *, schedule_run_frequency=None, schedule_run_days=None, schedule_run_times=None, schedule_weekly_frequency: int=None, **kwargs) -> None: - super(SimpleSchedulePolicy, self).__init__(**kwargs) - self.schedule_run_frequency = schedule_run_frequency - self.schedule_run_days = schedule_run_days - self.schedule_run_times = schedule_run_times - self.schedule_weekly_frequency = schedule_weekly_frequency - self.schedule_policy_type = 'SimpleSchedulePolicy' - - -class SQLDataDirectory(Model): - """SQLDataDirectory info. - - :param type: Type of data directory mapping. Possible values include: - 'Invalid', 'Data', 'Log' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param path: File path - :type path: str - :param logical_name: Logical name of the file - :type logical_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - } - - def __init__(self, *, type=None, path: str=None, logical_name: str=None, **kwargs) -> None: - super(SQLDataDirectory, self).__init__(**kwargs) - self.type = type - self.path = path - self.logical_name = logical_name - - -class SQLDataDirectoryMapping(Model): - """Encapsulates information regarding data directory. - - :param mapping_type: Type of data directory mapping. Possible values - include: 'Invalid', 'Data', 'Log' - :type mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param source_logical_name: Restore source logical name path - :type source_logical_name: str - :param source_path: Restore source path - :type source_path: str - :param target_path: Target path - :type target_path: str - """ - - _attribute_map = { - 'mapping_type': {'key': 'mappingType', 'type': 'str'}, - 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, - 'source_path': {'key': 'sourcePath', 'type': 'str'}, - 'target_path': {'key': 'targetPath', 'type': 'str'}, - } - - def __init__(self, *, mapping_type=None, source_logical_name: str=None, source_path: str=None, target_path: str=None, **kwargs) -> None: - super(SQLDataDirectoryMapping, self).__init__(**kwargs) - self.mapping_type = mapping_type - self.source_logical_name = source_logical_name - self.source_path = source_path - self.target_path = target_path - - -class SubProtectionPolicy(Model): - """Sub-protection policy which includes schedule and retention. - - :param policy_type: Type of backup policy type. Possible values include: - 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' - :type policy_type: str or - ~azure.mgmt.recoveryservicesbackup.models.PolicyType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _attribute_map = { - 'policy_type': {'key': 'policyType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, *, policy_type=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: - super(SubProtectionPolicy, self).__init__(**kwargs) - self.policy_type = policy_type - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy - - -class TargetAFSRestoreInfo(Model): - """Target Azure File Share Info. - - :param name: File share name - :type name: str - :param target_resource_id: Target file share resource ARM ID - :type target_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, target_resource_id: str=None, **kwargs) -> None: - super(TargetAFSRestoreInfo, self).__init__(**kwargs) - self.name = name - self.target_resource_id = target_resource_id - - -class TargetRestoreInfo(Model): - """Details about target workload during restore operation. - - :param overwrite_option: Can Overwrite if Target DataBase already exists. - Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' - :type overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.models.OverwriteOptions - :param container_id: Resource Id name of the container in which Target - DataBase resides - :type container_id: str - :param database_name: Database name InstanceName/DataBaseName for SQL or - System/DbName for SAP Hana - :type database_name: str - :param target_directory_for_file_restore: Target directory location for - restore as files. - :type target_directory_for_file_restore: str - """ - - _attribute_map = { - 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'target_directory_for_file_restore': {'key': 'targetDirectoryForFileRestore', 'type': 'str'}, - } - - def __init__(self, *, overwrite_option=None, container_id: str=None, database_name: str=None, target_directory_for_file_restore: str=None, **kwargs) -> None: - super(TargetRestoreInfo, self).__init__(**kwargs) - self.overwrite_option = overwrite_option - self.container_id = container_id - self.database_name = database_name - self.target_directory_for_file_restore = target_directory_for_file_restore - - -class TokenInformation(Model): - """The token information details. - - :param token: Token value. - :type token: str - :param expiry_time_in_utc_ticks: Expiry time of token. - :type expiry_time_in_utc_ticks: long - :param security_pin: Security PIN - :type security_pin: str - """ - - _attribute_map = { - 'token': {'key': 'token', 'type': 'str'}, - 'expiry_time_in_utc_ticks': {'key': 'expiryTimeInUtcTicks', 'type': 'long'}, - 'security_pin': {'key': 'securityPIN', 'type': 'str'}, - } - - def __init__(self, *, token: str=None, expiry_time_in_utc_ticks: int=None, security_pin: str=None, **kwargs) -> None: - super(TokenInformation, self).__init__(**kwargs) - self.token = token - self.expiry_time_in_utc_ticks = expiry_time_in_utc_ticks - self.security_pin = security_pin - - -class ValidateOperationRequest(Model): - """Base class for validate operation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateRestoreOperationRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'ValidateRestoreOperationRequest': 'ValidateRestoreOperationRequest'} - } - - def __init__(self, **kwargs) -> None: - super(ValidateOperationRequest, self).__init__(**kwargs) - self.object_type = None - - -class ValidateRestoreOperationRequest(ValidateOperationRequest): - """AzureRestoreValidation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateIaasVMRestoreOperationRequest - - 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'}, - } - - _subtype_map = { - 'object_type': {'ValidateIaasVMRestoreOperationRequest': 'ValidateIaasVMRestoreOperationRequest'} - } - - def __init__(self, *, restore_request=None, **kwargs) -> None: - super(ValidateRestoreOperationRequest, self).__init__(**kwargs) - self.restore_request = restore_request - self.object_type = '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, *, restore_request=None, **kwargs) -> None: - super(ValidateIaasVMRestoreOperationRequest, self).__init__(restore_request=restore_request, **kwargs) - self.object_type = 'ValidateIaasVMRestoreOperationRequest' - - -class ValidateOperationResponse(Model): - """Base class for validate operation response. - - :param validation_results: Gets the validation result - :type validation_results: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorDetail] - """ - - _attribute_map = { - 'validation_results': {'key': 'validationResults', 'type': '[ErrorDetail]'}, - } - - def __init__(self, *, validation_results=None, **kwargs) -> None: - super(ValidateOperationResponse, self).__init__(**kwargs) - self.validation_results = validation_results - - -class ValidateOperationsResponse(Model): - """ValidateOperationsResponse. - - :param validate_operation_response: - :type validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse - """ - - _attribute_map = { - 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, - } - - def __init__(self, *, validate_operation_response=None, **kwargs) -> None: - super(ValidateOperationsResponse, self).__init__(**kwargs) - self.validate_operation_response = validate_operation_response - - -class WeeklyRetentionFormat(Model): - """Weekly retention format. - - :param days_of_the_week: List of days of the week. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param weeks_of_the_month: List of weeks of month. - :type weeks_of_the_month: list[str or - ~azure.mgmt.recoveryservicesbackup.models.WeekOfMonth] - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'weeks_of_the_month': {'key': 'weeksOfTheMonth', 'type': '[WeekOfMonth]'}, - } - - def __init__(self, *, days_of_the_week=None, weeks_of_the_month=None, **kwargs) -> None: - super(WeeklyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_week = days_of_the_week - self.weeks_of_the_month = weeks_of_the_month - - -class WeeklyRetentionSchedule(Model): - """Weekly retention schedule. - - :param days_of_the_week: List of days of week for weekly retention policy. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, days_of_the_week=None, retention_times=None, retention_duration=None, **kwargs) -> None: - super(WeeklyRetentionSchedule, self).__init__(**kwargs) - self.days_of_the_week = days_of_the_week - self.retention_times = retention_times - self.retention_duration = retention_duration - - -class WorkloadInquiryDetails(Model): - """Details of an inquired protectable item. - - :param type: Type of the Workload such as SQL, Oracle etc. - :type type: str - :param item_count: Contains the protectable item Count inside this - Container. - :type item_count: long - :param inquiry_validation: Inquiry validation such as permissions and - other backup validations. - :type inquiry_validation: - ~azure.mgmt.recoveryservicesbackup.models.InquiryValidation - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'item_count': {'key': 'itemCount', 'type': 'long'}, - 'inquiry_validation': {'key': 'inquiryValidation', 'type': 'InquiryValidation'}, - } - - def __init__(self, *, type: str=None, item_count: int=None, inquiry_validation=None, **kwargs) -> None: - super(WorkloadInquiryDetails, self).__init__(**kwargs) - self.type = type - self.item_count = item_count - self.inquiry_validation = inquiry_validation - - -class WorkloadItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.WorkloadItem - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadItem'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(WorkloadItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class WorkloadProtectableItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - 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 location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadProtectableItemResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItem - """ - - _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'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadProtectableItem'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(WorkloadProtectableItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class YearlyRetentionSchedule(Model): - """Yearly retention schedule. - - :param retention_schedule_format_type: Retention schedule format for - yearly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param months_of_year: List of months of year of yearly retention policy. - :type months_of_year: list[str or - ~azure.mgmt.recoveryservicesbackup.models.MonthOfYear] - :param retention_schedule_daily: Daily retention format for yearly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for yearly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'months_of_year': {'key': 'monthsOfYear', 'type': '[MonthOfYear]'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_schedule_format_type=None, months_of_year=None, retention_schedule_daily=None, retention_schedule_weekly=None, retention_times=None, retention_duration=None, **kwargs) -> None: - super(YearlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = retention_schedule_format_type - self.months_of_year = months_of_year - self.retention_schedule_daily = retention_schedule_daily - self.retention_schedule_weekly = retention_schedule_weekly - self.retention_times = retention_times - self.retention_duration = retention_duration diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py deleted file mode 100644 index 7d41f9f8ebb5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py +++ /dev/null @@ -1,170 +0,0 @@ -# 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.paging import Paged - - -class RecoveryPointResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`RecoveryPointResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RecoveryPointResource]'} - } - - def __init__(self, *args, **kwargs): - - super(RecoveryPointResourcePaged, self).__init__(*args, **kwargs) -class ProtectionPolicyResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectionPolicyResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectionPolicyResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectionPolicyResourcePaged, self).__init__(*args, **kwargs) -class JobResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`JobResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[JobResource]'} - } - - def __init__(self, *args, **kwargs): - - super(JobResourcePaged, self).__init__(*args, **kwargs) -class ProtectedItemResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectedItemResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectedItemResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectedItemResourcePaged, self).__init__(*args, **kwargs) -class ProtectionIntentResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectionIntentResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectionIntentResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectionIntentResourcePaged, self).__init__(*args, **kwargs) -class BackupManagementUsagePaged(Paged): - """ - A paging container for iterating over a list of :class:`BackupManagementUsage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[BackupManagementUsage]'} - } - - def __init__(self, *args, **kwargs): - - super(BackupManagementUsagePaged, self).__init__(*args, **kwargs) -class BackupEngineBaseResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`BackupEngineBaseResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[BackupEngineBaseResource]'} - } - - def __init__(self, *args, **kwargs): - - super(BackupEngineBaseResourcePaged, self).__init__(*args, **kwargs) -class ProtectableContainerResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectableContainerResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectableContainerResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectableContainerResourcePaged, self).__init__(*args, **kwargs) -class WorkloadItemResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`WorkloadItemResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[WorkloadItemResource]'} - } - - def __init__(self, *args, **kwargs): - - super(WorkloadItemResourcePaged, self).__init__(*args, **kwargs) -class WorkloadProtectableItemResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`WorkloadProtectableItemResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[WorkloadProtectableItemResource]'} - } - - def __init__(self, *args, **kwargs): - - super(WorkloadProtectableItemResourcePaged, self).__init__(*args, **kwargs) -class ProtectionContainerResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectionContainerResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectionContainerResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectionContainerResourcePaged, self).__init__(*args, **kwargs) -class ClientDiscoveryValueForSingleApiPaged(Paged): - """ - A paging container for iterating over a list of :class:`ClientDiscoveryValueForSingleApi ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ClientDiscoveryValueForSingleApi]'} - } - - def __init__(self, *args, **kwargs): - - super(ClientDiscoveryValueForSingleApiPaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py deleted file mode 100644 index abb88ec0d291..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py +++ /dev/null @@ -1,561 +0,0 @@ -# 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 enum import Enum - - -class OperationStatusValues(str, Enum): - - invalid = "Invalid" - in_progress = "InProgress" - succeeded = "Succeeded" - failed = "Failed" - canceled = "Canceled" - - -class ProvisioningState(str, Enum): - - succeeded = "Succeeded" - deleting = "Deleting" - failed = "Failed" - pending = "Pending" - - -class PrivateEndpointConnectionStatus(str, Enum): - - pending = "Pending" - approved = "Approved" - rejected = "Rejected" - disconnected = "Disconnected" - - -class ProtectionState(str, Enum): - - invalid = "Invalid" - ir_pending = "IRPending" - protected = "Protected" - protection_error = "ProtectionError" - protection_stopped = "ProtectionStopped" - protection_paused = "ProtectionPaused" - - -class HealthStatus(str, Enum): - - passed = "Passed" - action_required = "ActionRequired" - action_suggested = "ActionSuggested" - invalid = "Invalid" - - -class RecoveryType(str, Enum): - - invalid = "Invalid" - original_location = "OriginalLocation" - alternate_location = "AlternateLocation" - restore_disks = "RestoreDisks" - offline = "Offline" - - -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 WorkloadType(str, Enum): - - invalid = "Invalid" - vm = "VM" - file_folder = "FileFolder" - azure_sql_db = "AzureSqlDb" - sqldb = "SQLDB" - exchange = "Exchange" - sharepoint = "Sharepoint" - vmware_vm = "VMwareVM" - system_state = "SystemState" - client = "Client" - generic_data_source = "GenericDataSource" - sql_data_base = "SQLDataBase" - azure_file_share = "AzureFileShare" - sap_hana_database = "SAPHanaDatabase" - sap_ase_database = "SAPAseDatabase" - - -class PolicyType(str, Enum): - - invalid = "Invalid" - full = "Full" - differential = "Differential" - log = "Log" - copy_only_full = "CopyOnlyFull" - - -class JobSupportedAction(str, Enum): - - invalid = "Invalid" - cancellable = "Cancellable" - retriable = "Retriable" - - -class ProtectedItemState(str, Enum): - - invalid = "Invalid" - ir_pending = "IRPending" - protected = "Protected" - protection_error = "ProtectionError" - protection_stopped = "ProtectionStopped" - protection_paused = "ProtectionPaused" - - -class LastBackupStatus(str, Enum): - - invalid = "Invalid" - healthy = "Healthy" - unhealthy = "Unhealthy" - ir_pending = "IRPending" - - -class ProtectedItemHealthStatus(str, Enum): - - invalid = "Invalid" - healthy = "Healthy" - unhealthy = "Unhealthy" - not_reachable = "NotReachable" - ir_pending = "IRPending" - - -class RestorePointType(str, Enum): - - invalid = "Invalid" - full = "Full" - log = "Log" - differential = "Differential" - - -class OverwriteOptions(str, Enum): - - invalid = "Invalid" - fail_on_conflict = "FailOnConflict" - overwrite = "Overwrite" - - -class RecoveryMode(str, Enum): - - invalid = "Invalid" - file_recovery = "FileRecovery" - workload_recovery = "WorkloadRecovery" - - -class SQLDataDirectoryType(str, Enum): - - invalid = "Invalid" - data = "Data" - log = "Log" - - -class StorageType(str, Enum): - - invalid = "Invalid" - geo_redundant = "GeoRedundant" - locally_redundant = "LocallyRedundant" - - -class StorageTypeState(str, Enum): - - invalid = "Invalid" - locked = "Locked" - unlocked = "Unlocked" - - -class EnhancedSecurityState(str, Enum): - - invalid = "Invalid" - enabled = "Enabled" - disabled = "Disabled" - - -class SoftDeleteFeatureState(str, Enum): - - invalid = "Invalid" - enabled = "Enabled" - disabled = "Disabled" - - -class RestorePointQueryType(str, Enum): - - invalid = "Invalid" - full = "Full" - log = "Log" - differential = "Differential" - full_and_differential = "FullAndDifferential" - all = "All" - - -class RetentionDurationType(str, Enum): - - invalid = "Invalid" - days = "Days" - weeks = "Weeks" - months = "Months" - years = "Years" - - -class RecoveryPointTierType(str, Enum): - - invalid = "Invalid" - instant_rp = "InstantRP" - hardened_rp = "HardenedRP" - - -class RecoveryPointTierStatus(str, Enum): - - invalid = "Invalid" - valid = "Valid" - disabled = "Disabled" - deleted = "Deleted" - - -class BackupManagementType(str, Enum): - - invalid = "Invalid" - azure_iaas_vm = "AzureIaasVM" - mab = "MAB" - dpm = "DPM" - azure_backup_server = "AzureBackupServer" - azure_sql = "AzureSql" - azure_storage = "AzureStorage" - azure_workload = "AzureWorkload" - default_backup = "DefaultBackup" - - -class JobStatus(str, Enum): - - invalid = "Invalid" - in_progress = "InProgress" - completed = "Completed" - failed = "Failed" - completed_with_warnings = "CompletedWithWarnings" - cancelled = "Cancelled" - cancelling = "Cancelling" - - -class JobOperationType(str, Enum): - - invalid = "Invalid" - register = "Register" - un_register = "UnRegister" - configure_backup = "ConfigureBackup" - backup = "Backup" - restore = "Restore" - disable_backup = "DisableBackup" - delete_backup_data = "DeleteBackupData" - cross_region_restore = "CrossRegionRestore" - undelete = "Undelete" - - -class DayOfWeek(str, Enum): - - sunday = "Sunday" - monday = "Monday" - tuesday = "Tuesday" - wednesday = "Wednesday" - thursday = "Thursday" - friday = "Friday" - saturday = "Saturday" - - -class RetentionScheduleFormat(str, Enum): - - invalid = "Invalid" - daily = "Daily" - weekly = "Weekly" - - -class WeekOfMonth(str, Enum): - - first = "First" - second = "Second" - third = "Third" - fourth = "Fourth" - last = "Last" - invalid = "Invalid" - - -class MonthOfYear(str, Enum): - - invalid = "Invalid" - january = "January" - february = "February" - march = "March" - april = "April" - may = "May" - june = "June" - july = "July" - august = "August" - september = "September" - october = "October" - november = "November" - december = "December" - - -class MabServerType(str, Enum): - - invalid = "Invalid" - unknown = "Unknown" - iaas_vm_container = "IaasVMContainer" - iaas_vm_service_container = "IaasVMServiceContainer" - dpm_container = "DPMContainer" - azure_backup_server_container = "AzureBackupServerContainer" - mab_container = "MABContainer" - cluster = "Cluster" - azure_sql_container = "AzureSqlContainer" - windows = "Windows" - vcenter = "VCenter" - vm_app_container = "VMAppContainer" - sqlag_work_load_container = "SQLAGWorkLoadContainer" - storage_container = "StorageContainer" - generic_container = "GenericContainer" - - -class HttpStatusCode(str, Enum): - - continue_enum = "Continue" - switching_protocols = "SwitchingProtocols" - ok = "OK" - created = "Created" - accepted = "Accepted" - non_authoritative_information = "NonAuthoritativeInformation" - no_content = "NoContent" - reset_content = "ResetContent" - partial_content = "PartialContent" - multiple_choices = "MultipleChoices" - ambiguous = "Ambiguous" - moved_permanently = "MovedPermanently" - moved = "Moved" - found = "Found" - redirect = "Redirect" - see_other = "SeeOther" - redirect_method = "RedirectMethod" - not_modified = "NotModified" - use_proxy = "UseProxy" - unused = "Unused" - temporary_redirect = "TemporaryRedirect" - redirect_keep_verb = "RedirectKeepVerb" - bad_request = "BadRequest" - unauthorized = "Unauthorized" - payment_required = "PaymentRequired" - forbidden = "Forbidden" - not_found = "NotFound" - method_not_allowed = "MethodNotAllowed" - not_acceptable = "NotAcceptable" - proxy_authentication_required = "ProxyAuthenticationRequired" - request_timeout = "RequestTimeout" - conflict = "Conflict" - gone = "Gone" - length_required = "LengthRequired" - precondition_failed = "PreconditionFailed" - request_entity_too_large = "RequestEntityTooLarge" - request_uri_too_long = "RequestUriTooLong" - unsupported_media_type = "UnsupportedMediaType" - requested_range_not_satisfiable = "RequestedRangeNotSatisfiable" - expectation_failed = "ExpectationFailed" - upgrade_required = "UpgradeRequired" - internal_server_error = "InternalServerError" - not_implemented = "NotImplemented" - bad_gateway = "BadGateway" - service_unavailable = "ServiceUnavailable" - gateway_timeout = "GatewayTimeout" - http_version_not_supported = "HttpVersionNotSupported" - - -class DataSourceType(str, Enum): - - invalid = "Invalid" - vm = "VM" - file_folder = "FileFolder" - azure_sql_db = "AzureSqlDb" - sqldb = "SQLDB" - exchange = "Exchange" - sharepoint = "Sharepoint" - vmware_vm = "VMwareVM" - system_state = "SystemState" - client = "Client" - generic_data_source = "GenericDataSource" - sql_data_base = "SQLDataBase" - azure_file_share = "AzureFileShare" - sap_hana_database = "SAPHanaDatabase" - sap_ase_database = "SAPAseDatabase" - - -class CreateMode(str, Enum): - - invalid = "Invalid" - default = "Default" - recover = "Recover" - - -class HealthState(str, Enum): - - passed = "Passed" - action_required = "ActionRequired" - action_suggested = "ActionSuggested" - invalid = "Invalid" - - -class ScheduleRunType(str, Enum): - - invalid = "Invalid" - daily = "Daily" - weekly = "Weekly" - - -class SupportStatus(str, Enum): - - invalid = "Invalid" - supported = "Supported" - default_off = "DefaultOFF" - default_on = "DefaultON" - not_supported = "NotSupported" - - -class WorkloadItemType(str, Enum): - - invalid = "Invalid" - sql_instance = "SQLInstance" - sql_data_base = "SQLDataBase" - sap_hana_system = "SAPHanaSystem" - sap_hana_database = "SAPHanaDatabase" - sap_ase_system = "SAPAseSystem" - sap_ase_database = "SAPAseDatabase" - - -class UsagesUnit(str, Enum): - - count = "Count" - bytes = "Bytes" - seconds = "Seconds" - percent = "Percent" - count_per_second = "CountPerSecond" - bytes_per_second = "BytesPerSecond" - - -class ProtectionStatus(str, Enum): - - invalid = "Invalid" - not_protected = "NotProtected" - protecting = "Protecting" - protected = "Protected" - protection_failed = "ProtectionFailed" - - -class FabricName(str, Enum): - - invalid = "Invalid" - azure = "Azure" - - -class Type(str, Enum): - - invalid = "Invalid" - backup_protected_item_count_summary = "BackupProtectedItemCountSummary" - backup_protection_container_count_summary = "BackupProtectionContainerCountSummary" - - -class ValidationStatus(str, Enum): - - invalid = "Invalid" - succeeded = "Succeeded" - failed = "Failed" - - -class IntentItemType(str, Enum): - - invalid = "Invalid" - sql_instance = "SQLInstance" - sql_availability_group_container = "SQLAvailabilityGroupContainer" - - -class AzureFileShareType(str, Enum): - - invalid = "Invalid" - xsmb = "XSMB" - xsync = "XSync" - - -class InquiryStatus(str, Enum): - - invalid = "Invalid" - success = "Success" - failed = "Failed" - - -class BackupType(str, Enum): - - invalid = "Invalid" - full = "Full" - differential = "Differential" - log = "Log" - copy_only_full = "CopyOnlyFull" - - -class OperationType(str, Enum): - - invalid = "Invalid" - register = "Register" - reregister = "Reregister" - - -class ContainerType(str, Enum): - - invalid = "Invalid" - unknown = "Unknown" - iaas_vm_container = "IaasVMContainer" - iaas_vm_service_container = "IaasVMServiceContainer" - dpm_container = "DPMContainer" - azure_backup_server_container = "AzureBackupServerContainer" - mab_container = "MABContainer" - cluster = "Cluster" - azure_sql_container = "AzureSqlContainer" - windows = "Windows" - vcenter = "VCenter" - vm_app_container = "VMAppContainer" - sqlag_work_load_container = "SQLAGWorkLoadContainer" - storage_container = "StorageContainer" - generic_container = "GenericContainer" - - -class BackupItemType(str, Enum): - - invalid = "Invalid" - vm = "VM" - file_folder = "FileFolder" - azure_sql_db = "AzureSqlDb" - sqldb = "SQLDB" - exchange = "Exchange" - sharepoint = "Sharepoint" - vmware_vm = "VMwareVM" - system_state = "SystemState" - client = "Client" - generic_data_source = "GenericDataSource" - sql_data_base = "SQLDataBase" - azure_file_share = "AzureFileShare" - sap_hana_database = "SAPHanaDatabase" - sap_ase_database = "SAPAseDatabase" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py deleted file mode 100644 index e4e0c89cde04..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py +++ /dev/null @@ -1,94 +0,0 @@ -# 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 ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations -from ._backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations -from ._protected_items_operations import ProtectedItemsOperations -from ._protected_item_operation_results_operations import ProtectedItemOperationResultsOperations -from ._recovery_points_operations import RecoveryPointsOperations -from ._restores_operations import RestoresOperations -from ._backup_policies_operations import BackupPoliciesOperations -from ._protection_policies_operations import ProtectionPoliciesOperations -from ._protection_policy_operation_results_operations import ProtectionPolicyOperationResultsOperations -from ._backup_jobs_operations import BackupJobsOperations -from ._job_details_operations import JobDetailsOperations -from ._job_cancellations_operations import JobCancellationsOperations -from ._job_operation_results_operations import JobOperationResultsOperations -from ._export_jobs_operation_results_operations import ExportJobsOperationResultsOperations -from ._jobs_operations import JobsOperations -from ._backup_protected_items_operations import BackupProtectedItemsOperations -from ._operation_operations import OperationOperations -from ._protection_intent_operations import ProtectionIntentOperations -from ._backup_status_operations import BackupStatusOperations -from ._feature_support_operations import FeatureSupportOperations -from ._backup_protection_intent_operations import BackupProtectionIntentOperations -from ._backup_usage_summaries_operations import BackupUsageSummariesOperations -from ._backup_engines_operations import BackupEnginesOperations -from ._protection_container_refresh_operation_results_operations import ProtectionContainerRefreshOperationResultsOperations -from ._protectable_containers_operations import ProtectableContainersOperations -from ._protection_containers_operations import ProtectionContainersOperations -from ._backup_workload_items_operations import BackupWorkloadItemsOperations -from ._protection_container_operation_results_operations import ProtectionContainerOperationResultsOperations -from ._backups_operations import BackupsOperations -from ._protected_item_operation_statuses_operations import ProtectedItemOperationStatusesOperations -from ._item_level_recovery_connections_operations import ItemLevelRecoveryConnectionsOperations -from ._backup_operation_results_operations import BackupOperationResultsOperations -from ._backup_operation_statuses_operations import BackupOperationStatusesOperations -from ._protection_policy_operation_statuses_operations import ProtectionPolicyOperationStatusesOperations -from ._backup_protectable_items_operations import BackupProtectableItemsOperations -from ._backup_protection_containers_operations import BackupProtectionContainersOperations -from ._security_pi_ns_operations import SecurityPINsOperations -from ._backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations -from ._operations import Operations -from ._recovery_services_backup_client_operations import RecoveryServicesBackupClientOperationsMixin - -__all__ = [ - 'PrivateEndpointConnectionOperations', - 'BackupResourceVaultConfigsOperations', - 'ProtectedItemsOperations', - 'ProtectedItemOperationResultsOperations', - 'RecoveryPointsOperations', - 'RestoresOperations', - 'BackupPoliciesOperations', - 'ProtectionPoliciesOperations', - 'ProtectionPolicyOperationResultsOperations', - 'BackupJobsOperations', - 'JobDetailsOperations', - 'JobCancellationsOperations', - 'JobOperationResultsOperations', - 'ExportJobsOperationResultsOperations', - 'JobsOperations', - 'BackupProtectedItemsOperations', - 'OperationOperations', - 'ProtectionIntentOperations', - 'BackupStatusOperations', - 'FeatureSupportOperations', - 'BackupProtectionIntentOperations', - 'BackupUsageSummariesOperations', - 'BackupEnginesOperations', - 'ProtectionContainerRefreshOperationResultsOperations', - 'ProtectableContainersOperations', - 'ProtectionContainersOperations', - 'BackupWorkloadItemsOperations', - 'ProtectionContainerOperationResultsOperations', - 'BackupsOperations', - 'ProtectedItemOperationStatusesOperations', - 'ItemLevelRecoveryConnectionsOperations', - 'BackupOperationResultsOperations', - 'BackupOperationStatusesOperations', - 'ProtectionPolicyOperationStatusesOperations', - 'BackupProtectableItemsOperations', - 'BackupProtectionContainersOperations', - 'SecurityPINsOperations', - 'BackupResourceStorageConfigsOperations', - 'Operations', - 'RecoveryServicesBackupClientOperationsMixin', -] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py deleted file mode 100644 index bfab9f133142..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py +++ /dev/null @@ -1,196 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupEnginesOperations(object): - """BackupEnginesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Backup management servers registered to Recovery Services Vault. - Returns a pageable list of servers. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of BackupEngineBaseResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBaseResourcePaged[~azure.mgmt.recoveryservicesbackup.models.BackupEngineBaseResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.BackupEngineBaseResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines'} - - def get( - self, vault_name, resource_group_name, backup_engine_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Returns backup management server registered to Recovery Services Vault. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param backup_engine_name: Name of the backup management server. - :type backup_engine_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: BackupEngineBaseResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBaseResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'backupEngineName': self._serialize.url("backup_engine_name", backup_engine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackupEngineBaseResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py deleted file mode 100644 index 72432bb5840b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupJobsOperations(object): - """BackupJobsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Provides a pageable list of jobs. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of JobResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.JobResourcePaged[~azure.mgmt.recoveryservicesbackup.models.JobResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.JobResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py deleted file mode 100644 index 2c88ed5b3395..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py +++ /dev/null @@ -1,103 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupOperationResultsOperations(object): - """BackupOperationResultsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Provides the status of the delete operations such as deleting backed up - item. Once the operation has started, the - status code in the response would be Accepted. It will continue to be - in this state till it reaches completion. On - successful completion, the status code will be OK. This method expects - OperationID as an argument. OperationID is - part of the Location header of the operation response. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param operation_id: OperationID which represents the operation. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py deleted file mode 100644 index abd5951b2a41..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupOperationStatusesOperations(object): - """BackupOperationStatusesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Fetches the status of an operation such as triggering a backup, - restore. The status can be in progress, completed - or failed. You can refer to the OperationStatus enum for all the - possible states of an operation. Some operations - create jobs. This method returns the list of jobs when the operation is - complete. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param operation_id: OperationID which represents the operation. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationStatus or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.OperationStatus or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('OperationStatus', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py deleted file mode 100644 index 07fe639855e3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py +++ /dev/null @@ -1,119 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupPoliciesOperations(object): - """BackupPoliciesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Lists of backup policies associated with Recovery Services Vault. API - provides pagination parameters to fetch - scoped results. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ProtectionPolicyResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProtectionPolicyResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py deleted file mode 100644 index 86a05315a8d7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py +++ /dev/null @@ -1,123 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupProtectableItemsOperations(object): - """BackupProtectableItemsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Provides a pageable list of protectable objects within your - subscription according to the query filter and the - pagination parameters. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of WorkloadProtectableItemResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItemResourcePaged[~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItemResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.WorkloadProtectableItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py deleted file mode 100644 index e688ebec81f7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py +++ /dev/null @@ -1,122 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupProtectedItemsOperations(object): - """BackupProtectedItemsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Provides a pageable list of all items that are backed up within a - vault. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ProtectedItemResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProtectedItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py deleted file mode 100644 index 6609a5ae2b17..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py +++ /dev/null @@ -1,117 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupProtectionContainersOperations(object): - """BackupProtectionContainersOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Lists the containers registered to Recovery Services Vault. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ProtectionContainerResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProtectionContainerResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py deleted file mode 100644 index 267a19541377..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py +++ /dev/null @@ -1,122 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupProtectionIntentOperations(object): - """BackupProtectionIntentOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2017-07-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-07-01" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Provides a pageable list of all intents that are present within a - vault. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ProtectionIntentResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntentResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectionIntentResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProtectionIntentResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py deleted file mode 100644 index 41280942e871..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py +++ /dev/null @@ -1,234 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupResourceStorageConfigsOperations(object): - """BackupResourceStorageConfigsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Fetches resource storage config. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: BackupResourceConfigResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackupResourceConfigResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig'} - - def update( - self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): - """Updates vault storage model type. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param parameters: Vault storage config request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: BackupResourceConfigResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'BackupResourceConfigResource') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackupResourceConfigResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig'} - - def patch( - self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): - """Updates vault storage model type. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param parameters: Vault storage config request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.patch.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'BackupResourceConfigResource') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - patch.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py deleted file mode 100644 index eb1297ef9311..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py +++ /dev/null @@ -1,245 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupResourceVaultConfigsOperations(object): - """BackupResourceVaultConfigsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def get( - self, vault_name, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Fetches resource vault config. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: BackupResourceVaultConfigResource or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfigResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackupResourceVaultConfigResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig'} - - def update( - self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): - """Updates vault security config. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param parameters: resource config request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfigResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: BackupResourceVaultConfigResource or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfigResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'BackupResourceVaultConfigResource') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackupResourceVaultConfigResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig'} - - def put( - self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): - """Updates vault security config. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param parameters: resource config request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfigResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: BackupResourceVaultConfigResource or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfigResource - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.put.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'BackupResourceVaultConfigResource') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackupResourceVaultConfigResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - put.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py deleted file mode 100644 index 35a4d0f84cf1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py +++ /dev/null @@ -1,105 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupStatusOperations(object): - """BackupStatusOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2017-07-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-07-01" - - self.config = config - - def get( - self, azure_region, parameters, custom_headers=None, raw=False, **operation_config): - """Get the container backup status. - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param parameters: Container Backup Status Request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.BackupStatusRequest - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: BackupStatusResponse or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.BackupStatusResponse - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'BackupStatusRequest') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackupStatusResponse', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupStatus'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py deleted file mode 100644 index 48a868512ba5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupUsageSummariesOperations(object): - """BackupUsageSummariesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2017-07-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-07-01" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Fetches the backup management usage summaries of the vault. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of BackupManagementUsage - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementUsagePaged[~azure.mgmt.recoveryservicesbackup.models.BackupManagementUsage] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.BackupManagementUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py deleted file mode 100644 index 0c9ab8c32212..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py +++ /dev/null @@ -1,129 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupWorkloadItemsOperations(object): - """BackupWorkloadItemsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def list( - self, vault_name, resource_group_name, fabric_name, container_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Provides a pageable list of workload item of a specific container - according to the query filter and the pagination - parameters. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the container. - :type fabric_name: str - :param container_name: Name of the container. - :type container_name: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of WorkloadItemResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemResourcePaged[~azure.mgmt.recoveryservicesbackup.models.WorkloadItemResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.WorkloadItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py deleted file mode 100644 index 203c93c98c81..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py +++ /dev/null @@ -1,113 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class BackupsOperations(object): - """BackupsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def trigger( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers=None, raw=False, **operation_config): - """Triggers backup for specified backed up item. This is an asynchronous - operation. To know the status of the - operation, call GetProtectedItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backup item. - :type fabric_name: str - :param container_name: Container name associated with the backup item. - :type container_name: str - :param protected_item_name: Backup item for which backup needs to be - triggered. - :type protected_item_name: str - :param parameters: resource backup request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.BackupRequestResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.trigger.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'BackupRequestResource') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - trigger.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py deleted file mode 100644 index 5f2bac280755..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py +++ /dev/null @@ -1,112 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ExportJobsOperationResultsOperations(object): - """ExportJobsOperationResultsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def get( - self, vault_name, resource_group_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Gets the operation result of operation triggered by Export Jobs API. If - the operation is successful, then it also - contains URL of a Blob and a SAS key to access the same. The blob - contains exported jobs in JSON serialized format. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param operation_id: OperationID which represents the export job. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationResultInfoBaseResource or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.OperationResultInfoBaseResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('OperationResultInfoBaseResource', response) - if response.status_code == 202: - deserialized = self._deserialize('OperationResultInfoBaseResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py deleted file mode 100644 index 03ff7cebd8bd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class FeatureSupportOperations(object): - """FeatureSupportOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2017-07-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-07-01" - - self.config = config - - def validate( - self, azure_region, parameters, custom_headers=None, raw=False, **operation_config): - """It will validate if given feature with resource properties is supported - in service. - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param parameters: Feature support request object - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.FeatureSupportRequest - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: AzureVMResourceFeatureSupportResponse or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.AzureVMResourceFeatureSupportResponse - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.validate.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'FeatureSupportRequest') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('AzureVMResourceFeatureSupportResponse', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - validate.metadata = {'url': '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupValidateFeatures'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py deleted file mode 100644 index f646e52fd4ce..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py +++ /dev/null @@ -1,194 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ItemLevelRecoveryConnectionsOperations(object): - """ItemLevelRecoveryConnectionsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def provision( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers=None, raw=False, **operation_config): - """Provisions a script which invokes an iSCSI connection to the backup - data. Executing this script opens a file - explorer displaying all the recoverable files and folders. This is an - asynchronous operation. To know the status of - provisioning, call GetProtectedItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backed up items. - :type fabric_name: str - :param container_name: Container name associated with the backed up - items. - :type container_name: str - :param protected_item_name: Backed up item name whose files/folders - are to be restored. - :type protected_item_name: str - :param recovery_point_id: Recovery point ID which represents backed up - data. iSCSI connection will be provisioned - for this backed up data. - :type recovery_point_id: str - :param parameters: resource ILR request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.ILRRequestResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.provision.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str'), - 'recoveryPointId': self._serialize.url("recovery_point_id", recovery_point_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ILRRequestResource') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - provision.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/provisionInstantItemRecovery'} - - def revoke( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers=None, raw=False, **operation_config): - """Revokes an iSCSI connection which can be used to download a script. - Executing this script opens a file explorer - displaying all recoverable files and folders. This is an asynchronous - operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backed up items. - :type fabric_name: str - :param container_name: Container name associated with the backed up - items. - :type container_name: str - :param protected_item_name: Backed up item name whose files/folders - are to be restored. - :type protected_item_name: str - :param recovery_point_id: Recovery point ID which represents backed up - data. iSCSI connection will be revoked for - this backed up data. - :type recovery_point_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.revoke.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str'), - 'recoveryPointId': self._serialize.url("recovery_point_id", recovery_point_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - revoke.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/revokeInstantItemRecovery'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py deleted file mode 100644 index 16392336a585..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py +++ /dev/null @@ -1,99 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class JobCancellationsOperations(object): - """JobCancellationsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def trigger( - self, vault_name, resource_group_name, job_name, custom_headers=None, raw=False, **operation_config): - """Cancels a job. This is an asynchronous operation. To know the status of - the cancellation, call - GetCancelOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param job_name: Name of the job to cancel. - :type job_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.trigger.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - trigger.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py deleted file mode 100644 index bdce67d6f3ae..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py +++ /dev/null @@ -1,105 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class JobDetailsOperations(object): - """JobDetailsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def get( - self, vault_name, resource_group_name, job_name, custom_headers=None, raw=False, **operation_config): - """Gets extended information associated with the job. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param job_name: Name of the job whose details are to be fetched. - :type job_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: JobResource or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.JobResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('JobResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py deleted file mode 100644 index 0c93a399a0ad..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class JobOperationResultsOperations(object): - """JobOperationResultsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def get( - self, vault_name, resource_group_name, job_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Fetches the result of any operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param job_name: Job name whose operation result has to be fetched. - :type job_name: str - :param operation_id: OperationID which represents the operation whose - result has to be fetched. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py deleted file mode 100644 index fe9962d27834..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py +++ /dev/null @@ -1,99 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class JobsOperations(object): - """JobsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def export( - self, vault_name, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Triggers export of jobs specified by filters and returns an OperationID - to track. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.export.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - export.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py deleted file mode 100644 index 7de722287e12..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py +++ /dev/null @@ -1,111 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class OperationOperations(object): - """OperationOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def validate( - self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): - """Validate operation for specified backed up item. This is a synchronous - operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param parameters: resource validate operation request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationRequest - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ValidateOperationsResponse or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationsResponse - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.validate.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ValidateOperationRequest') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ValidateOperationsResponse', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - validate.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py deleted file mode 100644 index 3c69d7592b93..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class Operations(object): - """Operations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-08-10". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-08-10" - - self.config = config - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Returns the list of available operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ClientDiscoveryValueForSingleApi - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryValueForSingleApiPaged[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryValueForSingleApi] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ClientDiscoveryValueForSingleApiPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/providers/Microsoft.RecoveryServices/operations'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_connection_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_connection_operations.py deleted file mode 100644 index 6f7c4dba3bee..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_connection_operations.py +++ /dev/null @@ -1,304 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class PrivateEndpointConnectionOperations(object): - """PrivateEndpointConnectionOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2020-02-02". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-02-02" - - self.config = config - - def get( - self, vault_name, resource_group_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): - """Get Private Endpoint Connection. This call is made by Backup Admin. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param private_endpoint_connection_name: The name of the private - endpoint connection. - :type private_endpoint_connection_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: PrivateEndpointConnectionResource or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnectionResource - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('PrivateEndpointConnectionResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}'} - - - def _put_initial( - self, vault_name, resource_group_name, private_endpoint_connection_name, parameters, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.put.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'PrivateEndpointConnectionResource') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('PrivateEndpointConnectionResource', response) - if response.status_code == 201: - deserialized = self._deserialize('PrivateEndpointConnectionResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put( - self, vault_name, resource_group_name, private_endpoint_connection_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Approve or Reject Private Endpoint requests. This call is made by - Backup Admin. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param private_endpoint_connection_name: The name of the private - endpoint connection. - :type private_endpoint_connection_name: str - :param parameters: Request body for operation - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnectionResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns - PrivateEndpointConnectionResource or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnectionResource] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.recoveryservicesbackup.models.PrivateEndpointConnectionResource]] - :raises: :class:`CloudError` - """ - raw_result = self._put_initial( - vault_name=vault_name, - resource_group_name=resource_group_name, - private_endpoint_connection_name=private_endpoint_connection_name, - parameters=parameters, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('PrivateEndpointConnectionResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - put.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}'} - - - def _delete_initial( - self, vault_name, resource_group_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, vault_name, resource_group_name, private_endpoint_connection_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Delete Private Endpoint requests. This call is made by Backup Admin. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param private_endpoint_connection_name: The name of the private - endpoint connection. - :type private_endpoint_connection_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - vault_name=vault_name, - resource_group_name=resource_group_name, - private_endpoint_connection_name=private_endpoint_connection_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py deleted file mode 100644 index 77f5beb56e29..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectableContainersOperations(object): - """ProtectableContainersOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def list( - self, vault_name, resource_group_name, fabric_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Lists the containers that can be registered to Recovery Services Vault. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: - :type fabric_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ProtectableContainerResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainerResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectableContainerResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProtectableContainerResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py deleted file mode 100644 index c1cfa0136df8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py +++ /dev/null @@ -1,117 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectedItemOperationResultsOperations(object): - """ProtectedItemOperationResultsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def get( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Fetches the result of any operation on the backup item. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backup item. - :type fabric_name: str - :param container_name: Container name associated with the backup item. - :type container_name: str - :param protected_item_name: Backup item name whose details are to be - fetched. - :type protected_item_name: str - :param operation_id: OperationID which represents the operation whose - result needs to be fetched. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectedItemResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectedItemResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py deleted file mode 100644 index c915568a3a95..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectedItemOperationStatusesOperations(object): - """ProtectedItemOperationStatusesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Fetches the status of an operation such as triggering a backup, - restore. The status can be in progress, completed - or failed. You can refer to the OperationStatus enum for all the - possible states of the operation. Some operations - create jobs. This method returns the list of jobs associated with the - operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backup item. - :type fabric_name: str - :param container_name: Container name associated with the backup item. - :type container_name: str - :param protected_item_name: Backup item name whose details are to be - fetched. - :type protected_item_name: str - :param operation_id: OperationID represents the operation whose status - needs to be fetched. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationStatus or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.OperationStatus or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('OperationStatus', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py deleted file mode 100644 index 2b158ab99fe4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py +++ /dev/null @@ -1,268 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectedItemsOperations(object): - """ProtectedItemsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def get( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Provides the details of the backed up item. This is an asynchronous - operation. To know the status of the operation, - call the GetItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backed up item. - :type fabric_name: str - :param container_name: Container name associated with the backed up - item. - :type container_name: str - :param protected_item_name: Backed up item name whose details are to - be fetched. - :type protected_item_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectedItemResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectedItemResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}'} - - def create_or_update( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers=None, raw=False, **operation_config): - """Enables backup of an item or to modifies the backup policy information - of an already backed up item. This is an - asynchronous operation. To know the status of the operation, call the - GetItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backup item. - :type fabric_name: str - :param container_name: Container name associated with the backup item. - :type container_name: str - :param protected_item_name: Item name to be backed up. - :type protected_item_name: str - :param parameters: resource backed up item - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectedItemResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ProtectedItemResource') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectedItemResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - create_or_update.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}'} - - def delete( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers=None, raw=False, **operation_config): - """Used to disable backup of an item within a container. This is an - asynchronous operation. To know the status of the - request, call the GetItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backed up item. - :type fabric_name: str - :param container_name: Container name associated with the backed up - item. - :type container_name: str - :param protected_item_name: Backed up item to be deleted. - :type protected_item_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py deleted file mode 100644 index 70d4d9055552..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py +++ /dev/null @@ -1,114 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectionContainerOperationResultsOperations(object): - """ProtectionContainerOperationResultsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Fetches the result of any operation on the container. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the container. - :type fabric_name: str - :param container_name: Container name whose information should be - fetched. - :type container_name: str - :param operation_id: Operation ID which represents the operation whose - result needs to be fetched. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionContainerResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionContainerResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py deleted file mode 100644 index 08f72164af9a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectionContainerRefreshOperationResultsOperations(object): - """ProtectionContainerRefreshOperationResultsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, fabric_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Provides the result of the refresh operation triggered by the - BeginRefresh operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the container. - :type fabric_name: str - :param operation_id: Operation ID associated with the operation whose - result needs to be fetched. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py deleted file mode 100644 index f664ef129e0e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py +++ /dev/null @@ -1,386 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectionContainersOperations(object): - """ProtectionContainersOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, fabric_name, container_name, custom_headers=None, raw=False, **operation_config): - """Gets details of the specific container registered to your Recovery - Services Vault. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Name of the fabric where the container belongs. - :type fabric_name: str - :param container_name: Name of the container whose details need to be - fetched. - :type container_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionContainerResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionContainerResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}'} - - def register( - self, vault_name, resource_group_name, fabric_name, container_name, parameters, custom_headers=None, raw=False, **operation_config): - """Registers the container with Recovery Services vault. - This is an asynchronous operation. To track the operation status, use - location header to call get latest status of - the operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the container. - :type fabric_name: str - :param container_name: Name of the container to be registered. - :type container_name: str - :param parameters: Request body for operation - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionContainerResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResource - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.register.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ProtectionContainerResource') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionContainerResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - register.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}'} - - def unregister( - self, vault_name, resource_group_name, fabric_name, container_name, custom_headers=None, raw=False, **operation_config): - """Unregisters the given container from your Recovery Services Vault. This - is an asynchronous operation. To determine - whether the backend service has finished processing the request, call - Get Container Operation Result API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Name of the fabric where the container belongs. - :type fabric_name: str - :param container_name: Name of the container which needs to be - unregistered from the Recovery Services Vault. - :type container_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.unregister.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - unregister.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}'} - - def inquire( - self, vault_name, resource_group_name, fabric_name, container_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Inquires all the protectable items under the given container. - - This is an async operation and the results should be tracked using - location header or Azure-async-url. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric Name associated with the container. - :type fabric_name: str - :param container_name: Name of the container in which inquiry needs to - be triggered. - :type container_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.inquire.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - inquire.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire'} - - def refresh( - self, vault_name, resource_group_name, fabric_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Discovers all the containers in the subscription that can be backed up - to Recovery Services Vault. This is an - asynchronous operation. To know the status of the operation, call - GetRefreshOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated the container. - :type fabric_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.refresh.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - refresh.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py deleted file mode 100644 index 16a3e29082c5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py +++ /dev/null @@ -1,319 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectionIntentOperations(object): - """ProtectionIntentOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2017-07-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-07-01" - - self.config = config - - def validate( - self, azure_region, parameters, custom_headers=None, raw=False, **operation_config): - """It will validate followings - 1. Vault capacity - 2. VM is already protected - 3. Any VM related configuration passed in properties. - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param parameters: Enable backup validation request on Virtual Machine - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.PreValidateEnableBackupRequest - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: PreValidateEnableBackupResponse or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.PreValidateEnableBackupResponse - or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.validate.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'PreValidateEnableBackupRequest') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('PreValidateEnableBackupResponse', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - validate.metadata = {'url': '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection'} - - def get( - self, vault_name, resource_group_name, fabric_name, intent_object_name, custom_headers=None, raw=False, **operation_config): - """Provides the details of the protection intent up item. This is an - asynchronous operation. To know the status of the operation, - call the GetItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backed up item. - :type fabric_name: str - :param intent_object_name: Backed up item name whose details are to be - fetched. - :type intent_object_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionIntentResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntentResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'intentObjectName': self._serialize.url("intent_object_name", intent_object_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionIntentResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}'} - - def create_or_update( - self, vault_name, resource_group_name, fabric_name, intent_object_name, parameters, custom_headers=None, raw=False, **operation_config): - """Create Intent for Enabling backup of an item. This is a synchronous - operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backup item. - :type fabric_name: str - :param intent_object_name: Intent object name. - :type intent_object_name: str - :param parameters: resource backed up item - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntentResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionIntentResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntentResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'intentObjectName': self._serialize.url("intent_object_name", intent_object_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ProtectionIntentResource') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionIntentResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - create_or_update.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}'} - - def delete( - self, vault_name, resource_group_name, fabric_name, intent_object_name, custom_headers=None, raw=False, **operation_config): - """Used to remove intent from an item. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the intent. - :type fabric_name: str - :param intent_object_name: Intent to be deleted. - :type intent_object_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'intentObjectName': self._serialize.url("intent_object_name", intent_object_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py deleted file mode 100644 index 45161325ef63..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py +++ /dev/null @@ -1,247 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectionPoliciesOperations(object): - """ProtectionPoliciesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get( - self, vault_name, resource_group_name, policy_name, custom_headers=None, raw=False, **operation_config): - """Provides the details of the backup policies associated to Recovery - Services Vault. This is an asynchronous - operation. Status of the operation can be fetched using - GetPolicyOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param policy_name: Backup policy information to be fetched. - :type policy_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionPolicyResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - api_version = "2019-06-15" - - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionPolicyResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}'} - - def create_or_update( - self, vault_name, resource_group_name, policy_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or modifies a backup policy. This is an asynchronous operation. - Status of the operation can be fetched - using GetPolicyOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param policy_name: Backup policy to be created. - :type policy_name: str - :param parameters: resource backup policy - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionPolicyResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - api_version = "2019-06-15" - - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ProtectionPolicyResource') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionPolicyResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - create_or_update.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}'} - - def delete( - self, vault_name, resource_group_name, policy_name, custom_headers=None, raw=False, **operation_config): - """Deletes specified backup policy from your Recovery Services Vault. This - is an asynchronous operation. Status of the - operation can be fetched using GetPolicyOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param policy_name: Backup policy to be deleted. - :type policy_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - api_version = "2016-12-01" - - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py deleted file mode 100644 index a1ea10b68c6f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py +++ /dev/null @@ -1,111 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectionPolicyOperationResultsOperations(object): - """ProtectionPolicyOperationResultsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def get( - self, vault_name, resource_group_name, policy_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Provides the result of an operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param policy_name: Backup policy name whose operation's result needs - to be fetched. - :type policy_name: str - :param operation_id: Operation ID which represents the operation whose - result needs to be fetched. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ProtectionPolicyResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProtectionPolicyResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py deleted file mode 100644 index 9cb8d1369408..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class ProtectionPolicyOperationStatusesOperations(object): - """ProtectionPolicyOperationStatusesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, policy_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Provides the status of the asynchronous operations like backup, - restore. The status can be in progress, completed - or failed. You can refer to the Operation Status enum for all the - possible states of an operation. Some operations - create jobs. This method returns the list of jobs associated with - operation. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param policy_name: Backup policy name whose operation's status needs - to be fetched. - :type policy_name: str - :param operation_id: Operation ID which represents an operation whose - status needs to be fetched. - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationStatus or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.OperationStatus or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('OperationStatus', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py deleted file mode 100644 index beb93003042c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py +++ /dev/null @@ -1,208 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class RecoveryPointsOperations(object): - """RecoveryPointsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def list( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Lists the backup copies for the backed up item. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backed up item. - :type fabric_name: str - :param container_name: Container name associated with the backed up - item. - :type container_name: str - :param protected_item_name: Backed up item whose backup copies are to - be fetched. - :type protected_item_name: str - :param filter: OData filter options. - :type filter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of RecoveryPointResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResourcePaged[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResource] - :raises: :class:`CloudError` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.RecoveryPointResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints'} - - def get( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers=None, raw=False, **operation_config): - """Provides the information of the backed up data identified using - RecoveryPointID. This is an asynchronous operation. - To know the status of the operation, call the - GetProtectedItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with backed up item. - :type fabric_name: str - :param container_name: Container name associated with backed up item. - :type container_name: str - :param protected_item_name: Backed up item name whose backup data - needs to be fetched. - :type protected_item_name: str - :param recovery_point_id: RecoveryPointID represents the backed up - data to be fetched. - :type recovery_point_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: RecoveryPointResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResource or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str'), - 'recoveryPointId': self._serialize.url("recovery_point_id", recovery_point_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('RecoveryPointResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_services_backup_client_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_services_backup_client_operations.py deleted file mode 100644 index a23ffdfefd33..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_services_backup_client_operations.py +++ /dev/null @@ -1,90 +0,0 @@ -# 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.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling -from .. import models -import uuid - - -class RecoveryServicesBackupClientOperationsMixin(object): - - def get_operation_status( - self, vault_name, resource_group_name, private_endpoint_connection_name, operation_id, custom_headers=None, raw=False, **operation_config): - """Gets the operation status for a private endpoint connection. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param private_endpoint_connection_name: The name of the private - endpoint connection. - :type private_endpoint_connection_name: str - :param operation_id: Operation id - :type operation_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: OperationStatus or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.OperationStatus or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - api_version = "2020-02-02" - - # Construct URL - url = self.get_operation_status.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), - 'operationId': self._serialize.url("operation_id", operation_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('OperationStatus', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_operation_status.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py deleted file mode 100644 index 17f8ac349daf..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py +++ /dev/null @@ -1,117 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class RestoresOperations(object): - """RestoresOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2019-06-15". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2019-06-15" - - self.config = config - - def trigger( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers=None, raw=False, **operation_config): - """Restores the specified backed up data. This is an asynchronous - operation. To know the status of this API call, use - GetProtectedItemOperationResult API. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param fabric_name: Fabric name associated with the backed up items. - :type fabric_name: str - :param container_name: Container name associated with the backed up - items. - :type container_name: str - :param protected_item_name: Backed up item to be restored. - :type protected_item_name: str - :param recovery_point_id: Recovery point ID which represents the - backed up data to be restored. - :type recovery_point_id: str - :param parameters: resource restore request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequestResource - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.trigger.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str'), - 'recoveryPointId': self._serialize.url("recovery_point_id", recovery_point_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'RestoreRequestResource') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - trigger.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py deleted file mode 100644 index 08bd187beceb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class SecurityPINsOperations(object): - """SecurityPINsOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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: "2016-12-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2016-12-01" - - self.config = config - - def get( - self, vault_name, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Get the security PIN. - - :param vault_name: The name of the recovery services vault. - :type vault_name: str - :param resource_group_name: The name of the resource group where the - recovery services vault is present. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: TokenInformation or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.TokenInformation or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('TokenInformation', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py deleted file mode 100644 index 981739e4ff95..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- - -VERSION = "0.7.0" - diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/dev_requirements.txt b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/dev_requirements.txt deleted file mode 100644 index 3a6f391e593f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/dev_requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ --e ../../../tools/azure-sdk-tools --e ../azure-mgmt-recoveryservices --e ../../../tools/azure-devtools \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/sdk_packaging.toml b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/sdk_packaging.toml deleted file mode 100644 index 83158f227a95..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/sdk_packaging.toml +++ /dev/null @@ -1,5 +0,0 @@ -[packaging] -package_name = "azure-mgmt-recoveryservicesbackup" -package_pprint_name = "Recovery Services Backup Management" -package_doc_id = "recovery-services-backup" -is_stable = false diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.cfg b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.cfg deleted file mode 100644 index 3c6e79cf31da..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.py deleted file mode 100644 index 2fdecb11eff0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.py +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env python - -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-mgmt-recoveryservicesbackup" -PACKAGE_PPRINT_NAME = "Recovery Services Backup Management" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') - -# azure v0.x is not compatible with this package -# azure v0.x used to have a __version__ attribute (newer versions don't) -try: - import azure - try: - ver = azure.__version__ - raise Exception( - 'This package is incompatible with azure=={}. '.format(ver) + - 'Uninstall it with "pip uninstall azure".' - ) - except AttributeError: - pass -except ImportError: - pass - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('Cannot find version information') - -with open('README.md', encoding='utf-8') as f: - readme = f.read() -with open('CHANGELOG.md', encoding='utf-8') as f: - changelog = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - long_description=readme + '\n\n' + changelog, - long_description_content_type='text/markdown', - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - 'azure', - 'azure.mgmt', - ]), - install_requires=[ - 'msrest>=0.5.0', - 'msrestazure>=0.4.32,<2.0.0', - 'azure-common~=1.1', - ], - extras_require={ - ":python_version<'3.0'": ['azure-mgmt-nspkg'], - } -) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/recordings/test_mgmt_recoveryservices_backup.test_operations_api.yaml b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/recordings/test_mgmt_recoveryservices_backup.test_operations_api.yaml deleted file mode 100644 index 2525806aebc9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/recordings/test_mgmt_recoveryservices_backup.test_operations_api.yaml +++ /dev/null @@ -1,404 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-recoveryservicesbackup/0.5.0 Azure-SDK-For-Python - accept-language: - - en-US - method: GET - uri: https://management.azure.com/providers/Microsoft.RecoveryServices/operations?api-version=2016-08-10 - response: - body: - string: '{"value":[{"name":"Microsoft.RecoveryServices/Locations/backupPreValidateProtection/action","display":{"provider":"Microsoft.RecoveryServices","resource":"PreValidate - Protection","operation":"Pre Validate Enable Protection","description":""},"origin":"user"},{"name":"Microsoft.RecoveryServices/Locations/backupProtectedItem/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Create Backup Protected Item","description":"Create a - backup Protected Item"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Locations/backupProtectedItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Get All Protected Items","description":"Returns the list - of all Protected Items."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Locations/backupStatus/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Status","operation":"Check Backup Status for Vault","description":"Check Backup - Status for Recovery Services Vaults"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Locations/backupValidateFeatures/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Validate - Features","operation":"Validate Features","description":"Validate Features"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupEncryptionConfigs/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Encryption Config","operation":"Get Backup Resource Encryption Config","description":"Gets - Backup Resource Encryption Configuration."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupEncryptionConfigs/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Encryption Config","operation":"Put Backup Resource Encryption Config","description":"Updates - Backup Resource Encryption Configuration"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupEngines/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Engines","operation":"List of backup management servers.","description":"Returns - all the backup management servers registered with vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/backupProtectionIntent/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Intent","operation":"Delete backup Protection Intent","description":"Delete - a backup Protection Intent"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/backupProtectionIntent/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Intent","operation":"Get backup Protection Intent","description":"Get a backup - Protection Intent"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/backupProtectionIntent/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Intent","operation":"Create backup Protection Intent","description":"Create - a backup Protection Intent"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/operationResults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Refresh - Containers Operation Results","operation":"Get Operation Results","description":"Returns - status of the operation"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/operationsStatus/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Refresh - Containers Operation Statuses","operation":"Get Operation Status for refresh - container operation","description":"Returns status of the operation"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectableContainers/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protectable - Containers","operation":"Get all protectable containers","description":"Get - all protectable containers"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Delete Registered Container","description":"Deletes - the registered Container"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/inquire/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers Inquire","operation":"Do inquiry for workloads within a container","description":"Do - inquiry for workloads within a container"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/items/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Workload - Items","operation":"Get all items in a container","description":"Get all items - in a container"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/operationResults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers Operation Results","operation":"Get Container Operation Results","description":"Gets - result of Operation performed on Protection Container."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/operationsStatus/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers Operation Statuses","operation":"Get Container Operation Status","description":"Gets - status of Operation performed on Protection Container."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/backup/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Backup Protected Item","description":"Performs Backup - for Protected Item."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Delete Protected Items","description":"Deletes Protected - Item"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/operationResults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Item Operation Results","operation":"Get Protected Items Operation Results","description":"Gets - Result of Operation Performed on Protected Items."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/operationsStatus/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Item Operation Status","operation":"Get Protected Items operation status","description":"Returns - the status of Operation performed on Protected Items."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Get Protected Item Details","description":"Returns object - details of the Protected Item"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/provisionInstantItemRecovery/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Points","operation":"Provision Instant Item Recovery for Protected Item","description":"Provision - Instant Item Recovery for Protected Item"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Points","operation":"Get Recovery Points","description":"Get Recovery Points - for Protected Items."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/restore/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Points","operation":"Restore Recovery Points","description":"Restore Recovery - Points for Protected Items."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/revokeInstantItemRecovery/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Points","operation":"Revoke Instant Item Recovery for Protected Item","description":"Revoke - Instant Item Recovery for Protected Item"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/protectedItems/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Create Backup Protected Item","description":"Create a - backup Protected Item"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Get Registered Container","description":"Returns - all registered containers"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/protectionContainers/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Create Registered Container","description":"Creates - a registered container"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupFabrics/refreshContainers/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Refresh - Containers","operation":"Refresh container","description":"Refreshes the container - list"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupJobs/cancel/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Jobs","operation":"Cancel Jobs","description":"Cancel the Job"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupJobs/operationResults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Jobs Operation Results","operation":"Get Job Operation Result","description":"Returns - the Result of Job Operation."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupJobs/operationsStatus/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Jobs Operation Statuses","operation":"Get Job Operation Status","description":"Returns - the status of Job Operation."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupJobs/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Jobs","operation":"Get Jobs","description":"Returns all Job Objects"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupJobsExport/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Export - Backup Jobs","operation":"Export Jobs","description":"Export Jobs"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupOperationResults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Operation Results","operation":"Get Backup Operation Result","description":"Returns - Backup Operation Result for Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupOperations/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Operation Status","operation":"Get Backup Operation Status","description":"Returns - Backup Operation Status for Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupPolicies/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Policies","operation":"Delete Protection Policy","description":"Delete a Protection - Policy"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupPolicies/operationResults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Policy Operation Results","operation":"Get Policy Operation Results","description":"Get - Results of Policy Operation."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupPolicies/operations/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Policy Operation Status","operation":"Get Policy Operation Status","description":"Get - Status of Policy Operation."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupPolicies/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Policies","operation":"Get Protection Policy","description":"Returns all Protection - Policies"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupPolicies/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Policies","operation":"Create Protection Policy","description":"Creates Protection - Policy"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupProtectableItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Protectable Items","operation":"Get Protectable Items","description":"Returns - list of all Protectable Items."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupProtectedItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Get All Protected Items","description":"Returns the list - of all Protected Items."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupProtectionContainers/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Protection Containers","operation":"Get Containers In Subscription","description":"Returns - all containers belonging to the subscription"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupProtectionIntents/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Intent","operation":"List all backup Protection Intents","description":"List - all backup Protection Intents"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupSecurityPIN/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Security - Pin Info","operation":"Get Security PIN Info","description":"Returns Security - PIN Information for Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupUsageSummaries/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Backup - Usages Summaries","operation":"Recovery Services Protected Items and Protected - Servers usage summaries details.","description":"Returns summaries for Protected - Items and Protected Servers for a Recovery Services ."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupValidateOperation/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Validate - Operation","operation":"Validate Operation on Protected Item","description":"Validate - Operation on Protected Item"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupconfig/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Config","operation":"Get Resource Config","description":"Returns Configuration - for Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupconfig/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Config","operation":"Update Resource Config","description":"Updates Configuration - for Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupstorageconfig/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Storage Config","operation":"Get Resource Storage Config","description":"Returns - Storage Configuration for Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/backupstorageconfig/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Storage Config","operation":"Write Resource Storage Config","description":"Updates - Storage Configuration for Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/usages/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Usage","operation":"Recovery Services Vault usage details.","description":"Returns - usage details for a Recovery Services Vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/vaults/replicationAlertSettings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Alerts - Settings","operation":"Read Alerts Settings","description":"Read any Alerts - Settings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationAlertSettings/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Alerts - Settings","operation":"Create or Update Alerts Settings","description":"Create - or Update any Alerts Settings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationEvents/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Events","operation":"Read - Events","description":"Read any Events"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationOperationStatus/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Replication Operation Status","operation":"Read Vault Replication Operation - Status","description":"Read any Vault Replication Operation Status"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationLogicalNetworks/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Logical - Networks","operation":"Read Logical Networks","description":"Read any Logical - Networks"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Networks","operation":"Read - Networks","description":"Read any Networks"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationNetworks/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Networks","operation":"Read - Networks","description":"Read any Networks"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Network - Mappings","operation":"Read Network Mappings","description":"Read any Network - Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationNetworkMappings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Network - Mappings","operation":"Read Network Mappings","description":"Read any Network - Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Network - Mappings","operation":"Create or Update Network Mappings","description":"Create - or Update any Network Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Network - Mappings","operation":"Delete Network Mappings","description":"Delete any - Network Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protectable - Items","operation":"Read Protectable Items","description":"Read any Protectable - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationProtectionContainerMappings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Container Mappings","operation":"Read Protection Container Mappings","description":"Read - any Protection Container Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Container Mappings","operation":"Read Protection Container Mappings","description":"Read - any Protection Container Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Container Mappings","operation":"Create or Update Protection Container Mappings","description":"Create - or Update any Protection Container Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/remove/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Container Mappings","operation":"Remove Protection Container Mapping","description":"Remove - Protection Container Mapping"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Container Mappings","operation":"Delete Protection Container Mappings","description":"Delete - any Protection Container Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/recoveryPoints/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Replication - Recovery Points","operation":"Read Replication Recovery Points","description":"Read - any Replication Recovery Points"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationProtectedItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Read Protected Items","description":"Read any Protected - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Read Protected Items","description":"Read any Protected - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Create or Update Protected Items","description":"Create - or Update any Protected Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Delete Protected Items","description":"Delete any Protected - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/remove/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Remove Protected Item","description":"Remove Protected - Item"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/plannedFailover/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Planned Failover","description":"Planned Failover"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/unplannedFailover/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Failover","description":"Failover"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailover/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Test Failover","description":"Test Failover"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailoverCleanup/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Test Failover Cleanup","description":"Test Failover Cleanup"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/failoverCommit/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Failover Commit","description":"Failover Commit"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/reProtect/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"ReProtect Protected Item","description":"ReProtect Protected - Item"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/updateMobilityService/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Update Mobility Service","description":"Update Mobility - Service"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/repairReplication/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Repair replication","description":"Repair replication"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/applyRecoveryPoint/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Apply Recovery Point","description":"Apply Recovery Point"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Track the results of an asynchronous operation on the - resource Protected Items","description":"Track the results of an asynchronous - operation on the resource Protected Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/targetComputeSizes/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Target - Compute Sizes","operation":"Read Target Compute Sizes","description":"Read - any Target Compute Sizes"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationJobs/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Jobs","operation":"Read - Jobs","description":"Read any Jobs"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationJobs/cancel/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Jobs","operation":"Cancel - Job","description":"Cancel Job"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationJobs/restart/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Jobs","operation":"Restart - job","description":"Restart job"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationJobs/resume/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Jobs","operation":"Resume - Job","description":"Resume Job"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationJobs/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Jobs","operation":"Track - the results of an asynchronous operation on the resource Jobs","description":"Track - the results of an asynchronous operation on the resource Jobs"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationProtectionContainers/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Read Protection Containers","description":"Read any - Protection Containers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Read Protection Containers","description":"Read any - Protection Containers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/discoverProtectableItem/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Discover Protectable Item","description":"Discover - Protectable Item"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Track the results of an asynchronous operation on - the resource Protection Containers","description":"Track the results of an - asynchronous operation on the resource Protection Containers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Create or Update Protection Containers","description":"Create - or Update any Protection Containers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/remove/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Remove Protection Container","description":"Remove - Protection Container"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/switchprotection/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Containers","operation":"Switch Protection Container","description":"Switch - Protection Container"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationPolicies/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Policies","operation":"Read - Policies","description":"Read any Policies"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationPolicies/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Policies","operation":"Create - or Update Policies","description":"Create or Update any Policies"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationPolicies/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Policies","operation":"Delete - Policies","description":"Delete any Policies"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationPolicies/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Policies","operation":"Track - the results of an asynchronous operation on the resource Policies","description":"Track - the results of an asynchronous operation on the resource Policies"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Read Recovery Plans","description":"Read any Recovery - Plans"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Create or Update Recovery Plans","description":"Create - or Update any Recovery Plans"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Delete Recovery Plans","description":"Delete any Recovery - Plans"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/plannedFailover/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Planned Failover Recovery Plan","description":"Planned - Failover Recovery Plan"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/unplannedFailover/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Failover Recovery Plan","description":"Failover Recovery - Plan"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/testFailover/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Test Failover Recovery Plan","description":"Test Failover - Recovery Plan"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/testFailoverCleanup/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Test Failover Cleanup Recovery Plan","description":"Test - Failover Cleanup Recovery Plan"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/failoverCommit/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Failover Commit Recovery Plan","description":"Failover - Commit Recovery Plan"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/reProtect/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"ReProtect Recovery Plan","description":"ReProtect Recovery - Plan"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Plans","operation":"Track the results of an asynchronous operation on the - resource Recovery Plans","description":"Track the results of an asynchronous - operation on the resource Recovery Plans"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationRecoveryServicesProviders/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Services Providers","operation":"Read Recovery Services Providers","description":"Read - any Recovery Services Providers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationRecoveryServicesProviders/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Services Providers","operation":"Read Recovery Services Providers","description":"Read - any Recovery Services Providers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationRecoveryServicesProviders/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Services Providers","operation":"Create or Update Recovery Services Providers","description":"Create - or Update any Recovery Services Providers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationRecoveryServicesProviders/remove/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Services Providers","operation":"Remove Recovery Services Provider","description":"Remove - Recovery Services Provider"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationRecoveryServicesProviders/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Services Providers","operation":"Delete Recovery Services Providers","description":"Delete - any Recovery Services Providers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationRecoveryServicesProviders/refreshProvider/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Services Providers","operation":"Refresh Provider","description":"Refresh - Provider"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationRecoveryServicesProviders/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Recovery - Services Providers","operation":"Track the results of an asynchronous operation - on the resource Recovery Services Providers","description":"Track the results - of an asynchronous operation on the resource Recovery Services Providers"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Read - Fabrics","description":"Read any Fabrics"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Create - or Update Fabrics","description":"Create or Update any Fabrics"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/remove/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Remove - Fabric","description":"Remove Fabric"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/checkConsistency/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Checks - Consistency of the Fabric","description":"Checks Consistency of the Fabric"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Delete - Fabrics","description":"Delete any Fabrics"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/renewcertificate/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Renew - Certificate for Fabric","description":"Renew Certificate for Fabric"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/deployProcessServerImage/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Deploy - Process Server Image","description":"Deploy Process Server Image"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/reassociateGateway/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Reassociate - Gateway","description":"Reassociate Gateway"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Track - the results of an asynchronous operation on the resource Fabrics","description":"Track - the results of an asynchronous operation on the resource Fabrics"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationStorageClassifications/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Storage - Classifications","operation":"Read Storage Classifications","description":"Read - any Storage Classifications"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationStorageClassifications/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Storage - Classifications","operation":"Read Storage Classifications","description":"Read - any Storage Classifications"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationStorageClassificationMappings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Storage - Classification Mappings","operation":"Read Storage Classification Mappings","description":"Read - any Storage Classification Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Storage - Classification Mappings","operation":"Read Storage Classification Mappings","description":"Read - any Storage Classification Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Storage - Classification Mappings","operation":"Create or Update Storage Classification - Mappings","description":"Create or Update any Storage Classification Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Storage - Classification Mappings","operation":"Delete Storage Classification Mappings","description":"Delete - any Storage Classification Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Storage - Classification Mappings","operation":"Track the results of an asynchronous - operation on the resource Storage Classification Mappings","description":"Track - the results of an asynchronous operation on the resource Storage Classification - Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationUsages/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Replication Usages","operation":"Read Vault Replication Usages","description":"Read - any Vault Replication Usages"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/usages/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Usages","operation":"Read Vault Usages","description":"Read any Vault Usages"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationvCenters/read","display":{"provider":"Microsoft.RecoveryServices","resource":"vCenters","operation":"Read - vCenters","description":"Read any vCenters"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationvCenters/read","display":{"provider":"Microsoft.RecoveryServices","resource":"vCenters","operation":"Read - vCenters","description":"Read any vCenters"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationvCenters/write","display":{"provider":"Microsoft.RecoveryServices","resource":"vCenters","operation":"Create - or Update vCenters","description":"Create or Update any vCenters"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationvCenters/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"vCenters","operation":"Delete - vCenters","description":"Delete any vCenters"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationvCenters/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"vCenters","operation":"Track - the results of an asynchronous operation on the resource vCenters","description":"Track - the results of an asynchronous operation on the resource vCenters"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationVaultHealth/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Replication Health","operation":"Read Vault Replication Health","description":"Read - any Vault Replication Health"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationVaultHealth/refresh/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Replication Health","operation":"Refresh Vault Health","description":"Refresh - Vault Health"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationVaultHealth/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vault - Replication Health","operation":"Track the results of an asynchronous operation - on the resource Vault Replication Health","description":"Track the results - of an asynchronous operation on the resource Vault Replication Health"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/migratetoaad/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Fabrics","operation":"Migrate - Fabric To AAD","description":"Migrate Fabric To AAD"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/submitFeedback/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Submit Feedback","description":"Submit Feedback"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Protection - Container Mappings","operation":"Track the results of an asynchronous operation - on the resource Protection Container Mappings","description":"Track the results - of an asynchronous operation on the resource Protection Container Mappings"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationMigrationItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Read Migration Items","description":"Read any Migration - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Read Migration Items","description":"Read any Migration - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Create or Update Migration Items","description":"Create - or Update any Migration Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Delete Migration Items","description":"Delete any Migration - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrate/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Migrate Item","description":"Migrate Item"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrate/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Test Migrate","description":"Test Migrate"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrateCleanup/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Test Migrate Cleanup","description":"Test Migrate Cleanup"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Recovery Points","operation":"Read Migration Recovery Points","description":"Read - any Migration Recovery Points"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/operationresults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Migration - Items","operation":"Track the results of an asynchronous operation on the - resource Migration Items","description":"Track the results of an asynchronous - operation on the resource Migration Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationSupportedOperatingSystems/read","display":{"provider":"Microsoft.RecoveryServices","operation":"Read - ","description":"Read any "},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/addDisks/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Add disks","description":"Add disks"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/removeDisks/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items","operation":"Remove disks","description":"Remove disks"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/ResolveHealthErrors/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Protected - Items"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationVaultSettings/read","display":{"provider":"Microsoft.RecoveryServices","operation":"Read - ","description":"Read any "},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/vaults/replicationVaultSettings/write","display":{"provider":"Microsoft.RecoveryServices","operation":"Create - or Update ","description":"Create or Update any "},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/Vaults/vaultTokens/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Vault - Token","description":"The Vault Token operation can be used to get Vault Token - for vault level backend operations."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/registeredIdentities/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Register - Service Container","description":"The Register Service Container operation - can be used to register a container with Recovery Service."},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/Vaults/registeredIdentities/operationResults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - Operation Results","description":"The Get Operation Results operation can - be used get the operation status and result for the asynchronously submitted - operation"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/Vaults/registeredIdentities/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - Containers","description":"The Get Containers operation can be used get the - containers registered for a resource."},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/Vaults/registeredIdentities/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Unregister - Service Container","description":"The UnRegister Container operation can be - used to unregister a container."},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/Vaults/certificates/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Update - Resource Certificate","description":"The Update Resource Certificate operation - updates the resource/vault credential certificate."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/monitoringAlerts/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - alerts","description":"Gets the alerts for the Recovery services vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/monitoringAlerts/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Resolve - alert","description":"Resolves the alert."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/monitoringConfigurations/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - configuration","description":"Gets the Recovery services vault notification - configuration."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/monitoringConfigurations/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Configure - e-mail notification","description":"Configures e-mail notifications to Recovery - services vault."},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/providers/Microsoft.Insights/logDefinitions/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Azure - Backup Logs","description":"Azure Backup Logs"},"origin":"system","properties":{"serviceSpecification":{"logSpecifications":[{"name":"AzureBackupReport","displayName":"Azure - Backup Reporting Data","blobDuration":"PT1H"},{"name":"CoreAzureBackup","displayName":"Core - Azure Backup Data","blobDuration":"PT1H"},{"name":"AddonAzureBackupJobs","displayName":"Addon - Azure Backup Job Data","blobDuration":"PT1H"},{"name":"AddonAzureBackupAlerts","displayName":"Addon - Azure Backup Alert Data","blobDuration":"PT1H"},{"name":"AddonAzureBackupPolicy","displayName":"Addon - Azure Backup Policy Data","blobDuration":"PT1H"},{"name":"AddonAzureBackupStorage","displayName":"Addon - Azure Backup Storage Data","blobDuration":"PT1H"},{"name":"AddonAzureBackupProtectedInstance","displayName":"Addon - Azure Backup Protected Instance Data","blobDuration":"PT1H"},{"name":"AzureSiteRecoveryJobs","displayName":"Azure - Site Recovery Jobs","blobDuration":"PT1H"},{"name":"AzureSiteRecoveryEvents","displayName":"Azure - Site Recovery Events","blobDuration":"PT1H"},{"name":"AzureSiteRecoveryReplicatedItems","displayName":"Azure - Site Recovery Replicated Items","blobDuration":"PT1H"},{"name":"AzureSiteRecoveryReplicationStats","displayName":"Azure - Site Recovery Replication Stats","blobDuration":"PT1H"},{"name":"AzureSiteRecoveryRecoveryPoints","displayName":"Azure - Site Recovery Recovery Points","blobDuration":"PT1H"},{"name":"AzureSiteRecoveryReplicationDataUploadRate","displayName":"Azure - Site Recovery Replication Data Upload Rate","blobDuration":"PT1H"},{"name":"AzureSiteRecoveryProtectedDiskDataChurn","displayName":"Azure - Site Recovery Protected Disk Data Churn","blobDuration":"PT1H"}]}}},{"name":"Microsoft.RecoveryServices/Vaults/providers/Microsoft.Insights/metricDefinitions/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Azure - Backup Metrics","description":"Azure Backup Metrics"},"origin":"system"},{"name":"Microsoft.RecoveryServices/Vaults/providers/Microsoft.Insights/diagnosticSettings/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Azure - Backup Diagnostics","description":"Azure Backup Diagnostics"},"origin":"system"},{"name":"Microsoft.RecoveryServices/Vaults/providers/Microsoft.Insights/diagnosticSettings/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Azure - Backup Diagnostics","description":"Azure Backup Diagnostics"},"origin":"system"},{"name":"Microsoft.RecoveryServices/Vaults/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Create - Vault","description":"Create Vault operation creates an Azure resource of - type ''vault''"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - Vault","description":"The Get Vault operation gets an object representing - the Azure resource of type ''vault''"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Delete - Vault","description":"The Delete Vault operation deletes the specified Azure - resource of type ''vault''"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/extendedInformation/read","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - Extended Info","description":"The Get Extended Info operation gets an object''s - Extended Info representing the Azure resource of type ?vault?"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/extendedInformation/write","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - Extended Info","description":"The Get Extended Info operation gets an object''s - Extended Info representing the Azure resource of type ?vault?"},"origin":"user"},{"name":"Microsoft.RecoveryServices/Vaults/extendedInformation/delete","display":{"provider":"Microsoft.RecoveryServices","resource":"Vaults","operation":"Get - Extended Info","description":"The Get Extended Info operation gets an object''s - Extended Info representing the Azure resource of type ?vault?"},"origin":"user"},{"name":"Microsoft.RecoveryServices/locations/allocatedStamp/read","display":{"provider":"Microsoft.RecoveryServices","resource":"locations/allocatedStamp","operation":"Get - Allocated Stamp","description":"GetAllocatedStamp is internal operation used - by service"},"origin":"user"},{"name":"Microsoft.RecoveryServices/locations/allocateStamp/action","display":{"provider":"Microsoft.RecoveryServices","resource":"locations/allocateStamp","operation":"Allocated - Stamp Action","description":"AllocateStamp is internal operation used by service"},"origin":"user"},{"name":"Microsoft.RecoveryServices/locations/checkNameAvailability/action","display":{"provider":"Microsoft.RecoveryServices","resource":"locations/checkNameAvailability","operation":"Check - Resource Name Availability Action","description":"Check Resource Name Availability - is an API to check if resource name is available"},"origin":"user"},{"name":"Microsoft.RecoveryServices/register/action","display":{"provider":"Microsoft.RecoveryServices","resource":"Microsoft.RecoveryServices","operation":"Register - Resource Provider","description":"Registers subscription for given Resource - Provider"},"origin":"user"},{"name":"Microsoft.RecoveryServices/operations/read","display":{"provider":"Microsoft.RecoveryServices","resource":"operations","operation":"List - of Operations","description":"Operation returns the list of Operations for - a Resource Provider"},"origin":"user,system"},{"name":"Microsoft.RecoveryServices/locations/operationStatus/read","display":{"provider":"Microsoft.RecoveryServices","resource":"locations/operationStatus","operation":"Get - Operation Status","description":"Gets Operation Status for a given Operation"},"origin":"user"}]}' - headers: - cache-control: - - no-cache - content-length: - - '58724' - content-type: - - application/json - date: - - Thu, 21 Nov 2019 23:23:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/recoveryservicesbackup_testcase.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/recoveryservicesbackup_testcase.py deleted file mode 100644 index e40dab30d4c3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/recoveryservicesbackup_testcase.py +++ /dev/null @@ -1,378 +0,0 @@ -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -import time - -from datetime import datetime, timedelta - -from azure.mgmt.recoveryservices.models import Sku, SkuName, Vault, VaultProperties - -try: - from urllib.parse import urlparse -except ImportError: - # Python 2 compatibility - from urlparse import urlparse - -from azure.mgmt.recoveryservicesbackup.models import (AzureIaaSComputeVMProtectedItem, BackupRequestResource, - IaasVMBackupRequest, - IaasVMILRRegistrationRequest, IaasVMRestoreRequest, - ILRRequestResource, JobStatus, - OperationStatusValues, ProtectedItemResource, ProtectionState, - RecoveryType, - RestoreRequestResource, - BackupManagementType) -from msrestazure.azure_exceptions import CloudError - - -class MgmtRecoveryServicesBackupTestDefinition(object): - - vm_friendly_name = "swaggersdktest" - vm_rg_name = "swaggersdktestrg" - vm_type = "Compute" - restore_storage_acc_name = "swaggersdktest" - restore_storage_acc_rg_name = "swaggersdktestrg" - fabric_name = "Azure" - location = "southeastasia" - - def __init__(self, subscription_id, vault_name, vault_rg_name): - self.subscription_id = subscription_id - self.vault_name = vault_name - self.vault_rg_name = vault_rg_name - - @property - def container_type(self): - return "iaasvmcontainerv2" if self.vm_type.lower() == "compute" else "iaasvmcontainer" - - @property - def container_unique_name(self): - return ";".join([self.container_type, self.vm_rg_name, self.vm_friendly_name]) - - @property - def container_name(self): - return ";".join(["iaasvmcontainer", self.container_unique_name]) - - @property - def vm_name(self): - return ";".join(["vm", self.container_unique_name]) - - @property - def storage_account_id(self): - return "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}".format( - self.subscription_id, - self.restore_storage_acc_rg_name, - self.restore_storage_acc_name, - ) - - -class MgmtRecoveryServicesBackupTestHelper(object): - - def __init__(self, test_context): - self.context = test_context - self.vault_client = self.context.vault_client # type: azure.mgmt.recoveryservices.RecoveryServicesClient - self.backup_client = self.context.backup_client # type: azure.mgmt.recoveryservicesbackup.RecoveryServicesBackupClient - self.test_definition = self.context.test_definition - self.vault_name = self.test_definition.vault_name - self.resource_group = self.test_definition.vault_rg_name - self.fabric_name = self.test_definition.fabric_name - - def create_vault(self): - vault = Vault( - location='southeastasia', - sku=Sku( - name=SkuName.standard, - ), - properties=VaultProperties() - ) - self.vault_client.vaults.create_or_update(self.resource_group, self.vault_name, vault) - - def delete_vault(self): - return self.vault_client.vaults.delete(self.resource_group, self.vault_name) - - def enable_protection(self, container_name, protected_item_name, policy_name): - policy = self.get_policy_with_retries(policy_name) - self.context.assertIsNotNone(policy) - - response = self.backup_client.protection_containers.refresh(self.vault_name, self.resource_group, self.test_definition.fabric_name, raw=True) - self._validate_operation_response(response) - - self._get_operation_response( - response, - lambda operation_id: self.backup_client.protection_container_refresh_operation_results.get( - self.vault_name, self.resource_group, self.fabric_name, operation_id, raw=True, - ), - None, - ) - - iaasvm_odata_filter = "backupManagementType eq '{}'".format(BackupManagementType.azure_iaas_vm.value) - protectable_items = self.backup_client.backup_protectable_items.list(self.vault_name, self.resource_group, filter=iaasvm_odata_filter) - - desired_protectable_item = next(protectable_item for protectable_item in protectable_items if protectable_item.name.lower() in container_name.lower()).properties - self.context.assertIsNotNone(desired_protectable_item) - - protected_item_resource = ProtectedItemResource( - properties=AzureIaaSComputeVMProtectedItem(policy_id=policy.id, source_resource_id=desired_protectable_item.virtual_machine_id) - ) - - response = self.backup_client.protected_items.create_or_update(self.vault_name, self.resource_group, self.fabric_name, container_name, - protected_item_name, protected_item_resource, raw=True) - self._validate_operation_response(response) - - job_response = self._get_operation_response( - response, - lambda operation_id: self.backup_client.protected_item_operation_results.get( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, operation_id, raw=True, - ), - lambda operation_id: self.backup_client.protected_item_operation_statuses.get( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, operation_id, - ), - ) - - self.context.assertIsNotNone(job_response.job_id) - return job_response.job_id - - def list_protected_items(self): - return self.backup_client.backup_protected_items.list(self.vault_name, self.resource_group) - - def trigger_backup(self, container_name, protected_item_name): - expiry_time = datetime.utcnow() + timedelta(days=2) - - backup_request = BackupRequestResource( - properties=IaasVMBackupRequest(recovery_point_expiry_time_in_utc=expiry_time), - ) - - response = self.backup_client.backups.trigger(self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, - backup_request, raw=True) - self._validate_operation_response(response) - - job_response = self._get_operation_response( - response, - lambda operation_id: self.backup_client.protected_item_operation_results.get( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, operation_id, raw=True, - ), - lambda operation_id: self.backup_client.protected_item_operation_statuses.get( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, operation_id, - ), - ) - - self.context.assertIsNotNone(job_response.job_id) - return job_response.job_id - - def list_backup_jobs(self): - return self.backup_client.backup_jobs.list(self.vault_name, self.resource_group) - - def list_recovery_points(self, container_name, protected_item_name): - return self.backup_client.recovery_points.list(self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name) - - def trigger_restore(self, container_name, protected_item_name, recovery_point_name, source_resource_id, storage_account_id): - restore_request = RestoreRequestResource( - properties=IaasVMRestoreRequest( - recovery_point_id=recovery_point_name, - recovery_type=RecoveryType.restore_disks, - source_resource_id=source_resource_id, - storage_account_id=storage_account_id, - region=self.test_definition.location, - create_new_cloud_service=False, - ) - ) - - response = self.backup_client.restores.trigger(self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, - recovery_point_name, restore_request, raw=True) - self._validate_operation_response(response) - - job_response = self._get_operation_response( - response, - lambda operation_id: self.backup_client.protected_item_operation_results.get( - self.vault_name, self.resource_group, self.test_definition.fabric_name, container_name, protected_item_name, operation_id, raw=True, - ), - lambda operation_id: self.backup_client.protected_item_operation_statuses.get( - self.vault_name, self.resource_group, self.test_definition.fabric_name, container_name, protected_item_name, operation_id, - ), - ) - - self.context.assertIsNotNone(job_response.job_id) - return job_response.job_id - - def disable_protection_with_retain_data(self, container_name, protected_item_name, protected_item): - - protected_item_resource = ProtectedItemResource( - properties=AzureIaaSComputeVMProtectedItem(source_resource_id=protected_item.virtual_machine_id, - protection_state=ProtectionState.protection_stopped, - ) - ) - - response = self.backup_client.protected_items.create_or_update( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, - protected_item_resource, raw=True - ) - - self._validate_operation_response(response) - - job_response = self._get_operation_response( - response, - lambda operation_id: self.backup_client.protected_item_operation_results.get( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, operation_id, raw=True, - ), - lambda operation_id: self.backup_client.protected_item_operation_statuses.get( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, operation_id, - ), - ) - - self.context.assertIsNotNone(job_response.job_id) - return job_response.job_id - - def delete_protection(self, container_name, protected_item_name): - response = self.backup_client.protected_items.delete( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, raw=True) - self._validate_operation_response(response) - - job_response = self._get_operation_status( - response, - lambda operation_id: self.backup_client.backup_operation_statuses.get(self.vault_name, self.resource_group, operation_id), - ) - - self.context.assertIsNotNone(job_response.job_id) - return job_response.job_id - - def provision_item_level_recovery(self, container_name, protected_item_name, recovery_point_name, source_resource_id): - ilr_request = ILRRequestResource( - properties=IaasVMILRRegistrationRequest( - recovery_point_id=recovery_point_name, - virtual_machine_id=source_resource_id, - initiator_name="Hello World", - renew_existing_registration=True, - ) - ) - - response = self.backup_client.item_level_recovery_connections.provision( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, recovery_point_name, ilr_request, raw=True, - ) - self._validate_operation_response(response) - - ilr_response_extended_info = self._get_operation_response( - response, - lambda operation_id: self.backup_client.protected_item_operation_results.get( - self.vault_name, self.resource_group, self.test_definition.fabric_name, container_name, protected_item_name, operation_id, raw=True, - ), - lambda operation_id: self.backup_client.protected_item_operation_statuses.get( - self.vault_name, self.resource_group, self.test_definition.fabric_name, container_name, protected_item_name, operation_id, - ), - ) - - self.context.assertIsNotNone(ilr_response_extended_info) - self.context.assertIsNotNone(ilr_response_extended_info.recovery_target) - self.context.assertIsNotNone(ilr_response_extended_info.recovery_target.client_scripts) - self.context.assertTrue(len(ilr_response_extended_info.recovery_target.client_scripts) > 0) - return ilr_response_extended_info - - def revoke_item_level_recovery(self, container_name, protected_item_name, recovery_point_name): - - response = self.backup_client.item_level_recovery_connections.revoke( - self.vault_name, self.resource_group, self.fabric_name, container_name, protected_item_name, recovery_point_name, raw=True, - ) - self._validate_operation_response(response) - - job_response = self._get_operation_response( - response, - lambda operation_id: self.backup_client.protected_item_operation_results.get( - self.vault_name, self.resource_group, self.test_definition.fabric_name, container_name, protected_item_name, operation_id, raw=True, - ), - lambda operation_id: self.backup_client.protected_item_operation_statuses.get( - self.vault_name, self.resource_group, self.test_definition.fabric_name, container_name, protected_item_name, operation_id, - ), - ) - - def wait_for_job_completion(self, job_id): - self.retry_action_with_timeout( - lambda: self.get_job_status(job_id), - lambda job_status: not self.is_job_in_progress(job_status), - 3 * 60 * 60, # 3 Hours - lambda status_code: self._dummy_wait_and_return_true, - ) - - def get_job_status(self, job_id): - response = self.backup_client.job_details.get(self.vault_name, self.resource_group, job_id) - self.context.assertIsNotNone(response) - return response.properties.status - - def is_job_in_progress(self, job_status): - in_progress = job_status in [JobStatus.in_progress.value, JobStatus.cancelling.value] - if in_progress: - self.context.sleep(60) - return in_progress - - def get_policy_with_retries(self, policy_name): - - return self.retry_action_with_timeout( - lambda: self.backup_client.protection_policies.get(self.vault_name, self.resource_group, policy_name), - lambda result: result is not None, - 5 * 60, - self._resource_not_synced_retry_logic - ) - - @staticmethod - def retry_action_with_timeout(action, validator, timeout, should_retry): - - end_time = time.time() + timeout - result = None - validator_result = False if result is None else validator(result) - - while time.time() < end_time and not validator_result: - try: - result = action() - validator_result = validator(result) - except CloudError as ex: - if not should_retry(ex.response.status_code): - raise - - return result - - def list_operations(self): - operations = self.backup_client.operations.list() - return operations - - def _resource_not_synced_retry_logic(self, status_code): - should_retry = status_code == 200 or status_code == 404 - if should_retry: - self.context.sleep(30) - return should_retry - - def _dummy_wait_and_return_true(self, timeout_in_sec): - self.context.sleep(timeout_in_sec) - return True - - def _validate_operation_response(self, raw_response): - self.context.assertIsNotNone(raw_response) - self.context.assertEqual(raw_response.response.status_code, 202) - self.context.assertTrue("Location" in raw_response.response.headers or "Azure-AsyncOperation" in raw_response.response.headers) - self.context.assertTrue("Retry-After" in raw_response.response.headers) - - def _get_operation_status(self, raw_response, get_operation_status_func): - operation_id_path = urlparse(raw_response.response.headers["Azure-AsyncOperation"]).path - operation_id = operation_id_path.rsplit("/")[-1] - operation_response = get_operation_status_func(operation_id) - - while operation_response.status == OperationStatusValues.in_progress.value: - self.context.sleep(5) - operation_response = get_operation_status_func(operation_id) - - operation_response = get_operation_status_func(operation_id) - self.context.assertEqual(OperationStatusValues.succeeded.value, operation_response.status) - return operation_response.properties - - def _get_operation_response(self, raw_response, get_operation_result_func, get_operation_status_func): - operation_id_path = urlparse(raw_response.response.headers["Location"]).path - operation_id = operation_id_path.rsplit("/")[-1] - operation_response = get_operation_result_func(operation_id) - - while operation_response.response.status_code == 202: - self.context.sleep(5) - operation_response = get_operation_result_func(operation_id) - - if get_operation_status_func: - operation_status_response = get_operation_status_func(operation_id) - return operation_status_response.properties - - return operation_response diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/test_mgmt_recoveryservices_backup.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/test_mgmt_recoveryservices_backup.py deleted file mode 100644 index 9a79c1f71e48..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/tests/test_mgmt_recoveryservices_backup.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- -import time -import unittest -from contextlib import contextmanager - -import azure.mgmt.recoveryservicesbackup -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer -from recoveryservicesbackup_testcase import MgmtRecoveryServicesBackupTestDefinition, MgmtRecoveryServicesBackupTestHelper - - -class MgmtRecoveryServicesBackupTests(AzureMgmtTestCase): - - def setUp(self): - super(MgmtRecoveryServicesBackupTests, self).setUp() - - self.vault_client = self.create_mgmt_client( - azure.mgmt.recoveryservices.RecoveryServicesClient - ) - self.backup_client = self.create_mgmt_client( - azure.mgmt.recoveryservicesbackup.RecoveryServicesBackupClient - ) - - # Using pre-existing vault until vault client is available - self.resource_group_name = "PythonSDKBackupTestRg" - self.group_name = self.resource_group_name - self.vault_name = "PySDKBackupTestRsVault" - self.test_definition = MgmtRecoveryServicesBackupTestDefinition(self.settings.SUBSCRIPTION_ID, self.vault_name, self.resource_group_name) - self.test_helper = MgmtRecoveryServicesBackupTestHelper(self) - self.region = "southeastasia" - - def sleep(self, duration): - if self.is_live: - time.sleep(duration) - - @contextmanager - def vault(self): - self.test_helper.create_vault() - yield - self.test_helper.delete_vault() - - @ResourceGroupPreparer() - def test_iaasvm_e2e(self, resource_group, location): - raise unittest.SkipTest("Skipping IAA VM test") - with self.vault(): - self.test_helper.enable_protection(self.test_definition.container_name, self.test_definition.vm_name, "DefaultPolicy") - - protected_items = self.test_helper.list_protected_items() - self.assertIsNotNone(protected_items) - protected_items = list(protected_items) - protected_item = next(protected_item for protected_item in protected_items - if protected_item.name.lower() == self.test_definition.vm_name.lower()).properties - - # Trigger Backup - backup_job_id = self.test_helper.trigger_backup(self.test_definition.container_name, self.test_definition.vm_name) - - backup_jobs = self.test_helper.list_backup_jobs() - self.assertIsNotNone(backup_jobs) - backup_jobs = list(backup_jobs) - self.assertTrue(any(backup_job_id == backup_job.name for backup_job in backup_jobs)) - - self.test_helper.wait_for_job_completion(backup_job_id) - - recovery_points = self.test_helper.list_recovery_points(self.test_definition.container_name, self.test_definition.vm_name) - self.assertIsNotNone(recovery_points) - recovery_points = list(recovery_points) - self.assertTrue(any(recovery_points)) - - recovery_point = recovery_points[0] - self.assertIsNotNone(recovery_point) - - # Trigger Restore - restore_job_id = self.test_helper.trigger_restore(self.test_definition.container_name, self.test_definition.vm_name, recovery_point.name, - protected_item.virtual_machine_id, self.test_definition.storage_account_id) - backup_jobs = self.test_helper.list_backup_jobs() - self.assertIsNotNone(backup_jobs) - backup_jobs = list(backup_jobs) - self.assertTrue(any(restore_job_id == backup_job.name for backup_job in backup_jobs)) - - self.test_helper.wait_for_job_completion(restore_job_id) - - # Provision ILR - self.test_helper.provision_item_level_recovery(self.test_definition.container_name, self.test_definition.vm_name, - recovery_point.name, protected_item.virtual_machine_id) - - # Revoke ILR - self.test_helper.revoke_item_level_recovery(self.test_definition.container_name, self.test_definition.vm_name, recovery_point.name) - - self.test_helper.disable_protection_with_retain_data(self.test_definition.container_name, self.test_definition.vm_name, protected_item) - - # Disable Protection - self.test_helper.delete_protection(self.test_definition.container_name, self.test_definition.vm_name) - - def test_operations_api(self): - operations = self.test_helper.list_operations() - self.assertIsNotNone(operations) - self.assertTrue(any(operations)) diff --git a/sdk/recoveryservices/ci.yml b/sdk/recoveryservices/ci.yml index 7567767c90c0..837d6e053184 100644 --- a/sdk/recoveryservices/ci.yml +++ b/sdk/recoveryservices/ci.yml @@ -32,5 +32,4 @@ extends: Artifacts: - name: azure-mgmt-recoveryservices safeName: azuremgmtrecoveryservices - - name: azure-mgmt-recoveryservicesbackup - safeName: azuremgmtrecoveryservicesbackup +