From 534ac26014b535000f15454116288c3ad53870c7 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 17 Jan 2023 04:27:10 +0000 Subject: [PATCH] CodeGen from PR 22194 in Azure/azure-rest-api-specs Merge d022d785a9297547fe29ce5622749c05a3250dcb into 55fbcd89bef06c2ae846c00326cea09732f50635 --- .../_meta.json | 6 +- .../activestamp/_serialization.py | 87 +- .../activestamp/_vendor.py | 5 +- .../activestamp/_version.py | 2 +- .../activestamp/models/_models_py3.py | 1175 +++++++++-------- .../passivestamp/_serialization.py | 87 +- .../passivestamp/_vendor.py | 5 +- .../passivestamp/_version.py | 2 +- .../passivestamp/models/_models_py3.py | 455 ++++--- 9 files changed, 966 insertions(+), 858 deletions(-) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json index 3eb698951964..aa487245be03 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json @@ -1,11 +1,11 @@ { - "commit": "f38115ac455af89493b0a0719d9a987404560dda", + "commit": "756d76decb8fd88274ab84ace0754b4857b0835a", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.2", "use": [ - "@autorest/python@6.2.7", + "@autorest/python@6.2.16", "@autorest/modelerfour@4.24.3" ], - "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", + "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", "readme": "specification/recoveryservicesbackup/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_serialization.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_serialization.py index 2c170e28dbca..f17c068e833e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_serialization.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_serialization.py @@ -38,7 +38,22 @@ import re import sys import codecs -from typing import Optional, Union, AnyStr, IO, Mapping +from typing import ( + Dict, + Any, + cast, + Optional, + Union, + AnyStr, + IO, + Mapping, + Callable, + TypeVar, + MutableMapping, + Type, + List, + Mapping, +) try: from urllib import quote # type: ignore @@ -48,12 +63,14 @@ import isodate # type: ignore -from typing import Dict, Any, cast - from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback +from azure.core.serialization import NULL as AzureCoreNull _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") +ModelType = TypeVar("ModelType", bound="Model") +JSON = MutableMapping[str, Any] + class RawDeserializer: @@ -277,8 +294,8 @@ class Model(object): _attribute_map: Dict[str, Dict[str, Any]] = {} _validation: Dict[str, Dict[str, Any]] = {} - def __init__(self, **kwargs): - self.additional_properties = {} + def __init__(self, **kwargs: Any) -> None: + self.additional_properties: Dict[str, Any] = {} for k in kwargs: if k not in self._attribute_map: _LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__) @@ -287,25 +304,25 @@ def __init__(self, **kwargs): else: setattr(self, k, kwargs[k]) - def __eq__(self, other): + def __eq__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" if isinstance(other, self.__class__): return self.__dict__ == other.__dict__ return False - def __ne__(self, other): + def __ne__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" return not self.__eq__(other) - def __str__(self): + def __str__(self) -> str: return str(self.__dict__) @classmethod - def enable_additional_properties_sending(cls): + def enable_additional_properties_sending(cls) -> None: cls._attribute_map["additional_properties"] = {"key": "", "type": "{object}"} @classmethod - def is_xml_model(cls): + def is_xml_model(cls) -> bool: try: cls._xml_map # type: ignore except AttributeError: @@ -322,7 +339,7 @@ def _create_xml_node(cls): return _create_xml_node(xml_map.get("name", cls.__name__), xml_map.get("prefix", None), xml_map.get("ns", None)) - def serialize(self, keep_readonly=False, **kwargs): + def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: """Return the JSON that would be sent to azure from this model. This is an alias to `as_dict(full_restapi_key_transformer, keep_readonly=False)`. @@ -336,8 +353,13 @@ def serialize(self, keep_readonly=False, **kwargs): serializer = Serializer(self._infer_class_models()) return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) - def as_dict(self, keep_readonly=True, key_transformer=attribute_transformer, **kwargs): - """Return a dict that can be JSONify using json.dump. + def as_dict( + self, + keep_readonly: bool = True, + key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, + **kwargs: Any + ) -> JSON: + """Return a dict that can be serialized using json.dump. Advanced usage might optionally use a callback as parameter: @@ -384,7 +406,7 @@ def _infer_class_models(cls): return client_models @classmethod - def deserialize(cls, data, content_type=None): + def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = None) -> ModelType: """Parse a str using the RestAPI syntax and return a model. :param str data: A str using RestAPI structure. JSON by default. @@ -396,7 +418,12 @@ def deserialize(cls, data, content_type=None): return deserializer(cls.__name__, data, content_type=content_type) @classmethod - def from_dict(cls, data, key_extractors=None, content_type=None): + def from_dict( + cls: Type[ModelType], + data: Any, + key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None, + content_type: Optional[str] = None, + ) -> ModelType: """Parse a dict using given key extractor return a model. By default consider key @@ -409,8 +436,8 @@ def from_dict(cls, data, key_extractors=None, content_type=None): :raises: DeserializationError if something went wrong """ deserializer = Deserializer(cls._infer_class_models()) - deserializer.key_extractors = ( - [ + deserializer.key_extractors = ( # type: ignore + [ # type: ignore attribute_key_case_insensitive_extractor, rest_key_case_insensitive_extractor, last_rest_key_case_insensitive_extractor, @@ -518,7 +545,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -534,7 +561,7 @@ def __init__(self, classes=None): "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True @@ -626,8 +653,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): serialized.append(local_node) # type: ignore else: # JSON for k in reversed(keys): # type: ignore - unflattened = {k: new_attr} - new_attr = unflattened + new_attr = {k: new_attr} _new_attr = new_attr _serialized = serialized @@ -656,8 +682,8 @@ def body(self, data, data_type, **kwargs): """ # Just in case this is a dict - internal_data_type = data_type.strip("[]{}") - internal_data_type = self.dependencies.get(internal_data_type, None) + internal_data_type_str = data_type.strip("[]{}") + internal_data_type = self.dependencies.get(internal_data_type_str, None) try: is_xml_model_serialization = kwargs["is_xml"] except KeyError: @@ -777,6 +803,8 @@ def serialize_data(self, data, data_type, **kwargs): raise ValueError("No value for given attribute") try: + if data is AzureCoreNull: + return None if data_type in self.basic_types.values(): return self.serialize_basic(data, data_type, **kwargs) @@ -1161,7 +1189,8 @@ def rest_key_extractor(attr, attr_desc, data): working_data = data while "." in key: - dict_keys = _FLATTEN.split(key) + # Need the cast, as for some reasons "split" is typed as list[str | Any] + dict_keys = cast(List[str], _FLATTEN.split(key)) if len(dict_keys) == 1: key = _decode_attribute_map_key(dict_keys[0]) break @@ -1332,7 +1361,7 @@ class Deserializer(object): valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, @@ -1352,7 +1381,7 @@ def __init__(self, classes=None): "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_extractors = [rest_key_extractor, xml_key_extractor] # Additional properties only works if the "rest_key_extractor" is used to # extract the keys. Making it to work whatever the key extractor is too much @@ -1471,7 +1500,7 @@ def _classify_target(self, target, data): Once classification has been determined, initialize object. :param str target: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. """ if target is None: return None, None @@ -1486,7 +1515,7 @@ def _classify_target(self, target, data): target = target._classify(data, self.dependencies) except AttributeError: pass # Target is not a Model, no classify - return target, target.__class__.__name__ + return target, target.__class__.__name__ # type: ignore def failsafe_deserialize(self, target_obj, data, content_type=None): """Ignores any errors encountered in deserialization, @@ -1496,7 +1525,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None): a deserialization error. :param str target_obj: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. :param str content_type: Swagger "produces" if available. """ try: diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_vendor.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_vendor.py index 0cfd60ba6dc4..ffa67904de93 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_vendor.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_vendor.py @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- from abc import ABC -from typing import TYPE_CHECKING +from typing import List, TYPE_CHECKING, cast from azure.core.pipeline.transport import HttpRequest @@ -33,7 +33,8 @@ def _format_url_section(template, **kwargs): try: return template.format(**kwargs) except KeyError as key: - formatted_components = template.split("/") + # Need the cast, as for some reasons "split" is typed as list[str | Any] + formatted_components = cast(List[str], template.split("/")) components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] template = "/".join(components) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py index 7b732048e01e..e5754a47ce68 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "5.1.0b3" +VERSION = "1.0.0b1" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py index 31e64e8e0d43..f21dacdfd1d4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from .. import _serialization @@ -44,7 +44,7 @@ class FeatureSupportRequest(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.feature_type: Optional[str] = None @@ -67,14 +67,15 @@ class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): "feature_type": {"key": "featureType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.feature_type: str = "AzureBackupGoals" class ProtectionContainer(_serialization.Model): - """Base class for container with backup items. Containers with specific workloads are derived from this class. + """Base class for container with backup items. Containers with specific workloads are derived from + this class. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureSqlContainer, AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, @@ -145,8 +146,8 @@ def __init__( registration_status: Optional[str] = None, health_status: Optional[str] = None, protectable_object_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -267,8 +268,8 @@ def __init__( upgrade_available: Optional[bool] = None, protection_status: Optional[str] = None, extended_info: Optional["_models.DPMContainerExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -411,8 +412,8 @@ def __init__( upgrade_available: Optional[bool] = None, protection_status: Optional[str] = None, extended_info: Optional["_models.DPMContainerExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -553,8 +554,8 @@ def __init__( is_azure_backup_agent_upgrade_available: Optional[bool] = None, is_dpm_upgrade_available: Optional[bool] = None, extended_info: Optional["_models.BackupEngineExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the backup engine. :paramtype friendly_name: str @@ -681,8 +682,8 @@ def __init__( is_azure_backup_agent_upgrade_available: Optional[bool] = None, is_dpm_upgrade_available: Optional[bool] = None, extended_info: Optional["_models.BackupEngineExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the backup engine. :paramtype friendly_name: str @@ -763,7 +764,7 @@ class BackupRequest(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -791,7 +792,7 @@ class AzureFileShareBackupRequest(BackupRequest): "recovery_point_expiry_time_in_utc": {"key": "recoveryPointExpiryTimeInUTC", "type": "iso-8601"}, } - def __init__(self, *, recovery_point_expiry_time_in_utc: Optional[datetime.datetime] = None, **kwargs): + def __init__(self, *, recovery_point_expiry_time_in_utc: Optional[datetime.datetime] = None, **kwargs: Any) -> None: """ :keyword recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified (UTC). @@ -851,8 +852,8 @@ def __init__( workload_type: Optional[str] = None, friendly_name: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -927,8 +928,8 @@ def __init__( parent_container_fabric_id: Optional[str] = None, parent_container_friendly_name: Optional[str] = None, azure_file_share_type: Optional[Union[str, "_models.AzureFileShareType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -1083,8 +1084,8 @@ def __init__( is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, soft_delete_retention_period: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -1280,8 +1281,8 @@ def __init__( # pylint: disable=too-many-locals last_backup_time: Optional[datetime.datetime] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, extended_info: Optional["_models.AzureFileshareProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -1405,8 +1406,8 @@ def __init__( oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_state: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. :paramtype oldest_recovery_point: ~datetime.datetime @@ -1469,8 +1470,8 @@ def __init__( *, protected_items_count: Optional[int] = None, resource_guard_operation_requests: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protected_items_count: Number of items associated with this policy. :paramtype protected_items_count: int @@ -1534,8 +1535,8 @@ def __init__( schedule_policy: Optional["_models.SchedulePolicy"] = None, retention_policy: Optional["_models.RetentionPolicy"] = None, time_zone: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protected_items_count: Number of items associated with this policy. :paramtype protected_items_count: int @@ -1597,7 +1598,7 @@ class ILRRequest(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -1627,7 +1628,9 @@ class AzureFileShareProvisionILRRequest(ILRRequest): "source_resource_id": {"key": "sourceResourceId", "type": "str"}, } - def __init__(self, *, recovery_point_id: Optional[str] = None, source_resource_id: Optional[str] = None, **kwargs): + def __init__( + self, *, recovery_point_id: Optional[str] = None, source_resource_id: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword recovery_point_id: Recovery point ID. :paramtype recovery_point_id: str @@ -1671,7 +1674,7 @@ class RecoveryPoint(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -1715,8 +1718,8 @@ def __init__( recovery_point_time: Optional[datetime.datetime] = None, file_share_snapshot_uri: Optional[str] = None, recovery_point_size_in_gb: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_type: Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent. @@ -1765,7 +1768,7 @@ class RestoreRequest(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -1824,8 +1827,8 @@ def __init__( restore_request_type: Optional[Union[str, "_models.RestoreRequestType"]] = None, restore_file_specs: Optional[List["_models.RestoreFileSpecs"]] = None, target_details: Optional["_models.TargetAFSRestoreInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -1939,8 +1942,8 @@ def __init__( virtual_machine_id: Optional[str] = None, virtual_machine_version: Optional[str] = None, resource_group: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -2050,8 +2053,8 @@ def __init__( virtual_machine_id: Optional[str] = None, virtual_machine_version: Optional[str] = None, resource_group: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -2152,8 +2155,8 @@ def __init__( virtual_machine_id: Optional[str] = None, virtual_machine_version: Optional[str] = None, resource_group: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -2237,8 +2240,8 @@ def __init__( virtual_machine_id: Optional[str] = None, virtual_machine_version: Optional[str] = None, resource_group: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -2441,8 +2444,8 @@ def __init__( # pylint: disable=too-many-locals last_backup_status: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -2695,8 +2698,8 @@ def __init__( # pylint: disable=too-many-locals last_backup_status: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -2854,8 +2857,8 @@ def __init__( virtual_machine_id: Optional[str] = None, virtual_machine_version: Optional[str] = None, resource_group: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -2946,8 +2949,8 @@ def __init__( virtual_machine_id: Optional[str] = None, virtual_machine_version: Optional[str] = None, resource_group: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -3140,8 +3143,8 @@ def __init__( # pylint: disable=too-many-locals last_backup_status: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -3258,7 +3261,7 @@ class AzureIaaSVMErrorInfo(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.error_code = None @@ -3296,7 +3299,7 @@ class ResourceHealthDetails(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -3334,7 +3337,7 @@ class AzureIaaSVMHealthDetails(ResourceHealthDetails): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) @@ -3406,8 +3409,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, activity_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -3523,8 +3526,8 @@ def __init__( extended_info: Optional["_models.AzureIaaSVMJobExtendedInfo"] = None, container_name: Optional[str] = None, is_user_triggered: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -3620,8 +3623,8 @@ def __init__( progress_percentage: Optional[float] = None, estimated_remaining_duration: Optional[str] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks associated with this job. :paramtype tasks_list: @@ -3691,8 +3694,8 @@ def __init__( status: Optional[str] = None, progress_percentage: Optional[float] = None, task_execution_details: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -3803,8 +3806,8 @@ def __init__( error_details: Optional[List["_models.AzureIaaSVMErrorInfo"]] = None, virtual_machine_version: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -3900,8 +3903,8 @@ def __init__( newest_recovery_point_in_archive: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_inconsistent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this backup item across all tiers. @@ -3994,8 +3997,8 @@ def __init__( instant_rp_retention_range_in_days: Optional[int] = None, time_zone: Optional[str] = None, policy_type: Optional[Union[str, "_models.IAASVMPolicyType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protected_items_count: Number of items associated with this policy. :paramtype protected_items_count: int @@ -4101,8 +4104,8 @@ def __init__( item_id: Optional[str] = None, policy_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -4187,8 +4190,8 @@ def __init__( item_id: Optional[str] = None, policy_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -4272,8 +4275,8 @@ def __init__( policy_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, friendly_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -4400,8 +4403,8 @@ def __init__( extended_info: Optional["_models.AzureWorkloadContainerExtendedInfo"] = None, workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, operation_type: Optional[Union[str, "_models.OperationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -4539,8 +4542,8 @@ def __init__( extended_info: Optional["_models.AzureWorkloadContainerExtendedInfo"] = None, workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, operation_type: Optional[Union[str, "_models.OperationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -4648,8 +4651,8 @@ def __init__( registration_status: Optional[str] = None, health_status: Optional[str] = None, protectable_object_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -4797,8 +4800,8 @@ def __init__( protected_item_data_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectedItemState"]] = None, extended_info: Optional["_models.AzureSqlProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -4895,8 +4898,8 @@ def __init__( oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_state: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. :paramtype oldest_recovery_point: ~datetime.datetime @@ -4946,8 +4949,8 @@ def __init__( protected_items_count: Optional[int] = None, resource_guard_operation_requests: Optional[List[str]] = None, retention_policy: Optional["_models.RetentionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protected_items_count: Number of items associated with this policy. :paramtype protected_items_count: int @@ -5044,8 +5047,8 @@ def __init__( resource_group: Optional[str] = None, protected_item_count: Optional[int] = None, acquire_storage_account_lock: Optional[Union[str, "_models.AcquireStorageAccountLock"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -5114,8 +5117,8 @@ def __init__( error_code: Optional[int] = None, error_string: Optional[str] = None, recommendations: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_code: Error code. :paramtype error_code: int @@ -5214,8 +5217,8 @@ def __init__( storage_account_version: Optional[str] = None, extended_info: Optional["_models.AzureStorageJobExtendedInfo"] = None, is_user_triggered: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -5298,8 +5301,8 @@ def __init__( tasks_list: Optional[List["_models.AzureStorageJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks for this job. :paramtype tasks_list: @@ -5329,7 +5332,7 @@ class AzureStorageJobTaskDetails(_serialization.Model): "status": {"key": "status", "type": "str"}, } - def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs): + def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs: Any) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -5400,8 +5403,8 @@ def __init__( backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, health_status: Optional[str] = None, container_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -5472,8 +5475,8 @@ def __init__( backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, health_status: Optional[str] = None, container_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -5546,8 +5549,8 @@ def __init__( backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, health_status: Optional[str] = None, container_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -5655,8 +5658,8 @@ def __init__( extended_info: Optional["_models.AzureWorkloadContainerExtendedInfo"] = None, workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, operation_type: Optional[Union[str, "_models.OperationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -5731,7 +5734,7 @@ class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): "vm_sku": {"key": "vmSku", "type": "str"}, } - def __init__(self, *, vm_size: Optional[str] = None, vm_sku: Optional[str] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, vm_sku: Optional[str] = None, **kwargs: Any) -> None: """ :keyword vm_size: Size of the resource: VM size(A/D series etc) in case of IaasVM. :paramtype vm_size: str @@ -5757,7 +5760,7 @@ class AzureVMResourceFeatureSupportResponse(_serialization.Model): "support_status": {"key": "supportStatus", "type": "str"}, } - def __init__(self, *, support_status: Optional[Union[str, "_models.SupportStatus"]] = None, **kwargs): + def __init__(self, *, support_status: Optional[Union[str, "_models.SupportStatus"]] = None, **kwargs: Any) -> None: """ :keyword support_status: Support status of feature. Known values are: "Invalid", "Supported", "DefaultOFF", "DefaultON", and "NotSupported". @@ -5811,8 +5814,8 @@ def __init__( workload_type: Optional[str] = None, friendly_name: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -5907,8 +5910,8 @@ def __init__( is_auto_protectable: Optional[bool] = None, subinquireditemcount: Optional[int] = None, sub_workload_item_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -6039,8 +6042,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -6269,8 +6272,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -6422,8 +6425,8 @@ def __init__( recovery_point_count: Optional[int] = None, policy_state: Optional[str] = None, recovery_model: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this backup item across all tiers. @@ -6507,8 +6510,8 @@ def __init__( settings: Optional["_models.Settings"] = None, sub_protection_policy: Optional[List["_models.SubProtectionPolicy"]] = None, make_policy_consistent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protected_items_count: Number of items associated with this policy. :paramtype protected_items_count: int @@ -6709,8 +6712,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -6873,8 +6876,8 @@ def __init__( is_auto_protectable: Optional[bool] = None, subinquireditemcount: Optional[int] = None, sub_workload_item_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -6987,8 +6990,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -7096,8 +7099,8 @@ def __init__( is_auto_protectable: Optional[bool] = None, subinquireditemcount: Optional[int] = None, sub_workload_item_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -7210,8 +7213,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -7429,8 +7432,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -7593,8 +7596,8 @@ def __init__( is_auto_protectable: Optional[bool] = None, subinquireditemcount: Optional[int] = None, sub_workload_item_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -7705,8 +7708,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -7924,8 +7927,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -8103,8 +8106,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -8229,8 +8232,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -8338,8 +8341,8 @@ def __init__( is_auto_protectable: Optional[bool] = None, subinquireditemcount: Optional[int] = None, sub_workload_item_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -8452,8 +8455,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -8578,8 +8581,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -8797,8 +8800,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -8961,8 +8964,8 @@ def __init__( is_auto_protectable: Optional[bool] = None, subinquireditemcount: Optional[int] = None, sub_workload_item_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -9075,8 +9078,8 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -9189,8 +9192,8 @@ def __init__( subinquireditemcount: Optional[int] = None, sub_workload_item_count: Optional[int] = None, data_directory_paths: Optional[List["_models.SQLDataDirectory"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management to backup an item. :paramtype backup_management_type: str @@ -9289,8 +9292,8 @@ def __init__( item_id: Optional[str] = None, policy_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -9356,8 +9359,8 @@ def __init__( backup_type: Optional[Union[str, "_models.BackupType"]] = None, enable_compression: Optional[bool] = None, recovery_point_expiry_time_in_utc: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_type: Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Known values are: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", "Incremental", @@ -9426,8 +9429,8 @@ def __init__( item_id: Optional[str] = None, policy_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -9482,8 +9485,8 @@ def __init__( host_server_name: Optional[str] = None, inquiry_info: Optional["_models.InquiryInfo"] = None, nodes_list: Optional[List["_models.DistributedNodesInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_server_name: Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. @@ -9531,8 +9534,8 @@ def __init__( error_title: Optional[str] = None, recommendations: Optional[List[str]] = None, additional_details: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_code: Error code. :paramtype error_code: int @@ -9628,8 +9631,8 @@ def __init__( actions_info: Optional[List[Union[str, "_models.JobSupportedAction"]]] = None, error_details: Optional[List["_models.AzureWorkloadErrorInfo"]] = None, extended_info: Optional["_models.AzureWorkloadJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -9705,8 +9708,8 @@ def __init__( tasks_list: Optional[List["_models.AzureWorkloadJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks for this job. :paramtype tasks_list: @@ -9736,7 +9739,7 @@ class AzureWorkloadJobTaskDetails(_serialization.Model): "status": {"key": "status", "type": "str"}, } - def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs): + def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs: Any) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -9803,8 +9806,8 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime @@ -9881,8 +9884,8 @@ def __init__( recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime @@ -9974,8 +9977,8 @@ def __init__( target_info: Optional["_models.TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -10063,8 +10066,8 @@ def __init__( recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -10149,8 +10152,8 @@ def __init__( recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime @@ -10240,8 +10243,8 @@ def __init__( target_info: Optional["_models.TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -10340,8 +10343,8 @@ def __init__( recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -10442,8 +10445,8 @@ def __init__( target_virtual_machine_id: Optional[str] = None, point_in_time: Optional[datetime.datetime] = None, recovery_point_rehydration_info: Optional["_models.RecoveryPointRehydrationInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -10527,8 +10530,8 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime @@ -10612,8 +10615,8 @@ def __init__( recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, recovery_point_rehydration_info: Optional["_models.RecoveryPointRehydrationInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -10708,8 +10711,8 @@ def __init__( policy_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, workload_item_type: Optional[Union[str, "_models.WorkloadItemType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -10746,7 +10749,8 @@ def __init__( class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with extended info. + """SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with + extended info. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint @@ -10803,8 +10807,8 @@ def __init__( recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, extended_info: Optional["_models.AzureWorkloadSQLRecoveryPointExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime @@ -10891,8 +10895,8 @@ def __init__( recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, extended_info: Optional["_models.AzureWorkloadSQLRecoveryPointExtendedInfo"] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime @@ -11004,8 +11008,8 @@ def __init__( should_use_alternate_target_location: Optional[bool] = None, is_non_recoverable: Optional[bool] = None, alternate_directory_paths: Optional[List["_models.SQLDataDirectoryMapping"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -11133,8 +11137,8 @@ def __init__( is_non_recoverable: Optional[bool] = None, alternate_directory_paths: Optional[List["_models.SQLDataDirectoryMapping"]] = None, point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -11264,8 +11268,8 @@ def __init__( alternate_directory_paths: Optional[List["_models.SQLDataDirectoryMapping"]] = None, point_in_time: Optional[datetime.datetime] = None, recovery_point_rehydration_info: Optional["_models.RecoveryPointRehydrationInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -11338,8 +11342,8 @@ def __init__( *, data_directory_time_in_utc: Optional[datetime.datetime] = None, data_directory_paths: Optional[List["_models.SQLDataDirectory"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword data_directory_time_in_utc: UTC time at which data directory info was captured. :paramtype data_directory_time_in_utc: ~datetime.datetime @@ -11429,8 +11433,8 @@ def __init__( is_non_recoverable: Optional[bool] = None, alternate_directory_paths: Optional[List["_models.SQLDataDirectoryMapping"]] = None, recovery_point_rehydration_info: Optional["_models.RecoveryPointRehydrationInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -11521,8 +11525,8 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -11585,8 +11589,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.BackupEngineBase"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -11613,7 +11617,7 @@ class ResourceList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, next_link: Optional[str] = None, **kwargs): + def __init__(self, *, next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -11644,8 +11648,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.BackupEngineBaseResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -11701,8 +11705,8 @@ def __init__( available_disk_space: Optional[float] = None, refreshed_at: Optional[datetime.datetime] = None, azure_protected_instances: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword database_name: Database name of backup engine. :paramtype database_name: str @@ -11768,8 +11772,8 @@ def __init__( current_value: Optional[int] = None, limit: Optional[int] = None, name: Optional["_models.NameInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unit: Unit of the usage. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", and "BytesPerSecond". @@ -11806,7 +11810,7 @@ class BackupManagementUsageList(_serialization.Model): "value": {"key": "value", "type": "[BackupManagementUsage]"}, } - def __init__(self, *, value: Optional[List["_models.BackupManagementUsage"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.BackupManagementUsage"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of backup management usages for the given vault. :paramtype value: @@ -11861,8 +11865,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.BackupRequest"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -11917,8 +11921,8 @@ def __init__( cross_region_restore_flag: Optional[bool] = None, dedup_state: Optional[Union[str, "_models.DedupState"]] = None, xcool_state: Optional[Union[str, "_models.XcoolState"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_model_type: Storage type. Known values are: "Invalid", "GeoRedundant", "LocallyRedundant", "ZoneRedundant", and "ReadAccessGeoZoneRedundant". @@ -11996,8 +12000,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.BackupResourceConfig"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -12049,8 +12053,8 @@ def __init__( subscription_id: Optional[str] = None, last_update_status: Optional[Union[str, "_models.LastUpdateStatus"]] = None, infrastructure_encryption_state: Optional[Union[str, "_models.InfrastructureEncryptionState"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword encryption_at_rest_type: Encryption At Rest Type. Known values are: "Invalid", "MicrosoftManaged", and "CustomerManaged". @@ -12122,8 +12126,8 @@ def __init__( infrastructure_encryption_state: Optional[Union[str, "_models.InfrastructureEncryptionState"]] = None, user_assigned_identity: Optional[str] = None, use_system_assigned_identity: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword encryption_at_rest_type: Encryption At Rest Type. Known values are: "Invalid", "MicrosoftManaged", and "CustomerManaged". @@ -12205,8 +12209,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.BackupResourceEncryptionConfigExtended"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -12268,8 +12272,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.BackupResourceEncryptionConfig"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -12333,8 +12337,8 @@ def __init__( soft_delete_feature_state: Optional[Union[str, "_models.SoftDeleteFeatureState"]] = None, resource_guard_operation_requests: Optional[List[str]] = None, is_soft_delete_feature_state_editable: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_model_type: Storage type. Known values are: "Invalid", "GeoRedundant", "LocallyRedundant", "ZoneRedundant", and "ReadAccessGeoZoneRedundant". @@ -12418,8 +12422,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.BackupResourceVaultConfig"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -12462,8 +12466,8 @@ def __init__( resource_type: Optional[Union[str, "_models.DataSourceType"]] = None, resource_id: Optional[str] = None, po_logical_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare... Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", @@ -12534,8 +12538,8 @@ def __init__( error_message: Optional[str] = None, policy_name: Optional[str] = None, registration_status: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protection_status: Specifies whether the container is registered or not. Known values are: "Invalid", "NotProtected", "Protecting", "Protected", and "ProtectionFailed". @@ -12596,8 +12600,8 @@ def __init__( secret_url: Optional[str] = None, secret_vault_id: Optional[str] = None, secret_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword secret_url: Secret is BEK. :paramtype secret_url: str @@ -12623,7 +12627,7 @@ class BMSBackupEngineQueryObject(_serialization.Model): "expand": {"key": "expand", "type": "str"}, } - def __init__(self, *, expand: Optional[str] = None, **kwargs): + def __init__(self, *, expand: Optional[str] = None, **kwargs: Any) -> None: """ :keyword expand: attribute to add extended info. :paramtype expand: str @@ -12658,8 +12662,8 @@ def __init__( backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, friendly_name: Optional[str] = None, expand: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type for the backup engine. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -12689,7 +12693,7 @@ class BMSBackupSummariesQueryObject(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.Type"]] = None, **kwargs): + def __init__(self, *, type: Optional[Union[str, "_models.Type"]] = None, **kwargs: Any) -> None: """ :keyword type: Backup management type for this container. Known values are: "Invalid", "BackupProtectedItemCountSummary", and "BackupProtectionContainerCountSummary". @@ -12747,8 +12751,8 @@ def __init__( fabric_name: Optional[str] = None, status: Optional[str] = None, friendly_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type for this container. Required. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", @@ -12805,8 +12809,8 @@ def __init__( *, backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type for this container. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -12863,8 +12867,8 @@ def __init__( container_name: Optional[str] = None, status: Optional[str] = None, friendly_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", "AzureWorkload", @@ -12908,8 +12912,8 @@ class BMSRefreshContainersQueryObject(_serialization.Model): } def __init__( - self, *, backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, **kwargs - ): + self, *, backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type for this container. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -12956,8 +12960,8 @@ def __init__( restore_point_query_type: Optional[Union[str, "_models.RestorePointQueryType"]] = None, extended_info: Optional[bool] = None, move_ready_rp_only: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword start_date: Backup copies created after this time. :paramtype start_date: ~datetime.datetime @@ -13021,8 +13025,8 @@ def __init__( workload_item_type: Optional[Union[str, "_models.WorkloadItemType"]] = None, workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, protection_status: Optional[Union[str, "_models.ProtectionStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", "AzureWorkload", @@ -13079,8 +13083,8 @@ def __init__( resource: Optional[str] = None, operation: Optional[str] = None, description: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provider: Name of the provider for display purposes. :paramtype provider: str @@ -13121,8 +13125,8 @@ def __init__( name: Optional[str] = None, display_name: Optional[str] = None, blob_duration: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name for shoebox log specification. :paramtype name: str @@ -13150,8 +13154,8 @@ class ClientDiscoveryForProperties(_serialization.Model): } def __init__( - self, *, service_specification: Optional["_models.ClientDiscoveryForServiceSpecification"] = None, **kwargs - ): + self, *, service_specification: Optional["_models.ClientDiscoveryForServiceSpecification"] = None, **kwargs: Any + ) -> None: """ :keyword service_specification: Operation properties. :paramtype service_specification: @@ -13174,8 +13178,8 @@ class ClientDiscoveryForServiceSpecification(_serialization.Model): } def __init__( - self, *, log_specifications: Optional[List["_models.ClientDiscoveryForLogSpecification"]] = None, **kwargs - ): + self, *, log_specifications: Optional[List["_models.ClientDiscoveryForLogSpecification"]] = None, **kwargs: Any + ) -> None: """ :keyword log_specifications: List of log specifications of this operation. :paramtype log_specifications: @@ -13205,8 +13209,8 @@ def __init__( *, value: Optional[List["_models.ClientDiscoveryValueForSingleApi"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: List of available operations. :paramtype value: @@ -13248,8 +13252,8 @@ def __init__( display: Optional["_models.ClientDiscoveryDisplay"] = None, origin: Optional[str] = None, properties: Optional["_models.ClientDiscoveryForProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of the Operation. :paramtype name: str @@ -13306,8 +13310,8 @@ def __init__( os_type: Optional[str] = None, url: Optional[str] = None, script_name_suffix: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script_content: File content of the client script for file / folder restore. :paramtype script_content: str @@ -13370,7 +13374,7 @@ class CloudErrorBody(_serialization.Model): "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -13407,8 +13411,8 @@ def __init__( aad_tenant_id: Optional[str] = None, service_principal_client_id: Optional[str] = None, audience: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_name: Unique name of the container. :paramtype unique_name: str @@ -13437,7 +13441,7 @@ class DailyRetentionFormat(_serialization.Model): "days_of_the_month": {"key": "daysOfTheMonth", "type": "[Day]"}, } - def __init__(self, *, days_of_the_month: Optional[List["_models.Day"]] = None, **kwargs): + def __init__(self, *, days_of_the_month: Optional[List["_models.Day"]] = None, **kwargs: Any) -> None: """ :keyword days_of_the_month: List of days of the month. :paramtype days_of_the_month: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.Day] @@ -13466,8 +13470,8 @@ def __init__( *, retention_times: Optional[List[datetime.datetime]] = None, retention_duration: Optional["_models.RetentionDuration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword retention_times: Retention times of retention policy. :paramtype retention_times: list[~datetime.datetime] @@ -13491,7 +13495,7 @@ class DailySchedule(_serialization.Model): "schedule_run_times": {"key": "scheduleRunTimes", "type": "[iso-8601]"}, } - def __init__(self, *, schedule_run_times: Optional[List[datetime.datetime]] = None, **kwargs): + def __init__(self, *, schedule_run_times: Optional[List[datetime.datetime]] = None, **kwargs: Any) -> None: """ :keyword schedule_run_times: List of times of day this schedule has to be run. :paramtype schedule_run_times: list[~datetime.datetime] @@ -13514,7 +13518,7 @@ class Day(_serialization.Model): "is_last": {"key": "isLast", "type": "bool"}, } - def __init__(self, *, date: Optional[int] = None, is_last: Optional[bool] = None, **kwargs): + def __init__(self, *, date: Optional[int] = None, is_last: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword date: Date of the month. :paramtype date: int @@ -13542,8 +13546,8 @@ class DiskExclusionProperties(_serialization.Model): } def __init__( - self, *, disk_lun_list: Optional[List[int]] = None, is_inclusion_list: Optional[bool] = None, **kwargs - ): + self, *, disk_lun_list: Optional[List[int]] = None, is_inclusion_list: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used for VM Protection. :paramtype disk_lun_list: list[int] @@ -13570,7 +13574,7 @@ class DiskInformation(_serialization.Model): "name": {"key": "name", "type": "str"}, } - def __init__(self, *, lun: Optional[int] = None, name: Optional[str] = None, **kwargs): + def __init__(self, *, lun: Optional[int] = None, name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword lun: :paramtype lun: int @@ -13606,8 +13610,8 @@ def __init__( node_name: Optional[str] = None, status: Optional[str] = None, error_detail: Optional["_models.ErrorDetail"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword node_name: Name of the node under a distributed container. :paramtype node_name: str @@ -13700,8 +13704,8 @@ def __init__( is_azure_backup_agent_upgrade_available: Optional[bool] = None, is_dpm_upgrade_available: Optional[bool] = None, extended_info: Optional["_models.BackupEngineExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the backup engine. :paramtype friendly_name: str @@ -13764,7 +13768,7 @@ class DPMContainerExtendedInfo(_serialization.Model): "last_refreshed_at": {"key": "lastRefreshedAt", "type": "iso-8601"}, } - def __init__(self, *, last_refreshed_at: Optional[datetime.datetime] = None, **kwargs): + def __init__(self, *, last_refreshed_at: Optional[datetime.datetime] = None, **kwargs: Any) -> None: """ :keyword last_refreshed_at: Last refresh time of the DPMContainer. :paramtype last_refreshed_at: ~datetime.datetime @@ -13787,7 +13791,9 @@ class DpmErrorInfo(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, *, error_string: Optional[str] = None, recommendations: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, error_string: Optional[str] = None, recommendations: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword error_string: Localized error string. :paramtype error_string: str @@ -13886,8 +13892,8 @@ def __init__( actions_info: Optional[List[Union[str, "_models.JobSupportedAction"]]] = None, error_details: Optional[List["_models.DpmErrorInfo"]] = None, extended_info: Optional["_models.DpmJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -13972,8 +13978,8 @@ def __init__( tasks_list: Optional[List["_models.DpmJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks associated with this job. :paramtype tasks_list: @@ -14020,8 +14026,8 @@ def __init__( end_time: Optional[datetime.datetime] = None, duration: Optional[datetime.timedelta] = None, status: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -14164,8 +14170,8 @@ def __init__( backup_engine_name: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectedItemState"]] = None, extended_info: Optional["_models.DPMProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -14308,8 +14314,8 @@ def __init__( protection_group_name: Optional[str] = None, disk_storage_used_in_bytes: Optional[str] = None, total_disk_storage_size_in_bytes: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protectable_object_load_path: Attribute to provide information on various DBs. :paramtype protectable_object_load_path: dict[str, str] @@ -14389,8 +14395,8 @@ def __init__( secret_key_url: Optional[str] = None, kek_vault_id: Optional[str] = None, secret_key_vault_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword encryption_enabled: Identifies whether this backup copy represents an encrypted VM at the time of backup. @@ -14433,7 +14439,7 @@ class ErrorAdditionalInfo(_serialization.Model): "info": {"key": "info", "type": "object"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type = None @@ -14465,7 +14471,7 @@ class ErrorDetail(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -14501,7 +14507,7 @@ class OperationResultInfoBase(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -14544,8 +14550,8 @@ def __init__( blob_sas_key: Optional[str] = None, excel_file_blob_url: Optional[str] = None, excel_file_blob_sas_key: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_url: URL of the blob into which the serialized string of list of jobs is exported. @@ -14585,8 +14591,8 @@ def __init__( *, disk_exclusion_properties: Optional["_models.DiskExclusionProperties"] = None, linux_vm_application_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_exclusion_properties: Extended Properties for Disk Exclusion. :paramtype disk_exclusion_properties: @@ -14664,8 +14670,8 @@ def __init__( protectable_object_type: Optional[str] = None, fabric_name: Optional[str] = None, extended_information: Optional["_models.GenericContainerExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -14725,8 +14731,8 @@ def __init__( raw_cert_data: Optional[str] = None, container_identity_info: Optional["_models.ContainerIdentityInfo"] = None, service_endpoints: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword raw_cert_data: Public key of container cert. :paramtype raw_cert_data: str @@ -14873,8 +14879,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_id: Optional[int] = None, source_associations: Optional[Dict[str, str]] = None, fabric_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -15001,8 +15007,8 @@ def __init__( sub_protection_policy: Optional[List["_models.SubProtectionPolicy"]] = None, time_zone: Optional[str] = None, fabric_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protected_items_count: Number of items associated with this policy. :paramtype protected_items_count: int @@ -15066,8 +15072,8 @@ def __init__( recovery_point_type: Optional[str] = None, recovery_point_time: Optional[datetime.datetime] = None, recovery_point_additional_info: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the backup copy. :paramtype friendly_name: str @@ -15098,7 +15104,7 @@ class GetProtectedItemQueryObject(_serialization.Model): "expand": {"key": "expand", "type": "str"}, } - def __init__(self, *, expand: Optional[str] = None, **kwargs): + def __init__(self, *, expand: Optional[str] = None, **kwargs: Any) -> None: """ :keyword expand: Specifies if the additional information should be provided for this item. :paramtype expand: str @@ -15131,8 +15137,8 @@ def __init__( interval: Optional[int] = None, schedule_window_start_time: Optional[datetime.datetime] = None, schedule_window_duration: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword interval: Interval at which backup needs to be triggered. For hourly the value can be 4/6/8/12. @@ -15170,7 +15176,7 @@ class IaasVMBackupRequest(BackupRequest): "recovery_point_expiry_time_in_utc": {"key": "recoveryPointExpiryTimeInUTC", "type": "iso-8601"}, } - def __init__(self, *, recovery_point_expiry_time_in_utc: Optional[datetime.datetime] = None, **kwargs): + def __init__(self, *, recovery_point_expiry_time_in_utc: Optional[datetime.datetime] = None, **kwargs: Any) -> None: """ :keyword recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified (UTC). @@ -15221,8 +15227,8 @@ def __init__( virtual_machine_id: Optional[str] = None, initiator_name: Optional[str] = None, renew_existing_registration: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_id: ID of the IaaS VM backup copy from where the files/folders have to be restored. @@ -15339,8 +15345,8 @@ def __init__( recovery_point_disk_configuration: Optional["_models.RecoveryPointDiskConfiguration"] = None, zones: Optional[List[str]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_type: Type of the backup copy. :paramtype recovery_point_type: str @@ -15530,8 +15536,8 @@ def __init__( zones: Optional[List[str]] = None, identity_info: Optional["_models.IdentityInfo"] = None, identity_based_restore_details: Optional["_models.IdentityBasedRestoreDetails"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_id: ID of the backup copy to be recovered. :paramtype recovery_point_id: str @@ -15754,8 +15760,8 @@ def __init__( identity_info: Optional["_models.IdentityInfo"] = None, identity_based_restore_details: Optional["_models.IdentityBasedRestoreDetails"] = None, recovery_point_rehydration_info: Optional["_models.RecoveryPointRehydrationInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_id: ID of the backup copy to be recovered. :paramtype recovery_point_id: str @@ -15866,7 +15872,9 @@ class IdentityBasedRestoreDetails(_serialization.Model): "target_storage_account_id": {"key": "targetStorageAccountId", "type": "str"}, } - def __init__(self, *, object_type: Optional[str] = None, target_storage_account_id: Optional[str] = None, **kwargs): + def __init__( + self, *, object_type: Optional[str] = None, target_storage_account_id: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword object_type: Gets the class type. :paramtype object_type: str @@ -15899,8 +15907,8 @@ def __init__( *, is_system_assigned_identity: Optional[bool] = None, managed_identity_resource_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_system_assigned_identity: To differentiate if the managed identity is system assigned or user assigned. @@ -15959,8 +15967,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ILRRequest"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -16001,8 +16009,8 @@ def __init__( status: Optional[str] = None, error_detail: Optional["_models.ErrorDetail"] = None, inquiry_details: Optional[List["_models.WorkloadInquiryDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Inquiry Status for this container such as InProgress | Failed | Succeeded. @@ -16043,7 +16051,9 @@ class InquiryValidation(_serialization.Model): "additional_detail": {"key": "additionalDetail", "type": "str"}, } - def __init__(self, *, status: Optional[str] = None, error_detail: Optional["_models.ErrorDetail"] = None, **kwargs): + def __init__( + self, *, status: Optional[str] = None, error_detail: Optional["_models.ErrorDetail"] = None, **kwargs: Any + ) -> None: """ :keyword status: Status for the Inquiry Validation. :paramtype status: str @@ -16068,7 +16078,9 @@ class InstantItemRecoveryTarget(_serialization.Model): "client_scripts": {"key": "clientScripts", "type": "[ClientScriptForConnect]"}, } - def __init__(self, *, client_scripts: Optional[List["_models.ClientScriptForConnect"]] = None, **kwargs): + def __init__( + self, *, client_scripts: Optional[List["_models.ClientScriptForConnect"]] = None, **kwargs: Any + ) -> None: """ :keyword client_scripts: List of client scripts. :paramtype client_scripts: @@ -16097,8 +16109,8 @@ def __init__( *, azure_backup_rg_name_prefix: Optional[str] = None, azure_backup_rg_name_suffix: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword azure_backup_rg_name_prefix: :paramtype azure_backup_rg_name_prefix: str @@ -16152,8 +16164,8 @@ def __init__( job_id: Optional[str] = None, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Status of the job. Known values are: "Invalid", "InProgress", "Completed", "Failed", "CompletedWithWarnings", "Cancelled", and "Cancelling". @@ -16229,8 +16241,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.Job"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -16261,8 +16273,8 @@ class JobResourceList(ResourceList): } def __init__( - self, *, next_link: Optional[str] = None, value: Optional[List["_models.JobResource"]] = None, **kwargs - ): + self, *, next_link: Optional[str] = None, value: Optional[List["_models.JobResource"]] = None, **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -16297,8 +16309,8 @@ def __init__( key_url: Optional[str] = None, key_vault_id: Optional[str] = None, key_backup_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword key_url: Key is KEK. :paramtype key_url: str @@ -16324,12 +16336,12 @@ class KeyAndSecretDetails(_serialization.Model): #. EncryptionMechanism BEK and KEK can potentially have different vault ids. - :ivar kek_details: KEK is encryption key for BEK. - :vartype kek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.KEKDetails - :ivar bek_details: BEK is bitlocker encryption key. - :vartype bek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BEKDetails - :ivar encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. - :vartype encryption_mechanism: str + :ivar kek_details: KEK is encryption key for BEK. + :vartype kek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.KEKDetails + :ivar bek_details: BEK is bitlocker encryption key. + :vartype bek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BEKDetails + :ivar encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. + :vartype encryption_mechanism: str """ _attribute_map = { @@ -16344,8 +16356,8 @@ def __init__( kek_details: Optional["_models.KEKDetails"] = None, bek_details: Optional["_models.BEKDetails"] = None, encryption_mechanism: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword kek_details: KEK is encryption key for BEK. :paramtype kek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.KEKDetails @@ -16383,8 +16395,8 @@ def __init__( *, resource_health_status: Optional[Union[str, "_models.ResourceHealthStatus"]] = None, resource_health_details: Optional[List["_models.ResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword resource_health_status: Resource Health Status. Known values are: "Healthy", "TransientDegraded", "PersistentDegraded", "TransientUnhealthy", "PersistentUnhealthy", and @@ -16414,7 +16426,9 @@ class ListRecoveryPointsRecommendedForMoveRequest(_serialization.Model): "excluded_rp_list": {"key": "excludedRPList", "type": "[str]"}, } - def __init__(self, *, object_type: Optional[str] = None, excluded_rp_list: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, object_type: Optional[str] = None, excluded_rp_list: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword object_type: Gets the class type. :paramtype object_type: str @@ -16456,7 +16470,7 @@ class SchedulePolicy(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.schedule_policy_type: Optional[str] = None @@ -16484,7 +16498,7 @@ class LogSchedulePolicy(SchedulePolicy): "schedule_frequency_in_mins": {"key": "scheduleFrequencyInMins", "type": "int"}, } - def __init__(self, *, schedule_frequency_in_mins: Optional[int] = None, **kwargs): + def __init__(self, *, schedule_frequency_in_mins: Optional[int] = None, **kwargs: Any) -> None: """ :keyword schedule_frequency_in_mins: Frequency of the log schedule operation of this policy in minutes. @@ -16523,7 +16537,7 @@ class RetentionPolicy(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.retention_policy_type: Optional[str] = None @@ -16570,8 +16584,8 @@ def __init__( weekly_schedule: Optional["_models.WeeklyRetentionSchedule"] = None, monthly_schedule: Optional["_models.MonthlyRetentionSchedule"] = None, yearly_schedule: Optional["_models.YearlyRetentionSchedule"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword daily_schedule: Daily retention schedule of the protection policy. :paramtype daily_schedule: @@ -16612,7 +16626,7 @@ class LongTermSchedulePolicy(SchedulePolicy): "schedule_policy_type": {"key": "schedulePolicyType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.schedule_policy_type: str = "LongTermSchedulePolicy" @@ -16704,8 +16718,8 @@ def __init__( extended_info: Optional["_models.MabContainerExtendedInfo"] = None, mab_container_health_details: Optional[List["_models.MABContainerHealthDetails"]] = None, container_health_state: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str @@ -16792,8 +16806,8 @@ def __init__( backup_items: Optional[List[str]] = None, policy_name: Optional[str] = None, last_backup_status: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword last_refreshed_at: Time stamp when this container was refreshed. :paramtype last_refreshed_at: ~datetime.datetime @@ -16845,8 +16859,8 @@ def __init__( title: Optional[str] = None, message: Optional[str] = None, recommendations: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: Health Code. :paramtype code: int @@ -16885,7 +16899,7 @@ class MabErrorInfo(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.error_string = None @@ -17024,8 +17038,8 @@ def __init__( # pylint: disable=too-many-locals protection_state: Optional[str] = None, deferred_delete_sync_time_in_utc: Optional[int] = None, extended_info: Optional["_models.MabFileFolderProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword container_name: Unique name of container. :paramtype container_name: str @@ -17131,8 +17145,8 @@ def __init__( last_refreshed_at: Optional[datetime.datetime] = None, oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword last_refreshed_at: Last time when the agent data synced to service. :paramtype last_refreshed_at: ~datetime.datetime @@ -17238,8 +17252,8 @@ def __init__( workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, error_details: Optional[List["_models.MabErrorInfo"]] = None, extended_info: Optional["_models.MabJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -17329,8 +17343,8 @@ def __init__( tasks_list: Optional[List["_models.MabJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks for this job. :paramtype tasks_list: @@ -17377,8 +17391,8 @@ def __init__( end_time: Optional[datetime.datetime] = None, duration: Optional[datetime.timedelta] = None, status: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -17437,8 +17451,8 @@ def __init__( resource_guard_operation_requests: Optional[List[str]] = None, schedule_policy: Optional["_models.SchedulePolicy"] = None, retention_policy: Optional["_models.RetentionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protected_items_count: Number of items associated with this policy. :paramtype protected_items_count: int @@ -17497,8 +17511,8 @@ def __init__( retention_schedule_weekly: Optional["_models.WeeklyRetentionFormat"] = None, retention_times: Optional[List[datetime.datetime]] = None, retention_duration: Optional["_models.RetentionDuration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword retention_schedule_format_type: Retention schedule format type for monthly retention policy. Known values are: "Invalid", "Daily", and "Weekly". @@ -17551,8 +17565,8 @@ def __init__( object_type: Optional[str] = None, source_tier_type: Optional[Union[str, "_models.RecoveryPointTierType"]] = None, target_tier_type: Optional[Union[str, "_models.RecoveryPointTierType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword object_type: Gets the class type. :paramtype object_type: str @@ -17585,7 +17599,7 @@ class NameInfo(_serialization.Model): "localized_value": {"key": "localizedValue", "type": "str"}, } - def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str] = None, **kwargs): + def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Value of usage. :paramtype value: str @@ -17608,7 +17622,7 @@ class NewErrorResponse(_serialization.Model): "error": {"key": "error", "type": "NewErrorResponseError"}, } - def __init__(self, *, error: Optional["_models.NewErrorResponseError"] = None, **kwargs): + def __init__(self, *, error: Optional["_models.NewErrorResponseError"] = None, **kwargs: Any) -> None: """ :keyword error: The error object. :paramtype error: ~azure.mgmt.recoveryservicesbackup.activestamp.models.NewErrorResponseError @@ -17651,7 +17665,7 @@ class NewErrorResponseError(_serialization.Model): "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -17682,7 +17696,7 @@ class OperationResultInfo(OperationResultInfoBase): "job_list": {"key": "jobList", "type": "[str]"}, } - def __init__(self, *, job_list: Optional[List[str]] = None, **kwargs): + def __init__(self, *, job_list: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword job_list: List of jobs created by this operation. :paramtype job_list: list[str] @@ -17722,8 +17736,8 @@ def __init__( *, status_code: Optional[Union[str, "_models.HttpStatusCode"]] = None, headers: Optional[Dict[str, List[str]]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status_code: HTTP Status Code of the operation. Known values are: "Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", @@ -17781,8 +17795,8 @@ def __init__( status_code: Optional[Union[str, "_models.HttpStatusCode"]] = None, headers: Optional[Dict[str, List[str]]] = None, operation: Optional["_models.OperationResultInfoBase"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status_code: HTTP Status Code of the operation. Known values are: "Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", @@ -17849,8 +17863,8 @@ def __init__( end_time: Optional[datetime.datetime] = None, error: Optional["_models.OperationStatusError"] = None, properties: Optional["_models.OperationStatusExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: ID of the operation. :paramtype id: str @@ -17894,7 +17908,7 @@ class OperationStatusError(_serialization.Model): "message": {"key": "message", "type": "str"}, } - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs): + def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: """ :keyword code: Error code of the operation failure. :paramtype code: str @@ -17937,7 +17951,7 @@ class OperationStatusExtendedInfo(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -17964,7 +17978,7 @@ class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): "job_id": {"key": "jobId", "type": "str"}, } - def __init__(self, *, job_id: Optional[str] = None, **kwargs): + def __init__(self, *, job_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword job_id: ID of the job created for this protected item. :paramtype job_id: str @@ -17999,8 +18013,8 @@ class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): } def __init__( - self, *, job_ids: Optional[List[str]] = None, failed_jobs_error: Optional[Dict[str, str]] = None, **kwargs - ): + self, *, job_ids: Optional[List[str]] = None, failed_jobs_error: Optional[Dict[str, str]] = None, **kwargs: Any + ) -> None: """ :keyword job_ids: IDs of the jobs created for the protected item. :paramtype job_ids: list[str] @@ -18036,7 +18050,7 @@ class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): "recovery_target": {"key": "recoveryTarget", "type": "InstantItemRecoveryTarget"}, } - def __init__(self, *, recovery_target: Optional["_models.InstantItemRecoveryTarget"] = None, **kwargs): + def __init__(self, *, recovery_target: Optional["_models.InstantItemRecoveryTarget"] = None, **kwargs: Any) -> None: """ :keyword recovery_target: Target details for file / folder restore. :paramtype recovery_target: @@ -18069,7 +18083,9 @@ class OperationStatusValidateOperationExtendedInfo(OperationStatusExtendedInfo): "validate_operation_response": {"key": "validateOperationResponse", "type": "ValidateOperationResponse"}, } - def __init__(self, *, validate_operation_response: Optional["_models.ValidateOperationResponse"] = None, **kwargs): + def __init__( + self, *, validate_operation_response: Optional["_models.ValidateOperationResponse"] = None, **kwargs: Any + ) -> None: """ :keyword validate_operation_response: Gets the validation operation response. :paramtype validate_operation_response: @@ -18095,8 +18111,12 @@ class PointInTimeRange(_serialization.Model): } def __init__( - self, *, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, **kwargs - ): + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + **kwargs: Any + ) -> None: """ :keyword start_time: Start time of the time range for log recovery. :paramtype start_time: ~datetime.datetime @@ -18132,8 +18152,8 @@ def __init__( status: Optional[Union[str, "_models.InquiryStatus"]] = None, code: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Status of protectable item, i.e. InProgress,Succeeded,Failed. Known values are: "Invalid", "Success", and "Failed". @@ -18191,8 +18211,8 @@ def __init__( data_move_level: Union[str, "_models.DataMoveLevel"], source_container_arm_ids: Optional[List[str]] = None, ignore_moved: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_resource_id: ARM Id of target vault. Required. :paramtype target_resource_id: str @@ -18239,7 +18259,7 @@ class VaultStorageConfigOperationResultResponse(_serialization.Model): _subtype_map = {"object_type": {"PrepareDataMoveResponse": "PrepareDataMoveResponse"}} - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -18274,8 +18294,8 @@ def __init__( *, correlation_id: Optional[str] = None, source_vault_properties: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword correlation_id: Co-relationId for move operation. :paramtype correlation_id: str @@ -18289,7 +18309,8 @@ def __init__( class PreValidateEnableBackupRequest(_serialization.Model): - """Contract to validate if backup can be enabled on the given resource in a given vault and given configuration. + """Contract to validate if backup can be enabled on the given resource in a given vault and given + configuration. It will validate followings @@ -18297,18 +18318,18 @@ class PreValidateEnableBackupRequest(_serialization.Model): #. VM is already protected #. Any VM related configuration passed in properties. - :ivar resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Known values are: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". - :vartype resource_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType - :ivar resource_id: ARM Virtual Machine Id. - :vartype resource_id: str - :ivar vault_id: ARM id of the Recovery Services Vault. - :vartype vault_id: str - :ivar properties: Configuration of VM if any needs to be validated like OS type etc. - :vartype properties: str + :ivar resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Known values are: + "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", + "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", + "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + :vartype resource_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType + :ivar resource_id: ARM Virtual Machine Id. + :vartype resource_id: str + :ivar vault_id: ARM id of the Recovery Services Vault. + :vartype vault_id: str + :ivar properties: Configuration of VM if any needs to be validated like OS type etc. + :vartype properties: str """ _attribute_map = { @@ -18325,8 +18346,8 @@ def __init__( resource_id: Optional[str] = None, vault_id: Optional[str] = None, properties: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", @@ -18386,8 +18407,8 @@ def __init__( recommendation: Optional[str] = None, container_name: Optional[str] = None, protected_item_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Validation Status. Known values are: "Invalid", "Succeeded", and "Failed". :paramtype status: str or @@ -18426,7 +18447,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: Gets or sets id. :paramtype id: str @@ -18467,8 +18488,8 @@ def __init__( provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None, private_endpoint: Optional["_models.PrivateEndpoint"] = None, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provisioning_state: Gets or sets provisioning state of the private endpoint connection. Known values are: "Succeeded", "Deleting", "Failed", and "Pending". @@ -18535,8 +18556,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.PrivateEndpointConnection"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -18577,8 +18598,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointConnectionStatus"]] = None, description: Optional[str] = None, action_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Gets or sets the status. Known values are: "Pending", "Approved", "Rejected", and "Disconnected". @@ -18640,8 +18661,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ProtectableContainer"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -18678,8 +18699,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.ProtectableContainerResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -18746,8 +18767,8 @@ def __init__( friendly_name: Optional[str] = None, fabric_name: Optional[str] = None, backup_set_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_state: Health State for the backed up item. Known values are: "Passed", "ActionRequired", "ActionSuggested", and "Invalid". @@ -18834,8 +18855,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ProtectedItem"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -18871,8 +18892,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.ProtectedItemResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -18886,7 +18907,8 @@ def __init__( class ProtectionContainerResource(Resource): - """Base class for container with backup items. Containers with specific workloads are derived from this class. + """Base class for container with backup items. Containers with specific workloads are derived from + this class. Variables are only populated by the server, and will be ignored when sending a request. @@ -18930,8 +18952,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ProtectionContainer"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -18968,8 +18990,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.ProtectionContainerResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -19013,8 +19035,8 @@ def __init__( item_type: Optional[Union[str, "_models.IntentItemType"]] = None, parent_name: Optional[str] = None, item_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -19082,8 +19104,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ProtectionIntent"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -19119,8 +19141,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.ProtectionIntentResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -19163,8 +19185,8 @@ def __init__( backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, fabric_name: Optional[str] = None, workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type for the backup policy. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -19231,8 +19253,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ProtectionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -19268,8 +19290,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.ProtectionPolicyResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -19311,8 +19333,8 @@ def __init__( number_of_disks_attached_to_vm: Optional[int] = None, included_disk_list: Optional[List["_models.DiskInformation"]] = None, excluded_disk_list: Optional[List["_models.DiskInformation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword number_of_disks_included_in_backup: Number of disks included in backup. :paramtype number_of_disks_included_in_backup: int @@ -19346,7 +19368,9 @@ class RecoveryPointMoveReadinessInfo(_serialization.Model): "additional_info": {"key": "additionalInfo", "type": "str"}, } - def __init__(self, *, is_ready_for_move: Optional[bool] = None, additional_info: Optional[str] = None, **kwargs): + def __init__( + self, *, is_ready_for_move: Optional[bool] = None, additional_info: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword is_ready_for_move: :paramtype is_ready_for_move: bool @@ -19379,8 +19403,8 @@ def __init__( *, rehydration_retention_duration: Optional[str] = None, rehydration_priority: Optional[Union[str, "_models.RehydrationPriority"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword rehydration_retention_duration: How long the rehydrated RP should be kept Should be ISO8601 Duration format e.g. "P7D". @@ -19439,8 +19463,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.RecoveryPoint"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -19476,8 +19500,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.RecoveryPointResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -19517,8 +19541,8 @@ def __init__( type: Optional[Union[str, "_models.RecoveryPointTierType"]] = None, status: Optional[Union[str, "_models.RecoveryPointTierStatus"]] = None, extended_info: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Recovery point tier type. Known values are: "Invalid", "InstantRP", "HardenedRP", and "ArchivedRP". @@ -19564,8 +19588,8 @@ def __init__( type: Optional[Union[str, "_models.RecoveryPointTierType"]] = None, status: Optional[Union[str, "_models.RecoveryPointTierStatus"]] = None, extended_info: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Recovery point tier type. Known values are: "Invalid", "InstantRP", "HardenedRP", and "ArchivedRP". @@ -19600,8 +19624,8 @@ def __init__( *, vault_critical_operation: Optional[str] = None, default_resource_request: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vault_critical_operation: :paramtype vault_critical_operation: str @@ -19644,8 +19668,8 @@ def __init__( resource_guard_operation_details: Optional[List["_models.ResourceGuardOperationDetail"]] = None, last_updated_time: Optional[str] = None, description: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword resource_guard_resource_id: :paramtype resource_guard_resource_id: str @@ -19710,8 +19734,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ResourceGuardProxyBase"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -19748,8 +19772,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.ResourceGuardProxyBaseResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -19785,8 +19809,8 @@ def __init__( path: Optional[str] = None, file_spec_type: Optional[str] = None, target_folder_path: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword path: Source File/Folder path. :paramtype path: str @@ -19846,8 +19870,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.RestoreRequest"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -19885,8 +19909,8 @@ def __init__( *, count: Optional[int] = None, duration_type: Optional[Union[str, "_models.RetentionDurationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword count: Count of duration types. Retention duration is obtained by the counting the duration type Count times. @@ -19913,7 +19937,7 @@ class SecurityPinBase(_serialization.Model): "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, } - def __init__(self, *, resource_guard_operation_requests: Optional[List[str]] = None, **kwargs): + def __init__(self, *, resource_guard_operation_requests: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. :paramtype resource_guard_operation_requests: list[str] @@ -19947,8 +19971,8 @@ def __init__( time_zone: Optional[str] = None, issqlcompression: Optional[bool] = None, is_compression: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". @@ -19988,7 +20012,7 @@ class SimpleRetentionPolicy(RetentionPolicy): "retention_duration": {"key": "retentionDuration", "type": "RetentionDuration"}, } - def __init__(self, *, retention_duration: Optional["_models.RetentionDuration"] = None, **kwargs): + def __init__(self, *, retention_duration: Optional["_models.RetentionDuration"] = None, **kwargs: Any) -> None: """ :keyword retention_duration: Retention duration of the protection policy. :paramtype retention_duration: @@ -20043,8 +20067,8 @@ def __init__( schedule_run_times: Optional[List[datetime.datetime]] = None, hourly_schedule: Optional["_models.HourlySchedule"] = None, schedule_weekly_frequency: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schedule_run_frequency: Frequency of the schedule operation of this policy. Known values are: "Invalid", "Daily", "Weekly", and "Hourly". @@ -20109,8 +20133,8 @@ def __init__( hourly_schedule: Optional["_models.HourlySchedule"] = None, daily_schedule: Optional["_models.DailySchedule"] = None, weekly_schedule: Optional["_models.WeeklySchedule"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schedule_run_frequency: Frequency of the schedule operation of this policy. Known values are: "Invalid", "Daily", "Weekly", and "Hourly". @@ -20157,8 +20181,8 @@ def __init__( type: Optional[Union[str, "_models.SQLDataDirectoryType"]] = None, path: Optional[str] = None, logical_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Type of data directory mapping. Known values are: "Invalid", "Data", and "Log". :paramtype type: str or @@ -20203,8 +20227,8 @@ def __init__( source_logical_name: Optional[str] = None, source_path: Optional[str] = None, target_path: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mapping_type: Type of data directory mapping. Known values are: "Invalid", "Data", and "Log". @@ -20257,8 +20281,8 @@ def __init__( schedule_policy: Optional["_models.SchedulePolicy"] = None, retention_policy: Optional["_models.RetentionPolicy"] = None, tiering_policy: Optional[Dict[str, "_models.TieringPolicy"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword policy_type: Type of backup policy type. Known values are: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", "Incremental", "SnapshotFull", and @@ -20297,7 +20321,7 @@ class TargetAFSRestoreInfo(_serialization.Model): "target_resource_id": {"key": "targetResourceId", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, target_resource_id: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, target_resource_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: File share name. :paramtype name: str @@ -20339,8 +20363,8 @@ def __init__( container_id: Optional[str] = None, database_name: Optional[str] = None, target_directory_for_file_restore: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword overwrite_option: Can Overwrite if Target DataBase already exists. Known values are: "Invalid", "FailOnConflict", and "Overwrite". @@ -20363,27 +20387,28 @@ def __init__( class TieringPolicy(_serialization.Model): """Tiering Policy for a target tier. - If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier. - - :ivar tiering_mode: Tiering Mode to control automatic tiering of recovery points. Supported - values are: - - - #. TierRecommended: Tier all recovery points recommended to be tiered - #. TierAfter: Tier all recovery points after a fixed period, as specified in duration + - durationType below. - #. DoNotTier: Do not tier any recovery points. Known values are: "Invalid", "TierRecommended", - "TierAfter", and "DoNotTier". - :vartype tiering_mode: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringMode - :ivar duration: Number of days/weeks/months/years to retain backups in current tier before - tiering. - Used only if TieringMode is set to TierAfter. - :vartype duration: int - :ivar duration_type: Retention duration type: days/weeks/months/years - Used only if TieringMode is set to TierAfter. Known values are: "Invalid", "Days", "Weeks", - "Months", and "Years". - :vartype duration_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDurationType + If the policy is not specified for a given target tier, service retains the existing configured + tiering policy for that tier. + + :ivar tiering_mode: Tiering Mode to control automatic tiering of recovery points. Supported + values are: + + + #. TierRecommended: Tier all recovery points recommended to be tiered + #. TierAfter: Tier all recovery points after a fixed period, as specified in duration + + durationType below. + #. DoNotTier: Do not tier any recovery points. Known values are: "Invalid", "TierRecommended", + "TierAfter", and "DoNotTier". + :vartype tiering_mode: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringMode + :ivar duration: Number of days/weeks/months/years to retain backups in current tier before + tiering. + Used only if TieringMode is set to TierAfter. + :vartype duration: int + :ivar duration_type: Retention duration type: days/weeks/months/years + Used only if TieringMode is set to TierAfter. Known values are: "Invalid", "Days", "Weeks", + "Months", and "Years". + :vartype duration_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDurationType """ _attribute_map = { @@ -20398,8 +20423,8 @@ def __init__( tiering_mode: Optional[Union[str, "_models.TieringMode"]] = None, duration: Optional[int] = None, duration_type: Optional[Union[str, "_models.RetentionDurationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tiering_mode: Tiering Mode to control automatic tiering of recovery points. Supported values are: @@ -20451,8 +20476,8 @@ def __init__( token: Optional[str] = None, expiry_time_in_utc_ticks: Optional[int] = None, security_pin: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword token: Token value. :paramtype token: str @@ -20513,8 +20538,8 @@ def __init__( correlation_id: str, source_container_arm_ids: Optional[List[str]] = None, pause_gc: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_resource_id: ARM Id of source vault. Required. :paramtype source_resource_id: str @@ -20559,8 +20584,8 @@ def __init__( *, resource_guard_operation_requests: Optional[List[str]] = None, resource_to_be_deleted: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword resource_guard_operation_requests: :paramtype resource_guard_operation_requests: list[str] @@ -20584,7 +20609,7 @@ class UnlockDeleteResponse(_serialization.Model): "unlock_delete_expiry_time": {"key": "unlockDeleteExpiryTime", "type": "str"}, } - def __init__(self, *, unlock_delete_expiry_time: Optional[str] = None, **kwargs): + def __init__(self, *, unlock_delete_expiry_time: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unlock_delete_expiry_time: This is the time when unlock delete privileges will get expired. @@ -20617,7 +20642,7 @@ class ValidateOperationRequest(_serialization.Model): _subtype_map = {"object_type": {"ValidateRestoreOperationRequest": "ValidateRestoreOperationRequest"}} - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -20649,7 +20674,7 @@ class ValidateRestoreOperationRequest(ValidateOperationRequest): _subtype_map = {"object_type": {"ValidateIaasVMRestoreOperationRequest": "ValidateIaasVMRestoreOperationRequest"}} - def __init__(self, *, restore_request: Optional["_models.RestoreRequest"] = None, **kwargs): + def __init__(self, *, restore_request: Optional["_models.RestoreRequest"] = None, **kwargs: Any) -> None: """ :keyword restore_request: Sets restore request to be validated. :paramtype restore_request: @@ -20681,7 +20706,7 @@ class ValidateIaasVMRestoreOperationRequest(ValidateRestoreOperationRequest): "restore_request": {"key": "restoreRequest", "type": "RestoreRequest"}, } - def __init__(self, *, restore_request: Optional["_models.RestoreRequest"] = None, **kwargs): + def __init__(self, *, restore_request: Optional["_models.RestoreRequest"] = None, **kwargs: Any) -> None: """ :keyword restore_request: Sets restore request to be validated. :paramtype restore_request: @@ -20703,7 +20728,7 @@ class ValidateOperationResponse(_serialization.Model): "validation_results": {"key": "validationResults", "type": "[ErrorDetail]"}, } - def __init__(self, *, validation_results: Optional[List["_models.ErrorDetail"]] = None, **kwargs): + def __init__(self, *, validation_results: Optional[List["_models.ErrorDetail"]] = None, **kwargs: Any) -> None: """ :keyword validation_results: Gets the validation result. :paramtype validation_results: @@ -20725,7 +20750,9 @@ class ValidateOperationsResponse(_serialization.Model): "validate_operation_response": {"key": "validateOperationResponse", "type": "ValidateOperationResponse"}, } - def __init__(self, *, validate_operation_response: Optional["_models.ValidateOperationResponse"] = None, **kwargs): + def __init__( + self, *, validate_operation_response: Optional["_models.ValidateOperationResponse"] = None, **kwargs: Any + ) -> None: """ :keyword validate_operation_response: Base class for validate operation response. :paramtype validate_operation_response: @@ -20806,8 +20833,8 @@ def __init__( actions_info: Optional[List[Union[str, "_models.JobSupportedAction"]]] = None, error_details: Optional[List["_models.VaultJobErrorInfo"]] = None, extended_info: Optional["_models.VaultJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -20879,8 +20906,8 @@ def __init__( error_code: Optional[int] = None, error_string: Optional[str] = None, recommendations: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_code: Error code. :paramtype error_code: int @@ -20906,7 +20933,7 @@ class VaultJobExtendedInfo(_serialization.Model): "property_bag": {"key": "propertyBag", "type": "{str}"}, } - def __init__(self, *, property_bag: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, property_bag: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword property_bag: Job properties. :paramtype property_bag: dict[str, str] @@ -20936,8 +20963,8 @@ def __init__( *, days_of_the_week: Optional[List[Union[str, "_models.DayOfWeek"]]] = None, weeks_of_the_month: Optional[List[Union[str, "_models.WeekOfMonth"]]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword days_of_the_week: List of days of the week. :paramtype days_of_the_week: list[str or @@ -20976,8 +21003,8 @@ def __init__( days_of_the_week: Optional[List[Union[str, "_models.DayOfWeek"]]] = None, retention_times: Optional[List[datetime.datetime]] = None, retention_duration: Optional["_models.RetentionDuration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword days_of_the_week: List of days of week for weekly retention policy. :paramtype days_of_the_week: list[str or @@ -21014,8 +21041,8 @@ def __init__( *, schedule_run_days: Optional[List[Union[str, "_models.DayOfWeek"]]] = None, schedule_run_times: Optional[List[datetime.datetime]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schedule_run_days: :paramtype schedule_run_days: list[str or @@ -21052,8 +21079,8 @@ def __init__( type: Optional[str] = None, item_count: Optional[int] = None, inquiry_validation: Optional["_models.InquiryValidation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Type of the Workload such as SQL, Oracle etc. :paramtype type: str @@ -21115,8 +21142,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.WorkloadItem"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -21148,8 +21175,12 @@ class WorkloadItemResourceList(ResourceList): } def __init__( - self, *, next_link: Optional[str] = None, value: Optional[List["_models.WorkloadItemResource"]] = None, **kwargs - ): + self, + *, + next_link: Optional[str] = None, + value: Optional[List["_models.WorkloadItemResource"]] = None, + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -21208,8 +21239,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.WorkloadProtectableItem"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -21246,8 +21277,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.WorkloadProtectableItemResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -21301,8 +21332,8 @@ def __init__( retention_schedule_weekly: Optional["_models.WeeklyRetentionFormat"] = None, retention_times: Optional[List[datetime.datetime]] = None, retention_duration: Optional["_models.RetentionDuration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword retention_schedule_format_type: Retention schedule format for yearly retention policy. Known values are: "Invalid", "Daily", and "Weekly". diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_serialization.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_serialization.py index 2c170e28dbca..f17c068e833e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_serialization.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_serialization.py @@ -38,7 +38,22 @@ import re import sys import codecs -from typing import Optional, Union, AnyStr, IO, Mapping +from typing import ( + Dict, + Any, + cast, + Optional, + Union, + AnyStr, + IO, + Mapping, + Callable, + TypeVar, + MutableMapping, + Type, + List, + Mapping, +) try: from urllib import quote # type: ignore @@ -48,12 +63,14 @@ import isodate # type: ignore -from typing import Dict, Any, cast - from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback +from azure.core.serialization import NULL as AzureCoreNull _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") +ModelType = TypeVar("ModelType", bound="Model") +JSON = MutableMapping[str, Any] + class RawDeserializer: @@ -277,8 +294,8 @@ class Model(object): _attribute_map: Dict[str, Dict[str, Any]] = {} _validation: Dict[str, Dict[str, Any]] = {} - def __init__(self, **kwargs): - self.additional_properties = {} + def __init__(self, **kwargs: Any) -> None: + self.additional_properties: Dict[str, Any] = {} for k in kwargs: if k not in self._attribute_map: _LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__) @@ -287,25 +304,25 @@ def __init__(self, **kwargs): else: setattr(self, k, kwargs[k]) - def __eq__(self, other): + def __eq__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" if isinstance(other, self.__class__): return self.__dict__ == other.__dict__ return False - def __ne__(self, other): + def __ne__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" return not self.__eq__(other) - def __str__(self): + def __str__(self) -> str: return str(self.__dict__) @classmethod - def enable_additional_properties_sending(cls): + def enable_additional_properties_sending(cls) -> None: cls._attribute_map["additional_properties"] = {"key": "", "type": "{object}"} @classmethod - def is_xml_model(cls): + def is_xml_model(cls) -> bool: try: cls._xml_map # type: ignore except AttributeError: @@ -322,7 +339,7 @@ def _create_xml_node(cls): return _create_xml_node(xml_map.get("name", cls.__name__), xml_map.get("prefix", None), xml_map.get("ns", None)) - def serialize(self, keep_readonly=False, **kwargs): + def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: """Return the JSON that would be sent to azure from this model. This is an alias to `as_dict(full_restapi_key_transformer, keep_readonly=False)`. @@ -336,8 +353,13 @@ def serialize(self, keep_readonly=False, **kwargs): serializer = Serializer(self._infer_class_models()) return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) - def as_dict(self, keep_readonly=True, key_transformer=attribute_transformer, **kwargs): - """Return a dict that can be JSONify using json.dump. + def as_dict( + self, + keep_readonly: bool = True, + key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, + **kwargs: Any + ) -> JSON: + """Return a dict that can be serialized using json.dump. Advanced usage might optionally use a callback as parameter: @@ -384,7 +406,7 @@ def _infer_class_models(cls): return client_models @classmethod - def deserialize(cls, data, content_type=None): + def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = None) -> ModelType: """Parse a str using the RestAPI syntax and return a model. :param str data: A str using RestAPI structure. JSON by default. @@ -396,7 +418,12 @@ def deserialize(cls, data, content_type=None): return deserializer(cls.__name__, data, content_type=content_type) @classmethod - def from_dict(cls, data, key_extractors=None, content_type=None): + def from_dict( + cls: Type[ModelType], + data: Any, + key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None, + content_type: Optional[str] = None, + ) -> ModelType: """Parse a dict using given key extractor return a model. By default consider key @@ -409,8 +436,8 @@ def from_dict(cls, data, key_extractors=None, content_type=None): :raises: DeserializationError if something went wrong """ deserializer = Deserializer(cls._infer_class_models()) - deserializer.key_extractors = ( - [ + deserializer.key_extractors = ( # type: ignore + [ # type: ignore attribute_key_case_insensitive_extractor, rest_key_case_insensitive_extractor, last_rest_key_case_insensitive_extractor, @@ -518,7 +545,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -534,7 +561,7 @@ def __init__(self, classes=None): "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True @@ -626,8 +653,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): serialized.append(local_node) # type: ignore else: # JSON for k in reversed(keys): # type: ignore - unflattened = {k: new_attr} - new_attr = unflattened + new_attr = {k: new_attr} _new_attr = new_attr _serialized = serialized @@ -656,8 +682,8 @@ def body(self, data, data_type, **kwargs): """ # Just in case this is a dict - internal_data_type = data_type.strip("[]{}") - internal_data_type = self.dependencies.get(internal_data_type, None) + internal_data_type_str = data_type.strip("[]{}") + internal_data_type = self.dependencies.get(internal_data_type_str, None) try: is_xml_model_serialization = kwargs["is_xml"] except KeyError: @@ -777,6 +803,8 @@ def serialize_data(self, data, data_type, **kwargs): raise ValueError("No value for given attribute") try: + if data is AzureCoreNull: + return None if data_type in self.basic_types.values(): return self.serialize_basic(data, data_type, **kwargs) @@ -1161,7 +1189,8 @@ def rest_key_extractor(attr, attr_desc, data): working_data = data while "." in key: - dict_keys = _FLATTEN.split(key) + # Need the cast, as for some reasons "split" is typed as list[str | Any] + dict_keys = cast(List[str], _FLATTEN.split(key)) if len(dict_keys) == 1: key = _decode_attribute_map_key(dict_keys[0]) break @@ -1332,7 +1361,7 @@ class Deserializer(object): valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, @@ -1352,7 +1381,7 @@ def __init__(self, classes=None): "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_extractors = [rest_key_extractor, xml_key_extractor] # Additional properties only works if the "rest_key_extractor" is used to # extract the keys. Making it to work whatever the key extractor is too much @@ -1471,7 +1500,7 @@ def _classify_target(self, target, data): Once classification has been determined, initialize object. :param str target: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. """ if target is None: return None, None @@ -1486,7 +1515,7 @@ def _classify_target(self, target, data): target = target._classify(data, self.dependencies) except AttributeError: pass # Target is not a Model, no classify - return target, target.__class__.__name__ + return target, target.__class__.__name__ # type: ignore def failsafe_deserialize(self, target_obj, data, content_type=None): """Ignores any errors encountered in deserialization, @@ -1496,7 +1525,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None): a deserialization error. :param str target_obj: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. :param str content_type: Swagger "produces" if available. """ try: diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_vendor.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_vendor.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_vendor.py @@ -5,6 +5,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import List, cast + from azure.core.pipeline.transport import HttpRequest @@ -22,6 +24,7 @@ def _format_url_section(template, **kwargs): try: return template.format(**kwargs) except KeyError as key: - formatted_components = template.split("/") + # Need the cast, as for some reasons "split" is typed as list[str | Any] + formatted_components = cast(List[str], template.split("/")) components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] template = "/".join(components) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py index 7b732048e01e..e5754a47ce68 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "5.1.0b3" +VERSION = "1.0.0b1" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/_models_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/_models_py3.py index 9bc95a4e0c05..d89f1759602f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/_models_py3.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/_models_py3.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from .. import _serialization @@ -48,8 +48,8 @@ def __init__( authority: Optional[str] = None, audience: Optional[str] = None, service_principal_object_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_principal_client_id: :paramtype service_principal_client_id: str @@ -111,8 +111,8 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -175,8 +175,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.AADProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -296,8 +296,8 @@ def __init__( is_deferred_delete_schedule_upcoming: Optional[bool] = None, is_rehydrate: Optional[bool] = None, resource_guard_operation_requests: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -488,8 +488,8 @@ def __init__( last_backup_time: Optional[datetime.datetime] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, extended_info: Optional["_models.AzureFileshareProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -623,8 +623,8 @@ def __init__( oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_state: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. :paramtype oldest_recovery_point: ~datetime.datetime @@ -674,7 +674,7 @@ class RecoveryPoint(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -717,7 +717,7 @@ class AzureFileShareRecoveryPoint(RecoveryPoint): "recovery_point_size_in_gb": {"key": "recoveryPointSizeInGB", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: str = "AzureFileShareRecoveryPoint" @@ -756,7 +756,7 @@ class RestoreRequest(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -816,8 +816,8 @@ def __init__( restore_request_type: Optional[Union[str, "_models.RestoreRequestType"]] = None, restore_file_specs: Optional[List["_models.RestoreFileSpecs"]] = None, target_details: Optional["_models.TargetAFSRestoreInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -1007,8 +1007,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_data_id: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -1265,8 +1265,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_data_id: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -1523,8 +1523,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_data_id: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -1664,7 +1664,7 @@ class AzureIaaSVMErrorInfo(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.error_code = None @@ -1702,7 +1702,7 @@ class ResourceHealthDetails(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -1740,7 +1740,7 @@ class AzureIaaSVMHealthDetails(ResourceHealthDetails): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) @@ -1810,8 +1810,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, activity_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -1919,8 +1919,8 @@ def __init__( error_details: Optional[List["_models.AzureIaaSVMErrorInfo"]] = None, virtual_machine_version: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -2010,8 +2010,8 @@ def __init__( progress_percentage: Optional[float] = None, estimated_remaining_duration: Optional[str] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks associated with this job. :paramtype tasks_list: @@ -2081,8 +2081,8 @@ def __init__( status: Optional[str] = None, progress_percentage: Optional[float] = None, task_execution_details: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -2137,8 +2137,8 @@ def __init__( oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_inconsistent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this backup item. :paramtype oldest_recovery_point: ~datetime.datetime @@ -2259,8 +2259,8 @@ def __init__( protected_item_data_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectedItemState"]] = None, extended_info: Optional["_models.AzureSqlProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -2362,8 +2362,8 @@ def __init__( oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_state: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. :paramtype oldest_recovery_point: ~datetime.datetime @@ -2402,8 +2402,8 @@ def __init__( error_code: Optional[int] = None, error_string: Optional[str] = None, recommendations: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_code: Error code. :paramtype error_code: int @@ -2498,8 +2498,8 @@ def __init__( storage_account_name: Optional[str] = None, storage_account_version: Optional[str] = None, extended_info: Optional["_models.AzureStorageJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -2579,8 +2579,8 @@ def __init__( tasks_list: Optional[List["_models.AzureStorageJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks for this job. :paramtype tasks_list: @@ -2610,7 +2610,7 @@ class AzureStorageJobTaskDetails(_serialization.Model): "status": {"key": "status", "type": "str"}, } - def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs): + def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs: Any) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -2786,8 +2786,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -2927,8 +2927,8 @@ def __init__( oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_state: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword oldest_recovery_point: The oldest backup copy available for this backup item. :paramtype oldest_recovery_point: ~datetime.datetime @@ -3098,8 +3098,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -3369,8 +3369,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -3640,8 +3640,8 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -3788,8 +3788,8 @@ def __init__( error_title: Optional[str] = None, recommendations: Optional[List[str]] = None, additional_details: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_code: Error code. :paramtype error_code: int @@ -3885,8 +3885,8 @@ def __init__( actions_info: Optional[List[Union[str, "_models.JobSupportedAction"]]] = None, error_details: Optional[List["_models.AzureWorkloadErrorInfo"]] = None, extended_info: Optional["_models.AzureWorkloadJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -3962,8 +3962,8 @@ def __init__( tasks_list: Optional[List["_models.AzureWorkloadJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks for this job. :paramtype tasks_list: @@ -3993,7 +3993,7 @@ class AzureWorkloadJobTaskDetails(_serialization.Model): "status": {"key": "status", "type": "str"}, } - def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs): + def __init__(self, *, task_id: Optional[str] = None, status: Optional[str] = None, **kwargs: Any) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -4062,8 +4062,8 @@ def __init__( *, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformation"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -4137,8 +4137,8 @@ def __init__( recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformation"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -4223,8 +4223,8 @@ def __init__( target_info: Optional["_models.TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -4313,8 +4313,8 @@ def __init__( recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -4402,8 +4402,8 @@ def __init__( recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformation"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -4485,8 +4485,8 @@ def __init__( target_info: Optional["_models.TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -4577,8 +4577,8 @@ def __init__( recovery_mode: Optional[Union[str, "_models.RecoveryMode"]] = None, target_virtual_machine_id: Optional[str] = None, point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -4661,8 +4661,8 @@ def __init__( *, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformation"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -4680,7 +4680,8 @@ def __init__( class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with extended info. + """SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with + extended info. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint @@ -4739,8 +4740,8 @@ def __init__( recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformation"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, extended_info: Optional["_models.AzureWorkloadSQLRecoveryPointExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -4822,8 +4823,8 @@ def __init__( recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, extended_info: Optional["_models.AzureWorkloadSQLRecoveryPointExtendedInfo"] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -4925,8 +4926,8 @@ def __init__( should_use_alternate_target_location: Optional[bool] = None, is_non_recoverable: Optional[bool] = None, alternate_directory_paths: Optional[List["_models.SQLDataDirectoryMapping"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -5046,8 +5047,8 @@ def __init__( is_non_recoverable: Optional[bool] = None, alternate_directory_paths: Optional[List["_models.SQLDataDirectoryMapping"]] = None, point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_type: Type of this recovery. Known values are: "Invalid", "OriginalLocation", "AlternateLocation", "RestoreDisks", and "Offline". @@ -5119,7 +5120,7 @@ class AzureWorkloadSQLRecoveryPointExtendedInfo(_serialization.Model): "data_directory_paths": {"key": "dataDirectoryPaths", "type": "[SQLDataDirectory]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.data_directory_time_in_utc = None @@ -5162,8 +5163,8 @@ def __init__( current_value: Optional[int] = None, limit: Optional[int] = None, name: Optional["_models.NameInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unit: Unit of the usage. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", and "BytesPerSecond". @@ -5200,7 +5201,7 @@ class BackupManagementUsageList(_serialization.Model): "value": {"key": "value", "type": "[BackupManagementUsage]"}, } - def __init__(self, *, value: Optional[List["_models.BackupManagementUsage"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.BackupManagementUsage"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of backup management usages for the given vault. :paramtype value: @@ -5243,8 +5244,8 @@ def __init__( storage_type: Optional[Union[str, "_models.StorageType"]] = None, storage_type_state: Optional[Union[str, "_models.StorageTypeState"]] = None, cross_region_restore_flag: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_model_type: Storage type. Known values are: "Invalid", "GeoRedundant", "LocallyRedundant", "ZoneRedundant", and "ReadAccessGeoZoneRedundant". @@ -5315,8 +5316,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.BackupResourceConfig"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -5355,8 +5356,8 @@ def __init__( secret_url: Optional[str] = None, secret_vault_id: Optional[str] = None, secret_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword secret_url: Secret is BEK. :paramtype secret_url: str @@ -5386,8 +5387,8 @@ class BMSAADPropertiesQueryObject(_serialization.Model): } def __init__( - self, *, backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, **kwargs - ): + self, *, backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, **kwargs: Any + ) -> None: """ :keyword backup_management_type: Backup management type for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -5411,7 +5412,7 @@ class BMSBackupSummariesQueryObject(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.Type"]] = None, **kwargs): + def __init__(self, *, type: Optional[Union[str, "_models.Type"]] = None, **kwargs: Any) -> None: """ :keyword type: Backup management type for this container. Known values are: "Invalid", "BackupProtectedItemCountSummary", and "BackupProtectionContainerCountSummary". @@ -5455,8 +5456,8 @@ def __init__( restore_point_query_type: Optional[Union[str, "_models.RestorePointQueryType"]] = None, extended_info: Optional[bool] = None, move_ready_rp_only: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword start_date: Backup copies created after this time. :paramtype start_date: ~datetime.datetime @@ -5516,8 +5517,8 @@ def __init__( os_type: Optional[str] = None, url: Optional[str] = None, script_name_suffix: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script_content: File content of the client script for file / folder restore. :paramtype script_content: str @@ -5563,8 +5564,8 @@ def __init__( *, cross_region_restore_access_details: Optional["_models.CrrAccessToken"] = None, restore_request: Optional["_models.RestoreRequest"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword cross_region_restore_access_details: Access details for cross region restore. :paramtype cross_region_restore_access_details: @@ -5624,8 +5625,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.CrossRegionRestoreRequest"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -5769,8 +5770,8 @@ def __init__( # pylint: disable=too-many-locals rp_is_managed_virtual_machine: Optional[bool] = None, rp_vm_size_description: Optional[str] = None, b_ms_active_region: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword access_token_string: Access token used for authentication. :paramtype access_token_string: str @@ -5901,8 +5902,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.CrrAccessToken"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -5931,7 +5932,7 @@ class CrrJobRequest(_serialization.Model): "job_name": {"key": "jobName", "type": "str"}, } - def __init__(self, *, resource_id: Optional[str] = None, job_name: Optional[str] = None, **kwargs): + def __init__(self, *, resource_id: Optional[str] = None, job_name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword resource_id: Entire ARM resource id of the resource. :paramtype resource_id: str @@ -5988,8 +5989,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.CrrJobRequest"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -6020,8 +6021,8 @@ class DiskExclusionProperties(_serialization.Model): } def __init__( - self, *, disk_lun_list: Optional[List[int]] = None, is_inclusion_list: Optional[bool] = None, **kwargs - ): + self, *, disk_lun_list: Optional[List[int]] = None, is_inclusion_list: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used for VM Protection. :paramtype disk_lun_list: list[int] @@ -6048,7 +6049,7 @@ class DiskInformation(_serialization.Model): "name": {"key": "name", "type": "str"}, } - def __init__(self, *, lun: Optional[int] = None, name: Optional[str] = None, **kwargs): + def __init__(self, *, lun: Optional[int] = None, name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword lun: :paramtype lun: int @@ -6074,7 +6075,9 @@ class DpmErrorInfo(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, *, error_string: Optional[str] = None, recommendations: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, error_string: Optional[str] = None, recommendations: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword error_string: Localized error string. :paramtype error_string: str @@ -6173,8 +6176,8 @@ def __init__( actions_info: Optional[List[Union[str, "_models.JobSupportedAction"]]] = None, error_details: Optional[List["_models.DpmErrorInfo"]] = None, extended_info: Optional["_models.DpmJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -6259,8 +6262,8 @@ def __init__( tasks_list: Optional[List["_models.DpmJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks associated with this job. :paramtype tasks_list: @@ -6307,8 +6310,8 @@ def __init__( end_time: Optional[datetime.datetime] = None, duration: Optional[datetime.timedelta] = None, status: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -6437,8 +6440,8 @@ def __init__( backup_engine_name: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectedItemState"]] = None, extended_info: Optional["_models.DPMProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -6586,8 +6589,8 @@ def __init__( protection_group_name: Optional[str] = None, disk_storage_used_in_bytes: Optional[str] = None, total_disk_storage_size_in_bytes: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protectable_object_load_path: Attribute to provide information on various DBs. :paramtype protectable_object_load_path: dict[str, str] @@ -6667,8 +6670,8 @@ def __init__( secret_key_url: Optional[str] = None, kek_vault_id: Optional[str] = None, secret_key_vault_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword encryption_enabled: Identifies whether this backup copy represents an encrypted VM at the time of backup. @@ -6711,7 +6714,7 @@ class ErrorAdditionalInfo(_serialization.Model): "info": {"key": "info", "type": "object"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type = None @@ -6743,7 +6746,7 @@ class ErrorDetail(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6763,7 +6766,9 @@ class ExtendedProperties(_serialization.Model): "disk_exclusion_properties": {"key": "diskExclusionProperties", "type": "DiskExclusionProperties"}, } - def __init__(self, *, disk_exclusion_properties: Optional["_models.DiskExclusionProperties"] = None, **kwargs): + def __init__( + self, *, disk_exclusion_properties: Optional["_models.DiskExclusionProperties"] = None, **kwargs: Any + ) -> None: """ :keyword disk_exclusion_properties: Extended Properties for Disk Exclusion. :paramtype disk_exclusion_properties: @@ -6890,8 +6895,8 @@ def __init__( protected_item_id: Optional[int] = None, source_associations: Optional[Dict[str, str]] = None, fabric_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -7016,8 +7021,8 @@ def __init__( recovery_point_type: Optional[str] = None, recovery_point_time: Optional[datetime.datetime] = None, recovery_point_additional_info: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword friendly_name: Friendly name of the backup copy. :paramtype friendly_name: str @@ -7134,8 +7139,8 @@ def __init__( recovery_point_disk_configuration: Optional["_models.RecoveryPointDiskConfiguration"] = None, zones: Optional[List[str]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword key_and_secret: Required details for recovering an encrypted VM. Applicable only when IsSourceVMEncrypted is true. @@ -7308,8 +7313,8 @@ def __init__( zones: Optional[List[str]] = None, identity_info: Optional["_models.IdentityInfo"] = None, identity_based_restore_details: Optional["_models.IdentityBasedRestoreDetails"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword recovery_point_id: ID of the backup copy to be recovered. :paramtype recovery_point_id: str @@ -7414,7 +7419,9 @@ class IdentityBasedRestoreDetails(_serialization.Model): "target_storage_account_id": {"key": "targetStorageAccountId", "type": "str"}, } - def __init__(self, *, object_type: Optional[str] = None, target_storage_account_id: Optional[str] = None, **kwargs): + def __init__( + self, *, object_type: Optional[str] = None, target_storage_account_id: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword object_type: Gets the class type. :paramtype object_type: str @@ -7447,8 +7454,8 @@ def __init__( *, is_system_assigned_identity: Optional[bool] = None, managed_identity_resource_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_system_assigned_identity: To differentiate if the managed identity is system assigned or user assigned. @@ -7474,7 +7481,9 @@ class InstantItemRecoveryTarget(_serialization.Model): "client_scripts": {"key": "clientScripts", "type": "[ClientScriptForConnect]"}, } - def __init__(self, *, client_scripts: Optional[List["_models.ClientScriptForConnect"]] = None, **kwargs): + def __init__( + self, *, client_scripts: Optional[List["_models.ClientScriptForConnect"]] = None, **kwargs: Any + ) -> None: """ :keyword client_scripts: List of client scripts. :paramtype client_scripts: @@ -7526,8 +7535,8 @@ def __init__( job_id: Optional[str] = None, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Status of the job. Known values are: "Invalid", "InProgress", "Completed", "Failed", "CompletedWithWarnings", "Cancelled", and "Cancelling". @@ -7603,8 +7612,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.Job"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -7631,7 +7640,7 @@ class ResourceList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, next_link: Optional[str] = None, **kwargs): + def __init__(self, *, next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -7657,8 +7666,8 @@ class JobResourceList(ResourceList): } def __init__( - self, *, next_link: Optional[str] = None, value: Optional[List["_models.JobResource"]] = None, **kwargs - ): + self, *, next_link: Optional[str] = None, value: Optional[List["_models.JobResource"]] = None, **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -7693,8 +7702,8 @@ def __init__( key_url: Optional[str] = None, key_vault_id: Optional[str] = None, key_backup_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword key_url: Key is KEK. :paramtype key_url: str @@ -7720,12 +7729,12 @@ class KeyAndSecretDetails(_serialization.Model): #. EncryptionMechanism BEK and KEK can potentially have different vault ids. - :ivar kek_details: KEK is encryption key for BEK. - :vartype kek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KEKDetails - :ivar bek_details: BEK is bitlocker encryption key. - :vartype bek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BEKDetails - :ivar encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. - :vartype encryption_mechanism: str + :ivar kek_details: KEK is encryption key for BEK. + :vartype kek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KEKDetails + :ivar bek_details: BEK is bitlocker encryption key. + :vartype bek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BEKDetails + :ivar encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. + :vartype encryption_mechanism: str """ _attribute_map = { @@ -7740,8 +7749,8 @@ def __init__( kek_details: Optional["_models.KEKDetails"] = None, bek_details: Optional["_models.BEKDetails"] = None, encryption_mechanism: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword kek_details: KEK is encryption key for BEK. :paramtype kek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KEKDetails @@ -7779,8 +7788,8 @@ def __init__( *, resource_health_status: Optional[Union[str, "_models.ResourceHealthStatus"]] = None, resource_health_details: Optional[List["_models.ResourceHealthDetails"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword resource_health_status: Resource Health Status. Known values are: "Healthy", "TransientDegraded", "PersistentDegraded", "TransientUnhealthy", "PersistentUnhealthy", and @@ -7817,7 +7826,7 @@ class MabErrorInfo(_serialization.Model): "recommendations": {"key": "recommendations", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.error_string = None @@ -7942,8 +7951,8 @@ def __init__( protection_state: Optional[str] = None, deferred_delete_sync_time_in_utc: Optional[int] = None, extended_info: Optional["_models.MabFileFolderProtectedItemExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_management_type: Type of backup management for the backed up item. Known values are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", @@ -8054,8 +8063,8 @@ def __init__( last_refreshed_at: Optional[datetime.datetime] = None, oldest_recovery_point: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword last_refreshed_at: Last time when the agent data synced to service. :paramtype last_refreshed_at: ~datetime.datetime @@ -8161,8 +8170,8 @@ def __init__( workload_type: Optional[Union[str, "_models.WorkloadType"]] = None, error_details: Optional[List["_models.MabErrorInfo"]] = None, extended_info: Optional["_models.MabJobExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword entity_friendly_name: Friendly name of the entity on which the current job is executing. @@ -8252,8 +8261,8 @@ def __init__( tasks_list: Optional[List["_models.MabJobTaskDetails"]] = None, property_bag: Optional[Dict[str, str]] = None, dynamic_error_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tasks_list: List of tasks for this job. :paramtype tasks_list: @@ -8300,8 +8309,8 @@ def __init__( end_time: Optional[datetime.datetime] = None, duration: Optional[datetime.timedelta] = None, status: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword task_id: The task display name. :paramtype task_id: str @@ -8336,7 +8345,7 @@ class NameInfo(_serialization.Model): "localized_value": {"key": "localizedValue", "type": "str"}, } - def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str] = None, **kwargs): + def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Value of usage. :paramtype value: str @@ -8359,7 +8368,7 @@ class NewErrorResponse(_serialization.Model): "error": {"key": "error", "type": "NewErrorResponseError"}, } - def __init__(self, *, error: Optional["_models.NewErrorResponseError"] = None, **kwargs): + def __init__(self, *, error: Optional["_models.NewErrorResponseError"] = None, **kwargs: Any) -> None: """ :keyword error: The error object. :paramtype error: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.NewErrorResponseError @@ -8402,7 +8411,7 @@ class NewErrorResponseError(_serialization.Model): "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -8454,8 +8463,8 @@ def __init__( end_time: Optional[datetime.datetime] = None, error: Optional["_models.OperationStatusError"] = None, properties: Optional["_models.OperationStatusExtendedInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: ID of the operation. :paramtype id: str @@ -8499,7 +8508,7 @@ class OperationStatusError(_serialization.Model): "message": {"key": "message", "type": "str"}, } - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs): + def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: """ :keyword code: Error code of the operation failure. :paramtype code: str @@ -8542,7 +8551,7 @@ class OperationStatusExtendedInfo(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.object_type: Optional[str] = None @@ -8569,7 +8578,7 @@ class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): "job_id": {"key": "jobId", "type": "str"}, } - def __init__(self, *, job_id: Optional[str] = None, **kwargs): + def __init__(self, *, job_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword job_id: ID of the job created for this protected item. :paramtype job_id: str @@ -8604,8 +8613,8 @@ class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): } def __init__( - self, *, job_ids: Optional[List[str]] = None, failed_jobs_error: Optional[Dict[str, str]] = None, **kwargs - ): + self, *, job_ids: Optional[List[str]] = None, failed_jobs_error: Optional[Dict[str, str]] = None, **kwargs: Any + ) -> None: """ :keyword job_ids: IDs of the jobs created for the protected item. :paramtype job_ids: list[str] @@ -8641,7 +8650,7 @@ class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): "recovery_target": {"key": "recoveryTarget", "type": "InstantItemRecoveryTarget"}, } - def __init__(self, *, recovery_target: Optional["_models.InstantItemRecoveryTarget"] = None, **kwargs): + def __init__(self, *, recovery_target: Optional["_models.InstantItemRecoveryTarget"] = None, **kwargs: Any) -> None: """ :keyword recovery_target: Target details for file / folder restore. :paramtype recovery_target: @@ -8683,8 +8692,8 @@ def __init__( *, updated_recovery_point: Optional["_models.RecoveryPoint"] = None, deleted_backup_item_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword updated_recovery_point: Recovery Point info with updated source snapshot URI. :paramtype updated_recovery_point: @@ -8714,8 +8723,12 @@ class PointInTimeRange(_serialization.Model): } def __init__( - self, *, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, **kwargs - ): + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + **kwargs: Any + ) -> None: """ :keyword start_time: Start time of the time range for log recovery. :paramtype start_time: ~datetime.datetime @@ -8783,8 +8796,8 @@ def __init__( friendly_name: Optional[str] = None, fabric_name: Optional[str] = None, backup_set_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_state: Health State for the backed up item. Known values are: "Passed", "ActionRequired", "ActionSuggested", and "Invalid". @@ -8871,8 +8884,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.ProtectedItem"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -8908,8 +8921,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.ProtectedItemResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -8951,8 +8964,8 @@ def __init__( number_of_disks_attached_to_vm: Optional[int] = None, included_disk_list: Optional[List["_models.DiskInformation"]] = None, excluded_disk_list: Optional[List["_models.DiskInformation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword number_of_disks_included_in_backup: Number of disks included in backup. :paramtype number_of_disks_included_in_backup: int @@ -8986,7 +8999,9 @@ class RecoveryPointMoveReadinessInfo(_serialization.Model): "additional_info": {"key": "additionalInfo", "type": "str"}, } - def __init__(self, *, is_ready_for_move: Optional[bool] = None, additional_info: Optional[str] = None, **kwargs): + def __init__( + self, *, is_ready_for_move: Optional[bool] = None, additional_info: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword is_ready_for_move: :paramtype is_ready_for_move: bool @@ -9043,8 +9058,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, e_tag: Optional[str] = None, properties: Optional["_models.RecoveryPoint"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -9080,8 +9095,8 @@ def __init__( *, next_link: Optional[str] = None, value: Optional[List["_models.RecoveryPointResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -9121,8 +9136,8 @@ def __init__( type: Optional[Union[str, "_models.RecoveryPointTierType"]] = None, status: Optional[Union[str, "_models.RecoveryPointTierStatus"]] = None, extended_info: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Recovery point tier type. Known values are: "Invalid", "InstantRP", "HardenedRP", and "ArchivedRP". @@ -9164,8 +9179,8 @@ def __init__( path: Optional[str] = None, file_spec_type: Optional[str] = None, target_folder_path: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword path: Source File/Folder path. :paramtype path: str @@ -9204,8 +9219,8 @@ def __init__( type: Optional[Union[str, "_models.SQLDataDirectoryType"]] = None, path: Optional[str] = None, logical_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Type of data directory mapping. Known values are: "Invalid", "Data", and "Log". :paramtype type: str or @@ -9250,8 +9265,8 @@ def __init__( source_logical_name: Optional[str] = None, source_path: Optional[str] = None, target_path: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mapping_type: Type of data directory mapping. Known values are: "Invalid", "Data", and "Log". @@ -9285,7 +9300,7 @@ class TargetAFSRestoreInfo(_serialization.Model): "target_resource_id": {"key": "targetResourceId", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, target_resource_id: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, target_resource_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: File share name. :paramtype name: str @@ -9327,8 +9342,8 @@ def __init__( container_id: Optional[str] = None, database_name: Optional[str] = None, target_directory_for_file_restore: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword overwrite_option: Can Overwrite if Target DataBase already exists. Known values are: "Invalid", "FailOnConflict", and "Overwrite". @@ -9511,8 +9526,8 @@ def __init__( # pylint: disable=too-many-locals container_id: Optional[str] = None, policy_name: Optional[str] = None, policy_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword access_token_string: Access token used for authentication. :paramtype access_token_string: str