diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/__init__.py index dc28cc5bb312..6e83985e57af 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .recovery_services_client import RecoveryServicesClient -from .version import VERSION +from ._configuration import RecoveryServicesClientConfiguration +from ._recovery_services_client import RecoveryServicesClient +__all__ = ['RecoveryServicesClient', 'RecoveryServicesClientConfiguration'] -__all__ = ['RecoveryServicesClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_configuration.py new file mode 100644 index 000000000000..c2221f586f08 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_configuration.py @@ -0,0 +1,48 @@ +# 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 RecoveryServicesClientConfiguration(AzureConfiguration): + """Configuration for RecoveryServicesClient + 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(RecoveryServicesClientConfiguration, 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-recoveryservices/{}'.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-recoveryservices/azure/mgmt/recoveryservices/recovery_services_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_recovery_services_client.py similarity index 67% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/recovery_services_client.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_recovery_services_client.py index de5f14e862c4..c6cf5aafa8d4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/recovery_services_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_recovery_services_client.py @@ -11,49 +11,17 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.vault_certificates_operations import VaultCertificatesOperations -from .operations.registered_identities_operations import RegisteredIdentitiesOperations -from .operations.replication_usages_operations import ReplicationUsagesOperations -from .operations.recovery_services_operations import RecoveryServicesOperations -from .operations.vaults_operations import VaultsOperations -from .operations.operations import Operations -from .operations.vault_extended_info_operations import VaultExtendedInfoOperations -from .operations.usages_operations import UsagesOperations -from . import models - - -class RecoveryServicesClientConfiguration(AzureConfiguration): - """Configuration for RecoveryServicesClient - 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(RecoveryServicesClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-recoveryservices/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import RecoveryServicesClientConfiguration +from .operations import VaultCertificatesOperations +from .operations import RegisteredIdentitiesOperations +from .operations import ReplicationUsagesOperations +from .operations import RecoveryServicesOperations +from .operations import VaultsOperations +from .operations import Operations +from .operations import VaultExtendedInfoOperations +from .operations import UsagesOperations +from . import models class RecoveryServicesClient(SDKClient): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py index 3e69c14087ea..32c6d919fe55 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py @@ -10,68 +10,68 @@ # -------------------------------------------------------------------------- try: - from .raw_certificate_data_py3 import RawCertificateData - from .certificate_request_py3 import CertificateRequest - from .resource_certificate_and_aad_details_py3 import ResourceCertificateAndAadDetails - from .resource_certificate_and_acs_details_py3 import ResourceCertificateAndAcsDetails - from .resource_certificate_details_py3 import ResourceCertificateDetails - from .vault_certificate_response_py3 import VaultCertificateResponse - from .jobs_summary_py3 import JobsSummary - from .monitoring_summary_py3 import MonitoringSummary - from .replication_usage_py3 import ReplicationUsage - from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters - from .check_name_availability_result_py3 import CheckNameAvailabilityResult - from .check_name_availability_result_resource_py3 import CheckNameAvailabilityResultResource - from .client_discovery_display_py3 import ClientDiscoveryDisplay - from .client_discovery_for_log_specification_py3 import ClientDiscoveryForLogSpecification - from .client_discovery_for_service_specification_py3 import ClientDiscoveryForServiceSpecification - from .client_discovery_for_properties_py3 import ClientDiscoveryForProperties - from .client_discovery_value_for_single_api_py3 import ClientDiscoveryValueForSingleApi - from .resource_py3 import Resource - from .sku_py3 import Sku - from .tracked_resource_py3 import TrackedResource - from .patch_tracked_resource_py3 import PatchTrackedResource - from .upgrade_details_py3 import UpgradeDetails - from .vault_properties_py3 import VaultProperties - from .vault_py3 import Vault - from .patch_vault_py3 import PatchVault - from .vault_extended_info_resource_py3 import VaultExtendedInfoResource - from .name_info_py3 import NameInfo - from .vault_usage_py3 import VaultUsage + from ._models_py3 import CertificateRequest + from ._models_py3 import CheckNameAvailabilityParameters + from ._models_py3 import CheckNameAvailabilityResult + from ._models_py3 import CheckNameAvailabilityResultResource + 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 JobsSummary + from ._models_py3 import MonitoringSummary + from ._models_py3 import NameInfo + from ._models_py3 import PatchTrackedResource + from ._models_py3 import PatchVault + from ._models_py3 import RawCertificateData + from ._models_py3 import ReplicationUsage + from ._models_py3 import Resource + from ._models_py3 import ResourceCertificateAndAadDetails + from ._models_py3 import ResourceCertificateAndAcsDetails + from ._models_py3 import ResourceCertificateDetails + from ._models_py3 import Sku + from ._models_py3 import TrackedResource + from ._models_py3 import UpgradeDetails + from ._models_py3 import Vault + from ._models_py3 import VaultCertificateResponse + from ._models_py3 import VaultExtendedInfoResource + from ._models_py3 import VaultProperties + from ._models_py3 import VaultUsage except (SyntaxError, ImportError): - from .raw_certificate_data import RawCertificateData - from .certificate_request import CertificateRequest - from .resource_certificate_and_aad_details import ResourceCertificateAndAadDetails - from .resource_certificate_and_acs_details import ResourceCertificateAndAcsDetails - from .resource_certificate_details import ResourceCertificateDetails - from .vault_certificate_response import VaultCertificateResponse - from .jobs_summary import JobsSummary - from .monitoring_summary import MonitoringSummary - from .replication_usage import ReplicationUsage - from .check_name_availability_parameters import CheckNameAvailabilityParameters - from .check_name_availability_result import CheckNameAvailabilityResult - from .check_name_availability_result_resource import CheckNameAvailabilityResultResource - from .client_discovery_display import ClientDiscoveryDisplay - from .client_discovery_for_log_specification import ClientDiscoveryForLogSpecification - from .client_discovery_for_service_specification import ClientDiscoveryForServiceSpecification - from .client_discovery_for_properties import ClientDiscoveryForProperties - from .client_discovery_value_for_single_api import ClientDiscoveryValueForSingleApi - from .resource import Resource - from .sku import Sku - from .tracked_resource import TrackedResource - from .patch_tracked_resource import PatchTrackedResource - from .upgrade_details import UpgradeDetails - from .vault_properties import VaultProperties - from .vault import Vault - from .patch_vault import PatchVault - from .vault_extended_info_resource import VaultExtendedInfoResource - from .name_info import NameInfo - from .vault_usage import VaultUsage -from .replication_usage_paged import ReplicationUsagePaged -from .vault_paged import VaultPaged -from .client_discovery_value_for_single_api_paged import ClientDiscoveryValueForSingleApiPaged -from .vault_usage_paged import VaultUsagePaged -from .recovery_services_client_enums import ( + from ._models import CertificateRequest + from ._models import CheckNameAvailabilityParameters + from ._models import CheckNameAvailabilityResult + from ._models import CheckNameAvailabilityResultResource + from ._models import ClientDiscoveryDisplay + from ._models import ClientDiscoveryForLogSpecification + from ._models import ClientDiscoveryForProperties + from ._models import ClientDiscoveryForServiceSpecification + from ._models import ClientDiscoveryValueForSingleApi + from ._models import JobsSummary + from ._models import MonitoringSummary + from ._models import NameInfo + from ._models import PatchTrackedResource + from ._models import PatchVault + from ._models import RawCertificateData + from ._models import ReplicationUsage + from ._models import Resource + from ._models import ResourceCertificateAndAadDetails + from ._models import ResourceCertificateAndAcsDetails + from ._models import ResourceCertificateDetails + from ._models import Sku + from ._models import TrackedResource + from ._models import UpgradeDetails + from ._models import Vault + from ._models import VaultCertificateResponse + from ._models import VaultExtendedInfoResource + from ._models import VaultProperties + from ._models import VaultUsage +from ._paged_models import ClientDiscoveryValueForSingleApiPaged +from ._paged_models import ReplicationUsagePaged +from ._paged_models import VaultPaged +from ._paged_models import VaultUsagePaged +from ._recovery_services_client_enums import ( AuthType, SkuName, VaultUpgradeState, @@ -80,33 +80,33 @@ ) __all__ = [ - 'RawCertificateData', 'CertificateRequest', - 'ResourceCertificateAndAadDetails', - 'ResourceCertificateAndAcsDetails', - 'ResourceCertificateDetails', - 'VaultCertificateResponse', - 'JobsSummary', - 'MonitoringSummary', - 'ReplicationUsage', 'CheckNameAvailabilityParameters', 'CheckNameAvailabilityResult', 'CheckNameAvailabilityResultResource', 'ClientDiscoveryDisplay', 'ClientDiscoveryForLogSpecification', - 'ClientDiscoveryForServiceSpecification', 'ClientDiscoveryForProperties', + 'ClientDiscoveryForServiceSpecification', 'ClientDiscoveryValueForSingleApi', + 'JobsSummary', + 'MonitoringSummary', + 'NameInfo', + 'PatchTrackedResource', + 'PatchVault', + 'RawCertificateData', + 'ReplicationUsage', 'Resource', + 'ResourceCertificateAndAadDetails', + 'ResourceCertificateAndAcsDetails', + 'ResourceCertificateDetails', 'Sku', 'TrackedResource', - 'PatchTrackedResource', 'UpgradeDetails', - 'VaultProperties', 'Vault', - 'PatchVault', + 'VaultCertificateResponse', 'VaultExtendedInfoResource', - 'NameInfo', + 'VaultProperties', 'VaultUsage', 'ReplicationUsagePaged', 'VaultPaged', diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py new file mode 100644 index 000000000000..931206846182 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py @@ -0,0 +1,1057 @@ +# 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 CertificateRequest(Model): + """Details of the certificate to be uploaded to the vault. + + :param properties: + :type properties: ~azure.mgmt.recoveryservices.models.RawCertificateData + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'RawCertificateData'}, + } + + def __init__(self, **kwargs): + super(CertificateRequest, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class CheckNameAvailabilityParameters(Model): + """Resource Name availability input parameters - Resource type and resource + name. + + :param type: Describes the Resource type: + Microsoft.RecoveryServices/Vaults + :type type: str + :param name: Resource name for which availability needs to be checked + :type name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.name = kwargs.get('name', None) + + +class CheckNameAvailabilityResult(Model): + """Response for check name availability API. Resource provider will set + availability as true | false. + + :param name_available: + :type name_available: bool + :param reason: + :type reason: str + :param message: + :type message: str + """ + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityResult, self).__init__(**kwargs) + self.name_available = kwargs.get('name_available', None) + self.reason = kwargs.get('reason', None) + self.message = kwargs.get('message', None) + + +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 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'}, + '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.e_tag = kwargs.get('e_tag', None) + + +class CheckNameAvailabilityResultResource(Resource): + """Response for check name availability API. Resource provider will set + availability as true | false. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: CheckNameAvailabilityResultResource properties + :type properties: + ~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityResultResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +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 of the log. + :type name: str + :param display_name: Localized display name + :type display_name: str + :param blob_duration: Blobs created in customer storage account per hour + :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.recoveryservices.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.recoveryservices.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.recoveryservices.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.recoveryservices.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 CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class JobsSummary(Model): + """Summary of the replication job data for this vault. + + :param failed_jobs: Count of failed jobs. + :type failed_jobs: int + :param suspended_jobs: Count of suspended jobs. + :type suspended_jobs: int + :param in_progress_jobs: Count of in-progress jobs. + :type in_progress_jobs: int + """ + + _attribute_map = { + 'failed_jobs': {'key': 'failedJobs', 'type': 'int'}, + 'suspended_jobs': {'key': 'suspendedJobs', 'type': 'int'}, + 'in_progress_jobs': {'key': 'inProgressJobs', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(JobsSummary, self).__init__(**kwargs) + self.failed_jobs = kwargs.get('failed_jobs', None) + self.suspended_jobs = kwargs.get('suspended_jobs', None) + self.in_progress_jobs = kwargs.get('in_progress_jobs', None) + + +class MonitoringSummary(Model): + """Summary of the replication monitoring data for this vault. + + :param un_healthy_vm_count: Count of unhealthy VMs. + :type un_healthy_vm_count: int + :param un_healthy_provider_count: Count of unhealthy replication + providers. + :type un_healthy_provider_count: int + :param events_count: Count of all critical warnings. + :type events_count: int + :param deprecated_provider_count: Count of all deprecated recovery service + providers. + :type deprecated_provider_count: int + :param supported_provider_count: Count of all the supported recovery + service providers. + :type supported_provider_count: int + :param unsupported_provider_count: Count of all the unsupported recovery + service providers. + :type unsupported_provider_count: int + """ + + _attribute_map = { + 'un_healthy_vm_count': {'key': 'unHealthyVmCount', 'type': 'int'}, + 'un_healthy_provider_count': {'key': 'unHealthyProviderCount', 'type': 'int'}, + 'events_count': {'key': 'eventsCount', 'type': 'int'}, + 'deprecated_provider_count': {'key': 'deprecatedProviderCount', 'type': 'int'}, + 'supported_provider_count': {'key': 'supportedProviderCount', 'type': 'int'}, + 'unsupported_provider_count': {'key': 'unsupportedProviderCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MonitoringSummary, self).__init__(**kwargs) + self.un_healthy_vm_count = kwargs.get('un_healthy_vm_count', None) + self.un_healthy_provider_count = kwargs.get('un_healthy_provider_count', None) + self.events_count = kwargs.get('events_count', None) + self.deprecated_provider_count = kwargs.get('deprecated_provider_count', None) + self.supported_provider_count = kwargs.get('supported_provider_count', None) + self.unsupported_provider_count = kwargs.get('unsupported_provider_count', 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 PatchTrackedResource(Resource): + """Tracked resource with location. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, 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'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(PatchTrackedResource, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class PatchVault(PatchTrackedResource): + """Patch Resource information, as returned by the resource provider. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param properties: + :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties + :param sku: + :type sku: ~azure.mgmt.recoveryservices.models.Sku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'VaultProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + } + + def __init__(self, **kwargs): + super(PatchVault, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.sku = kwargs.get('sku', None) + + +class RawCertificateData(Model): + """Raw certificate data. + + :param auth_type: Specifies the authentication type. Possible values + include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', + 'AzureActiveDirectory' + :type auth_type: str or ~azure.mgmt.recoveryservices.models.AuthType + :param certificate: The base64 encoded certificate raw data string + :type certificate: bytearray + """ + + _attribute_map = { + 'auth_type': {'key': 'authType', 'type': 'str'}, + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + } + + def __init__(self, **kwargs): + super(RawCertificateData, self).__init__(**kwargs) + self.auth_type = kwargs.get('auth_type', None) + self.certificate = kwargs.get('certificate', None) + + +class ReplicationUsage(Model): + """Replication usages of a vault. + + :param monitoring_summary: Summary of the replication monitoring data for + this vault. + :type monitoring_summary: + ~azure.mgmt.recoveryservices.models.MonitoringSummary + :param jobs_summary: Summary of the replication jobs data for this vault. + :type jobs_summary: ~azure.mgmt.recoveryservices.models.JobsSummary + :param protected_item_count: Number of replication protected items for + this vault. + :type protected_item_count: int + :param recovery_plan_count: Number of replication recovery plans for this + vault. + :type recovery_plan_count: int + :param registered_servers_count: Number of servers registered to this + vault. + :type registered_servers_count: int + :param recovery_services_provider_auth_type: The authentication type of + recovery service providers in the vault. + :type recovery_services_provider_auth_type: int + """ + + _attribute_map = { + 'monitoring_summary': {'key': 'monitoringSummary', 'type': 'MonitoringSummary'}, + 'jobs_summary': {'key': 'jobsSummary', 'type': 'JobsSummary'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'int'}, + 'recovery_plan_count': {'key': 'recoveryPlanCount', 'type': 'int'}, + 'registered_servers_count': {'key': 'registeredServersCount', 'type': 'int'}, + 'recovery_services_provider_auth_type': {'key': 'recoveryServicesProviderAuthType', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ReplicationUsage, self).__init__(**kwargs) + self.monitoring_summary = kwargs.get('monitoring_summary', None) + self.jobs_summary = kwargs.get('jobs_summary', None) + self.protected_item_count = kwargs.get('protected_item_count', None) + self.recovery_plan_count = kwargs.get('recovery_plan_count', None) + self.registered_servers_count = kwargs.get('registered_servers_count', None) + self.recovery_services_provider_auth_type = kwargs.get('recovery_services_provider_auth_type', None) + + +class ResourceCertificateDetails(Model): + """Certificate details representing the Vault credentials. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ResourceCertificateAndAadDetails, + ResourceCertificateAndAcsDetails + + All required parameters must be populated in order to send to Azure. + + :param certificate: The base64 encoded certificate raw data string. + :type certificate: bytearray + :param friendly_name: Certificate friendly name. + :type friendly_name: str + :param issuer: Certificate issuer. + :type issuer: str + :param resource_id: Resource ID of the vault. + :type resource_id: long + :param subject: Certificate Subject Name. + :type subject: str + :param thumbprint: Certificate thumbprint. + :type thumbprint: str + :param valid_from: Certificate Validity start Date time. + :type valid_from: datetime + :param valid_to: Certificate Validity End Date time. + :type valid_to: datetime + :param auth_type: Required. Constant filled by server. + :type auth_type: str + """ + + _validation = { + 'auth_type': {'required': True}, + } + + _attribute_map = { + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'long'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, + 'auth_type': {'key': 'authType', 'type': 'str'}, + } + + _subtype_map = { + 'auth_type': {'AzureActiveDirectory': 'ResourceCertificateAndAadDetails', 'AccessControlService': 'ResourceCertificateAndAcsDetails'} + } + + def __init__(self, **kwargs): + super(ResourceCertificateDetails, self).__init__(**kwargs) + self.certificate = kwargs.get('certificate', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.issuer = kwargs.get('issuer', None) + self.resource_id = kwargs.get('resource_id', None) + self.subject = kwargs.get('subject', None) + self.thumbprint = kwargs.get('thumbprint', None) + self.valid_from = kwargs.get('valid_from', None) + self.valid_to = kwargs.get('valid_to', None) + self.auth_type = None + + +class ResourceCertificateAndAadDetails(ResourceCertificateDetails): + """Certificate details representing the Vault credentials for AAD. + + All required parameters must be populated in order to send to Azure. + + :param certificate: The base64 encoded certificate raw data string. + :type certificate: bytearray + :param friendly_name: Certificate friendly name. + :type friendly_name: str + :param issuer: Certificate issuer. + :type issuer: str + :param resource_id: Resource ID of the vault. + :type resource_id: long + :param subject: Certificate Subject Name. + :type subject: str + :param thumbprint: Certificate thumbprint. + :type thumbprint: str + :param valid_from: Certificate Validity start Date time. + :type valid_from: datetime + :param valid_to: Certificate Validity End Date time. + :type valid_to: datetime + :param auth_type: Required. Constant filled by server. + :type auth_type: str + :param aad_authority: Required. AAD tenant authority. + :type aad_authority: str + :param aad_tenant_id: Required. AAD tenant Id. + :type aad_tenant_id: str + :param service_principal_client_id: Required. AAD service principal + clientId. + :type service_principal_client_id: str + :param service_principal_object_id: Required. AAD service principal + ObjectId. + :type service_principal_object_id: str + :param azure_management_endpoint_audience: Required. Azure Management + Endpoint Audience. + :type azure_management_endpoint_audience: str + """ + + _validation = { + 'auth_type': {'required': True}, + 'aad_authority': {'required': True}, + 'aad_tenant_id': {'required': True}, + 'service_principal_client_id': {'required': True}, + 'service_principal_object_id': {'required': True}, + 'azure_management_endpoint_audience': {'required': True}, + } + + _attribute_map = { + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'long'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, + 'auth_type': {'key': 'authType', 'type': 'str'}, + 'aad_authority': {'key': 'aadAuthority', 'type': 'str'}, + 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, + 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, + 'service_principal_object_id': {'key': 'servicePrincipalObjectId', 'type': 'str'}, + 'azure_management_endpoint_audience': {'key': 'azureManagementEndpointAudience', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceCertificateAndAadDetails, self).__init__(**kwargs) + self.aad_authority = kwargs.get('aad_authority', None) + self.aad_tenant_id = kwargs.get('aad_tenant_id', None) + self.service_principal_client_id = kwargs.get('service_principal_client_id', None) + self.service_principal_object_id = kwargs.get('service_principal_object_id', None) + self.azure_management_endpoint_audience = kwargs.get('azure_management_endpoint_audience', None) + self.auth_type = 'AzureActiveDirectory' + + +class ResourceCertificateAndAcsDetails(ResourceCertificateDetails): + """Certificate details representing the Vault credentials for ACS. + + All required parameters must be populated in order to send to Azure. + + :param certificate: The base64 encoded certificate raw data string. + :type certificate: bytearray + :param friendly_name: Certificate friendly name. + :type friendly_name: str + :param issuer: Certificate issuer. + :type issuer: str + :param resource_id: Resource ID of the vault. + :type resource_id: long + :param subject: Certificate Subject Name. + :type subject: str + :param thumbprint: Certificate thumbprint. + :type thumbprint: str + :param valid_from: Certificate Validity start Date time. + :type valid_from: datetime + :param valid_to: Certificate Validity End Date time. + :type valid_to: datetime + :param auth_type: Required. Constant filled by server. + :type auth_type: str + :param global_acs_namespace: Required. ACS namespace name - tenant for our + service. + :type global_acs_namespace: str + :param global_acs_host_name: Required. Acs mgmt host name to connect to. + :type global_acs_host_name: str + :param global_acs_rp_realm: Required. Global ACS namespace RP realm. + :type global_acs_rp_realm: str + """ + + _validation = { + 'auth_type': {'required': True}, + 'global_acs_namespace': {'required': True}, + 'global_acs_host_name': {'required': True}, + 'global_acs_rp_realm': {'required': True}, + } + + _attribute_map = { + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'long'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, + 'auth_type': {'key': 'authType', 'type': 'str'}, + 'global_acs_namespace': {'key': 'globalAcsNamespace', 'type': 'str'}, + 'global_acs_host_name': {'key': 'globalAcsHostName', 'type': 'str'}, + 'global_acs_rp_realm': {'key': 'globalAcsRPRealm', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceCertificateAndAcsDetails, self).__init__(**kwargs) + self.global_acs_namespace = kwargs.get('global_acs_namespace', None) + self.global_acs_host_name = kwargs.get('global_acs_host_name', None) + self.global_acs_rp_realm = kwargs.get('global_acs_rp_realm', None) + self.auth_type = 'AccessControlService' + + +class Sku(Model): + """Identifies the unique system identifier for each Azure resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The Sku name. Possible values include: 'Standard', + 'RS0' + :type name: str or ~azure.mgmt.recoveryservices.models.SkuName + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + + +class TrackedResource(Resource): + """Tracked resource with location. + + 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: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class UpgradeDetails(Model): + """Details for upgrading vault. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar operation_id: ID of the vault upgrade operation. + :vartype operation_id: str + :ivar start_time_utc: UTC time at which the upgrade operation has started. + :vartype start_time_utc: datetime + :ivar last_updated_time_utc: UTC time at which the upgrade operation + status was last updated. + :vartype last_updated_time_utc: datetime + :ivar end_time_utc: UTC time at which the upgrade operation has ended. + :vartype end_time_utc: datetime + :ivar status: Status of the vault upgrade operation. Possible values + include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' + :vartype status: str or + ~azure.mgmt.recoveryservices.models.VaultUpgradeState + :ivar message: Message to the user containing information about the + upgrade operation. + :vartype message: str + :ivar trigger_type: The way the vault upgrade was triggered. Possible + values include: 'UserTriggered', 'ForcedUpgrade' + :vartype trigger_type: str or + ~azure.mgmt.recoveryservices.models.TriggerType + :ivar upgraded_resource_id: Resource ID of the upgraded vault. + :vartype upgraded_resource_id: str + :ivar previous_resource_id: Resource ID of the vault before the upgrade. + :vartype previous_resource_id: str + """ + + _validation = { + 'operation_id': {'readonly': True}, + 'start_time_utc': {'readonly': True}, + 'last_updated_time_utc': {'readonly': True}, + 'end_time_utc': {'readonly': True}, + 'status': {'readonly': True}, + 'message': {'readonly': True}, + 'trigger_type': {'readonly': True}, + 'upgraded_resource_id': {'readonly': True}, + 'previous_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'start_time_utc': {'key': 'startTimeUtc', 'type': 'iso-8601'}, + 'last_updated_time_utc': {'key': 'lastUpdatedTimeUtc', 'type': 'iso-8601'}, + 'end_time_utc': {'key': 'endTimeUtc', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'trigger_type': {'key': 'triggerType', 'type': 'str'}, + 'upgraded_resource_id': {'key': 'upgradedResourceId', 'type': 'str'}, + 'previous_resource_id': {'key': 'previousResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpgradeDetails, self).__init__(**kwargs) + self.operation_id = None + self.start_time_utc = None + self.last_updated_time_utc = None + self.end_time_utc = None + self.status = None + self.message = None + self.trigger_type = None + self.upgraded_resource_id = None + self.previous_resource_id = None + + +class Vault(TrackedResource): + """Resource information, as returned by the resource provider. + + 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: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param properties: + :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties + :param sku: + :type sku: ~azure.mgmt.recoveryservices.models.Sku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'VaultProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + } + + def __init__(self, **kwargs): + super(Vault, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.sku = kwargs.get('sku', None) + + +class VaultCertificateResponse(Model): + """Certificate corresponding to a vault that can be used by clients to + register themselves with the vault. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :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 + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :param properties: + :type properties: + ~azure.mgmt.recoveryservices.models.ResourceCertificateDetails + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'id': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceCertificateDetails'}, + } + + def __init__(self, **kwargs): + super(VaultCertificateResponse, self).__init__(**kwargs) + self.name = None + self.type = None + self.id = None + self.properties = kwargs.get('properties', None) + + +class VaultExtendedInfoResource(Resource): + """Vault extended information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param integrity_key: Integrity key. + :type integrity_key: str + :param encryption_key: Encryption key. + :type encryption_key: str + :param encryption_key_thumbprint: Encryption key thumbprint. + :type encryption_key_thumbprint: str + :param algorithm: Algorithm for Vault ExtendedInfo + :type algorithm: 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'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'integrity_key': {'key': 'properties.integrityKey', 'type': 'str'}, + 'encryption_key': {'key': 'properties.encryptionKey', 'type': 'str'}, + 'encryption_key_thumbprint': {'key': 'properties.encryptionKeyThumbprint', 'type': 'str'}, + 'algorithm': {'key': 'properties.algorithm', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VaultExtendedInfoResource, self).__init__(**kwargs) + self.integrity_key = kwargs.get('integrity_key', None) + self.encryption_key = kwargs.get('encryption_key', None) + self.encryption_key_thumbprint = kwargs.get('encryption_key_thumbprint', None) + self.algorithm = kwargs.get('algorithm', None) + + +class VaultProperties(Model): + """Properties of the vault. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: Provisioning State. + :vartype provisioning_state: str + :param upgrade_details: + :type upgrade_details: ~azure.mgmt.recoveryservices.models.UpgradeDetails + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'upgrade_details': {'key': 'upgradeDetails', 'type': 'UpgradeDetails'}, + } + + def __init__(self, **kwargs): + super(VaultProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.upgrade_details = kwargs.get('upgrade_details', None) + + +class VaultUsage(Model): + """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.recoveryservices.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.recoveryservices.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(VaultUsage, 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models_py3.py new file mode 100644 index 000000000000..cbb83e7d9a67 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models_py3.py @@ -0,0 +1,1057 @@ +# 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 CertificateRequest(Model): + """Details of the certificate to be uploaded to the vault. + + :param properties: + :type properties: ~azure.mgmt.recoveryservices.models.RawCertificateData + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'RawCertificateData'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(CertificateRequest, self).__init__(**kwargs) + self.properties = properties + + +class CheckNameAvailabilityParameters(Model): + """Resource Name availability input parameters - Resource type and resource + name. + + :param type: Describes the Resource type: + Microsoft.RecoveryServices/Vaults + :type type: str + :param name: Resource name for which availability needs to be checked + :type name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, type: str=None, name: str=None, **kwargs) -> None: + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.type = type + self.name = name + + +class CheckNameAvailabilityResult(Model): + """Response for check name availability API. Resource provider will set + availability as true | false. + + :param name_available: + :type name_available: bool + :param reason: + :type reason: str + :param message: + :type message: str + """ + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, name_available: bool=None, reason: str=None, message: str=None, **kwargs) -> None: + super(CheckNameAvailabilityResult, self).__init__(**kwargs) + self.name_available = name_available + self.reason = reason + self.message = message + + +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 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'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + } + + def __init__(self, *, e_tag: str=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.e_tag = e_tag + + +class CheckNameAvailabilityResultResource(Resource): + """Response for check name availability API. Resource provider will set + availability as true | false. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: CheckNameAvailabilityResultResource properties + :type properties: + ~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'}, + } + + def __init__(self, *, e_tag: str=None, properties=None, **kwargs) -> None: + super(CheckNameAvailabilityResultResource, self).__init__(e_tag=e_tag, **kwargs) + self.properties = properties + + +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 of the log. + :type name: str + :param display_name: Localized display name + :type display_name: str + :param blob_duration: Blobs created in customer storage account per hour + :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.recoveryservices.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.recoveryservices.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.recoveryservices.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.recoveryservices.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 CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class JobsSummary(Model): + """Summary of the replication job data for this vault. + + :param failed_jobs: Count of failed jobs. + :type failed_jobs: int + :param suspended_jobs: Count of suspended jobs. + :type suspended_jobs: int + :param in_progress_jobs: Count of in-progress jobs. + :type in_progress_jobs: int + """ + + _attribute_map = { + 'failed_jobs': {'key': 'failedJobs', 'type': 'int'}, + 'suspended_jobs': {'key': 'suspendedJobs', 'type': 'int'}, + 'in_progress_jobs': {'key': 'inProgressJobs', 'type': 'int'}, + } + + def __init__(self, *, failed_jobs: int=None, suspended_jobs: int=None, in_progress_jobs: int=None, **kwargs) -> None: + super(JobsSummary, self).__init__(**kwargs) + self.failed_jobs = failed_jobs + self.suspended_jobs = suspended_jobs + self.in_progress_jobs = in_progress_jobs + + +class MonitoringSummary(Model): + """Summary of the replication monitoring data for this vault. + + :param un_healthy_vm_count: Count of unhealthy VMs. + :type un_healthy_vm_count: int + :param un_healthy_provider_count: Count of unhealthy replication + providers. + :type un_healthy_provider_count: int + :param events_count: Count of all critical warnings. + :type events_count: int + :param deprecated_provider_count: Count of all deprecated recovery service + providers. + :type deprecated_provider_count: int + :param supported_provider_count: Count of all the supported recovery + service providers. + :type supported_provider_count: int + :param unsupported_provider_count: Count of all the unsupported recovery + service providers. + :type unsupported_provider_count: int + """ + + _attribute_map = { + 'un_healthy_vm_count': {'key': 'unHealthyVmCount', 'type': 'int'}, + 'un_healthy_provider_count': {'key': 'unHealthyProviderCount', 'type': 'int'}, + 'events_count': {'key': 'eventsCount', 'type': 'int'}, + 'deprecated_provider_count': {'key': 'deprecatedProviderCount', 'type': 'int'}, + 'supported_provider_count': {'key': 'supportedProviderCount', 'type': 'int'}, + 'unsupported_provider_count': {'key': 'unsupportedProviderCount', 'type': 'int'}, + } + + def __init__(self, *, un_healthy_vm_count: int=None, un_healthy_provider_count: int=None, events_count: int=None, deprecated_provider_count: int=None, supported_provider_count: int=None, unsupported_provider_count: int=None, **kwargs) -> None: + super(MonitoringSummary, self).__init__(**kwargs) + self.un_healthy_vm_count = un_healthy_vm_count + self.un_healthy_provider_count = un_healthy_provider_count + self.events_count = events_count + self.deprecated_provider_count = deprecated_provider_count + self.supported_provider_count = supported_provider_count + self.unsupported_provider_count = unsupported_provider_count + + +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 PatchTrackedResource(Resource): + """Tracked resource with location. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, 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'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, e_tag: str=None, location: str=None, tags=None, **kwargs) -> None: + super(PatchTrackedResource, self).__init__(e_tag=e_tag, **kwargs) + self.location = location + self.tags = tags + + +class PatchVault(PatchTrackedResource): + """Patch Resource information, as returned by the resource provider. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param properties: + :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties + :param sku: + :type sku: ~azure.mgmt.recoveryservices.models.Sku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'VaultProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + } + + def __init__(self, *, e_tag: str=None, location: str=None, tags=None, properties=None, sku=None, **kwargs) -> None: + super(PatchVault, self).__init__(e_tag=e_tag, location=location, tags=tags, **kwargs) + self.properties = properties + self.sku = sku + + +class RawCertificateData(Model): + """Raw certificate data. + + :param auth_type: Specifies the authentication type. Possible values + include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', + 'AzureActiveDirectory' + :type auth_type: str or ~azure.mgmt.recoveryservices.models.AuthType + :param certificate: The base64 encoded certificate raw data string + :type certificate: bytearray + """ + + _attribute_map = { + 'auth_type': {'key': 'authType', 'type': 'str'}, + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + } + + def __init__(self, *, auth_type=None, certificate: bytearray=None, **kwargs) -> None: + super(RawCertificateData, self).__init__(**kwargs) + self.auth_type = auth_type + self.certificate = certificate + + +class ReplicationUsage(Model): + """Replication usages of a vault. + + :param monitoring_summary: Summary of the replication monitoring data for + this vault. + :type monitoring_summary: + ~azure.mgmt.recoveryservices.models.MonitoringSummary + :param jobs_summary: Summary of the replication jobs data for this vault. + :type jobs_summary: ~azure.mgmt.recoveryservices.models.JobsSummary + :param protected_item_count: Number of replication protected items for + this vault. + :type protected_item_count: int + :param recovery_plan_count: Number of replication recovery plans for this + vault. + :type recovery_plan_count: int + :param registered_servers_count: Number of servers registered to this + vault. + :type registered_servers_count: int + :param recovery_services_provider_auth_type: The authentication type of + recovery service providers in the vault. + :type recovery_services_provider_auth_type: int + """ + + _attribute_map = { + 'monitoring_summary': {'key': 'monitoringSummary', 'type': 'MonitoringSummary'}, + 'jobs_summary': {'key': 'jobsSummary', 'type': 'JobsSummary'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'int'}, + 'recovery_plan_count': {'key': 'recoveryPlanCount', 'type': 'int'}, + 'registered_servers_count': {'key': 'registeredServersCount', 'type': 'int'}, + 'recovery_services_provider_auth_type': {'key': 'recoveryServicesProviderAuthType', 'type': 'int'}, + } + + def __init__(self, *, monitoring_summary=None, jobs_summary=None, protected_item_count: int=None, recovery_plan_count: int=None, registered_servers_count: int=None, recovery_services_provider_auth_type: int=None, **kwargs) -> None: + super(ReplicationUsage, self).__init__(**kwargs) + self.monitoring_summary = monitoring_summary + self.jobs_summary = jobs_summary + self.protected_item_count = protected_item_count + self.recovery_plan_count = recovery_plan_count + self.registered_servers_count = registered_servers_count + self.recovery_services_provider_auth_type = recovery_services_provider_auth_type + + +class ResourceCertificateDetails(Model): + """Certificate details representing the Vault credentials. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ResourceCertificateAndAadDetails, + ResourceCertificateAndAcsDetails + + All required parameters must be populated in order to send to Azure. + + :param certificate: The base64 encoded certificate raw data string. + :type certificate: bytearray + :param friendly_name: Certificate friendly name. + :type friendly_name: str + :param issuer: Certificate issuer. + :type issuer: str + :param resource_id: Resource ID of the vault. + :type resource_id: long + :param subject: Certificate Subject Name. + :type subject: str + :param thumbprint: Certificate thumbprint. + :type thumbprint: str + :param valid_from: Certificate Validity start Date time. + :type valid_from: datetime + :param valid_to: Certificate Validity End Date time. + :type valid_to: datetime + :param auth_type: Required. Constant filled by server. + :type auth_type: str + """ + + _validation = { + 'auth_type': {'required': True}, + } + + _attribute_map = { + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'long'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, + 'auth_type': {'key': 'authType', 'type': 'str'}, + } + + _subtype_map = { + 'auth_type': {'AzureActiveDirectory': 'ResourceCertificateAndAadDetails', 'AccessControlService': 'ResourceCertificateAndAcsDetails'} + } + + def __init__(self, *, certificate: bytearray=None, friendly_name: str=None, issuer: str=None, resource_id: int=None, subject: str=None, thumbprint: str=None, valid_from=None, valid_to=None, **kwargs) -> None: + super(ResourceCertificateDetails, self).__init__(**kwargs) + self.certificate = certificate + self.friendly_name = friendly_name + self.issuer = issuer + self.resource_id = resource_id + self.subject = subject + self.thumbprint = thumbprint + self.valid_from = valid_from + self.valid_to = valid_to + self.auth_type = None + + +class ResourceCertificateAndAadDetails(ResourceCertificateDetails): + """Certificate details representing the Vault credentials for AAD. + + All required parameters must be populated in order to send to Azure. + + :param certificate: The base64 encoded certificate raw data string. + :type certificate: bytearray + :param friendly_name: Certificate friendly name. + :type friendly_name: str + :param issuer: Certificate issuer. + :type issuer: str + :param resource_id: Resource ID of the vault. + :type resource_id: long + :param subject: Certificate Subject Name. + :type subject: str + :param thumbprint: Certificate thumbprint. + :type thumbprint: str + :param valid_from: Certificate Validity start Date time. + :type valid_from: datetime + :param valid_to: Certificate Validity End Date time. + :type valid_to: datetime + :param auth_type: Required. Constant filled by server. + :type auth_type: str + :param aad_authority: Required. AAD tenant authority. + :type aad_authority: str + :param aad_tenant_id: Required. AAD tenant Id. + :type aad_tenant_id: str + :param service_principal_client_id: Required. AAD service principal + clientId. + :type service_principal_client_id: str + :param service_principal_object_id: Required. AAD service principal + ObjectId. + :type service_principal_object_id: str + :param azure_management_endpoint_audience: Required. Azure Management + Endpoint Audience. + :type azure_management_endpoint_audience: str + """ + + _validation = { + 'auth_type': {'required': True}, + 'aad_authority': {'required': True}, + 'aad_tenant_id': {'required': True}, + 'service_principal_client_id': {'required': True}, + 'service_principal_object_id': {'required': True}, + 'azure_management_endpoint_audience': {'required': True}, + } + + _attribute_map = { + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'long'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, + 'auth_type': {'key': 'authType', 'type': 'str'}, + 'aad_authority': {'key': 'aadAuthority', 'type': 'str'}, + 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, + 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, + 'service_principal_object_id': {'key': 'servicePrincipalObjectId', 'type': 'str'}, + 'azure_management_endpoint_audience': {'key': 'azureManagementEndpointAudience', 'type': 'str'}, + } + + def __init__(self, *, aad_authority: str, aad_tenant_id: str, service_principal_client_id: str, service_principal_object_id: str, azure_management_endpoint_audience: str, certificate: bytearray=None, friendly_name: str=None, issuer: str=None, resource_id: int=None, subject: str=None, thumbprint: str=None, valid_from=None, valid_to=None, **kwargs) -> None: + super(ResourceCertificateAndAadDetails, self).__init__(certificate=certificate, friendly_name=friendly_name, issuer=issuer, resource_id=resource_id, subject=subject, thumbprint=thumbprint, valid_from=valid_from, valid_to=valid_to, **kwargs) + self.aad_authority = aad_authority + self.aad_tenant_id = aad_tenant_id + self.service_principal_client_id = service_principal_client_id + self.service_principal_object_id = service_principal_object_id + self.azure_management_endpoint_audience = azure_management_endpoint_audience + self.auth_type = 'AzureActiveDirectory' + + +class ResourceCertificateAndAcsDetails(ResourceCertificateDetails): + """Certificate details representing the Vault credentials for ACS. + + All required parameters must be populated in order to send to Azure. + + :param certificate: The base64 encoded certificate raw data string. + :type certificate: bytearray + :param friendly_name: Certificate friendly name. + :type friendly_name: str + :param issuer: Certificate issuer. + :type issuer: str + :param resource_id: Resource ID of the vault. + :type resource_id: long + :param subject: Certificate Subject Name. + :type subject: str + :param thumbprint: Certificate thumbprint. + :type thumbprint: str + :param valid_from: Certificate Validity start Date time. + :type valid_from: datetime + :param valid_to: Certificate Validity End Date time. + :type valid_to: datetime + :param auth_type: Required. Constant filled by server. + :type auth_type: str + :param global_acs_namespace: Required. ACS namespace name - tenant for our + service. + :type global_acs_namespace: str + :param global_acs_host_name: Required. Acs mgmt host name to connect to. + :type global_acs_host_name: str + :param global_acs_rp_realm: Required. Global ACS namespace RP realm. + :type global_acs_rp_realm: str + """ + + _validation = { + 'auth_type': {'required': True}, + 'global_acs_namespace': {'required': True}, + 'global_acs_host_name': {'required': True}, + 'global_acs_rp_realm': {'required': True}, + } + + _attribute_map = { + 'certificate': {'key': 'certificate', 'type': 'bytearray'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'long'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, + 'auth_type': {'key': 'authType', 'type': 'str'}, + 'global_acs_namespace': {'key': 'globalAcsNamespace', 'type': 'str'}, + 'global_acs_host_name': {'key': 'globalAcsHostName', 'type': 'str'}, + 'global_acs_rp_realm': {'key': 'globalAcsRPRealm', 'type': 'str'}, + } + + def __init__(self, *, global_acs_namespace: str, global_acs_host_name: str, global_acs_rp_realm: str, certificate: bytearray=None, friendly_name: str=None, issuer: str=None, resource_id: int=None, subject: str=None, thumbprint: str=None, valid_from=None, valid_to=None, **kwargs) -> None: + super(ResourceCertificateAndAcsDetails, self).__init__(certificate=certificate, friendly_name=friendly_name, issuer=issuer, resource_id=resource_id, subject=subject, thumbprint=thumbprint, valid_from=valid_from, valid_to=valid_to, **kwargs) + self.global_acs_namespace = global_acs_namespace + self.global_acs_host_name = global_acs_host_name + self.global_acs_rp_realm = global_acs_rp_realm + self.auth_type = 'AccessControlService' + + +class Sku(Model): + """Identifies the unique system identifier for each Azure resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The Sku name. Possible values include: 'Standard', + 'RS0' + :type name: str or ~azure.mgmt.recoveryservices.models.SkuName + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + + +class TrackedResource(Resource): + """Tracked resource with location. + + 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: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, e_tag: str=None, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(e_tag=e_tag, **kwargs) + self.location = location + self.tags = tags + + +class UpgradeDetails(Model): + """Details for upgrading vault. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar operation_id: ID of the vault upgrade operation. + :vartype operation_id: str + :ivar start_time_utc: UTC time at which the upgrade operation has started. + :vartype start_time_utc: datetime + :ivar last_updated_time_utc: UTC time at which the upgrade operation + status was last updated. + :vartype last_updated_time_utc: datetime + :ivar end_time_utc: UTC time at which the upgrade operation has ended. + :vartype end_time_utc: datetime + :ivar status: Status of the vault upgrade operation. Possible values + include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' + :vartype status: str or + ~azure.mgmt.recoveryservices.models.VaultUpgradeState + :ivar message: Message to the user containing information about the + upgrade operation. + :vartype message: str + :ivar trigger_type: The way the vault upgrade was triggered. Possible + values include: 'UserTriggered', 'ForcedUpgrade' + :vartype trigger_type: str or + ~azure.mgmt.recoveryservices.models.TriggerType + :ivar upgraded_resource_id: Resource ID of the upgraded vault. + :vartype upgraded_resource_id: str + :ivar previous_resource_id: Resource ID of the vault before the upgrade. + :vartype previous_resource_id: str + """ + + _validation = { + 'operation_id': {'readonly': True}, + 'start_time_utc': {'readonly': True}, + 'last_updated_time_utc': {'readonly': True}, + 'end_time_utc': {'readonly': True}, + 'status': {'readonly': True}, + 'message': {'readonly': True}, + 'trigger_type': {'readonly': True}, + 'upgraded_resource_id': {'readonly': True}, + 'previous_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'start_time_utc': {'key': 'startTimeUtc', 'type': 'iso-8601'}, + 'last_updated_time_utc': {'key': 'lastUpdatedTimeUtc', 'type': 'iso-8601'}, + 'end_time_utc': {'key': 'endTimeUtc', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'trigger_type': {'key': 'triggerType', 'type': 'str'}, + 'upgraded_resource_id': {'key': 'upgradedResourceId', 'type': 'str'}, + 'previous_resource_id': {'key': 'previousResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(UpgradeDetails, self).__init__(**kwargs) + self.operation_id = None + self.start_time_utc = None + self.last_updated_time_utc = None + self.end_time_utc = None + self.status = None + self.message = None + self.trigger_type = None + self.upgraded_resource_id = None + self.previous_resource_id = None + + +class Vault(TrackedResource): + """Resource information, as returned by the resource provider. + + 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: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param properties: + :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties + :param sku: + :type sku: ~azure.mgmt.recoveryservices.models.Sku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'VaultProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + } + + def __init__(self, *, location: str, e_tag: str=None, tags=None, properties=None, sku=None, **kwargs) -> None: + super(Vault, self).__init__(e_tag=e_tag, location=location, tags=tags, **kwargs) + self.properties = properties + self.sku = sku + + +class VaultCertificateResponse(Model): + """Certificate corresponding to a vault that can be used by clients to + register themselves with the vault. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :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 + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :param properties: + :type properties: + ~azure.mgmt.recoveryservices.models.ResourceCertificateDetails + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'id': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceCertificateDetails'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(VaultCertificateResponse, self).__init__(**kwargs) + self.name = None + self.type = None + self.id = None + self.properties = properties + + +class VaultExtendedInfoResource(Resource): + """Vault extended information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param e_tag: Optional ETag. + :type e_tag: str + :param integrity_key: Integrity key. + :type integrity_key: str + :param encryption_key: Encryption key. + :type encryption_key: str + :param encryption_key_thumbprint: Encryption key thumbprint. + :type encryption_key_thumbprint: str + :param algorithm: Algorithm for Vault ExtendedInfo + :type algorithm: 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'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'integrity_key': {'key': 'properties.integrityKey', 'type': 'str'}, + 'encryption_key': {'key': 'properties.encryptionKey', 'type': 'str'}, + 'encryption_key_thumbprint': {'key': 'properties.encryptionKeyThumbprint', 'type': 'str'}, + 'algorithm': {'key': 'properties.algorithm', 'type': 'str'}, + } + + def __init__(self, *, e_tag: str=None, integrity_key: str=None, encryption_key: str=None, encryption_key_thumbprint: str=None, algorithm: str=None, **kwargs) -> None: + super(VaultExtendedInfoResource, self).__init__(e_tag=e_tag, **kwargs) + self.integrity_key = integrity_key + self.encryption_key = encryption_key + self.encryption_key_thumbprint = encryption_key_thumbprint + self.algorithm = algorithm + + +class VaultProperties(Model): + """Properties of the vault. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: Provisioning State. + :vartype provisioning_state: str + :param upgrade_details: + :type upgrade_details: ~azure.mgmt.recoveryservices.models.UpgradeDetails + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'upgrade_details': {'key': 'upgradeDetails', 'type': 'UpgradeDetails'}, + } + + def __init__(self, *, upgrade_details=None, **kwargs) -> None: + super(VaultProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.upgrade_details = upgrade_details + + +class VaultUsage(Model): + """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.recoveryservices.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.recoveryservices.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(VaultUsage, 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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_paged_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_paged_models.py new file mode 100644 index 000000000000..640903b60974 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_paged_models.py @@ -0,0 +1,66 @@ +# 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 ReplicationUsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`ReplicationUsage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ReplicationUsage]'} + } + + def __init__(self, *args, **kwargs): + + super(ReplicationUsagePaged, self).__init__(*args, **kwargs) +class VaultPaged(Paged): + """ + A paging container for iterating over a list of :class:`Vault ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Vault]'} + } + + def __init__(self, *args, **kwargs): + + super(VaultPaged, 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) +class VaultUsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`VaultUsage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VaultUsage]'} + } + + def __init__(self, *args, **kwargs): + + super(VaultUsagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/recovery_services_client_enums.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_recovery_services_client_enums.py similarity index 100% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/recovery_services_client_enums.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_recovery_services_client_enums.py diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request.py deleted file mode 100644 index ff049a56dd47..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request.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 CertificateRequest(Model): - """Details of the certificate to be uploaded to the vault. - - :param properties: - :type properties: ~azure.mgmt.recoveryservices.models.RawCertificateData - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'RawCertificateData'}, - } - - def __init__(self, **kwargs): - super(CertificateRequest, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request_py3.py deleted file mode 100644 index 0d7d4498e01e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request_py3.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 CertificateRequest(Model): - """Details of the certificate to be uploaded to the vault. - - :param properties: - :type properties: ~azure.mgmt.recoveryservices.models.RawCertificateData - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'RawCertificateData'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(CertificateRequest, self).__init__(**kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters.py deleted file mode 100644 index 9dc03044fe8d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters.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 CheckNameAvailabilityParameters(Model): - """Resource Name availability input parameters - Resource type and resource - name. - - :param type: Describes the Resource type: - Microsoft.RecoveryServices/Vaults - :type type: str - :param name: Resource name for which availability needs to be checked - :type name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.name = kwargs.get('name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters_py3.py deleted file mode 100644 index 2c8a9d9bc51d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters_py3.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 CheckNameAvailabilityParameters(Model): - """Resource Name availability input parameters - Resource type and resource - name. - - :param type: Describes the Resource type: - Microsoft.RecoveryServices/Vaults - :type type: str - :param name: Resource name for which availability needs to be checked - :type name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, type: str=None, name: str=None, **kwargs) -> None: - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.type = type - self.name = name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result.py deleted file mode 100644 index 70dccf78ae56..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result.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 CheckNameAvailabilityResult(Model): - """Response for check name availability API. Resource provider will set - availability as true | false. - - :param name_available: - :type name_available: bool - :param reason: - :type reason: str - :param message: - :type message: str - """ - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityResult, self).__init__(**kwargs) - self.name_available = kwargs.get('name_available', None) - self.reason = kwargs.get('reason', None) - self.message = kwargs.get('message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_py3.py deleted file mode 100644 index 2b103c715075..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_py3.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 CheckNameAvailabilityResult(Model): - """Response for check name availability API. Resource provider will set - availability as true | false. - - :param name_available: - :type name_available: bool - :param reason: - :type reason: str - :param message: - :type message: str - """ - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, name_available: bool=None, reason: str=None, message: str=None, **kwargs) -> None: - super(CheckNameAvailabilityResult, self).__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource.py deleted file mode 100644 index 9e6e061c0b2d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource.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 .resource import Resource - - -class CheckNameAvailabilityResultResource(Resource): - """Response for check name availability API. Resource provider will set - availability as true | false. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: CheckNameAvailabilityResultResource properties - :type properties: - ~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityResultResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource_py3.py deleted file mode 100644 index f0ebc0557d83..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource_py3.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 .resource_py3 import Resource - - -class CheckNameAvailabilityResultResource(Resource): - """Response for check name availability API. Resource provider will set - availability as true | false. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: CheckNameAvailabilityResultResource properties - :type properties: - ~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'}, - } - - def __init__(self, *, e_tag: str=None, properties=None, **kwargs) -> None: - super(CheckNameAvailabilityResultResource, self).__init__(e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display.py deleted file mode 100644 index d9557c7b3122..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display.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 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display_py3.py deleted file mode 100644 index 61ce520a52bd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display_py3.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 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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification.py deleted file mode 100644 index 1bc515721f88..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification.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 msrest.serialization import Model - - -class ClientDiscoveryForLogSpecification(Model): - """Class to represent shoebox log specification in json client discovery. - - :param name: Name of the log. - :type name: str - :param display_name: Localized display name - :type display_name: str - :param blob_duration: Blobs created in customer storage account per hour - :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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification_py3.py deleted file mode 100644 index f1f246c1a207..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification_py3.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 msrest.serialization import Model - - -class ClientDiscoveryForLogSpecification(Model): - """Class to represent shoebox log specification in json client discovery. - - :param name: Name of the log. - :type name: str - :param display_name: Localized display name - :type display_name: str - :param blob_duration: Blobs created in customer storage account per hour - :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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_properties.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_properties.py deleted file mode 100644 index cd716c5f3e1f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_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 ClientDiscoveryForProperties(Model): - """Class to represent shoebox properties in json client discovery. - - :param service_specification: Operation properties. - :type service_specification: - ~azure.mgmt.recoveryservices.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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_properties_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_properties_py3.py deleted file mode 100644 index e0ba1d3ab791..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_properties_py3.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 ClientDiscoveryForProperties(Model): - """Class to represent shoebox properties in json client discovery. - - :param service_specification: Operation properties. - :type service_specification: - ~azure.mgmt.recoveryservices.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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification.py deleted file mode 100644 index 3fc38e4618c8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification.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 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.recoveryservices.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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification_py3.py deleted file mode 100644 index c53d86c7072a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification_py3.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 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.recoveryservices.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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api.py deleted file mode 100644 index 4d751b8e281e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api.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 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.recoveryservices.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.recoveryservices.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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_paged.py deleted file mode 100644 index e319d306f170..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_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 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-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_py3.py deleted file mode 100644 index 6dd23d38991b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_py3.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 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.recoveryservices.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.recoveryservices.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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary.py deleted file mode 100644 index ef94f069fb13..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary.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 msrest.serialization import Model - - -class JobsSummary(Model): - """Summary of the replication job data for this vault. - - :param failed_jobs: Count of failed jobs. - :type failed_jobs: int - :param suspended_jobs: Count of suspended jobs. - :type suspended_jobs: int - :param in_progress_jobs: Count of in-progress jobs. - :type in_progress_jobs: int - """ - - _attribute_map = { - 'failed_jobs': {'key': 'failedJobs', 'type': 'int'}, - 'suspended_jobs': {'key': 'suspendedJobs', 'type': 'int'}, - 'in_progress_jobs': {'key': 'inProgressJobs', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(JobsSummary, self).__init__(**kwargs) - self.failed_jobs = kwargs.get('failed_jobs', None) - self.suspended_jobs = kwargs.get('suspended_jobs', None) - self.in_progress_jobs = kwargs.get('in_progress_jobs', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary_py3.py deleted file mode 100644 index cc48f3d12e84..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary_py3.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 msrest.serialization import Model - - -class JobsSummary(Model): - """Summary of the replication job data for this vault. - - :param failed_jobs: Count of failed jobs. - :type failed_jobs: int - :param suspended_jobs: Count of suspended jobs. - :type suspended_jobs: int - :param in_progress_jobs: Count of in-progress jobs. - :type in_progress_jobs: int - """ - - _attribute_map = { - 'failed_jobs': {'key': 'failedJobs', 'type': 'int'}, - 'suspended_jobs': {'key': 'suspendedJobs', 'type': 'int'}, - 'in_progress_jobs': {'key': 'inProgressJobs', 'type': 'int'}, - } - - def __init__(self, *, failed_jobs: int=None, suspended_jobs: int=None, in_progress_jobs: int=None, **kwargs) -> None: - super(JobsSummary, self).__init__(**kwargs) - self.failed_jobs = failed_jobs - self.suspended_jobs = suspended_jobs - self.in_progress_jobs = in_progress_jobs diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary.py deleted file mode 100644 index 9e00d698a5d2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary.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 MonitoringSummary(Model): - """Summary of the replication monitoring data for this vault. - - :param un_healthy_vm_count: Count of unhealthy VMs. - :type un_healthy_vm_count: int - :param un_healthy_provider_count: Count of unhealthy replication - providers. - :type un_healthy_provider_count: int - :param events_count: Count of all critical warnings. - :type events_count: int - :param deprecated_provider_count: Count of all deprecated recovery service - providers. - :type deprecated_provider_count: int - :param supported_provider_count: Count of all the supported recovery - service providers. - :type supported_provider_count: int - :param unsupported_provider_count: Count of all the unsupported recovery - service providers. - :type unsupported_provider_count: int - """ - - _attribute_map = { - 'un_healthy_vm_count': {'key': 'unHealthyVmCount', 'type': 'int'}, - 'un_healthy_provider_count': {'key': 'unHealthyProviderCount', 'type': 'int'}, - 'events_count': {'key': 'eventsCount', 'type': 'int'}, - 'deprecated_provider_count': {'key': 'deprecatedProviderCount', 'type': 'int'}, - 'supported_provider_count': {'key': 'supportedProviderCount', 'type': 'int'}, - 'unsupported_provider_count': {'key': 'unsupportedProviderCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MonitoringSummary, self).__init__(**kwargs) - self.un_healthy_vm_count = kwargs.get('un_healthy_vm_count', None) - self.un_healthy_provider_count = kwargs.get('un_healthy_provider_count', None) - self.events_count = kwargs.get('events_count', None) - self.deprecated_provider_count = kwargs.get('deprecated_provider_count', None) - self.supported_provider_count = kwargs.get('supported_provider_count', None) - self.unsupported_provider_count = kwargs.get('unsupported_provider_count', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary_py3.py deleted file mode 100644 index 7b8ae0aacb01..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary_py3.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 MonitoringSummary(Model): - """Summary of the replication monitoring data for this vault. - - :param un_healthy_vm_count: Count of unhealthy VMs. - :type un_healthy_vm_count: int - :param un_healthy_provider_count: Count of unhealthy replication - providers. - :type un_healthy_provider_count: int - :param events_count: Count of all critical warnings. - :type events_count: int - :param deprecated_provider_count: Count of all deprecated recovery service - providers. - :type deprecated_provider_count: int - :param supported_provider_count: Count of all the supported recovery - service providers. - :type supported_provider_count: int - :param unsupported_provider_count: Count of all the unsupported recovery - service providers. - :type unsupported_provider_count: int - """ - - _attribute_map = { - 'un_healthy_vm_count': {'key': 'unHealthyVmCount', 'type': 'int'}, - 'un_healthy_provider_count': {'key': 'unHealthyProviderCount', 'type': 'int'}, - 'events_count': {'key': 'eventsCount', 'type': 'int'}, - 'deprecated_provider_count': {'key': 'deprecatedProviderCount', 'type': 'int'}, - 'supported_provider_count': {'key': 'supportedProviderCount', 'type': 'int'}, - 'unsupported_provider_count': {'key': 'unsupportedProviderCount', 'type': 'int'}, - } - - def __init__(self, *, un_healthy_vm_count: int=None, un_healthy_provider_count: int=None, events_count: int=None, deprecated_provider_count: int=None, supported_provider_count: int=None, unsupported_provider_count: int=None, **kwargs) -> None: - super(MonitoringSummary, self).__init__(**kwargs) - self.un_healthy_vm_count = un_healthy_vm_count - self.un_healthy_provider_count = un_healthy_provider_count - self.events_count = events_count - self.deprecated_provider_count = deprecated_provider_count - self.supported_provider_count = supported_provider_count - self.unsupported_provider_count = unsupported_provider_count diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info.py deleted file mode 100644 index fe124296d77a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info.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 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info_py3.py deleted file mode 100644 index 92ebeac4e05f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info_py3.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 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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_resource.py deleted file mode 100644 index 889a5e236720..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_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 .resource import Resource - - -class PatchTrackedResource(Resource): - """Tracked resource with location. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, 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'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(PatchTrackedResource, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_resource_py3.py deleted file mode 100644 index f79d055cde3a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_resource_py3.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 .resource_py3 import Resource - - -class PatchTrackedResource(Resource): - """Tracked resource with location. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, 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'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, e_tag: str=None, location: str=None, tags=None, **kwargs) -> None: - super(PatchTrackedResource, self).__init__(e_tag=e_tag, **kwargs) - self.location = location - self.tags = tags diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault.py deleted file mode 100644 index be99238e2e7e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault.py +++ /dev/null @@ -1,60 +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 .patch_tracked_resource import PatchTrackedResource - - -class PatchVault(PatchTrackedResource): - """Patch Resource information, as returned by the resource provider. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: - :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties - :param sku: - :type sku: ~azure.mgmt.recoveryservices.models.Sku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'VaultProperties'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - } - - def __init__(self, **kwargs): - super(PatchVault, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.sku = kwargs.get('sku', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault_py3.py deleted file mode 100644 index 2bb665fed593..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault_py3.py +++ /dev/null @@ -1,60 +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 .patch_tracked_resource_py3 import PatchTrackedResource - - -class PatchVault(PatchTrackedResource): - """Patch Resource information, as returned by the resource provider. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: - :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties - :param sku: - :type sku: ~azure.mgmt.recoveryservices.models.Sku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'VaultProperties'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - } - - def __init__(self, *, e_tag: str=None, location: str=None, tags=None, properties=None, sku=None, **kwargs) -> None: - super(PatchVault, self).__init__(e_tag=e_tag, location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data.py deleted file mode 100644 index fa5bd2cf14a6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data.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 RawCertificateData(Model): - """Raw certificate data. - - :param auth_type: Specifies the authentication type. Possible values - include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', - 'AzureActiveDirectory' - :type auth_type: str or ~azure.mgmt.recoveryservices.models.AuthType - :param certificate: The base64 encoded certificate raw data string - :type certificate: bytearray - """ - - _attribute_map = { - 'auth_type': {'key': 'authType', 'type': 'str'}, - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - } - - def __init__(self, **kwargs): - super(RawCertificateData, self).__init__(**kwargs) - self.auth_type = kwargs.get('auth_type', None) - self.certificate = kwargs.get('certificate', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data_py3.py deleted file mode 100644 index 49f735653918..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data_py3.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 RawCertificateData(Model): - """Raw certificate data. - - :param auth_type: Specifies the authentication type. Possible values - include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', - 'AzureActiveDirectory' - :type auth_type: str or ~azure.mgmt.recoveryservices.models.AuthType - :param certificate: The base64 encoded certificate raw data string - :type certificate: bytearray - """ - - _attribute_map = { - 'auth_type': {'key': 'authType', 'type': 'str'}, - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - } - - def __init__(self, *, auth_type=None, certificate: bytearray=None, **kwargs) -> None: - super(RawCertificateData, self).__init__(**kwargs) - self.auth_type = auth_type - self.certificate = certificate diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage.py deleted file mode 100644 index 1bbc9f04e5f3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage.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 ReplicationUsage(Model): - """Replication usages of a vault. - - :param monitoring_summary: Summary of the replication monitoring data for - this vault. - :type monitoring_summary: - ~azure.mgmt.recoveryservices.models.MonitoringSummary - :param jobs_summary: Summary of the replication jobs data for this vault. - :type jobs_summary: ~azure.mgmt.recoveryservices.models.JobsSummary - :param protected_item_count: Number of replication protected items for - this vault. - :type protected_item_count: int - :param recovery_plan_count: Number of replication recovery plans for this - vault. - :type recovery_plan_count: int - :param registered_servers_count: Number of servers registered to this - vault. - :type registered_servers_count: int - :param recovery_services_provider_auth_type: The authentication type of - recovery service providers in the vault. - :type recovery_services_provider_auth_type: int - """ - - _attribute_map = { - 'monitoring_summary': {'key': 'monitoringSummary', 'type': 'MonitoringSummary'}, - 'jobs_summary': {'key': 'jobsSummary', 'type': 'JobsSummary'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'int'}, - 'recovery_plan_count': {'key': 'recoveryPlanCount', 'type': 'int'}, - 'registered_servers_count': {'key': 'registeredServersCount', 'type': 'int'}, - 'recovery_services_provider_auth_type': {'key': 'recoveryServicesProviderAuthType', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ReplicationUsage, self).__init__(**kwargs) - self.monitoring_summary = kwargs.get('monitoring_summary', None) - self.jobs_summary = kwargs.get('jobs_summary', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.recovery_plan_count = kwargs.get('recovery_plan_count', None) - self.registered_servers_count = kwargs.get('registered_servers_count', None) - self.recovery_services_provider_auth_type = kwargs.get('recovery_services_provider_auth_type', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_paged.py deleted file mode 100644 index 8e7b07abb7ae..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_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 ReplicationUsagePaged(Paged): - """ - A paging container for iterating over a list of :class:`ReplicationUsage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ReplicationUsage]'} - } - - def __init__(self, *args, **kwargs): - - super(ReplicationUsagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_py3.py deleted file mode 100644 index 39603411f575..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_py3.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 ReplicationUsage(Model): - """Replication usages of a vault. - - :param monitoring_summary: Summary of the replication monitoring data for - this vault. - :type monitoring_summary: - ~azure.mgmt.recoveryservices.models.MonitoringSummary - :param jobs_summary: Summary of the replication jobs data for this vault. - :type jobs_summary: ~azure.mgmt.recoveryservices.models.JobsSummary - :param protected_item_count: Number of replication protected items for - this vault. - :type protected_item_count: int - :param recovery_plan_count: Number of replication recovery plans for this - vault. - :type recovery_plan_count: int - :param registered_servers_count: Number of servers registered to this - vault. - :type registered_servers_count: int - :param recovery_services_provider_auth_type: The authentication type of - recovery service providers in the vault. - :type recovery_services_provider_auth_type: int - """ - - _attribute_map = { - 'monitoring_summary': {'key': 'monitoringSummary', 'type': 'MonitoringSummary'}, - 'jobs_summary': {'key': 'jobsSummary', 'type': 'JobsSummary'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'int'}, - 'recovery_plan_count': {'key': 'recoveryPlanCount', 'type': 'int'}, - 'registered_servers_count': {'key': 'registeredServersCount', 'type': 'int'}, - 'recovery_services_provider_auth_type': {'key': 'recoveryServicesProviderAuthType', 'type': 'int'}, - } - - def __init__(self, *, monitoring_summary=None, jobs_summary=None, protected_item_count: int=None, recovery_plan_count: int=None, registered_servers_count: int=None, recovery_services_provider_auth_type: int=None, **kwargs) -> None: - super(ReplicationUsage, self).__init__(**kwargs) - self.monitoring_summary = monitoring_summary - self.jobs_summary = jobs_summary - self.protected_item_count = protected_item_count - self.recovery_plan_count = recovery_plan_count - self.registered_servers_count = registered_servers_count - self.recovery_services_provider_auth_type = recovery_services_provider_auth_type diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource.py deleted file mode 100644 index 07459742118d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource.py +++ /dev/null @@ -1,50 +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): - """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 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'}, - '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.e_tag = kwargs.get('e_tag', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details.py deleted file mode 100644 index 130274fd482b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details.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_certificate_details import ResourceCertificateDetails - - -class ResourceCertificateAndAadDetails(ResourceCertificateDetails): - """Certificate details representing the Vault credentials for AAD. - - All required parameters must be populated in order to send to Azure. - - :param certificate: The base64 encoded certificate raw data string. - :type certificate: bytearray - :param friendly_name: Certificate friendly name. - :type friendly_name: str - :param issuer: Certificate issuer. - :type issuer: str - :param resource_id: Resource ID of the vault. - :type resource_id: long - :param subject: Certificate Subject Name. - :type subject: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str - :param valid_from: Certificate Validity start Date time. - :type valid_from: datetime - :param valid_to: Certificate Validity End Date time. - :type valid_to: datetime - :param auth_type: Required. Constant filled by server. - :type auth_type: str - :param aad_authority: Required. AAD tenant authority. - :type aad_authority: str - :param aad_tenant_id: Required. AAD tenant Id. - :type aad_tenant_id: str - :param service_principal_client_id: Required. AAD service principal - clientId. - :type service_principal_client_id: str - :param service_principal_object_id: Required. AAD service principal - ObjectId. - :type service_principal_object_id: str - :param azure_management_endpoint_audience: Required. Azure Management - Endpoint Audience. - :type azure_management_endpoint_audience: str - """ - - _validation = { - 'auth_type': {'required': True}, - 'aad_authority': {'required': True}, - 'aad_tenant_id': {'required': True}, - 'service_principal_client_id': {'required': True}, - 'service_principal_object_id': {'required': True}, - 'azure_management_endpoint_audience': {'required': True}, - } - - _attribute_map = { - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'long'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, - 'auth_type': {'key': 'authType', 'type': 'str'}, - 'aad_authority': {'key': 'aadAuthority', 'type': 'str'}, - 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'service_principal_object_id': {'key': 'servicePrincipalObjectId', 'type': 'str'}, - 'azure_management_endpoint_audience': {'key': 'azureManagementEndpointAudience', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceCertificateAndAadDetails, self).__init__(**kwargs) - self.aad_authority = kwargs.get('aad_authority', None) - self.aad_tenant_id = kwargs.get('aad_tenant_id', None) - self.service_principal_client_id = kwargs.get('service_principal_client_id', None) - self.service_principal_object_id = kwargs.get('service_principal_object_id', None) - self.azure_management_endpoint_audience = kwargs.get('azure_management_endpoint_audience', None) - self.auth_type = 'AzureActiveDirectory' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details_py3.py deleted file mode 100644 index be2ce10e16d7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details_py3.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_certificate_details_py3 import ResourceCertificateDetails - - -class ResourceCertificateAndAadDetails(ResourceCertificateDetails): - """Certificate details representing the Vault credentials for AAD. - - All required parameters must be populated in order to send to Azure. - - :param certificate: The base64 encoded certificate raw data string. - :type certificate: bytearray - :param friendly_name: Certificate friendly name. - :type friendly_name: str - :param issuer: Certificate issuer. - :type issuer: str - :param resource_id: Resource ID of the vault. - :type resource_id: long - :param subject: Certificate Subject Name. - :type subject: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str - :param valid_from: Certificate Validity start Date time. - :type valid_from: datetime - :param valid_to: Certificate Validity End Date time. - :type valid_to: datetime - :param auth_type: Required. Constant filled by server. - :type auth_type: str - :param aad_authority: Required. AAD tenant authority. - :type aad_authority: str - :param aad_tenant_id: Required. AAD tenant Id. - :type aad_tenant_id: str - :param service_principal_client_id: Required. AAD service principal - clientId. - :type service_principal_client_id: str - :param service_principal_object_id: Required. AAD service principal - ObjectId. - :type service_principal_object_id: str - :param azure_management_endpoint_audience: Required. Azure Management - Endpoint Audience. - :type azure_management_endpoint_audience: str - """ - - _validation = { - 'auth_type': {'required': True}, - 'aad_authority': {'required': True}, - 'aad_tenant_id': {'required': True}, - 'service_principal_client_id': {'required': True}, - 'service_principal_object_id': {'required': True}, - 'azure_management_endpoint_audience': {'required': True}, - } - - _attribute_map = { - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'long'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, - 'auth_type': {'key': 'authType', 'type': 'str'}, - 'aad_authority': {'key': 'aadAuthority', 'type': 'str'}, - 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'service_principal_object_id': {'key': 'servicePrincipalObjectId', 'type': 'str'}, - 'azure_management_endpoint_audience': {'key': 'azureManagementEndpointAudience', 'type': 'str'}, - } - - def __init__(self, *, aad_authority: str, aad_tenant_id: str, service_principal_client_id: str, service_principal_object_id: str, azure_management_endpoint_audience: str, certificate: bytearray=None, friendly_name: str=None, issuer: str=None, resource_id: int=None, subject: str=None, thumbprint: str=None, valid_from=None, valid_to=None, **kwargs) -> None: - super(ResourceCertificateAndAadDetails, self).__init__(certificate=certificate, friendly_name=friendly_name, issuer=issuer, resource_id=resource_id, subject=subject, thumbprint=thumbprint, valid_from=valid_from, valid_to=valid_to, **kwargs) - self.aad_authority = aad_authority - self.aad_tenant_id = aad_tenant_id - self.service_principal_client_id = service_principal_client_id - self.service_principal_object_id = service_principal_object_id - self.azure_management_endpoint_audience = azure_management_endpoint_audience - self.auth_type = 'AzureActiveDirectory' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details.py deleted file mode 100644 index 00cce4813886..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details.py +++ /dev/null @@ -1,74 +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_certificate_details import ResourceCertificateDetails - - -class ResourceCertificateAndAcsDetails(ResourceCertificateDetails): - """Certificate details representing the Vault credentials for ACS. - - All required parameters must be populated in order to send to Azure. - - :param certificate: The base64 encoded certificate raw data string. - :type certificate: bytearray - :param friendly_name: Certificate friendly name. - :type friendly_name: str - :param issuer: Certificate issuer. - :type issuer: str - :param resource_id: Resource ID of the vault. - :type resource_id: long - :param subject: Certificate Subject Name. - :type subject: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str - :param valid_from: Certificate Validity start Date time. - :type valid_from: datetime - :param valid_to: Certificate Validity End Date time. - :type valid_to: datetime - :param auth_type: Required. Constant filled by server. - :type auth_type: str - :param global_acs_namespace: Required. ACS namespace name - tenant for our - service. - :type global_acs_namespace: str - :param global_acs_host_name: Required. Acs mgmt host name to connect to. - :type global_acs_host_name: str - :param global_acs_rp_realm: Required. Global ACS namespace RP realm. - :type global_acs_rp_realm: str - """ - - _validation = { - 'auth_type': {'required': True}, - 'global_acs_namespace': {'required': True}, - 'global_acs_host_name': {'required': True}, - 'global_acs_rp_realm': {'required': True}, - } - - _attribute_map = { - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'long'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, - 'auth_type': {'key': 'authType', 'type': 'str'}, - 'global_acs_namespace': {'key': 'globalAcsNamespace', 'type': 'str'}, - 'global_acs_host_name': {'key': 'globalAcsHostName', 'type': 'str'}, - 'global_acs_rp_realm': {'key': 'globalAcsRPRealm', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceCertificateAndAcsDetails, self).__init__(**kwargs) - self.global_acs_namespace = kwargs.get('global_acs_namespace', None) - self.global_acs_host_name = kwargs.get('global_acs_host_name', None) - self.global_acs_rp_realm = kwargs.get('global_acs_rp_realm', None) - self.auth_type = 'AccessControlService' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details_py3.py deleted file mode 100644 index 2edfe85d4699..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details_py3.py +++ /dev/null @@ -1,74 +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_certificate_details_py3 import ResourceCertificateDetails - - -class ResourceCertificateAndAcsDetails(ResourceCertificateDetails): - """Certificate details representing the Vault credentials for ACS. - - All required parameters must be populated in order to send to Azure. - - :param certificate: The base64 encoded certificate raw data string. - :type certificate: bytearray - :param friendly_name: Certificate friendly name. - :type friendly_name: str - :param issuer: Certificate issuer. - :type issuer: str - :param resource_id: Resource ID of the vault. - :type resource_id: long - :param subject: Certificate Subject Name. - :type subject: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str - :param valid_from: Certificate Validity start Date time. - :type valid_from: datetime - :param valid_to: Certificate Validity End Date time. - :type valid_to: datetime - :param auth_type: Required. Constant filled by server. - :type auth_type: str - :param global_acs_namespace: Required. ACS namespace name - tenant for our - service. - :type global_acs_namespace: str - :param global_acs_host_name: Required. Acs mgmt host name to connect to. - :type global_acs_host_name: str - :param global_acs_rp_realm: Required. Global ACS namespace RP realm. - :type global_acs_rp_realm: str - """ - - _validation = { - 'auth_type': {'required': True}, - 'global_acs_namespace': {'required': True}, - 'global_acs_host_name': {'required': True}, - 'global_acs_rp_realm': {'required': True}, - } - - _attribute_map = { - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'long'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, - 'auth_type': {'key': 'authType', 'type': 'str'}, - 'global_acs_namespace': {'key': 'globalAcsNamespace', 'type': 'str'}, - 'global_acs_host_name': {'key': 'globalAcsHostName', 'type': 'str'}, - 'global_acs_rp_realm': {'key': 'globalAcsRPRealm', 'type': 'str'}, - } - - def __init__(self, *, global_acs_namespace: str, global_acs_host_name: str, global_acs_rp_realm: str, certificate: bytearray=None, friendly_name: str=None, issuer: str=None, resource_id: int=None, subject: str=None, thumbprint: str=None, valid_from=None, valid_to=None, **kwargs) -> None: - super(ResourceCertificateAndAcsDetails, self).__init__(certificate=certificate, friendly_name=friendly_name, issuer=issuer, resource_id=resource_id, subject=subject, thumbprint=thumbprint, valid_from=valid_from, valid_to=valid_to, **kwargs) - self.global_acs_namespace = global_acs_namespace - self.global_acs_host_name = global_acs_host_name - self.global_acs_rp_realm = global_acs_rp_realm - self.auth_type = 'AccessControlService' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details.py deleted file mode 100644 index 664ec6048fed..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details.py +++ /dev/null @@ -1,74 +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 ResourceCertificateDetails(Model): - """Certificate details representing the Vault credentials. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ResourceCertificateAndAadDetails, - ResourceCertificateAndAcsDetails - - All required parameters must be populated in order to send to Azure. - - :param certificate: The base64 encoded certificate raw data string. - :type certificate: bytearray - :param friendly_name: Certificate friendly name. - :type friendly_name: str - :param issuer: Certificate issuer. - :type issuer: str - :param resource_id: Resource ID of the vault. - :type resource_id: long - :param subject: Certificate Subject Name. - :type subject: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str - :param valid_from: Certificate Validity start Date time. - :type valid_from: datetime - :param valid_to: Certificate Validity End Date time. - :type valid_to: datetime - :param auth_type: Required. Constant filled by server. - :type auth_type: str - """ - - _validation = { - 'auth_type': {'required': True}, - } - - _attribute_map = { - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'long'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, - 'auth_type': {'key': 'authType', 'type': 'str'}, - } - - _subtype_map = { - 'auth_type': {'AzureActiveDirectory': 'ResourceCertificateAndAadDetails', 'AccessControlService': 'ResourceCertificateAndAcsDetails'} - } - - def __init__(self, **kwargs): - super(ResourceCertificateDetails, self).__init__(**kwargs) - self.certificate = kwargs.get('certificate', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.issuer = kwargs.get('issuer', None) - self.resource_id = kwargs.get('resource_id', None) - self.subject = kwargs.get('subject', None) - self.thumbprint = kwargs.get('thumbprint', None) - self.valid_from = kwargs.get('valid_from', None) - self.valid_to = kwargs.get('valid_to', None) - self.auth_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details_py3.py deleted file mode 100644 index 7da7ebf197c7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details_py3.py +++ /dev/null @@ -1,74 +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 ResourceCertificateDetails(Model): - """Certificate details representing the Vault credentials. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ResourceCertificateAndAadDetails, - ResourceCertificateAndAcsDetails - - All required parameters must be populated in order to send to Azure. - - :param certificate: The base64 encoded certificate raw data string. - :type certificate: bytearray - :param friendly_name: Certificate friendly name. - :type friendly_name: str - :param issuer: Certificate issuer. - :type issuer: str - :param resource_id: Resource ID of the vault. - :type resource_id: long - :param subject: Certificate Subject Name. - :type subject: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str - :param valid_from: Certificate Validity start Date time. - :type valid_from: datetime - :param valid_to: Certificate Validity End Date time. - :type valid_to: datetime - :param auth_type: Required. Constant filled by server. - :type auth_type: str - """ - - _validation = { - 'auth_type': {'required': True}, - } - - _attribute_map = { - 'certificate': {'key': 'certificate', 'type': 'bytearray'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'long'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'valid_from': {'key': 'validFrom', 'type': 'iso-8601'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'}, - 'auth_type': {'key': 'authType', 'type': 'str'}, - } - - _subtype_map = { - 'auth_type': {'AzureActiveDirectory': 'ResourceCertificateAndAadDetails', 'AccessControlService': 'ResourceCertificateAndAcsDetails'} - } - - def __init__(self, *, certificate: bytearray=None, friendly_name: str=None, issuer: str=None, resource_id: int=None, subject: str=None, thumbprint: str=None, valid_from=None, valid_to=None, **kwargs) -> None: - super(ResourceCertificateDetails, self).__init__(**kwargs) - self.certificate = certificate - self.friendly_name = friendly_name - self.issuer = issuer - self.resource_id = resource_id - self.subject = subject - self.thumbprint = thumbprint - self.valid_from = valid_from - self.valid_to = valid_to - self.auth_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_py3.py deleted file mode 100644 index afe3f20f672e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_py3.py +++ /dev/null @@ -1,50 +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): - """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 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'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - } - - def __init__(self, *, e_tag: str=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.e_tag = e_tag diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku.py deleted file mode 100644 index c66c48e9268a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku.py +++ /dev/null @@ -1,35 +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 Sku(Model): - """Identifies the unique system identifier for each Azure resource. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The Sku name. Possible values include: 'Standard', - 'RS0' - :type name: str or ~azure.mgmt.recoveryservices.models.SkuName - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku_py3.py deleted file mode 100644 index 137625e684d8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku_py3.py +++ /dev/null @@ -1,35 +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 Sku(Model): - """Identifies the unique system identifier for each Azure resource. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The Sku name. Possible values include: 'Standard', - 'RS0' - :type name: str or ~azure.mgmt.recoveryservices.models.SkuName - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, name, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource.py deleted file mode 100644 index 75acf9f90d89..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource.py +++ /dev/null @@ -1,57 +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 TrackedResource(Resource): - """Tracked resource with location. - - 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: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Required. Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource_py3.py deleted file mode 100644 index a1abe9f7f846..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource_py3.py +++ /dev/null @@ -1,57 +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_py3 import Resource - - -class TrackedResource(Resource): - """Tracked resource with location. - - 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: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Required. Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str, e_tag: str=None, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(e_tag=e_tag, **kwargs) - self.location = location - self.tags = tags diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details.py deleted file mode 100644 index 4c54724acb8f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details.py +++ /dev/null @@ -1,81 +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 UpgradeDetails(Model): - """Details for upgrading vault. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar operation_id: ID of the vault upgrade operation. - :vartype operation_id: str - :ivar start_time_utc: UTC time at which the upgrade operation has started. - :vartype start_time_utc: datetime - :ivar last_updated_time_utc: UTC time at which the upgrade operation - status was last updated. - :vartype last_updated_time_utc: datetime - :ivar end_time_utc: UTC time at which the upgrade operation has ended. - :vartype end_time_utc: datetime - :ivar status: Status of the vault upgrade operation. Possible values - include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' - :vartype status: str or - ~azure.mgmt.recoveryservices.models.VaultUpgradeState - :ivar message: Message to the user containing information about the - upgrade operation. - :vartype message: str - :ivar trigger_type: The way the vault upgrade was triggered. Possible - values include: 'UserTriggered', 'ForcedUpgrade' - :vartype trigger_type: str or - ~azure.mgmt.recoveryservices.models.TriggerType - :ivar upgraded_resource_id: Resource ID of the upgraded vault. - :vartype upgraded_resource_id: str - :ivar previous_resource_id: Resource ID of the vault before the upgrade. - :vartype previous_resource_id: str - """ - - _validation = { - 'operation_id': {'readonly': True}, - 'start_time_utc': {'readonly': True}, - 'last_updated_time_utc': {'readonly': True}, - 'end_time_utc': {'readonly': True}, - 'status': {'readonly': True}, - 'message': {'readonly': True}, - 'trigger_type': {'readonly': True}, - 'upgraded_resource_id': {'readonly': True}, - 'previous_resource_id': {'readonly': True}, - } - - _attribute_map = { - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'start_time_utc': {'key': 'startTimeUtc', 'type': 'iso-8601'}, - 'last_updated_time_utc': {'key': 'lastUpdatedTimeUtc', 'type': 'iso-8601'}, - 'end_time_utc': {'key': 'endTimeUtc', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'trigger_type': {'key': 'triggerType', 'type': 'str'}, - 'upgraded_resource_id': {'key': 'upgradedResourceId', 'type': 'str'}, - 'previous_resource_id': {'key': 'previousResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpgradeDetails, self).__init__(**kwargs) - self.operation_id = None - self.start_time_utc = None - self.last_updated_time_utc = None - self.end_time_utc = None - self.status = None - self.message = None - self.trigger_type = None - self.upgraded_resource_id = None - self.previous_resource_id = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details_py3.py deleted file mode 100644 index c3c176030cda..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details_py3.py +++ /dev/null @@ -1,81 +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 UpgradeDetails(Model): - """Details for upgrading vault. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar operation_id: ID of the vault upgrade operation. - :vartype operation_id: str - :ivar start_time_utc: UTC time at which the upgrade operation has started. - :vartype start_time_utc: datetime - :ivar last_updated_time_utc: UTC time at which the upgrade operation - status was last updated. - :vartype last_updated_time_utc: datetime - :ivar end_time_utc: UTC time at which the upgrade operation has ended. - :vartype end_time_utc: datetime - :ivar status: Status of the vault upgrade operation. Possible values - include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' - :vartype status: str or - ~azure.mgmt.recoveryservices.models.VaultUpgradeState - :ivar message: Message to the user containing information about the - upgrade operation. - :vartype message: str - :ivar trigger_type: The way the vault upgrade was triggered. Possible - values include: 'UserTriggered', 'ForcedUpgrade' - :vartype trigger_type: str or - ~azure.mgmt.recoveryservices.models.TriggerType - :ivar upgraded_resource_id: Resource ID of the upgraded vault. - :vartype upgraded_resource_id: str - :ivar previous_resource_id: Resource ID of the vault before the upgrade. - :vartype previous_resource_id: str - """ - - _validation = { - 'operation_id': {'readonly': True}, - 'start_time_utc': {'readonly': True}, - 'last_updated_time_utc': {'readonly': True}, - 'end_time_utc': {'readonly': True}, - 'status': {'readonly': True}, - 'message': {'readonly': True}, - 'trigger_type': {'readonly': True}, - 'upgraded_resource_id': {'readonly': True}, - 'previous_resource_id': {'readonly': True}, - } - - _attribute_map = { - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'start_time_utc': {'key': 'startTimeUtc', 'type': 'iso-8601'}, - 'last_updated_time_utc': {'key': 'lastUpdatedTimeUtc', 'type': 'iso-8601'}, - 'end_time_utc': {'key': 'endTimeUtc', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'trigger_type': {'key': 'triggerType', 'type': 'str'}, - 'upgraded_resource_id': {'key': 'upgradedResourceId', 'type': 'str'}, - 'previous_resource_id': {'key': 'previousResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(UpgradeDetails, self).__init__(**kwargs) - self.operation_id = None - self.start_time_utc = None - self.last_updated_time_utc = None - self.end_time_utc = None - self.status = None - self.message = None - self.trigger_type = None - self.upgraded_resource_id = None - self.previous_resource_id = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault.py deleted file mode 100644 index 1002b1e31e23..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault.py +++ /dev/null @@ -1,63 +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 .tracked_resource import TrackedResource - - -class Vault(TrackedResource): - """Resource information, as returned by the resource provider. - - 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: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Required. Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: - :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties - :param sku: - :type sku: ~azure.mgmt.recoveryservices.models.Sku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'VaultProperties'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - } - - def __init__(self, **kwargs): - super(Vault, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.sku = kwargs.get('sku', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response.py deleted file mode 100644 index 180329c22c63..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response.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 VaultCertificateResponse(Model): - """Certificate corresponding to a vault that can be used by clients to - register themselves with the vault. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :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 - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :param properties: - :type properties: - ~azure.mgmt.recoveryservices.models.ResourceCertificateDetails - """ - - _validation = { - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'id': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceCertificateDetails'}, - } - - def __init__(self, **kwargs): - super(VaultCertificateResponse, self).__init__(**kwargs) - self.name = None - self.type = None - self.id = None - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response_py3.py deleted file mode 100644 index b4975175043a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response_py3.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 VaultCertificateResponse(Model): - """Certificate corresponding to a vault that can be used by clients to - register themselves with the vault. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :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 - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :param properties: - :type properties: - ~azure.mgmt.recoveryservices.models.ResourceCertificateDetails - """ - - _validation = { - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'id': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceCertificateDetails'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(VaultCertificateResponse, self).__init__(**kwargs) - self.name = None - self.type = None - self.id = None - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource.py deleted file mode 100644 index b98b55d3b1bf..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource.py +++ /dev/null @@ -1,62 +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 VaultExtendedInfoResource(Resource): - """Vault extended information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param integrity_key: Integrity key. - :type integrity_key: str - :param encryption_key: Encryption key. - :type encryption_key: str - :param encryption_key_thumbprint: Encryption key thumbprint. - :type encryption_key_thumbprint: str - :param algorithm: Algorithm for Vault ExtendedInfo - :type algorithm: 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'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'integrity_key': {'key': 'properties.integrityKey', 'type': 'str'}, - 'encryption_key': {'key': 'properties.encryptionKey', 'type': 'str'}, - 'encryption_key_thumbprint': {'key': 'properties.encryptionKeyThumbprint', 'type': 'str'}, - 'algorithm': {'key': 'properties.algorithm', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VaultExtendedInfoResource, self).__init__(**kwargs) - self.integrity_key = kwargs.get('integrity_key', None) - self.encryption_key = kwargs.get('encryption_key', None) - self.encryption_key_thumbprint = kwargs.get('encryption_key_thumbprint', None) - self.algorithm = kwargs.get('algorithm', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource_py3.py deleted file mode 100644 index a353d23e4143..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource_py3.py +++ /dev/null @@ -1,62 +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_py3 import Resource - - -class VaultExtendedInfoResource(Resource): - """Vault extended information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param integrity_key: Integrity key. - :type integrity_key: str - :param encryption_key: Encryption key. - :type encryption_key: str - :param encryption_key_thumbprint: Encryption key thumbprint. - :type encryption_key_thumbprint: str - :param algorithm: Algorithm for Vault ExtendedInfo - :type algorithm: 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'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'integrity_key': {'key': 'properties.integrityKey', 'type': 'str'}, - 'encryption_key': {'key': 'properties.encryptionKey', 'type': 'str'}, - 'encryption_key_thumbprint': {'key': 'properties.encryptionKeyThumbprint', 'type': 'str'}, - 'algorithm': {'key': 'properties.algorithm', 'type': 'str'}, - } - - def __init__(self, *, e_tag: str=None, integrity_key: str=None, encryption_key: str=None, encryption_key_thumbprint: str=None, algorithm: str=None, **kwargs) -> None: - super(VaultExtendedInfoResource, self).__init__(e_tag=e_tag, **kwargs) - self.integrity_key = integrity_key - self.encryption_key = encryption_key - self.encryption_key_thumbprint = encryption_key_thumbprint - self.algorithm = algorithm diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_paged.py deleted file mode 100644 index e20238092b7c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_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 VaultPaged(Paged): - """ - A paging container for iterating over a list of :class:`Vault ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Vault]'} - } - - def __init__(self, *args, **kwargs): - - super(VaultPaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_properties.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_properties.py deleted file mode 100644 index 34e1c0b96d00..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_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 VaultProperties(Model): - """Properties of the vault. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: Provisioning State. - :vartype provisioning_state: str - :param upgrade_details: - :type upgrade_details: ~azure.mgmt.recoveryservices.models.UpgradeDetails - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'upgrade_details': {'key': 'upgradeDetails', 'type': 'UpgradeDetails'}, - } - - def __init__(self, **kwargs): - super(VaultProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.upgrade_details = kwargs.get('upgrade_details', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_properties_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_properties_py3.py deleted file mode 100644 index dceb576548ff..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_properties_py3.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 VaultProperties(Model): - """Properties of the vault. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: Provisioning State. - :vartype provisioning_state: str - :param upgrade_details: - :type upgrade_details: ~azure.mgmt.recoveryservices.models.UpgradeDetails - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'upgrade_details': {'key': 'upgradeDetails', 'type': 'UpgradeDetails'}, - } - - def __init__(self, *, upgrade_details=None, **kwargs) -> None: - super(VaultProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.upgrade_details = upgrade_details diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_py3.py deleted file mode 100644 index 415b9f03f205..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_py3.py +++ /dev/null @@ -1,63 +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 .tracked_resource_py3 import TrackedResource - - -class Vault(TrackedResource): - """Resource information, as returned by the resource provider. - - 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: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param e_tag: Optional ETag. - :type e_tag: str - :param location: Required. Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: - :type properties: ~azure.mgmt.recoveryservices.models.VaultProperties - :param sku: - :type sku: ~azure.mgmt.recoveryservices.models.Sku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'VaultProperties'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - } - - def __init__(self, *, location: str, e_tag: str=None, tags=None, properties=None, sku=None, **kwargs) -> None: - super(Vault, self).__init__(e_tag=e_tag, location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage.py deleted file mode 100644 index 14d753967ba6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage.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 VaultUsage(Model): - """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.recoveryservices.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.recoveryservices.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(VaultUsage, 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_paged.py deleted file mode 100644 index cde4b183a3c7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_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 VaultUsagePaged(Paged): - """ - A paging container for iterating over a list of :class:`VaultUsage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VaultUsage]'} - } - - def __init__(self, *args, **kwargs): - - super(VaultUsagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_py3.py deleted file mode 100644 index 41e3799eb533..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_py3.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 VaultUsage(Model): - """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.recoveryservices.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.recoveryservices.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(VaultUsage, 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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/__init__.py index c1a8596ac781..bba7eef4d423 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/__init__.py @@ -9,14 +9,14 @@ # regenerated. # -------------------------------------------------------------------------- -from .vault_certificates_operations import VaultCertificatesOperations -from .registered_identities_operations import RegisteredIdentitiesOperations -from .replication_usages_operations import ReplicationUsagesOperations -from .recovery_services_operations import RecoveryServicesOperations -from .vaults_operations import VaultsOperations -from .operations import Operations -from .vault_extended_info_operations import VaultExtendedInfoOperations -from .usages_operations import UsagesOperations +from ._vault_certificates_operations import VaultCertificatesOperations +from ._registered_identities_operations import RegisteredIdentitiesOperations +from ._replication_usages_operations import ReplicationUsagesOperations +from ._recovery_services_operations import RecoveryServicesOperations +from ._vaults_operations import VaultsOperations +from ._operations import Operations +from ._vault_extended_info_operations import VaultExtendedInfoOperations +from ._usages_operations import UsagesOperations __all__ = [ 'VaultCertificatesOperations', diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_operations.py similarity index 90% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_operations.py index 84c4a236e8e1..f4e2a2fb5bc1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_operations.py @@ -19,6 +19,8 @@ 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. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.recoveryservices.models.ClientDiscoveryValueForSingleApiPaged[~azure.mgmt.recoveryservices.models.ClientDiscoveryValueForSingleApi] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ClientDiscoveryValueForSingleApiPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ClientDiscoveryValueForSingleApiPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + 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-recoveryservices/azure/mgmt/recoveryservices/operations/recovery_services_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_recovery_services_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/recovery_services_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_recovery_services_operations.py index a4daa4e0bed9..2c51fbd44172 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/recovery_services_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_recovery_services_operations.py @@ -19,6 +19,8 @@ class RecoveryServicesOperations(object): """RecoveryServicesOperations 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. @@ -106,7 +108,6 @@ def check_name_availability( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CheckNameAvailabilityResultResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/registered_identities_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_registered_identities_operations.py similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/registered_identities_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_registered_identities_operations.py index 80f05d799142..6ceb55258ea5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/registered_identities_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_registered_identities_operations.py @@ -19,6 +19,8 @@ class RegisteredIdentitiesOperations(object): """RegisteredIdentitiesOperations 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. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/replication_usages_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_replication_usages_operations.py similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/replication_usages_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_replication_usages_operations.py index 9139ffb0c385..3745df04f7aa 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/replication_usages_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_replication_usages_operations.py @@ -19,6 +19,8 @@ class ReplicationUsagesOperations(object): """ReplicationUsagesOperations 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. @@ -56,8 +58,7 @@ def list( ~azure.mgmt.recoveryservices.models.ReplicationUsagePaged[~azure.mgmt.recoveryservices.models.ReplicationUsage] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -88,6 +89,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -98,12 +104,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ReplicationUsagePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ReplicationUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ReplicationUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/replicationUsages'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/usages_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_usages_operations.py similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/usages_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_usages_operations.py index 8c9b1ce2c7ea..28ed089540c6 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/usages_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_usages_operations.py @@ -19,6 +19,8 @@ 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. @@ -56,8 +58,7 @@ def list_by_vaults( ~azure.mgmt.recoveryservices.models.VaultUsagePaged[~azure.mgmt.recoveryservices.models.VaultUsage] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_vaults.metadata['url'] @@ -88,6 +89,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -98,12 +104,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.VaultUsagePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.VaultUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.VaultUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_vaults.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/usages'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vault_certificates_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vault_certificates_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vault_certificates_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vault_certificates_operations.py index 4e8e3d1f162f..fd45b9407935 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vault_certificates_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vault_certificates_operations.py @@ -19,6 +19,8 @@ class VaultCertificatesOperations(object): """VaultCertificatesOperations 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. @@ -101,7 +103,6 @@ def create( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VaultCertificateResponse', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vault_extended_info_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vault_extended_info_operations.py similarity index 98% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vault_extended_info_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vault_extended_info_operations.py index 49f2ffe02a5d..91591c004bfa 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vault_extended_info_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vault_extended_info_operations.py @@ -19,6 +19,8 @@ class VaultExtendedInfoOperations(object): """VaultExtendedInfoOperations 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. @@ -89,7 +91,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VaultExtendedInfoResource', response) @@ -160,7 +161,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VaultExtendedInfoResource', response) @@ -231,7 +231,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VaultExtendedInfoResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vaults_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vaults_operations.py similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vaults_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vaults_operations.py index 248187627d55..e007b3b7db7a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/vaults_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_vaults_operations.py @@ -19,6 +19,8 @@ class VaultsOperations(object): """VaultsOperations 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. @@ -51,8 +53,7 @@ def list_by_subscription_id( ~azure.mgmt.recoveryservices.models.VaultPaged[~azure.mgmt.recoveryservices.models.Vault] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_subscription_id.metadata['url'] @@ -81,6 +82,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -91,12 +97,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.VaultPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.VaultPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.VaultPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription_id.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/vaults'} @@ -118,8 +122,7 @@ def list_by_resource_group( ~azure.mgmt.recoveryservices.models.VaultPaged[~azure.mgmt.recoveryservices.models.Vault] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -149,6 +152,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -159,12 +167,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.VaultPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.VaultPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.VaultPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults'} @@ -221,7 +227,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Vault', response) @@ -290,7 +295,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Vault', response) if response.status_code == 201: @@ -415,7 +419,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Vault', response) if response.status_code == 201: