From 3c477459811966efe606c8464a66c8383d3e2a3b Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 6 Apr 2020 05:36:24 +0000 Subject: [PATCH] Generated from 165b7fcfae9a0dd104445193789b90f6974b0943 Renaming PrivateLinkResourceList to PrivateLinkResources --- .../azure/mgmt/recoveryservices/__init__.py | 7 +- .../mgmt/recoveryservices/_configuration.py | 48 + ...client.py => _recovery_services_client.py} | 57 +- .../mgmt/recoveryservices/models/__init__.py | 175 ++- .../mgmt/recoveryservices/models/_models.py | 1254 +++++++++++++++++ .../recoveryservices/models/_models_py3.py | 1254 +++++++++++++++++ .../recoveryservices/models/_paged_models.py | 79 ++ ....py => _recovery_services_client_enums.py} | 28 + .../models/certificate_request.py | 28 - .../models/certificate_request_py3.py | 28 - .../check_name_availability_parameters.py | 34 - .../check_name_availability_parameters_py3.py | 34 - .../models/check_name_availability_result.py | 37 - .../check_name_availability_result_py3.py | 37 - ...check_name_availability_result_resource.py | 52 - ...k_name_availability_result_resource_py3.py | 52 - .../models/client_discovery_display.py | 41 - .../models/client_discovery_display_py3.py | 41 - .../client_discovery_for_log_specification.py | 36 - ...ent_discovery_for_log_specification_py3.py | 36 - .../models/client_discovery_for_properties.py | 29 - .../client_discovery_for_properties_py3.py | 29 - ...ent_discovery_for_service_specification.py | 29 - ...discovery_for_service_specification_py3.py | 29 - .../client_discovery_value_for_single_api.py | 43 - ...nt_discovery_value_for_single_api_paged.py | 27 - ...ient_discovery_value_for_single_api_py3.py | 43 - .../recoveryservices/models/jobs_summary.py | 36 - .../models/jobs_summary_py3.py | 36 - .../models/monitoring_summary.py | 52 - .../models/monitoring_summary_py3.py | 52 - .../mgmt/recoveryservices/models/name_info.py | 32 - .../recoveryservices/models/name_info_py3.py | 32 - .../models/patch_tracked_resource.py | 54 - .../models/patch_tracked_resource_py3.py | 54 - .../recoveryservices/models/patch_vault.py | 60 - .../models/patch_vault_py3.py | 60 - .../models/raw_certificate_data.py | 34 - .../models/raw_certificate_data_py3.py | 34 - .../models/replication_usage.py | 54 - .../models/replication_usage_paged.py | 27 - .../models/replication_usage_py3.py | 54 - .../mgmt/recoveryservices/models/resource.py | 50 - .../resource_certificate_and_aad_details.py | 86 -- ...esource_certificate_and_aad_details_py3.py | 86 -- .../resource_certificate_and_acs_details.py | 74 - ...esource_certificate_and_acs_details_py3.py | 74 - .../models/resource_certificate_details.py | 74 - .../resource_certificate_details_py3.py | 74 - .../recoveryservices/models/resource_py3.py | 50 - .../azure/mgmt/recoveryservices/models/sku.py | 35 - .../mgmt/recoveryservices/models/sku_py3.py | 35 - .../models/tracked_resource.py | 57 - .../models/tracked_resource_py3.py | 57 - .../models/upgrade_details.py | 81 -- .../models/upgrade_details_py3.py | 81 -- .../mgmt/recoveryservices/models/vault.py | 63 - .../models/vault_certificate_response.py | 52 - .../models/vault_certificate_response_py3.py | 52 - .../models/vault_extended_info_resource.py | 62 - .../vault_extended_info_resource_py3.py | 62 - .../recoveryservices/models/vault_paged.py | 27 - .../models/vault_properties.py | 39 - .../models/vault_properties_py3.py | 39 - .../mgmt/recoveryservices/models/vault_py3.py | 63 - .../recoveryservices/models/vault_usage.py | 49 - .../models/vault_usage_paged.py | 27 - .../models/vault_usage_py3.py | 49 - .../recoveryservices/operations/__init__.py | 18 +- .../{operations.py => _operations.py} | 16 +- .../_private_link_resources_operations.py | 180 +++ ...ns.py => _recovery_services_operations.py} | 12 +- ...y => _registered_identities_operations.py} | 2 + ...s.py => _replication_usages_operations.py} | 16 +- ...es_operations.py => _usages_operations.py} | 16 +- ...s.py => _vault_certificates_operations.py} | 3 +- ....py => _vault_extended_info_operations.py} | 5 +- ...ts_operations.py => _vaults_operations.py} | 33 +- 78 files changed, 3032 insertions(+), 3025 deletions(-) create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_configuration.py rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/{recovery_services_client.py => _recovery_services_client.py} (67%) create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models_py3.py create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_paged_models.py rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/{recovery_services_client_enums.py => _recovery_services_client_enums.py} (71%) delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/certificate_request_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_parameters_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/check_name_availability_result_resource_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_display_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_log_specification_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_properties.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_properties_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_for_service_specification_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_paged.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/client_discovery_value_for_single_api_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/jobs_summary_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/monitoring_summary_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/name_info_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_resource.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_tracked_resource_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/patch_vault_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/raw_certificate_data_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_paged.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/replication_usage_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_aad_details_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_and_acs_details_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_certificate_details_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/resource_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/sku_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/tracked_resource_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/upgrade_details_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_certificate_response_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_extended_info_resource_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_paged.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_properties.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_properties_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_py3.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_paged.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/vault_usage_py3.py rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{operations.py => _operations.py} (90%) create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_private_link_resources_operations.py rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{recovery_services_operations.py => _recovery_services_operations.py} (94%) rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{registered_identities_operations.py => _registered_identities_operations.py} (96%) rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{replication_usages_operations.py => _replication_usages_operations.py} (92%) rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{usages_operations.py => _usages_operations.py} (92%) rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{vault_certificates_operations.py => _vault_certificates_operations.py} (97%) rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{vault_extended_info_operations.py => _vault_extended_info_operations.py} (98%) rename sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/{vaults_operations.py => _vaults_operations.py} (96%) 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..845c00d6a784 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,18 @@ 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 PrivateLinkResourcesOperations +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): @@ -68,6 +37,8 @@ class RecoveryServicesClient(SDKClient): :vartype registered_identities: azure.mgmt.recoveryservices.operations.RegisteredIdentitiesOperations :ivar replication_usages: ReplicationUsages operations :vartype replication_usages: azure.mgmt.recoveryservices.operations.ReplicationUsagesOperations + :ivar private_link_resources: PrivateLinkResources operations + :vartype private_link_resources: azure.mgmt.recoveryservices.operations.PrivateLinkResourcesOperations :ivar recovery_services: RecoveryServices operations :vartype recovery_services: azure.mgmt.recoveryservices.operations.RecoveryServicesOperations :ivar vaults: Vaults operations @@ -104,6 +75,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.replication_usages = ReplicationUsagesOperations( self._client, self.config, self._serialize, self._deserialize) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self.config, self._serialize, self._deserialize) self.recovery_services = RecoveryServicesOperations( self._client, self.config, self._serialize, self._deserialize) self.vaults = VaultsOperations( 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..cfada5a8f252 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,105 +10,126 @@ # -------------------------------------------------------------------------- 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 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 IdentityData + 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 PrivateEndpoint + from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointConnectionVaultProperties + from ._models_py3 import PrivateLinkResource + from ._models_py3 import PrivateLinkServiceConnectionState + 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 ClientDiscoveryDisplay + from ._models import ClientDiscoveryForLogSpecification + from ._models import ClientDiscoveryForProperties + from ._models import ClientDiscoveryForServiceSpecification + from ._models import ClientDiscoveryValueForSingleApi + from ._models import IdentityData + from ._models import JobsSummary + from ._models import MonitoringSummary + from ._models import NameInfo + from ._models import PatchTrackedResource + from ._models import PatchVault + from ._models import PrivateEndpoint + from ._models import PrivateEndpointConnection + from ._models import PrivateEndpointConnectionVaultProperties + from ._models import PrivateLinkResource + from ._models import PrivateLinkServiceConnectionState + 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 PrivateLinkResourcePaged +from ._paged_models import ReplicationUsagePaged +from ._paged_models import VaultPaged +from ._paged_models import VaultUsagePaged +from ._recovery_services_client_enums import ( AuthType, SkuName, VaultUpgradeState, TriggerType, + ResourceIdentityType, + ProvisioningState, + PrivateEndpointConnectionStatus, + VaultPrivateEndpointState, UsagesUnit, ) __all__ = [ - 'RawCertificateData', 'CertificateRequest', - 'ResourceCertificateAndAadDetails', - 'ResourceCertificateAndAcsDetails', - 'ResourceCertificateDetails', - 'VaultCertificateResponse', - 'JobsSummary', - 'MonitoringSummary', - 'ReplicationUsage', 'CheckNameAvailabilityParameters', 'CheckNameAvailabilityResult', - 'CheckNameAvailabilityResultResource', 'ClientDiscoveryDisplay', 'ClientDiscoveryForLogSpecification', - 'ClientDiscoveryForServiceSpecification', 'ClientDiscoveryForProperties', + 'ClientDiscoveryForServiceSpecification', 'ClientDiscoveryValueForSingleApi', + 'IdentityData', + 'JobsSummary', + 'MonitoringSummary', + 'NameInfo', + 'PatchTrackedResource', + 'PatchVault', + 'PrivateEndpoint', + 'PrivateEndpointConnection', + 'PrivateEndpointConnectionVaultProperties', + 'PrivateLinkResource', + 'PrivateLinkServiceConnectionState', + 'RawCertificateData', + 'ReplicationUsage', 'Resource', + 'ResourceCertificateAndAadDetails', + 'ResourceCertificateAndAcsDetails', + 'ResourceCertificateDetails', 'Sku', 'TrackedResource', - 'PatchTrackedResource', 'UpgradeDetails', - 'VaultProperties', 'Vault', - 'PatchVault', + 'VaultCertificateResponse', 'VaultExtendedInfoResource', - 'NameInfo', + 'VaultProperties', 'VaultUsage', 'ReplicationUsagePaged', + 'PrivateLinkResourcePaged', 'VaultPaged', 'ClientDiscoveryValueForSingleApiPaged', 'VaultUsagePaged', @@ -116,5 +137,9 @@ 'SkuName', 'VaultUpgradeState', 'TriggerType', + 'ResourceIdentityType', + 'ProvisioningState', + 'PrivateEndpointConnectionStatus', + 'VaultPrivateEndpointState', 'UsagesUnit', ] 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..1d135d9aeb81 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py @@ -0,0 +1,1254 @@ +# 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 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 IdentityData(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: Required. The identity type. Possible values include: + 'SystemAssigned', 'None' + :type type: str or + ~azure.mgmt.recoveryservices.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IdentityData, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +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 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 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 PrivateEndpoint(Model): + """The Private Endpoint network resource that is linked to the Private + Endpoint connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Gets or sets id. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class PrivateEndpointConnection(Model): + """Private Endpoint Connection Response Properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: Gets or sets provisioning state of the private + endpoint connection. Possible values include: 'Succeeded', 'Deleting', + 'Failed', 'Pending' + :vartype provisioning_state: str or + ~azure.mgmt.recoveryservices.models.ProvisioningState + :param private_endpoint: + :type private_endpoint: + ~azure.mgmt.recoveryservices.models.PrivateEndpoint + :param private_link_service_connection_state: + :type private_link_service_connection_state: + ~azure.mgmt.recoveryservices.models.PrivateLinkServiceConnectionState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.provisioning_state = None + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + + +class PrivateEndpointConnectionVaultProperties(Model): + """Information to be stored in Vault properties as an element of + privateEndpointConnections List. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Format of id + subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.[Service]/{resource}/{resourceName}/privateEndpointConnections/{connectionName}. + :vartype id: str + :param properties: + :type properties: + ~azure.mgmt.recoveryservices.models.PrivateEndpointConnection + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnection'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnectionVaultProperties, self).__init__(**kwargs) + self.id = None + self.properties = kwargs.get('properties', None) + + +class PrivateLinkResource(Model): + """Information of the private link resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar group_id: e.g. f9ad6492-33d4-4690-9999-6bfd52a0d081 (Backup) or + f9ad6492-33d4-4690-9999-6bfd52a0d082 (SiteRecovery) + :vartype group_id: str + :ivar required_members: [backup-ecs1, backup-prot1, backup-prot1b, + backup-prot1c, backup-id1] + :vartype required_members: list[str] + :ivar required_zone_names: The private link resource Private link DNS zone + name. + :vartype required_zone_names: list[str] + :ivar id: Fully qualified identifier of the resource. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: e.g. Microsoft.RecoveryServices/vaults/privateLinkResources + :vartype type: str + """ + + _validation = { + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + 'required_zone_names': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = None + self.id = None + self.name = None + self.type = None + + +class PrivateLinkServiceConnectionState(Model): + """Gets or sets private link service connection state. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: Gets or sets the status. Possible values include: 'Pending', + 'Approved', 'Rejected', 'Disconnected' + :vartype status: str or + ~azure.mgmt.recoveryservices.models.PrivateEndpointConnectionStatus + :ivar description: Gets or sets description. + :vartype description: str + :ivar actions_required: Gets or sets actions required. + :vartype actions_required: str + """ + + _validation = { + 'status': {'readonly': True}, + 'description': {'readonly': True}, + 'actions_required': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = None + self.description = None + self.actions_required = 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 identity: + :type identity: ~azure.mgmt.recoveryservices.models.IdentityData + :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}'}, + 'identity': {'key': 'identity', 'type': 'IdentityData'}, + 'properties': {'key': 'properties', 'type': 'VaultProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + } + + def __init__(self, **kwargs): + super(Vault, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + 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 + :ivar private_endpoint_connections: List of private endpoint connection. + :vartype private_endpoint_connections: + list[~azure.mgmt.recoveryservices.models.PrivateEndpointConnectionVaultProperties] + :ivar private_endpoint_state_for_backup: Private endpoint state for + backup. Possible values include: 'None', 'Enabled' + :vartype private_endpoint_state_for_backup: str or + ~azure.mgmt.recoveryservices.models.VaultPrivateEndpointState + :ivar private_endpoint_state_for_site_recovery: Private endpoint state for + site recovery. Possible values include: 'None', 'Enabled' + :vartype private_endpoint_state_for_site_recovery: str or + ~azure.mgmt.recoveryservices.models.VaultPrivateEndpointState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'private_endpoint_state_for_backup': {'readonly': True}, + 'private_endpoint_state_for_site_recovery': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'upgrade_details': {'key': 'upgradeDetails', 'type': 'UpgradeDetails'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnectionVaultProperties]'}, + 'private_endpoint_state_for_backup': {'key': 'privateEndpointStateForBackup', 'type': 'str'}, + 'private_endpoint_state_for_site_recovery': {'key': 'privateEndpointStateForSiteRecovery', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VaultProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.upgrade_details = kwargs.get('upgrade_details', None) + self.private_endpoint_connections = None + self.private_endpoint_state_for_backup = None + self.private_endpoint_state_for_site_recovery = 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..ff77718bf125 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models_py3.py @@ -0,0 +1,1254 @@ +# 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 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 IdentityData(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: Required. The identity type. Possible values include: + 'SystemAssigned', 'None' + :type type: str or + ~azure.mgmt.recoveryservices.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type, **kwargs) -> None: + super(IdentityData, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +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 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 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 PrivateEndpoint(Model): + """The Private Endpoint network resource that is linked to the Private + Endpoint connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Gets or sets id. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class PrivateEndpointConnection(Model): + """Private Endpoint Connection Response Properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: Gets or sets provisioning state of the private + endpoint connection. Possible values include: 'Succeeded', 'Deleting', + 'Failed', 'Pending' + :vartype provisioning_state: str or + ~azure.mgmt.recoveryservices.models.ProvisioningState + :param private_endpoint: + :type private_endpoint: + ~azure.mgmt.recoveryservices.models.PrivateEndpoint + :param private_link_service_connection_state: + :type private_link_service_connection_state: + ~azure.mgmt.recoveryservices.models.PrivateLinkServiceConnectionState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + } + + def __init__(self, *, private_endpoint=None, private_link_service_connection_state=None, **kwargs) -> None: + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.provisioning_state = None + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + + +class PrivateEndpointConnectionVaultProperties(Model): + """Information to be stored in Vault properties as an element of + privateEndpointConnections List. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Format of id + subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.[Service]/{resource}/{resourceName}/privateEndpointConnections/{connectionName}. + :vartype id: str + :param properties: + :type properties: + ~azure.mgmt.recoveryservices.models.PrivateEndpointConnection + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnection'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(PrivateEndpointConnectionVaultProperties, self).__init__(**kwargs) + self.id = None + self.properties = properties + + +class PrivateLinkResource(Model): + """Information of the private link resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar group_id: e.g. f9ad6492-33d4-4690-9999-6bfd52a0d081 (Backup) or + f9ad6492-33d4-4690-9999-6bfd52a0d082 (SiteRecovery) + :vartype group_id: str + :ivar required_members: [backup-ecs1, backup-prot1, backup-prot1b, + backup-prot1c, backup-id1] + :vartype required_members: list[str] + :ivar required_zone_names: The private link resource Private link DNS zone + name. + :vartype required_zone_names: list[str] + :ivar id: Fully qualified identifier of the resource. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: e.g. Microsoft.RecoveryServices/vaults/privateLinkResources + :vartype type: str + """ + + _validation = { + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + 'required_zone_names': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = None + self.id = None + self.name = None + self.type = None + + +class PrivateLinkServiceConnectionState(Model): + """Gets or sets private link service connection state. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: Gets or sets the status. Possible values include: 'Pending', + 'Approved', 'Rejected', 'Disconnected' + :vartype status: str or + ~azure.mgmt.recoveryservices.models.PrivateEndpointConnectionStatus + :ivar description: Gets or sets description. + :vartype description: str + :ivar actions_required: Gets or sets actions required. + :vartype actions_required: str + """ + + _validation = { + 'status': {'readonly': True}, + 'description': {'readonly': True}, + 'actions_required': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = None + self.description = None + self.actions_required = 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, *, 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 identity: + :type identity: ~azure.mgmt.recoveryservices.models.IdentityData + :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}'}, + 'identity': {'key': 'identity', 'type': 'IdentityData'}, + 'properties': {'key': 'properties', 'type': 'VaultProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + } + + def __init__(self, *, location: str, e_tag: str=None, tags=None, identity=None, properties=None, sku=None, **kwargs) -> None: + super(Vault, self).__init__(e_tag=e_tag, location=location, tags=tags, **kwargs) + self.identity = identity + 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 + :ivar private_endpoint_connections: List of private endpoint connection. + :vartype private_endpoint_connections: + list[~azure.mgmt.recoveryservices.models.PrivateEndpointConnectionVaultProperties] + :ivar private_endpoint_state_for_backup: Private endpoint state for + backup. Possible values include: 'None', 'Enabled' + :vartype private_endpoint_state_for_backup: str or + ~azure.mgmt.recoveryservices.models.VaultPrivateEndpointState + :ivar private_endpoint_state_for_site_recovery: Private endpoint state for + site recovery. Possible values include: 'None', 'Enabled' + :vartype private_endpoint_state_for_site_recovery: str or + ~azure.mgmt.recoveryservices.models.VaultPrivateEndpointState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'private_endpoint_state_for_backup': {'readonly': True}, + 'private_endpoint_state_for_site_recovery': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'upgrade_details': {'key': 'upgradeDetails', 'type': 'UpgradeDetails'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnectionVaultProperties]'}, + 'private_endpoint_state_for_backup': {'key': 'privateEndpointStateForBackup', 'type': 'str'}, + 'private_endpoint_state_for_site_recovery': {'key': 'privateEndpointStateForSiteRecovery', 'type': 'str'}, + } + + def __init__(self, *, upgrade_details=None, **kwargs) -> None: + super(VaultProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.upgrade_details = upgrade_details + self.private_endpoint_connections = None + self.private_endpoint_state_for_backup = None + self.private_endpoint_state_for_site_recovery = 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, *, 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..88eba60b5054 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_paged_models.py @@ -0,0 +1,79 @@ +# 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 PrivateLinkResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`PrivateLinkResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PrivateLinkResource]'} + } + + def __init__(self, *args, **kwargs): + + super(PrivateLinkResourcePaged, 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 71% 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 index fa46795f2fbd..26d3025c4aaf 100644 --- 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 @@ -41,6 +41,34 @@ class TriggerType(str, Enum): forced_upgrade = "ForcedUpgrade" +class ResourceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + none = "None" + + +class ProvisioningState(str, Enum): + + succeeded = "Succeeded" + deleting = "Deleting" + failed = "Failed" + pending = "Pending" + + +class PrivateEndpointConnectionStatus(str, Enum): + + pending = "Pending" + approved = "Approved" + rejected = "Rejected" + disconnected = "Disconnected" + + +class VaultPrivateEndpointState(str, Enum): + + none = "None" + enabled = "Enabled" + + class UsagesUnit(str, Enum): count = "Count" 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..8c7fb955c340 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,19 +9,21 @@ # 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 ._private_link_resources_operations import PrivateLinkResourcesOperations +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', 'RegisteredIdentitiesOperations', 'ReplicationUsagesOperations', + 'PrivateLinkResourcesOperations', 'RecoveryServicesOperations', 'VaultsOperations', 'Operations', 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/_private_link_resources_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_private_link_resources_operations.py new file mode 100644 index 000000000000..733c6c5abd99 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_private_link_resources_operations.py @@ -0,0 +1,180 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class PrivateLinkResourcesOperations(object): + """PrivateLinkResourcesOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client Api Version. Constant value: "2016-06-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2016-06-01" + + self.config = config + + def list( + self, resource_group_name, vault_name, custom_headers=None, raw=False, **operation_config): + """Returns the list of private link resources that need to be created for + Backup and SiteRecovery. + + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PrivateLinkResource + :rtype: + ~azure.mgmt.recoveryservices.models.PrivateLinkResourcePaged[~azure.mgmt.recoveryservices.models.PrivateLinkResource] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vaultName': self._serialize.url("vault_name", vault_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.PrivateLinkResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources'} + + def get( + self, resource_group_name, vault_name, private_link_resource_name, custom_headers=None, raw=False, **operation_config): + """Returns a specified private link resource that need to be created for + Backup and SiteRecovery. + + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param private_link_resource_name: + :type private_link_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateLinkResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.recoveryservices.models.PrivateLinkResource or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'privateLinkResourceName': self._serialize.url("private_link_resource_name", private_link_resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateLinkResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources/{privateLinkResourceName}'} 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 94% 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..bb245f62e1c1 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. @@ -60,11 +62,10 @@ def check_name_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: CheckNameAvailabilityResultResource or ClientRawResponse if - raw=true + :return: CheckNameAvailabilityResult or ClientRawResponse if raw=true :rtype: - ~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResultResource - or ~msrest.pipeline.ClientRawResponse + ~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult or + ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ input = models.CheckNameAvailabilityParameters(type=type, name=name) @@ -106,9 +107,8 @@ def check_name_availability( raise exp deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('CheckNameAvailabilityResultResource', response) + deserialized = self._deserialize('CheckNameAvailabilityResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, 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: