diff --git a/sdk/compute/azure-mgmt-compute/_meta.json b/sdk/compute/azure-mgmt-compute/_meta.json index 4727c1ac50f8..7d8b9f2c62eb 100644 --- a/sdk/compute/azure-mgmt-compute/_meta.json +++ b/sdk/compute/azure-mgmt-compute/_meta.json @@ -1,11 +1,11 @@ { - "commit": "24f2c762b5a3ce6bd476dfe204409bb6ed59ed3d", + "commit": "cb067f0a064dc0fa8757a2243c3d6e69e695a93f", "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/compute/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/compute/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/compute/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_serialization.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_serialization.py index 2c170e28dbca..25467dfc00bb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_serialization.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_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,15 @@ 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 +408,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 +420,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 +438,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 +547,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 +563,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 +655,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 +684,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 +805,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 +1191,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 +1363,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 +1383,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 +1502,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 +1517,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 +1527,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/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json index 39dab72889e9..f7cd3610cf62 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py index f350b1dc2b2b..2cb606b4b014 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py @@ -29,7 +29,9 @@ class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -61,8 +63,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -98,7 +100,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -139,8 +141,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2015_06_15.models.ApiErrorBase] @@ -179,8 +181,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -229,7 +231,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -245,7 +247,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -299,8 +310,8 @@ def __init__( platform_update_domain_count: Optional[int] = None, platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -342,7 +353,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2015_06_15.models.AvailabilitySet] @@ -356,7 +369,10 @@ def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optiona class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -370,7 +386,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -404,7 +420,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -422,7 +438,7 @@ class ComputeLongRunningOperationProperties(_serialization.Model): "output": {"key": "output", "type": "object"}, } - def __init__(self, *, output: Optional[JSON] = None, **kwargs): + def __init__(self, *, output: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword output: Operation output data (raw JSON). :paramtype output: JSON @@ -495,8 +511,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -557,14 +573,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -577,7 +594,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -619,8 +636,8 @@ def __init__( disk_encryption_key: "_models.KeyVaultSecretReference", key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. Required. @@ -651,8 +668,12 @@ class DiskInstanceView(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + statuses: Optional[List["_models.InstanceViewStatus"]] = None, + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -695,7 +716,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -725,7 +748,11 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class ImageReference(_serialization.Model): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar publisher: The image publisher. :vartype publisher: str @@ -756,8 +783,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher: The image publisher. :paramtype publisher: str @@ -794,7 +821,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -837,8 +866,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -880,7 +909,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -913,7 +942,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -926,7 +955,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -945,8 +980,8 @@ def __init__( *, disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -974,7 +1009,9 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.Usage"]] = None, next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.Usage"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of compute resource usages. :paramtype value: list[~azure.mgmt.compute.v2015_06_15.models.Usage] @@ -998,7 +1035,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1023,8 +1060,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1049,7 +1090,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -1093,7 +1136,7 @@ class OperationStatusResponse(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -1104,7 +1147,10 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -1172,8 +1218,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -1239,7 +1285,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -1330,8 +1376,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -1403,7 +1449,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -1430,8 +1480,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -1476,7 +1526,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -1493,7 +1543,9 @@ def __init__(self, *, publisher: str, name: str, product: str, **kwargs): class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -1512,8 +1564,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -1541,7 +1593,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2015_06_15.models.SshPublicKey] @@ -1551,7 +1603,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -1569,7 +1622,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -1618,8 +1671,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -1654,7 +1707,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1679,7 +1732,7 @@ class UpgradePolicy(_serialization.Model): "mode": {"key": "mode", "type": "str"}, } - def __init__(self, *, mode: Optional[Union[str, "_models.UpgradeMode"]] = None, **kwargs): + def __init__(self, *, mode: Optional[Union[str, "_models.UpgradeMode"]] = None, **kwargs: Any) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -1727,7 +1780,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -1756,7 +1809,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -1769,7 +1822,8 @@ def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -1793,7 +1847,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -1837,8 +1893,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -1863,7 +1919,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -1976,8 +2032,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2059,8 +2115,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -2102,7 +2158,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -2133,8 +2191,12 @@ class VirtualMachineCaptureResult(SubResource): } def __init__( - self, *, id: Optional[str] = None, output: Optional[JSON] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + output: Optional[JSON] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2226,8 +2288,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2291,8 +2353,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -2369,8 +2431,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2429,8 +2491,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -2498,8 +2560,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2568,8 +2630,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2637,8 +2699,8 @@ def __init__( plan: Optional["_models.PurchasePlan"] = None, os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2711,8 +2773,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -2762,8 +2824,8 @@ class VirtualMachineListResult(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.VirtualMachine"]] = None, next_link: Optional[str] = None, **kwargs - ): + self, *, value: Optional[List["_models.VirtualMachine"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. :paramtype value: list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachine] @@ -2840,8 +2902,8 @@ def __init__( virtual_machine_profile: Optional["_models.VirtualMachineScaleSetVMProfile"] = None, provisioning_state: Optional[str] = None, over_provision: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2921,8 +2983,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2965,7 +3027,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -3001,7 +3065,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2015_06_15.models.InstanceViewStatus] @@ -3030,7 +3094,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -3078,8 +3142,8 @@ def __init__( subnet: Optional["_models.ApiEntityReference"] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3121,8 +3185,8 @@ def __init__( *, value: Optional[List["_models.VirtualMachineScaleSet"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. :paramtype value: list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSet] @@ -3157,7 +3221,7 @@ class VirtualMachineScaleSetListSkusResult(_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 skus available for the virtual machine scale set. Call ListNext() with this to fetch the next page of skus available for the virtual @@ -3189,8 +3253,8 @@ def __init__( *, value: Optional[List["_models.VirtualMachineScaleSet"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. :paramtype value: list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSet] @@ -3237,8 +3301,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3275,8 +3339,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -3341,8 +3405,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. Required. :paramtype name: str @@ -3445,8 +3509,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -3526,7 +3590,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -3565,7 +3629,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -3593,8 +3657,8 @@ def __init__( *, image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2015_06_15.models.ImageReference @@ -3724,8 +3788,8 @@ def __init__( availability_set: Optional["_models.SubResource"] = None, provisioning_state: Optional[str] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3810,7 +3874,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -3830,7 +3894,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -3858,7 +3922,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -3914,8 +3978,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -3969,8 +4033,8 @@ def __init__( *, value: Optional[List["_models.VirtualMachineScaleSetVM"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. :paramtype value: list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVM] @@ -4013,8 +4077,8 @@ def __init__( storage_profile: Optional["_models.VirtualMachineScaleSetStorageProfile"] = None, network_profile: Optional["_models.VirtualMachineScaleSetNetworkProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetOSProfile @@ -4072,8 +4136,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -4110,7 +4174,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineSize] @@ -4140,7 +4204,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -4185,8 +4249,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -4226,7 +4290,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2015_06_15.models.WinRMListener] @@ -4262,8 +4326,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json index 7536a9b1eec4..6d780a88c12a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py index 4854ffb1eab3..809b1df1dab4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py @@ -29,7 +29,9 @@ class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -61,8 +63,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -98,7 +100,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -139,8 +141,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2016_03_30.models.ApiErrorBase] @@ -179,8 +181,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -229,7 +231,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -245,7 +247,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -299,8 +310,8 @@ def __init__( platform_update_domain_count: Optional[int] = None, platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -342,7 +353,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.AvailabilitySet] @@ -356,7 +369,10 @@ def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optiona class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -370,7 +386,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -404,7 +420,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -422,7 +438,7 @@ class ComputeLongRunningOperationProperties(_serialization.Model): "output": {"key": "output", "type": "object"}, } - def __init__(self, *, output: Optional[JSON] = None, **kwargs): + def __init__(self, *, output: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword output: Operation output data (raw JSON). :paramtype output: JSON @@ -495,8 +511,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -557,14 +573,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -577,7 +594,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -613,8 +630,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -645,8 +662,12 @@ class DiskInstanceView(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + statuses: Optional[List["_models.InstanceViewStatus"]] = None, + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -691,7 +712,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -723,7 +746,11 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class ImageReference(_serialization.Model): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar publisher: The image publisher. :vartype publisher: str @@ -754,8 +781,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher: The image publisher. :paramtype publisher: str @@ -792,7 +819,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -835,8 +864,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -878,7 +907,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -911,7 +940,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -924,7 +953,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -943,8 +978,8 @@ def __init__( *, disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -978,7 +1013,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.Usage] @@ -1002,7 +1037,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1027,8 +1062,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1053,7 +1092,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -1097,7 +1138,7 @@ class OperationStatusResponse(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -1108,7 +1149,10 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -1176,8 +1220,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -1243,7 +1287,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -1334,8 +1378,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -1407,7 +1451,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -1434,8 +1482,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -1480,7 +1528,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -1497,7 +1545,9 @@ def __init__(self, *, publisher: str, name: str, product: str, **kwargs): class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -1516,8 +1566,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -1545,7 +1595,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2016_03_30.models.SshPublicKey] @@ -1555,7 +1605,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -1573,7 +1624,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -1622,8 +1673,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -1658,7 +1709,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1683,7 +1734,7 @@ class UpgradePolicy(_serialization.Model): "mode": {"key": "mode", "type": "str"}, } - def __init__(self, *, mode: Optional[Union[str, "_models.UpgradeMode"]] = None, **kwargs): + def __init__(self, *, mode: Optional[Union[str, "_models.UpgradeMode"]] = None, **kwargs: Any) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -1731,7 +1782,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -1760,7 +1811,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -1773,7 +1824,8 @@ def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -1797,7 +1849,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -1841,8 +1895,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -1867,7 +1921,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -1989,8 +2043,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2076,8 +2130,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -2119,7 +2173,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -2150,8 +2206,12 @@ class VirtualMachineCaptureResult(SubResource): } def __init__( - self, *, id: Optional[str] = None, output: Optional[JSON] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + output: Optional[JSON] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2243,8 +2303,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2308,8 +2368,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -2386,8 +2446,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2446,8 +2506,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -2479,7 +2539,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtension] @@ -2535,8 +2595,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2595,7 +2655,7 @@ class VirtualMachineIdentity(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs): + def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs: Any) -> None: """ :keyword type: The type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is @@ -2644,8 +2704,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2713,8 +2773,8 @@ def __init__( plan: Optional["_models.PurchasePlan"] = None, os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2787,8 +2847,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -2843,7 +2903,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachine] @@ -2924,8 +2986,8 @@ def __init__( upgrade_policy: Optional["_models.UpgradePolicy"] = None, virtual_machine_profile: Optional["_models.VirtualMachineScaleSetVMProfile"] = None, over_provision: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3006,8 +3068,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3050,7 +3112,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -3086,7 +3150,7 @@ class VirtualMachineScaleSetIdentity(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs): + def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs: Any) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is @@ -3125,7 +3189,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2016_03_30.models.InstanceViewStatus] @@ -3154,7 +3218,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -3210,8 +3274,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3259,7 +3323,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSet] @@ -3293,7 +3359,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetSku] @@ -3327,7 +3395,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSet] @@ -3374,8 +3444,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3412,8 +3482,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -3478,8 +3548,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. Required. :paramtype name: str @@ -3582,8 +3652,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -3663,7 +3733,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -3702,7 +3772,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -3730,8 +3800,8 @@ def __init__( *, image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2016_03_30.models.ImageReference @@ -3865,8 +3935,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3950,7 +4020,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -3970,7 +4040,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -3998,7 +4068,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -4054,8 +4124,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -4110,7 +4180,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVM] @@ -4153,8 +4225,8 @@ def __init__( storage_profile: Optional["_models.VirtualMachineScaleSetStorageProfile"] = None, network_profile: Optional["_models.VirtualMachineScaleSetNetworkProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetOSProfile @@ -4212,8 +4284,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -4250,7 +4322,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineSize] @@ -4280,7 +4352,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -4325,8 +4397,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -4366,7 +4438,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2016_03_30.models.WinRMListener] @@ -4402,8 +4474,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json index e3481be52643..10a2b0689cd6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py index bcfcc2b0be25..d7e27fe3d370 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py @@ -45,14 +45,16 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "properties.output.accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -84,8 +86,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -121,7 +123,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -162,8 +164,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2016_04_30_preview.models.ApiErrorBase] @@ -202,8 +204,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -252,7 +254,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -268,7 +270,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -330,8 +341,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, managed: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -379,7 +390,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.AvailabilitySet] @@ -393,7 +406,10 @@ def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optiona class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -407,7 +423,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -441,7 +457,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -459,7 +475,7 @@ class ComputeLongRunningOperationProperties(_serialization.Model): "output": {"key": "output", "type": "object"}, } - def __init__(self, *, output: Optional[JSON] = None, **kwargs): + def __init__(self, *, output: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword output: Operation output data (raw JSON). :paramtype output: JSON @@ -511,8 +527,8 @@ def __init__( image_reference: Optional["_models.ImageDiskReference"] = None, source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", and "Restore". @@ -607,8 +623,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -673,14 +689,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -693,7 +710,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -782,8 +799,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -844,8 +861,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -878,8 +895,12 @@ class DiskInstanceView(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + statuses: Optional[List["_models.InstanceViewStatus"]] = None, + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -912,7 +933,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.Disk] @@ -936,7 +957,7 @@ class ResourceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -986,8 +1007,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1045,8 +1066,8 @@ def __init__( enabled: Optional[bool] = None, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1087,7 +1108,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None" and "Read". :paramtype access: str or ~azure.mgmt.compute.v2016_04_30_preview.models.AccessLevel @@ -1130,7 +1151,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -1161,7 +1184,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -1211,8 +1236,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1277,8 +1302,8 @@ def __init__( blob_uri: Optional[str] = None, caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1331,7 +1356,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1366,7 +1393,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.Image] @@ -1434,8 +1461,8 @@ def __init__( blob_uri: Optional[str] = None, caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. :code:`
`:code:`
` Possible values are: @@ -1482,7 +1509,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1492,7 +1519,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. :ivar id: Resource Id. :vartype id: str @@ -1527,8 +1557,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1581,8 +1611,12 @@ class ImageStorageProfile(_serialization.Model): } def __init__( - self, *, os_disk: "_models.ImageOSDisk", data_disks: Optional[List["_models.ImageDataDisk"]] = None, **kwargs - ): + self, + *, + os_disk: "_models.ImageOSDisk", + data_disks: Optional[List["_models.ImageDataDisk"]] = None, + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -1615,7 +1649,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1658,8 +1694,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -1681,7 +1717,8 @@ def __init__( class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -1701,7 +1738,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2016_04_30_preview.models.SourceVault @@ -1734,7 +1771,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2016_04_30_preview.models.SourceVault @@ -1767,7 +1804,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -1800,7 +1837,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -1813,7 +1850,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1832,8 +1875,8 @@ def __init__( *, disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1867,7 +1910,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.Usage] @@ -1901,8 +1944,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1932,8 +1975,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1958,7 +2005,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -2002,7 +2051,7 @@ class OperationStatusResponse(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -2013,7 +2062,10 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -2085,8 +2137,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -2158,7 +2210,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -2251,8 +2303,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -2326,7 +2378,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -2353,8 +2409,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2399,7 +2455,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -2435,8 +2491,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -2530,8 +2586,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2587,7 +2643,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.Snapshot] @@ -2641,8 +2697,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2673,7 +2729,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -2683,7 +2740,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -2703,7 +2760,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2016_04_30_preview.models.SshPublicKey] @@ -2713,7 +2770,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -2731,7 +2789,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -2780,8 +2838,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -2822,7 +2880,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2839,7 +2897,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2864,7 +2922,7 @@ class UpgradePolicy(_serialization.Model): "mode": {"key": "mode", "type": "str"}, } - def __init__(self, *, mode: Optional[Union[str, "_models.UpgradeMode"]] = None, **kwargs): + def __init__(self, *, mode: Optional[Union[str, "_models.UpgradeMode"]] = None, **kwargs: Any) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -2912,7 +2970,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -2941,7 +2999,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -2954,7 +3012,8 @@ def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -2978,7 +3037,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -3023,8 +3084,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -3050,7 +3111,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -3174,8 +3235,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3262,8 +3323,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -3305,7 +3366,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -3336,8 +3399,12 @@ class VirtualMachineCaptureResult(SubResource): } def __init__( - self, *, id: Optional[str] = None, output: Optional[JSON] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + output: Optional[JSON] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3429,8 +3496,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3494,8 +3561,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -3572,8 +3639,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3632,8 +3699,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -3665,7 +3732,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtension] @@ -3721,8 +3788,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3781,7 +3848,7 @@ class VirtualMachineIdentity(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs): + def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs: Any) -> None: """ :keyword type: The type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is @@ -3830,8 +3897,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3899,8 +3966,8 @@ def __init__( plan: Optional["_models.PurchasePlan"] = None, os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3975,8 +4042,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -4033,7 +4100,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachine] @@ -4128,8 +4197,8 @@ def __init__( virtual_machine_profile: Optional["_models.VirtualMachineScaleSetVMProfile"] = None, over_provision: Optional[bool] = None, single_placement_group: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4221,8 +4290,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -4311,8 +4380,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -4355,7 +4424,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -4391,7 +4462,7 @@ class VirtualMachineScaleSetIdentity(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs): + def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs: Any) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is @@ -4430,7 +4501,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2016_04_30_preview.models.InstanceViewStatus] @@ -4459,7 +4530,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -4515,8 +4586,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4564,7 +4635,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSet] @@ -4598,7 +4671,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: @@ -4633,7 +4708,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSet] @@ -4659,7 +4736,9 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): "storage_account_type": {"key": "storageAccountType", "type": "str"}, } - def __init__(self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: "Standard_LRS" and @@ -4705,8 +4784,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4743,8 +4822,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -4814,8 +4893,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -4924,8 +5003,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -5008,7 +5087,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -5047,7 +5126,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -5080,8 +5159,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2016_04_30_preview.models.ImageReference @@ -5220,8 +5299,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5306,7 +5385,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -5326,7 +5405,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -5354,7 +5433,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -5417,8 +5496,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -5479,7 +5558,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVM] @@ -5523,8 +5604,8 @@ def __init__( storage_profile: Optional["_models.VirtualMachineScaleSetStorageProfile"] = None, network_profile: Optional["_models.VirtualMachineScaleSetNetworkProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -5583,8 +5664,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -5621,7 +5702,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineSize] @@ -5651,7 +5732,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -5696,8 +5777,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -5737,7 +5818,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2016_04_30_preview.models.WinRMListener] @@ -5773,8 +5854,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json index a6a42dc4273a..7eefd6432015 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py index 7fc0829b6088..eddea732abef 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py @@ -45,14 +45,16 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "properties.output.accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -84,8 +86,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -121,7 +123,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -162,8 +164,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2017_03_30.models.ApiErrorBase] @@ -202,8 +204,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -252,7 +254,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -268,7 +270,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -326,8 +337,8 @@ def __init__( platform_update_domain_count: Optional[int] = None, platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -372,7 +383,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.AvailabilitySet] @@ -386,7 +399,10 @@ def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optiona class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -400,7 +416,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -434,7 +450,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -452,7 +468,7 @@ class ComputeLongRunningOperationProperties(_serialization.Model): "output": {"key": "output", "type": "object"}, } - def __init__(self, *, output: Optional[JSON] = None, **kwargs): + def __init__(self, *, output: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword output: Operation output data (raw JSON). :paramtype output: JSON @@ -503,8 +519,8 @@ def __init__( image_reference: Optional["_models.ImageDiskReference"] = None, source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", and "Copy". @@ -596,8 +612,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -661,14 +677,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -681,7 +698,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -772,8 +789,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -832,8 +849,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -874,8 +891,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -913,7 +930,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.Disk] @@ -946,7 +963,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS" and "Premium_LRS". :paramtype name: str or ~azure.mgmt.compute.v2017_03_30.models.StorageAccountTypes @@ -970,7 +987,9 @@ class ResourceUpdate(_serialization.Model): "sku": {"key": "sku", "type": "DiskSku"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.DiskSku"] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.DiskSku"] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1016,8 +1035,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1065,8 +1084,8 @@ def __init__( enabled: Optional[bool] = None, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1106,7 +1125,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None" and "Read". :paramtype access: str or ~azure.mgmt.compute.v2017_03_30.models.AccessLevel @@ -1158,7 +1177,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -1197,7 +1218,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -1247,8 +1270,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1319,8 +1342,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1379,7 +1402,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1414,7 +1439,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.Image] @@ -1487,8 +1512,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. :code:`
`:code:`
` Possible values are: @@ -1540,7 +1565,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1550,7 +1575,11 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar id: Resource Id. :vartype id: str @@ -1585,8 +1614,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1639,8 +1668,12 @@ class ImageStorageProfile(_serialization.Model): } def __init__( - self, *, os_disk: "_models.ImageOSDisk", data_disks: Optional[List["_models.ImageDataDisk"]] = None, **kwargs - ): + self, + *, + os_disk: "_models.ImageOSDisk", + data_disks: Optional[List["_models.ImageDataDisk"]] = None, + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -1673,7 +1706,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1716,8 +1751,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -1739,7 +1774,8 @@ def __init__( class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -1759,7 +1795,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2017_03_30.models.SourceVault @@ -1792,7 +1828,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2017_03_30.models.SourceVault @@ -1825,7 +1861,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -1858,7 +1894,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -1871,7 +1907,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1890,8 +1932,8 @@ def __init__( *, disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1925,7 +1967,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.Usage] @@ -1980,8 +2022,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -2032,8 +2074,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2063,8 +2105,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2089,7 +2135,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -2133,7 +2181,7 @@ class OperationStatusResponse(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -2144,7 +2192,10 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -2214,8 +2265,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -2284,7 +2335,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -2375,8 +2426,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -2448,7 +2499,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -2475,8 +2530,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2521,7 +2576,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -2601,7 +2656,7 @@ class ResourceSku(_serialization.Model): # pylint: disable=too-many-instance-at "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -2639,7 +2694,7 @@ class ResourceSkuCapabilities(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -2676,7 +2731,7 @@ class ResourceSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -2710,7 +2765,7 @@ class ResourceSkuCosts(_serialization.Model): "extended_unit": {"key": "extendedUnit", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.meter_id = None @@ -2746,7 +2801,7 @@ class ResourceSkuRestrictions(_serialization.Model): "reason_code": {"key": "reasonCode", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type = None @@ -2775,7 +2830,7 @@ class ResourceSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of skus available for the subscription. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.ResourceSku] @@ -2833,8 +2888,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -2894,7 +2949,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -2934,7 +2989,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -2994,7 +3049,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3049,8 +3104,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -3121,8 +3176,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -3175,8 +3230,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -3213,7 +3268,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3246,7 +3301,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.RunCommandDocumentBase] @@ -3286,7 +3343,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3340,7 +3399,7 @@ class RunCommandResult(OperationStatusResponse): "output": {"key": "properties.output", "type": "object"}, } - def __init__(self, *, output: Optional[JSON] = None, **kwargs): + def __init__(self, *, output: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword output: Operation output data (raw JSON). :paramtype output: JSON @@ -3371,8 +3430,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -3466,8 +3525,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3520,7 +3579,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.Snapshot] @@ -3567,8 +3626,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3591,7 +3650,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -3601,7 +3661,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -3621,7 +3681,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2017_03_30.models.SshPublicKey] @@ -3631,7 +3691,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -3649,7 +3710,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -3698,8 +3759,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -3740,7 +3801,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3757,7 +3818,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3796,8 +3857,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -3853,7 +3914,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -3882,7 +3943,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -3895,7 +3956,8 @@ def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -3919,7 +3981,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -3963,8 +4027,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -3989,7 +4053,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -4115,8 +4179,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4205,8 +4269,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -4248,7 +4312,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -4279,8 +4345,12 @@ class VirtualMachineCaptureResult(SubResource): } def __init__( - self, *, id: Optional[str] = None, output: Optional[JSON] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + output: Optional[JSON] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4372,8 +4442,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4437,8 +4507,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -4515,8 +4585,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4575,8 +4645,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -4608,7 +4678,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtension] @@ -4664,8 +4734,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4715,7 +4785,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -4747,7 +4817,7 @@ class VirtualMachineIdentity(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs): + def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs: Any) -> None: """ :keyword type: The type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is @@ -4796,8 +4866,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4865,8 +4935,8 @@ def __init__( plan: Optional["_models.PurchasePlan"] = None, os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4944,8 +5014,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -5004,7 +5074,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachine] @@ -5106,8 +5178,8 @@ def __init__( virtual_machine_profile: Optional["_models.VirtualMachineScaleSetVMProfile"] = None, overprovision: Optional[bool] = None, single_placement_group: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5202,8 +5274,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -5296,8 +5368,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -5354,8 +5426,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtension] @@ -5380,7 +5452,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -5416,7 +5490,7 @@ class VirtualMachineScaleSetIdentity(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs): + def __init__(self, *, type: Optional[Literal["SystemAssigned"]] = None, **kwargs: Any) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is @@ -5455,7 +5529,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2017_03_30.models.InstanceViewStatus] @@ -5484,7 +5558,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -5565,8 +5639,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5632,7 +5706,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSet] @@ -5666,7 +5742,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetSku] @@ -5700,7 +5778,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSet] @@ -5727,7 +5807,9 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): "storage_account_type": {"key": "storageAccountType", "type": "str"}, } - def __init__(self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. Possible values @@ -5791,8 +5873,8 @@ def __init__( network_security_group: Optional["_models.SubResource"] = None, dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5833,7 +5915,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -5867,8 +5949,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -5941,8 +6023,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -6060,8 +6142,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -6161,8 +6243,8 @@ def __init__( name: str, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -6197,7 +6279,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -6233,7 +6315,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -6272,7 +6354,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -6314,8 +6396,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -6390,8 +6472,8 @@ def __init__( virtual_machine_profile: Optional["_models.VirtualMachineScaleSetUpdateVMProfile"] = None, overprovision: Optional[bool] = None, single_placement_group: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6490,8 +6572,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6579,8 +6661,8 @@ def __init__( network_security_group: Optional["_models.SubResource"] = None, dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6630,8 +6712,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -6642,7 +6724,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2017_03_30.models.CachingTypes @@ -6671,8 +6754,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2017_03_30.models.CachingTypes @@ -6720,8 +6803,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -6766,8 +6849,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -6807,8 +6890,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2017_03_30.models.ImageReference @@ -6863,8 +6946,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -7014,8 +7097,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7099,7 +7182,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -7119,7 +7202,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -7147,7 +7230,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -7217,8 +7300,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -7278,7 +7361,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVM] @@ -7340,8 +7425,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -7416,8 +7501,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -7454,7 +7539,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineSize] @@ -7484,7 +7569,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7529,8 +7614,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -7570,7 +7655,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2017_03_30.models.WinRMListener] @@ -7606,8 +7691,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json index 6fd21ff69cc5..5704819394d0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/models/_models_py3.py index cee49f43d38e..57df16b38760 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/models/_models_py3.py @@ -7,10 +7,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional +from typing import Any, List, Optional, TYPE_CHECKING from ... import _serialization +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from .. import models as _models + class ResourceSku(_serialization.Model): # pylint: disable=too-many-instance-attributes """Describes an available Compute SKU. @@ -81,7 +85,7 @@ class ResourceSku(_serialization.Model): # pylint: disable=too-many-instance-at "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -120,7 +124,7 @@ class ResourceSkuCapabilities(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -157,7 +161,7 @@ class ResourceSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -191,7 +195,7 @@ class ResourceSkuCosts(_serialization.Model): "extended_unit": {"key": "extendedUnit", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.meter_id = None @@ -220,7 +224,7 @@ class ResourceSkuLocationInfo(_serialization.Model): "zones": {"key": "zones", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.location = None @@ -248,7 +252,7 @@ class ResourceSkuRestrictionInfo(_serialization.Model): "zones": {"key": "zones", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.locations = None @@ -287,7 +291,7 @@ class ResourceSkuRestrictions(_serialization.Model): "reason_code": {"key": "reasonCode", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type = None @@ -317,7 +321,7 @@ class ResourceSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of skus available for the subscription. Required. :paramtype value: list[~azure.mgmt.compute.v2017_09_01.models.ResourceSku] diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json index ba783baaf82a..dba50ebbc548 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py index 7619f69ea790..d709b1bbf59f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py @@ -29,7 +29,9 @@ class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -61,8 +63,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -98,7 +100,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -139,8 +141,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2017_12_01.models.ApiErrorBase] @@ -179,8 +181,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -207,7 +209,7 @@ class AutoOSUpgradePolicy(_serialization.Model): "disable_auto_rollback": {"key": "disableAutoRollback", "type": "bool"}, } - def __init__(self, *, disable_auto_rollback: Optional[bool] = None, **kwargs): + def __init__(self, *, disable_auto_rollback: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword disable_auto_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -251,7 +253,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -267,7 +269,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -325,8 +336,8 @@ def __init__( platform_update_domain_count: Optional[int] = None, platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -371,7 +382,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.AvailabilitySet] @@ -395,7 +408,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -405,7 +418,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -444,8 +458,8 @@ def __init__( platform_update_domain_count: Optional[int] = None, platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -468,7 +482,10 @@ def __init__( class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -482,7 +499,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -516,7 +533,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -534,7 +551,7 @@ class ComputeLongRunningOperationProperties(_serialization.Model): "output": {"key": "output", "type": "object"}, } - def __init__(self, *, output: Optional[JSON] = None, **kwargs): + def __init__(self, *, output: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword output: Operation output data (raw JSON). :paramtype output: JSON @@ -560,7 +577,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -603,7 +620,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -685,8 +702,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -754,14 +771,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -774,7 +792,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -810,8 +828,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -852,8 +870,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -926,7 +944,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -981,7 +1001,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -1031,8 +1053,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1103,8 +1125,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1162,7 +1184,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.Image] @@ -1235,8 +1257,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. :code:`
`:code:`
` Possible values are: @@ -1288,7 +1310,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1298,7 +1320,11 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar id: Resource Id. :vartype id: str @@ -1333,8 +1359,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1389,8 +1415,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -1444,8 +1470,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1474,7 +1500,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1517,8 +1545,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -1560,7 +1588,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -1593,7 +1621,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -1606,7 +1634,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1625,8 +1659,8 @@ def __init__( *, disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1660,7 +1694,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.Usage] @@ -1717,8 +1751,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -1776,7 +1810,7 @@ class OperationStatusResponse(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -1823,7 +1857,7 @@ class LogAnalyticsOperationResult(OperationStatusResponse): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -1846,7 +1880,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -1894,8 +1928,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -1946,8 +1980,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1977,8 +2011,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2003,7 +2041,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -2015,7 +2055,10 @@ def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfac class OSDisk(_serialization.Model): - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -2090,8 +2133,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -2164,7 +2207,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -2255,8 +2298,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -2328,7 +2371,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -2355,8 +2402,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2401,7 +2448,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -2439,7 +2486,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -2496,8 +2543,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -2554,7 +2601,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -2607,8 +2654,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -2668,7 +2715,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -2708,7 +2755,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -2768,7 +2815,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2823,8 +2870,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -2895,8 +2942,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -2949,8 +2996,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -2987,7 +3034,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3020,7 +3067,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.RunCommandDocumentBase] @@ -3060,7 +3109,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3114,7 +3165,7 @@ class RunCommandResult(OperationStatusResponse): "output": {"key": "properties.output", "type": "object"}, } - def __init__(self, *, output: Optional[JSON] = None, **kwargs): + def __init__(self, *, output: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword output: Operation output data (raw JSON). :paramtype output: JSON @@ -3124,7 +3175,9 @@ def __init__(self, *, output: Optional[JSON] = None, **kwargs): class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -3143,8 +3196,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -3172,7 +3225,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2017_12_01.models.SshPublicKey] @@ -3182,7 +3235,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -3200,7 +3254,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -3249,8 +3303,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -3291,7 +3345,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3341,8 +3395,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -3395,7 +3449,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -3441,7 +3495,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -3478,7 +3532,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -3521,8 +3575,8 @@ def __init__( rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade: Optional[bool] = None, auto_os_upgrade_policy: Optional["_models.AutoOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -3582,7 +3636,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -3611,7 +3665,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -3624,7 +3678,8 @@ def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -3648,7 +3703,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -3692,8 +3749,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -3718,7 +3775,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -3844,8 +3901,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3934,8 +3991,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -3977,7 +4034,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -4008,8 +4067,12 @@ class VirtualMachineCaptureResult(SubResource): } def __init__( - self, *, id: Optional[str] = None, output: Optional[JSON] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + output: Optional[JSON] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4101,8 +4164,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4166,8 +4229,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -4244,8 +4307,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4304,8 +4367,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -4337,7 +4400,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineExtension] @@ -4393,8 +4456,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4444,7 +4507,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -4489,8 +4552,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, identity_ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -4545,8 +4608,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4614,8 +4677,8 @@ def __init__( plan: Optional["_models.PurchasePlan"] = None, os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4705,8 +4768,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -4774,7 +4837,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachine] @@ -4885,8 +4950,8 @@ def __init__( single_placement_group: Optional[bool] = None, zone_balance: Optional[bool] = None, platform_fault_domain_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4993,8 +5058,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -5091,8 +5156,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -5149,8 +5214,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetExtension] @@ -5175,7 +5240,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -5225,8 +5292,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, identity_ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -5272,7 +5339,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2017_12_01.models.InstanceViewStatus] @@ -5301,7 +5368,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -5382,8 +5449,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5451,8 +5518,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -5487,7 +5558,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSet] @@ -5521,7 +5594,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetSku] @@ -5555,7 +5630,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSet] @@ -5582,7 +5659,9 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): "storage_account_type": {"key": "storageAccountType", "type": "str"}, } - def __init__(self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. Possible values @@ -5650,8 +5729,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5695,7 +5774,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -5729,8 +5808,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -5808,8 +5887,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -5931,8 +6010,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -6032,8 +6111,8 @@ def __init__( name: str, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -6068,7 +6147,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -6104,7 +6183,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -6143,7 +6222,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -6185,8 +6264,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -6261,8 +6340,8 @@ def __init__( virtual_machine_profile: Optional["_models.VirtualMachineScaleSetUpdateVMProfile"] = None, overprovision: Optional[bool] = None, single_placement_group: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6361,8 +6440,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6454,8 +6533,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6508,8 +6587,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -6520,7 +6599,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes @@ -6554,8 +6634,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes @@ -6607,8 +6687,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -6653,8 +6733,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -6694,8 +6774,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2017_12_01.models.ImageReference @@ -6750,8 +6830,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -6901,8 +6981,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6986,7 +7066,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -7006,7 +7086,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -7034,7 +7114,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -7109,8 +7189,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -7174,7 +7254,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVM] @@ -7249,8 +7331,8 @@ def __init__( license_type: Optional[str] = None, priority: Optional[Union[str, "_models.VirtualMachinePriorityTypes"]] = None, eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -7336,8 +7418,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -7374,7 +7456,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineSize] @@ -7404,7 +7486,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7505,8 +7587,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7606,8 +7688,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -7647,7 +7729,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2017_12_01.models.WinRMListener] @@ -7683,8 +7765,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json index fae9f1d83709..28fa4065ec63 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py index 6ca9de909e36..fc3153b5be2a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py @@ -45,14 +45,16 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -84,8 +86,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -121,7 +123,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -162,8 +164,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2018_04_01.models.ApiErrorBase] @@ -202,8 +204,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -230,7 +232,7 @@ class AutoOSUpgradePolicy(_serialization.Model): "disable_auto_rollback": {"key": "disableAutoRollback", "type": "bool"}, } - def __init__(self, *, disable_auto_rollback: Optional[bool] = None, **kwargs): + def __init__(self, *, disable_auto_rollback: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword disable_auto_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -274,7 +276,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -290,7 +292,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -354,8 +365,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -405,7 +416,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.AvailabilitySet] @@ -429,7 +442,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -439,7 +452,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -484,8 +498,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -513,7 +527,10 @@ def __init__( class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -527,7 +544,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -566,7 +583,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -591,7 +608,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -634,7 +651,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -687,8 +704,8 @@ def __init__( image_reference: Optional["_models.ImageDiskReference"] = None, source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", and "Restore". @@ -785,8 +802,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -854,14 +871,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -874,7 +892,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -965,8 +983,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1025,8 +1043,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -1067,8 +1085,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -1106,7 +1124,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.Disk] @@ -1140,7 +1158,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "StandardSSD_LRS". @@ -1185,8 +1203,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1236,8 +1254,8 @@ def __init__( enabled: Optional[bool] = None, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1277,7 +1295,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None" and "Read". :paramtype access: str or ~azure.mgmt.compute.v2018_04_01.models.AccessLevel @@ -1345,7 +1363,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -1400,7 +1420,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -1450,8 +1472,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1523,8 +1545,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1583,7 +1605,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1618,7 +1642,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.Image] @@ -1692,8 +1716,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. :code:`
`:code:`
` Possible values are: @@ -1745,7 +1769,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1755,7 +1779,11 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar id: Resource Id. :vartype id: str @@ -1790,8 +1818,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1846,8 +1874,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -1901,8 +1929,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1931,7 +1959,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1974,8 +2004,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -1997,7 +2027,8 @@ def __init__( class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -2017,7 +2048,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2018_04_01.models.SourceVault @@ -2050,7 +2081,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2018_04_01.models.SourceVault @@ -2083,7 +2114,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -2116,7 +2147,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -2129,7 +2160,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -2148,8 +2185,8 @@ def __init__( *, disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -2183,7 +2220,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.Usage] @@ -2240,8 +2277,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -2283,7 +2320,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -2306,7 +2343,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -2354,8 +2391,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -2407,8 +2444,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2438,8 +2475,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2464,7 +2505,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -2476,7 +2519,10 @@ def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfac class OSDisk(_serialization.Model): - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -2551,8 +2597,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -2625,7 +2671,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -2716,8 +2762,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -2789,7 +2835,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -2816,8 +2866,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2898,8 +2948,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2939,7 +2989,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.ProximityPlacementGroup] @@ -2962,7 +3014,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2996,7 +3048,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -3034,7 +3086,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -3091,8 +3143,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -3149,7 +3201,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -3202,8 +3254,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -3263,7 +3315,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -3303,7 +3355,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -3363,7 +3415,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3418,8 +3470,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -3490,8 +3542,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -3544,8 +3596,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -3582,7 +3634,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3615,7 +3667,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.RunCommandDocumentBase] @@ -3655,7 +3709,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3684,7 +3740,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.InstanceViewStatus] @@ -3694,7 +3750,9 @@ def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -3713,8 +3771,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -3806,8 +3864,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3860,7 +3918,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.Snapshot] @@ -3893,7 +3951,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -3938,8 +3998,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3964,7 +4024,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -3974,7 +4035,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -3994,7 +4055,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2018_04_01.models.SshPublicKey] @@ -4004,7 +4065,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -4022,7 +4084,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -4071,8 +4133,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -4113,7 +4175,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -4163,8 +4225,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4217,7 +4279,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4263,7 +4325,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -4300,7 +4362,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -4343,8 +4405,8 @@ def __init__( rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade: Optional[bool] = None, auto_os_upgrade_policy: Optional["_models.AutoOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -4404,7 +4466,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -4433,7 +4495,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -4446,7 +4508,8 @@ def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -4470,7 +4533,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -4514,8 +4579,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -4540,7 +4605,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -4672,8 +4737,8 @@ def __init__( availability_set: Optional["_models.SubResource"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4767,8 +4832,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -4810,7 +4875,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -4858,7 +4925,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -4951,8 +5018,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5016,8 +5083,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -5094,8 +5161,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5154,8 +5221,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -5187,7 +5254,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtension] @@ -5243,8 +5310,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5294,7 +5361,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -5339,8 +5406,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, identity_ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -5395,8 +5462,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5464,8 +5531,8 @@ def __init__( plan: Optional["_models.PurchasePlan"] = None, os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5555,8 +5622,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -5624,7 +5691,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachine] @@ -5741,8 +5810,8 @@ def __init__( zone_balance: Optional[bool] = None, platform_fault_domain_count: Optional[int] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5854,8 +5923,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -5952,8 +6021,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -6010,8 +6079,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetExtension] @@ -6036,7 +6105,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -6086,8 +6157,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, identity_ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -6133,7 +6204,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2018_04_01.models.InstanceViewStatus] @@ -6162,7 +6233,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -6243,8 +6314,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6303,7 +6374,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -6338,8 +6409,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -6374,7 +6449,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSet] @@ -6408,7 +6485,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetSku] @@ -6442,7 +6521,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSet] @@ -6470,7 +6551,9 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): "storage_account_type": {"key": "storageAccountType", "type": "str"}, } - def __init__(self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. Possible values @@ -6539,8 +6622,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6584,7 +6667,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -6618,8 +6701,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -6703,8 +6786,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -6831,8 +6914,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -6936,8 +7019,8 @@ def __init__( idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -6975,7 +7058,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -7011,7 +7094,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -7050,7 +7133,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -7092,8 +7175,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -7174,8 +7257,8 @@ def __init__( overprovision: Optional[bool] = None, single_placement_group: Optional[bool] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7279,8 +7362,8 @@ def __init__( application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7372,8 +7455,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7426,8 +7509,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -7438,7 +7521,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2018_04_01.models.CachingTypes @@ -7478,8 +7562,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2018_04_01.models.CachingTypes @@ -7536,8 +7620,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -7582,8 +7666,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -7623,8 +7707,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2018_04_01.models.ImageReference @@ -7679,8 +7763,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -7834,8 +7918,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7920,7 +8004,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -7940,7 +8024,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -7968,7 +8052,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -8043,8 +8127,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -8108,7 +8192,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVM] @@ -8183,8 +8269,8 @@ def __init__( license_type: Optional[str] = None, priority: Optional[Union[str, "_models.VirtualMachinePriorityTypes"]] = None, eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -8270,8 +8356,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -8308,7 +8394,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineSize] @@ -8338,7 +8424,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -8445,8 +8531,8 @@ def __init__( availability_set: Optional["_models.SubResource"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8551,8 +8637,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -8592,7 +8678,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2018_04_01.models.WinRMListener] @@ -8628,8 +8714,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json index c99c618a6b7c..d89a4632065a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py index b669defda5b8..43903a7a1a8b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py @@ -45,7 +45,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -65,7 +65,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -78,7 +78,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -110,8 +112,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -147,7 +149,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -188,8 +190,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2018_06_01.models.ApiErrorBase] @@ -228,8 +230,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -256,7 +258,7 @@ class AutoOSUpgradePolicy(_serialization.Model): "disable_auto_rollback": {"key": "disableAutoRollback", "type": "bool"}, } - def __init__(self, *, disable_auto_rollback: Optional[bool] = None, **kwargs): + def __init__(self, *, disable_auto_rollback: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword disable_auto_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -300,7 +302,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -316,7 +318,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -383,8 +394,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -437,7 +448,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.AvailabilitySet] @@ -461,7 +474,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -471,7 +484,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -516,8 +530,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -545,7 +559,10 @@ def __init__( class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -559,7 +576,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -598,7 +615,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -623,7 +640,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -666,7 +683,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -719,8 +736,8 @@ def __init__( image_reference: Optional["_models.ImageDiskReference"] = None, source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", and "Restore". @@ -817,8 +834,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -886,14 +903,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -906,7 +924,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -919,7 +937,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions @@ -929,7 +949,7 @@ class DiffDiskSettings(_serialization.Model): "option": {"key": "option", "type": "str"}, } - def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs): + def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs: Any) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions @@ -949,7 +969,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -1052,8 +1072,8 @@ def __init__( encryption_settings: Optional["_models.EncryptionSettings"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1125,8 +1145,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -1167,8 +1187,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -1206,7 +1226,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.Disk] @@ -1240,7 +1260,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -1297,8 +1317,8 @@ def __init__( encryption_settings: Optional["_models.EncryptionSettings"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1358,8 +1378,8 @@ def __init__( enabled: Optional[bool] = None, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1432,8 +1452,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1477,8 +1497,8 @@ def __init__( *, source: "_models.GalleryArtifactSource", target_regions: Optional[List["_models.TargetRegion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -1509,7 +1529,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2018_06_01.models.ManagedArtifact @@ -1540,7 +1560,7 @@ class GalleryDiskImage(_serialization.Model): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.size_in_gb = None @@ -1575,7 +1595,7 @@ class GalleryDataDiskImage(GalleryDiskImage): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1599,7 +1619,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -1702,8 +1722,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1780,7 +1800,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery Image Definition publisher. Required. :paramtype publisher: str @@ -1816,7 +1836,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.GalleryImage] @@ -1888,8 +1908,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1927,7 +1947,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Image Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.GalleryImageVersion] @@ -1988,8 +2010,8 @@ def __init__( replica_count: Optional[int] = None, exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2036,7 +2058,7 @@ class GalleryImageVersionStorageProfile(_serialization.Model): "data_disk_images": {"key": "dataDiskImages", "type": "[GalleryDataDiskImage]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.os_disk_image = None @@ -2064,7 +2086,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.Gallery] @@ -2099,7 +2121,7 @@ class GalleryOSDiskImage(GalleryDiskImage): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) @@ -2125,7 +2147,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None" and "Read". :paramtype access: str or ~azure.mgmt.compute.v2018_06_01.models.AccessLevel @@ -2193,7 +2215,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -2248,7 +2272,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -2298,8 +2324,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2371,8 +2397,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -2431,7 +2457,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -2466,7 +2494,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.Image] @@ -2540,8 +2568,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. :code:`
`:code:`
` Possible values are: @@ -2600,8 +2628,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2627,7 +2660,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2637,7 +2670,11 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar id: Resource Id. :vartype id: str @@ -2672,8 +2709,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2728,8 +2765,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -2783,8 +2820,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2813,7 +2850,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -2856,8 +2895,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -2879,7 +2918,8 @@ def __init__( class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -2899,7 +2939,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2018_06_01.models.SourceVault @@ -2932,7 +2972,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2018_06_01.models.SourceVault @@ -2965,7 +3005,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -2998,7 +3038,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -3011,7 +3051,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3037,8 +3083,8 @@ def __init__( disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3078,7 +3124,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.Usage] @@ -3135,8 +3181,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -3178,7 +3224,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -3201,7 +3247,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -3249,8 +3295,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -3297,7 +3343,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -3328,8 +3374,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3359,8 +3405,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3385,7 +3435,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -3397,7 +3449,10 @@ def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfac class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -3477,8 +3532,8 @@ def __init__( diff_disk_settings: Optional["_models.DiffDiskSettings"] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -3555,7 +3610,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -3652,8 +3707,8 @@ def __init__( linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -3730,7 +3785,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -3757,8 +3816,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -3839,8 +3898,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3880,7 +3939,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.ProximityPlacementGroup] @@ -3903,7 +3964,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3937,7 +3998,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -3954,7 +4015,8 @@ def __init__(self, *, publisher: str, name: str, product: str, **kwargs): class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2018_06_01.models.ResourceRange @@ -3972,8 +4034,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2018_06_01.models.ResourceRange @@ -4007,7 +4069,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -4044,7 +4106,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -4076,7 +4138,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -4133,8 +4195,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4184,8 +4246,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -4223,7 +4285,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -4276,8 +4338,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -4337,7 +4399,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -4377,7 +4439,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -4437,7 +4499,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4492,8 +4554,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -4564,8 +4626,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -4618,8 +4680,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -4656,7 +4718,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -4689,7 +4751,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.RunCommandDocumentBase] @@ -4729,7 +4793,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -4758,7 +4824,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus] @@ -4768,7 +4834,9 @@ def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -4787,8 +4855,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -4880,8 +4948,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4934,7 +5002,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.Snapshot] @@ -4967,7 +5035,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -5012,8 +5082,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5038,7 +5108,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -5048,7 +5119,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -5068,7 +5139,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2018_06_01.models.SshPublicKey] @@ -5078,7 +5149,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -5096,7 +5168,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -5145,8 +5217,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -5187,7 +5259,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5214,7 +5286,7 @@ class TargetRegion(_serialization.Model): "regional_replica_count": {"key": "regionalReplicaCount", "type": "int"}, } - def __init__(self, *, name: str, regional_replica_count: Optional[int] = None, **kwargs): + def __init__(self, *, name: str, regional_replica_count: Optional[int] = None, **kwargs: Any) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -5271,8 +5343,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5325,7 +5397,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -5371,7 +5443,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -5408,7 +5480,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -5451,8 +5523,8 @@ def __init__( rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade: Optional[bool] = None, auto_os_upgrade_policy: Optional["_models.AutoOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -5512,7 +5584,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -5541,7 +5613,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -5574,7 +5646,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -5582,7 +5654,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -5606,7 +5679,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -5650,8 +5725,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -5676,7 +5751,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -5813,8 +5888,8 @@ def __init__( availability_set: Optional["_models.SubResource"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5913,8 +5988,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -5956,7 +6031,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -6004,7 +6081,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -6097,8 +6174,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6162,8 +6239,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -6240,8 +6317,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6300,8 +6377,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -6333,7 +6410,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtension] @@ -6389,8 +6466,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6440,7 +6517,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -6486,8 +6563,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -6543,8 +6620,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6612,8 +6689,8 @@ def __init__( plan: Optional["_models.PurchasePlan"] = None, os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6703,8 +6780,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -6772,7 +6849,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachine] @@ -6786,7 +6865,8 @@ def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -6797,7 +6877,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -6911,8 +6991,8 @@ def __init__( zone_balance: Optional[bool] = None, platform_fault_domain_count: Optional[int] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7024,8 +7104,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -7127,8 +7207,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -7189,8 +7269,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetExtension] @@ -7215,7 +7295,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -7271,8 +7353,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -7315,7 +7397,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -7348,7 +7430,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus] @@ -7377,7 +7459,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -7463,8 +7545,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7528,7 +7610,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -7563,8 +7645,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -7599,7 +7685,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSet] @@ -7633,7 +7721,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetSku] @@ -7667,7 +7757,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSet] @@ -7695,7 +7787,9 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): "storage_account_type": {"key": "storageAccountType", "type": "str"}, } - def __init__(self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS @@ -7764,8 +7858,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7809,7 +7903,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -7843,8 +7937,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -7933,8 +8027,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -8065,8 +8159,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -8174,8 +8268,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, public_ip_prefix: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -8216,7 +8310,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -8239,7 +8333,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -8265,7 +8359,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -8304,7 +8400,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -8343,7 +8439,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -8385,8 +8481,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -8467,8 +8563,8 @@ def __init__( overprovision: Optional[bool] = None, single_placement_group: Optional[bool] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8577,8 +8673,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8675,8 +8771,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8729,8 +8825,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -8741,7 +8837,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2018_06_01.models.CachingTypes @@ -8781,8 +8878,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2018_06_01.models.CachingTypes @@ -8839,8 +8936,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -8885,8 +8982,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -8926,8 +9023,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2018_06_01.models.ImageReference @@ -8982,8 +9079,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -9143,8 +9240,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9235,7 +9332,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -9255,7 +9352,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -9283,7 +9380,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -9358,8 +9455,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -9423,7 +9520,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVM] @@ -9504,8 +9603,8 @@ def __init__( license_type: Optional[str] = None, priority: Optional[Union[str, "_models.VirtualMachinePriorityTypes"]] = None, eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -9597,8 +9696,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -9635,7 +9734,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineSize] @@ -9665,7 +9764,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -9777,8 +9876,8 @@ def __init__( availability_set: Optional["_models.SubResource"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -9888,8 +9987,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -9929,7 +10028,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2018_06_01.models.WinRMListener] @@ -9965,8 +10064,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json index 154a7eaaa248..c170577f6ea1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/_models_py3.py index b8c9f67769bd..8dec0129c246 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -33,7 +33,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -81,8 +81,8 @@ def __init__( image_reference: Optional["_models.ImageDiskReference"] = None, source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -142,7 +142,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -263,8 +263,8 @@ def __init__( encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -337,7 +337,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2018_09_30.models.Disk] @@ -371,7 +371,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -433,8 +433,8 @@ def __init__( encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -499,8 +499,8 @@ def __init__( *, enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -536,8 +536,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -572,7 +572,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2018_09_30.models.AccessLevel @@ -606,7 +606,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -621,7 +623,8 @@ def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -641,7 +644,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2018_09_30.models.SourceVault @@ -674,7 +677,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2018_09_30.models.SourceVault @@ -771,8 +774,8 @@ def __init__( creation_data: Optional["_models.CreationData"] = None, disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -831,7 +834,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2018_09_30.models.Snapshot] @@ -864,7 +867,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -914,8 +919,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -942,7 +947,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -952,7 +958,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json index 3e0b306800ca..4c4db493cef2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py index cc7456d2b76f..61437a591dc0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py @@ -42,7 +42,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -55,7 +55,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -87,8 +89,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -124,7 +126,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -165,8 +167,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2018_10_01.models.ApiErrorBase] @@ -205,8 +207,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -246,8 +248,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -283,7 +285,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -312,7 +314,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -363,7 +365,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -379,7 +381,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -446,8 +457,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -500,7 +511,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.AvailabilitySet] @@ -524,7 +537,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -534,7 +547,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -579,8 +593,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -608,7 +622,10 @@ def __init__( class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -622,7 +639,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -661,7 +678,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -686,7 +703,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -729,7 +746,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -811,8 +828,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -880,14 +897,15 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -900,7 +918,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -913,7 +931,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2018_10_01.models.DiffDiskOptions @@ -923,7 +943,7 @@ class DiffDiskSettings(_serialization.Model): "option": {"key": "option", "type": "str"}, } - def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs): + def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs: Any) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2018_10_01.models.DiffDiskOptions @@ -956,8 +976,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -998,8 +1018,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -1072,7 +1092,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -1127,7 +1149,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -1177,8 +1201,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1250,8 +1274,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1309,7 +1333,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.Image] @@ -1383,8 +1407,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. :code:`
`:code:`
` Possible values are: @@ -1436,7 +1460,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1446,7 +1470,11 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar id: Resource Id. :vartype id: str @@ -1481,8 +1509,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1537,8 +1565,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -1592,8 +1620,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1622,7 +1650,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1665,8 +1695,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -1708,7 +1738,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -1741,7 +1771,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -1754,7 +1784,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1780,8 +1816,8 @@ def __init__( disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -1821,7 +1857,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.Usage] @@ -1878,8 +1914,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -1921,7 +1957,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -1944,7 +1980,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -1992,8 +2028,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -2045,8 +2081,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2076,8 +2112,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2102,7 +2142,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -2114,7 +2156,10 @@ def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfac class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -2194,8 +2239,8 @@ def __init__( diff_disk_settings: Optional["_models.DiffDiskSettings"] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -2272,7 +2317,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -2369,8 +2414,8 @@ def __init__( linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -2447,7 +2492,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -2474,8 +2523,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2556,8 +2605,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2597,7 +2646,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.ProximityPlacementGroup] @@ -2620,7 +2671,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2654,7 +2705,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -2692,7 +2743,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -2749,8 +2800,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -2807,7 +2858,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -2860,8 +2911,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -2921,7 +2972,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -2961,7 +3012,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -3021,7 +3072,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3076,8 +3127,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -3148,8 +3199,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -3202,8 +3253,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -3240,7 +3291,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3273,7 +3324,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.RunCommandDocumentBase] @@ -3313,7 +3366,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -3342,7 +3397,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.InstanceViewStatus] @@ -3352,7 +3407,9 @@ def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -3371,8 +3428,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -3400,7 +3457,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2018_10_01.models.SshPublicKey] @@ -3410,7 +3467,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -3428,7 +3486,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -3477,8 +3535,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -3519,7 +3577,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3569,8 +3627,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -3623,7 +3681,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -3669,7 +3727,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -3706,7 +3764,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -3745,8 +3803,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -3803,7 +3861,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -3832,7 +3890,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -3865,7 +3923,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -3873,7 +3931,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -3897,7 +3956,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -3941,8 +4002,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -3967,7 +4028,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -4104,8 +4165,8 @@ def __init__( availability_set: Optional["_models.SubResource"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4204,8 +4265,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -4247,7 +4308,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -4295,7 +4358,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -4388,8 +4451,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4453,8 +4516,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -4531,8 +4594,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4591,8 +4654,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -4624,7 +4687,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineExtension] @@ -4680,8 +4743,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4731,7 +4794,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -4777,8 +4840,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -4834,8 +4897,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4911,8 +4974,8 @@ def __init__( os_disk_image: Optional["_models.OSDiskImage"] = None, data_disk_images: Optional[List["_models.DataDiskImage"]] = None, automatic_os_upgrade_properties: Optional["_models.AutomaticOSUpgradeProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5007,8 +5070,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -5076,7 +5139,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachine] @@ -5090,7 +5155,8 @@ def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -5101,7 +5167,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -5229,8 +5295,8 @@ def __init__( zone_balance: Optional[bool] = None, platform_fault_domain_count: Optional[int] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5351,8 +5417,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -5454,8 +5520,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -5516,8 +5582,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetExtension] @@ -5542,7 +5608,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -5598,8 +5666,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -5642,7 +5710,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -5675,7 +5743,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2018_10_01.models.InstanceViewStatus] @@ -5704,7 +5772,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -5790,8 +5858,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5855,7 +5923,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -5890,8 +5958,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -5926,7 +5998,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSet] @@ -5960,7 +6034,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetSku] @@ -5994,7 +6070,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSet] @@ -6022,7 +6100,9 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): "storage_account_type": {"key": "storageAccountType", "type": "str"}, } - def __init__(self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS @@ -6091,8 +6171,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6136,7 +6216,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -6170,8 +6250,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -6260,8 +6340,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -6392,8 +6472,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -6501,8 +6581,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, public_ip_prefix: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -6543,7 +6623,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -6566,7 +6646,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -6592,7 +6672,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -6631,7 +6713,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -6670,7 +6752,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -6712,8 +6794,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -6808,8 +6890,8 @@ def __init__( do_not_run_extensions_on_overprovisioned_v_ms: Optional[bool] = None, single_placement_group: Optional[bool] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6927,8 +7009,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7025,8 +7107,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7079,8 +7161,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -7091,7 +7173,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2018_10_01.models.CachingTypes @@ -7131,8 +7214,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2018_10_01.models.CachingTypes @@ -7189,8 +7272,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -7235,8 +7318,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -7276,8 +7359,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2018_10_01.models.ImageReference @@ -7332,8 +7415,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, extension_profile: Optional["_models.VirtualMachineScaleSetExtensionProfile"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -7493,8 +7576,8 @@ def __init__( diagnostics_profile: Optional["_models.DiagnosticsProfile"] = None, availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7585,7 +7668,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -7605,7 +7688,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -7633,7 +7716,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -7708,8 +7791,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -7773,7 +7856,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVM] @@ -7854,8 +7939,8 @@ def __init__( license_type: Optional[str] = None, priority: Optional[Union[str, "_models.VirtualMachinePriorityTypes"]] = None, eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -7947,8 +8032,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -7985,7 +8070,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineSize] @@ -8015,7 +8100,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -8127,8 +8212,8 @@ def __init__( availability_set: Optional["_models.SubResource"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8239,8 +8324,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -8281,7 +8366,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2018_10_01.models.WinRMListener] @@ -8317,8 +8402,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json index c0ad8ef9d33c..48cfca550cfa 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py index 2a9cbc7641d3..9e5c2b7b8c18 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py @@ -69,23 +69,23 @@ class DiffDiskOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" class DiskCreateOptionTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -105,33 +105,33 @@ class DiskCreateOptionTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently mounted to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is mounted to a stopped-deallocated VM + """The disk is currently mounted to a running VM.""" RESERVED = "Reserved" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is mounted to a stopped-deallocated VM""" ACTIVE_SAS = "ActiveSAS" - #: A disk is ready to be created by upload by requesting a write token. + """The disk currently has an Active SAS Uri associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" class GalleryApplicationVersionPropertiesProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -238,10 +238,10 @@ class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEn class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -325,12 +325,12 @@ class SettingNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" class StatusLevelTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py index c28c4949ed89..141c61a09bb5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py @@ -45,7 +45,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -65,7 +65,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -78,7 +78,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -110,8 +112,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -147,7 +149,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -188,8 +190,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2019_03_01.models.ApiErrorBase] @@ -228,8 +230,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -269,8 +271,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -306,7 +308,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -335,7 +337,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -386,7 +388,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -402,7 +404,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -469,8 +480,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -523,7 +534,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.AvailabilitySet] @@ -547,7 +560,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -557,7 +570,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -602,8 +616,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -631,7 +645,8 @@ def __init__( class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -652,7 +667,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -673,7 +688,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -687,7 +705,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -726,7 +744,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -751,7 +769,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -794,7 +812,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -860,8 +878,8 @@ def __init__( source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -969,8 +987,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, to_be_detached: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1042,7 +1060,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1132,8 +1150,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1183,7 +1201,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1209,7 +1227,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1221,7 +1241,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1274,8 +1297,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1315,7 +1338,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.DedicatedHostGroup] @@ -1329,7 +1354,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1363,8 +1389,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1411,8 +1437,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -1447,7 +1473,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.DedicatedHost] @@ -1461,7 +1487,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1519,8 +1546,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1550,7 +1577,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1563,7 +1591,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1576,7 +1604,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2019_03_01.models.DiffDiskOptions @@ -1586,7 +1616,7 @@ class DiffDiskSettings(_serialization.Model): "option": {"key": "option", "type": "str"}, } - def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs): + def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs: Any) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2019_03_01.models.DiffDiskOptions @@ -1606,7 +1636,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -1729,8 +1759,8 @@ def __init__( encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1808,8 +1838,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -1850,8 +1880,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -1889,7 +1919,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.Disk] @@ -1923,7 +1953,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -1985,8 +2015,8 @@ def __init__( encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2057,8 +2087,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -2099,8 +2129,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -2168,8 +2198,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2188,7 +2218,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -2255,8 +2286,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2311,7 +2342,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.GalleryApplication] @@ -2382,8 +2415,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2420,7 +2453,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.GalleryApplicationVersion] @@ -2479,8 +2514,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2570,8 +2605,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, manage_actions: Optional["_models.UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2628,7 +2663,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2019_03_01.models.ManagedArtifact @@ -2659,7 +2694,7 @@ class GalleryDiskImage(_serialization.Model): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.size_in_gb = None @@ -2694,7 +2729,7 @@ class GalleryDataDiskImage(GalleryDiskImage): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -2718,7 +2753,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -2822,8 +2857,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2901,7 +2936,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery Image Definition publisher. Required. :paramtype publisher: str @@ -2937,7 +2972,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.GalleryImage] @@ -3009,8 +3044,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3048,7 +3083,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Image Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.GalleryImageVersion] @@ -3114,8 +3151,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3170,7 +3207,7 @@ class GalleryImageVersionStorageProfile(_serialization.Model): "data_disk_images": {"key": "dataDiskImages", "type": "[GalleryDataDiskImage]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.os_disk_image = None @@ -3198,7 +3235,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.Gallery] @@ -3233,7 +3270,7 @@ class GalleryOSDiskImage(GalleryDiskImage): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) @@ -3259,7 +3296,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2019_03_01.models.AccessLevel @@ -3327,7 +3364,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -3382,7 +3421,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -3438,8 +3479,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3516,8 +3557,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -3576,7 +3617,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -3611,7 +3654,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.Image] @@ -3685,8 +3728,8 @@ def __init__( caching: Optional[Union[str, "_models.CachingTypes"]] = None, disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. :code:`
`:code:`
` Possible values are: @@ -3745,8 +3788,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -3772,7 +3820,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -3782,7 +3830,11 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. :ivar id: Resource Id. :vartype id: str @@ -3817,8 +3869,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3873,8 +3925,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -3934,8 +3986,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3969,7 +4021,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -4012,8 +4066,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -4035,7 +4089,8 @@ def __init__( class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -4055,7 +4110,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2019_03_01.models.SourceVault @@ -4088,7 +4143,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2019_03_01.models.SourceVault @@ -4121,7 +4176,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -4154,7 +4209,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -4167,7 +4222,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -4193,8 +4254,8 @@ def __init__( disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -4234,7 +4295,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.Usage] @@ -4291,8 +4352,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4334,7 +4395,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4357,7 +4418,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -4405,8 +4466,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4453,7 +4514,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -4484,8 +4545,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4515,8 +4576,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4541,7 +4606,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4553,7 +4620,10 @@ def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfac class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -4633,8 +4703,8 @@ def __init__( diff_disk_settings: Optional["_models.DiffDiskSettings"] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -4711,7 +4781,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -4813,8 +4883,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4895,7 +4965,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -4922,8 +4996,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -5004,8 +5078,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5045,7 +5119,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.ProximityPlacementGroup] @@ -5068,7 +5144,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5102,7 +5178,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -5119,7 +5195,8 @@ def __init__(self, *, publisher: str, name: str, product: str, **kwargs): class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2019_03_01.models.ResourceRange @@ -5137,8 +5214,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2019_03_01.models.ResourceRange @@ -5172,7 +5249,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -5209,7 +5286,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -5241,7 +5318,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -5298,8 +5375,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5349,8 +5426,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -5388,7 +5465,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -5441,8 +5518,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -5502,7 +5579,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -5542,7 +5619,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -5602,7 +5679,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5657,8 +5734,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -5729,8 +5806,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -5783,8 +5860,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -5821,7 +5898,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -5854,7 +5931,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.RunCommandDocumentBase] @@ -5894,7 +5973,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -5923,7 +6004,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.InstanceViewStatus] @@ -5958,8 +6039,8 @@ class ScaleInPolicy(_serialization.Model): } def __init__( - self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs - ): + self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -5999,8 +6080,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6012,7 +6093,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -6031,8 +6114,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -6147,8 +6230,8 @@ def __init__( disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, incremental: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6213,7 +6296,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.Snapshot] @@ -6246,7 +6329,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -6296,8 +6381,8 @@ def __init__( os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6324,7 +6409,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -6334,7 +6420,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -6354,7 +6440,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2019_03_01.models.SshPublicKey] @@ -6364,7 +6450,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6382,7 +6469,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6431,8 +6518,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -6473,7 +6560,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -6510,8 +6597,8 @@ def __init__( name: str, regional_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -6546,7 +6633,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -6605,8 +6694,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -6659,7 +6748,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -6705,7 +6794,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -6742,7 +6831,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6781,8 +6870,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -6839,7 +6928,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -6868,7 +6957,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -6908,7 +6997,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -6949,7 +7038,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. @@ -6984,7 +7073,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -6992,7 +7081,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7016,7 +7106,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7060,8 +7152,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -7086,7 +7178,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -7256,8 +7348,8 @@ def __init__( # pylint: disable=too-many-locals billing_profile: Optional["_models.BillingProfile"] = None, host: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7385,8 +7477,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -7428,7 +7520,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -7476,7 +7570,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -7569,8 +7663,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7634,8 +7728,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -7712,8 +7806,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7772,8 +7866,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -7805,7 +7899,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineExtension] @@ -7861,8 +7955,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7912,7 +8006,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -7958,8 +8052,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -8015,8 +8109,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8097,8 +8191,8 @@ def __init__( data_disk_images: Optional[List["_models.DataDiskImage"]] = None, automatic_os_upgrade_properties: Optional["_models.AutomaticOSUpgradeProperties"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8203,8 +8297,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -8277,7 +8371,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachine] @@ -8291,7 +8387,8 @@ def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -8302,7 +8399,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -8442,8 +8539,8 @@ def __init__( proximity_placement_group: Optional["_models.SubResource"] = None, additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8575,8 +8672,8 @@ def __init__( write_accelerator_enabled: Optional[bool] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -8678,8 +8775,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -8740,8 +8837,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetExtension] @@ -8766,7 +8863,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -8822,8 +8921,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -8866,7 +8965,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -8899,7 +8998,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2019_03_01.models.InstanceViewStatus] @@ -8928,7 +9027,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -9014,8 +9113,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9079,7 +9178,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -9114,8 +9213,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -9150,7 +9253,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSet] @@ -9184,7 +9289,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetSku] @@ -9218,7 +9325,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSet] @@ -9246,7 +9355,9 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): "storage_account_type": {"key": "storageAccountType", "type": "str"}, } - def __init__(self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS @@ -9315,8 +9426,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9360,7 +9471,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -9394,8 +9505,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -9484,8 +9595,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -9616,8 +9727,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -9725,8 +9836,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, public_ip_prefix: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -9767,7 +9878,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -9790,7 +9901,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9816,7 +9927,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9855,7 +9968,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -9894,7 +10007,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -9936,8 +10049,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -10044,8 +10157,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10174,8 +10287,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10272,8 +10385,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10332,8 +10445,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -10349,7 +10462,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2019_03_01.models.CachingTypes @@ -10389,8 +10503,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2019_03_01.models.CachingTypes @@ -10447,8 +10561,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -10493,8 +10607,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -10534,8 +10648,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2019_03_01.models.ImageReference @@ -10600,8 +10714,8 @@ def __init__( license_type: Optional[str] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -10788,8 +10902,8 @@ def __init__( # pylint: disable=too-many-locals availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10890,7 +11004,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -10910,7 +11024,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -10938,7 +11052,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -11013,8 +11127,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -11078,7 +11192,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVM] @@ -11110,8 +11226,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -11193,8 +11309,8 @@ def __init__( eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -11273,8 +11389,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -11326,8 +11442,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -11364,7 +11480,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineSize] @@ -11394,7 +11510,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -11539,8 +11655,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, host: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -11655,7 +11771,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -11706,8 +11822,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -11748,7 +11864,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2019_03_01.models.WinRMListener] @@ -11784,8 +11900,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" and diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json index 6893c87db532..d2ead15d140f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/models/_models_py3.py index efcde6d41824..11430b1392fd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/models/_models_py3.py @@ -7,10 +7,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional +from typing import Any, List, Optional, TYPE_CHECKING from ... import _serialization +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from .. import models as _models + class ResourceSku(_serialization.Model): # pylint: disable=too-many-instance-attributes """Describes an available Compute SKU. @@ -81,7 +85,7 @@ class ResourceSku(_serialization.Model): # pylint: disable=too-many-instance-at "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -120,7 +124,7 @@ class ResourceSkuCapabilities(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -157,7 +161,7 @@ class ResourceSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -191,7 +195,7 @@ class ResourceSkuCosts(_serialization.Model): "extended_unit": {"key": "extendedUnit", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.meter_id = None @@ -224,7 +228,7 @@ class ResourceSkuLocationInfo(_serialization.Model): "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.location = None @@ -253,7 +257,7 @@ class ResourceSkuRestrictionInfo(_serialization.Model): "zones": {"key": "zones", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.locations = None @@ -292,7 +296,7 @@ class ResourceSkuRestrictions(_serialization.Model): "reason_code": {"key": "reasonCode", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type = None @@ -322,7 +326,7 @@ class ResourceSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of skus available for the subscription. Required. :paramtype value: list[~azure.mgmt.compute.v2019_04_01.models.ResourceSku] @@ -357,7 +361,7 @@ class ResourceSkuZoneDetails(_serialization.Model): "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json index fcbb8b2a5073..af3532030456 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py index 3adf7867711e..4f6666e66171 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py @@ -69,23 +69,23 @@ class DiffDiskOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" class DiskCreateOptionTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -111,42 +111,42 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently mounted to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is mounted to a stopped-deallocated VM + """The disk is currently mounted to a running VM.""" RESERVED = "Reserved" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is mounted to a stopped-deallocated VM""" ACTIVE_SAS = "ActiveSAS" - #: A disk is ready to be created by upload by requesting a write token. + """The disk currently has an Active SAS Uri associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted with XStore managed key at rest. It is the default encryption type. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted with Customer managed key at rest. + """Disk is encrypted with XStore managed key at rest. It is the default encryption type.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" + """Disk is encrypted with Customer managed key at rest.""" class GalleryApplicationVersionPropertiesProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -253,10 +253,10 @@ class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEn class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -340,12 +340,12 @@ class SettingNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" class StatusLevelTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py index 36b375ba1f21..e9780b974582 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py @@ -45,7 +45,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -65,7 +65,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -78,7 +78,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -110,8 +112,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -147,7 +149,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -188,8 +190,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2019_07_01.models.ApiErrorBase] @@ -228,8 +230,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -269,8 +271,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -306,7 +308,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -335,7 +337,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -386,7 +388,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -402,7 +404,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -469,8 +480,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -523,7 +534,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.AvailabilitySet] @@ -547,7 +560,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -557,7 +570,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -602,8 +616,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -631,7 +645,8 @@ def __init__( class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -652,7 +667,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -673,7 +688,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -687,7 +705,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -726,7 +744,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -751,7 +769,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -794,7 +812,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -859,8 +877,8 @@ def __init__( source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -981,8 +999,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, to_be_detached: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1056,7 +1074,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1146,8 +1164,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1197,7 +1215,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1223,7 +1241,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1235,7 +1255,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1288,8 +1311,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1329,7 +1352,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.DedicatedHostGroup] @@ -1343,7 +1368,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1377,8 +1403,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1425,8 +1451,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -1461,7 +1487,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.DedicatedHost] @@ -1475,7 +1501,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1533,8 +1560,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1564,7 +1591,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1577,7 +1605,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1590,7 +1618,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2019_07_01.models.DiffDiskOptions @@ -1600,7 +1630,7 @@ class DiffDiskSettings(_serialization.Model): "option": {"key": "option", "type": "str"}, } - def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs): + def __init__(self, *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, **kwargs: Any) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2019_07_01.models.DiffDiskOptions @@ -1620,7 +1650,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -1748,8 +1778,8 @@ def __init__( disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, encryption: Optional["_models.Encryption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1865,8 +1895,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, identity: Optional["_models.EncryptionSetIdentity"] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1906,7 +1936,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSet] @@ -1930,7 +1962,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1940,7 +1972,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -1950,7 +1985,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -1982,8 +2017,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2019,8 +2054,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2058,8 +2093,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2097,7 +2132,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.Disk] @@ -2131,7 +2166,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -2198,8 +2233,8 @@ def __init__( disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, encryption: Optional["_models.Encryption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2262,8 +2297,8 @@ class Encryption(_serialization.Model): } def __init__( - self, *, type: Union[str, "_models.EncryptionType"], disk_encryption_set_id: Optional[str] = None, **kwargs - ): + self, *, type: Union[str, "_models.EncryptionType"], disk_encryption_set_id: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -2278,7 +2313,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -2306,7 +2342,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported. "SystemAssigned" @@ -2353,8 +2391,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -2395,8 +2433,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -2464,8 +2502,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2484,7 +2522,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -2551,8 +2590,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2607,7 +2646,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.GalleryApplication] @@ -2665,8 +2706,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2755,8 +2796,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2793,7 +2834,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersion] @@ -2852,8 +2895,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2943,8 +2986,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, manage_actions: Optional["_models.UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3022,8 +3065,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3054,7 +3097,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2019_07_01.models.ManagedArtifact @@ -3075,7 +3118,7 @@ class GalleryArtifactVersionSource(_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: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image. @@ -3114,8 +3157,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3167,8 +3210,8 @@ def __init__( lun: int, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3202,7 +3245,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -3311,8 +3354,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3394,7 +3437,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery Image Definition publisher. Required. :paramtype publisher: str @@ -3430,7 +3473,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.GalleryImage] @@ -3527,8 +3570,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3642,8 +3685,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3684,7 +3727,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Image Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersion] @@ -3743,8 +3788,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3797,8 +3842,8 @@ def __init__( source: Optional["_models.GalleryArtifactVersionSource"] = None, os_disk_image: Optional["_models.GalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.GalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source: The gallery artifact version source. :paramtype source: ~azure.mgmt.compute.v2019_07_01.models.GalleryArtifactVersionSource @@ -3853,8 +3898,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3893,7 +3938,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.Gallery] @@ -3935,8 +3980,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3982,8 +4027,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4020,7 +4065,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2019_07_01.models.AccessLevel @@ -4088,7 +4133,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -4143,7 +4190,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -4199,8 +4248,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4271,8 +4320,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2019_07_01.models.SubResource @@ -4370,8 +4419,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2019_07_01.models.SubResource @@ -4437,7 +4486,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -4472,7 +4523,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.Image] @@ -4552,8 +4603,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2019_07_01.models.SubResource @@ -4619,8 +4670,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -4636,7 +4692,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -4682,8 +4742,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4739,8 +4799,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -4800,8 +4860,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4835,7 +4895,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -4878,8 +4940,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -4901,7 +4963,8 @@ def __init__( class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -4921,7 +4984,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2019_07_01.models.SourceVault @@ -4954,7 +5017,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2019_07_01.models.SourceVault @@ -4987,7 +5050,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -5020,7 +5083,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -5033,7 +5096,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -5059,8 +5128,8 @@ def __init__( disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -5100,7 +5169,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.Usage] @@ -5157,8 +5226,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5200,7 +5269,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -5223,7 +5292,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -5271,8 +5340,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -5319,7 +5388,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -5356,8 +5425,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5392,8 +5461,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5418,7 +5491,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -5430,7 +5505,10 @@ def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfac class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -5510,8 +5588,8 @@ def __init__( diff_disk_settings: Optional["_models.DiffDiskSettings"] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -5588,7 +5666,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -5599,7 +5677,8 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5696,8 +5775,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5784,7 +5863,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -5811,8 +5894,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -5903,8 +5986,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5947,7 +6030,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.ProximityPlacementGroup] @@ -5970,7 +6055,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6004,7 +6089,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -6021,7 +6106,8 @@ def __init__(self, *, publisher: str, name: str, product: str, **kwargs): class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2019_07_01.models.ResourceRange @@ -6039,8 +6125,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2019_07_01.models.ResourceRange @@ -6074,7 +6160,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -6111,7 +6197,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -6143,7 +6229,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -6200,8 +6286,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -6251,8 +6337,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -6290,7 +6376,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -6343,8 +6429,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -6404,7 +6490,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -6444,7 +6530,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6504,7 +6590,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6559,8 +6645,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6631,8 +6717,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6685,8 +6771,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -6723,7 +6809,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6756,7 +6842,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.RunCommandDocumentBase] @@ -6796,7 +6884,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6825,7 +6915,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.InstanceViewStatus] @@ -6860,8 +6950,8 @@ class ScaleInPolicy(_serialization.Model): } def __init__( - self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs - ): + self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -6901,8 +6991,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6914,7 +7004,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -6933,8 +7025,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -7054,8 +7146,8 @@ def __init__( encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, incremental: Optional[bool] = None, encryption: Optional["_models.Encryption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7124,7 +7216,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.Snapshot] @@ -7157,7 +7249,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -7212,8 +7306,8 @@ def __init__( disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, encryption: Optional["_models.Encryption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7244,7 +7338,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -7254,7 +7349,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -7274,7 +7369,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2019_07_01.models.SshPublicKey] @@ -7284,7 +7379,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7302,7 +7398,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7351,8 +7447,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -7393,7 +7489,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7419,8 +7515,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7463,8 +7559,8 @@ def __init__( name: str, regional_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -7499,7 +7595,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -7558,8 +7656,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -7612,7 +7710,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -7658,7 +7756,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -7695,7 +7793,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7734,8 +7832,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -7792,7 +7890,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -7821,7 +7919,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -7861,7 +7959,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -7902,7 +8000,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. @@ -7937,7 +8035,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -7945,7 +8043,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7969,7 +8068,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -8013,8 +8114,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -8039,7 +8140,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -8214,8 +8315,8 @@ def __init__( # pylint: disable=too-many-locals billing_profile: Optional["_models.BillingProfile"] = None, host: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8348,8 +8449,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -8391,7 +8492,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -8439,7 +8542,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -8532,8 +8635,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8597,8 +8700,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -8675,8 +8778,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8735,8 +8838,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -8768,7 +8871,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtension] @@ -8824,8 +8927,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8875,7 +8978,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8921,8 +9024,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -8978,8 +9081,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9060,8 +9163,8 @@ def __init__( data_disk_images: Optional[List["_models.DataDiskImage"]] = None, automatic_os_upgrade_properties: Optional["_models.AutomaticOSUpgradeProperties"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9166,8 +9269,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -9240,7 +9343,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachine] @@ -9254,7 +9359,8 @@ def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9265,7 +9371,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9405,8 +9511,8 @@ def __init__( proximity_placement_group: Optional["_models.SubResource"] = None, additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9550,8 +9656,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -9668,8 +9774,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -9732,8 +9838,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtension] @@ -9758,7 +9864,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -9838,8 +9946,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -9924,8 +10032,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -9968,7 +10076,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -10001,7 +10109,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2019_07_01.models.InstanceViewStatus] @@ -10030,7 +10138,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -10116,8 +10224,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10181,7 +10289,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -10216,8 +10324,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -10252,7 +10364,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSet] @@ -10286,7 +10400,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetSku] @@ -10320,7 +10436,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSet] @@ -10358,8 +10476,8 @@ def __init__( *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS @@ -10433,8 +10551,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10478,7 +10596,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -10512,8 +10630,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -10602,8 +10720,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -10734,8 +10852,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -10849,8 +10967,8 @@ def __init__( ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -10896,7 +11014,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -10919,7 +11037,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10945,7 +11063,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10984,7 +11104,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -11023,7 +11143,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -11065,8 +11185,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -11173,8 +11293,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -11303,8 +11423,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11401,8 +11521,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11461,8 +11581,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -11478,7 +11598,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2019_07_01.models.CachingTypes @@ -11518,8 +11639,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2019_07_01.models.CachingTypes @@ -11576,8 +11697,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -11622,8 +11743,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -11663,8 +11784,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2019_07_01.models.ImageReference @@ -11729,8 +11850,8 @@ def __init__( license_type: Optional[str] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -11917,8 +12038,8 @@ def __init__( # pylint: disable=too-many-locals availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -12019,7 +12140,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -12039,7 +12160,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -12067,7 +12188,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -12142,8 +12263,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -12207,7 +12328,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVM] @@ -12239,8 +12362,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -12324,8 +12447,8 @@ def __init__( eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -12406,8 +12529,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -12459,8 +12582,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -12497,7 +12620,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineSize] @@ -12527,7 +12650,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -12677,8 +12800,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, host: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12798,7 +12921,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -12853,8 +12976,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -12898,7 +13021,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2019_07_01.models.WinRMListener] @@ -12934,8 +13057,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json index b275b9d6ac54..26aeff47ccec 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_compute_management_client_enums.py index 83f1978a41b5..31152a3b38fc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_compute_management_client_enums.py @@ -21,24 +21,24 @@ class AccessLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -50,42 +50,42 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently mounted to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is mounted to a stopped-deallocated VM + """The disk is currently mounted to a running VM.""" RESERVED = "Reserved" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is mounted to a stopped-deallocated VM""" ACTIVE_SAS = "ActiveSAS" - #: A disk is ready to be created by upload by requesting a write token. + """The disk currently has an Active SAS Uri associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted with XStore managed key at rest. It is the default encryption type. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted with Customer managed key at rest. + """Disk is encrypted with XStore managed key at rest. It is the default encryption type.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" + """Disk is encrypted with Customer managed key at rest.""" class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -105,9 +105,9 @@ class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_models_py3.py index 6224ac59d31b..80d0a9182c4c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -33,7 +33,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -70,8 +70,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2019_11_01.models.ApiErrorBase] @@ -110,8 +110,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -186,8 +186,8 @@ def __init__( source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -257,7 +257,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -418,8 +418,8 @@ def __init__( # pylint: disable=too-many-locals disk_m_bps_read_only: Optional[int] = None, encryption: Optional["_models.Encryption"] = None, max_shares: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -550,8 +550,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, identity: Optional["_models.EncryptionSetIdentity"] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -591,7 +591,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_11_01.models.DiskEncryptionSet] @@ -624,8 +626,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -659,7 +661,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2019_11_01.models.Disk] @@ -693,7 +695,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -776,8 +778,8 @@ def __init__( disk_m_bps_read_only: Optional[int] = None, max_shares: Optional[int] = None, encryption: Optional["_models.Encryption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -851,8 +853,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -867,7 +869,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -895,7 +898,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported. "SystemAssigned" @@ -942,8 +947,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -984,8 +989,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1020,7 +1025,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2019_11_01.models.AccessLevel @@ -1054,7 +1059,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1082,7 +1089,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1095,7 +1104,8 @@ def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -1115,7 +1125,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2019_11_01.models.SourceVault @@ -1148,7 +1158,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2019_11_01.models.SourceVault @@ -1177,7 +1187,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -1286,8 +1296,8 @@ def __init__( encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, incremental: Optional[bool] = None, encryption: Optional["_models.Encryption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1356,7 +1366,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2019_11_01.models.Snapshot] @@ -1389,7 +1399,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -1444,8 +1456,8 @@ def __init__( disk_size_gb: Optional[int] = None, encryption_settings_collection: Optional["_models.EncryptionSettingsCollection"] = None, encryption: Optional["_models.Encryption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1476,7 +1488,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -1486,7 +1499,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json index c2f13dd9831e..2e2d85f01830 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py index 6064a11ef55e..9d2401918144 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py @@ -190,10 +190,10 @@ class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEn class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py index bd03113b87c1..b7af51dc29c1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py @@ -42,7 +42,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -55,7 +55,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -87,8 +89,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -124,7 +126,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -165,8 +167,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2019_12_01.models.ApiErrorBase] @@ -205,8 +207,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -246,8 +248,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -283,7 +285,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -312,7 +314,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -363,7 +365,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -379,7 +381,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -446,8 +457,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -500,7 +511,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.AvailabilitySet] @@ -524,7 +537,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -534,7 +547,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -579,8 +593,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -608,7 +622,8 @@ def __init__( class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -629,7 +644,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -650,7 +665,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -664,7 +682,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -703,7 +721,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -728,7 +746,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -771,7 +789,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -872,8 +890,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, to_be_detached: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -947,7 +965,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -965,7 +983,7 @@ class DiskImageEncryption(_serialization.Model): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -998,7 +1016,7 @@ class DataDiskImageEncryption(DiskImageEncryption): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -1096,8 +1114,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1147,7 +1165,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1173,7 +1191,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1185,7 +1205,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1238,8 +1261,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1279,7 +1302,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.DedicatedHostGroup] @@ -1293,7 +1318,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1327,8 +1353,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1375,8 +1401,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -1411,7 +1437,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.DedicatedHost] @@ -1425,7 +1451,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1483,8 +1510,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1514,7 +1541,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1527,7 +1555,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1540,7 +1568,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2019_12_01.models.DiffDiskOptions @@ -1565,8 +1595,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2019_12_01.models.DiffDiskOptions @@ -1596,7 +1626,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -1616,7 +1646,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1626,7 +1656,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -1636,7 +1669,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -1668,8 +1701,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -1710,8 +1743,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -1729,7 +1762,8 @@ def __init__( class EncryptionImages(_serialization.Model): - """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. + """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in + the gallery artifact. :ivar os_disk_image: Contains encryption settings for an OS disk image. :vartype os_disk_image: ~azure.mgmt.compute.v2019_12_01.models.OSDiskImageEncryption @@ -1747,8 +1781,8 @@ def __init__( *, os_disk_image: Optional["_models.OSDiskImageEncryption"] = None, data_disk_images: Optional[List["_models.DataDiskImageEncryption"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: Contains encryption settings for an OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2019_12_01.models.OSDiskImageEncryption @@ -1815,8 +1849,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1835,7 +1869,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -1902,8 +1937,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1958,7 +1993,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.GalleryApplication] @@ -2000,7 +2037,7 @@ class UpdateResourceDefinition(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2073,8 +2110,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2163,8 +2200,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2201,7 +2238,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersion] @@ -2261,8 +2300,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2354,8 +2393,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, manage_actions: Optional["_models.UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2446,8 +2485,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2478,7 +2517,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2019_12_01.models.ManagedArtifact @@ -2499,7 +2538,7 @@ class GalleryArtifactVersionSource(_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: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image. @@ -2538,8 +2577,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -2591,8 +2630,8 @@ def __init__( lun: int, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -2626,7 +2665,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -2735,8 +2774,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2818,7 +2857,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery Image Definition publisher. Required. :paramtype publisher: str @@ -2854,7 +2893,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.GalleryImage] @@ -2963,8 +3002,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3078,8 +3117,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3120,7 +3159,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Image Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.GalleryImageVersion] @@ -3180,8 +3221,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3235,8 +3276,8 @@ def __init__( source: Optional["_models.GalleryArtifactVersionSource"] = None, os_disk_image: Optional["_models.GalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.GalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source: The gallery artifact version source. :paramtype source: ~azure.mgmt.compute.v2019_12_01.models.GalleryArtifactVersionSource @@ -3303,8 +3344,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3343,7 +3384,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.Gallery] @@ -3385,8 +3426,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3444,8 +3485,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3517,7 +3558,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -3572,7 +3615,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -3628,8 +3673,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3700,8 +3745,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2019_12_01.models.SubResource @@ -3799,8 +3844,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2019_12_01.models.SubResource @@ -3865,7 +3910,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.Image] @@ -3945,8 +3990,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2019_12_01.models.SubResource @@ -4012,8 +4057,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -4029,7 +4079,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -4075,8 +4129,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4132,8 +4186,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -4193,8 +4247,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4228,7 +4282,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -4271,8 +4327,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -4314,7 +4370,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -4347,7 +4403,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -4360,7 +4416,13 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -4386,8 +4448,8 @@ def __init__( disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -4427,7 +4489,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.Usage] @@ -4484,8 +4546,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4527,7 +4589,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4550,7 +4612,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -4598,8 +4660,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4646,7 +4708,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -4683,8 +4745,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4719,8 +4781,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4745,7 +4811,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4782,8 +4850,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. "AutomaticRepairs" :paramtype service_name: str or @@ -4820,7 +4888,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -4828,7 +4896,10 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -4909,8 +4980,8 @@ def __init__( diff_disk_settings: Optional["_models.DiffDiskSettings"] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -4988,7 +5059,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -5010,7 +5081,7 @@ class OSDiskImageEncryption(DiskImageEncryption): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -5020,7 +5091,8 @@ def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5117,8 +5189,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5205,7 +5277,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -5232,8 +5308,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -5324,8 +5400,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5368,7 +5444,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.ProximityPlacementGroup] @@ -5391,7 +5469,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5425,7 +5503,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -5442,7 +5520,8 @@ def __init__(self, *, publisher: str, name: str, product: str, **kwargs): class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2019_12_01.models.ResourceRange @@ -5460,8 +5539,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2019_12_01.models.ResourceRange @@ -5495,7 +5574,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -5532,7 +5611,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -5564,7 +5643,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -5621,8 +5700,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5672,8 +5751,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -5711,7 +5790,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -5764,8 +5843,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -5825,7 +5904,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -5865,7 +5944,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -5925,7 +6004,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5980,8 +6059,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6052,8 +6131,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6106,8 +6185,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -6144,7 +6223,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6177,7 +6256,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.RunCommandDocumentBase] @@ -6217,7 +6298,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6246,7 +6329,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.InstanceViewStatus] @@ -6281,8 +6364,8 @@ class ScaleInPolicy(_serialization.Model): } def __init__( - self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs - ): + self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -6322,8 +6405,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6335,7 +6418,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -6354,8 +6439,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -6383,7 +6468,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2019_12_01.models.SshPublicKey] @@ -6393,7 +6478,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6411,7 +6497,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6458,7 +6544,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -6519,8 +6607,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6557,7 +6645,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.SshPublicKeyResource] @@ -6587,7 +6677,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6633,8 +6725,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -6675,7 +6767,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -6701,8 +6793,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6751,8 +6843,8 @@ def __init__( regional_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -6792,7 +6884,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -6851,8 +6945,8 @@ def __init__( group_by_throttle_policy: Optional[bool] = None, group_by_operation_name: Optional[bool] = None, group_by_resource_name: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -6905,7 +6999,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -6951,7 +7045,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -6988,7 +7082,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7027,8 +7121,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -7085,7 +7179,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -7114,7 +7208,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -7154,7 +7248,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -7195,7 +7289,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. @@ -7230,7 +7324,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -7238,7 +7332,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7262,7 +7357,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7306,8 +7403,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -7332,7 +7429,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -7507,8 +7604,8 @@ def __init__( # pylint: disable=too-many-locals billing_profile: Optional["_models.BillingProfile"] = None, host: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7641,8 +7738,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -7684,7 +7781,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -7732,7 +7831,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -7825,8 +7924,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7890,8 +7989,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -7968,8 +8067,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8028,8 +8127,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -8061,7 +8160,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtension] @@ -8117,8 +8216,8 @@ def __init__( auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8168,7 +8267,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8214,8 +8313,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -8271,8 +8370,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8353,8 +8452,8 @@ def __init__( data_disk_images: Optional[List["_models.DataDiskImage"]] = None, automatic_os_upgrade_properties: Optional["_models.AutomaticOSUpgradeProperties"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8459,8 +8558,8 @@ def __init__( extensions: Optional[List["_models.VirtualMachineExtensionInstanceView"]] = None, boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -8533,7 +8632,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachine] @@ -8547,7 +8648,8 @@ def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -8558,7 +8660,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -8699,8 +8801,8 @@ def __init__( proximity_placement_group: Optional["_models.SubResource"] = None, additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8845,8 +8947,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -8963,8 +9065,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -9027,8 +9129,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetExtension] @@ -9053,7 +9155,9 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[VirtualMachineScaleSetExtension]"}, } - def __init__(self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs): + def __init__( + self, *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -9133,8 +9237,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -9219,8 +9323,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -9263,7 +9367,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -9301,7 +9405,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2019_12_01.models.InstanceViewStatus] @@ -9331,7 +9435,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -9417,8 +9521,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9483,7 +9587,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -9518,8 +9622,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -9554,7 +9662,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSet] @@ -9588,7 +9698,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetSku] @@ -9622,7 +9734,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSet] @@ -9660,8 +9774,8 @@ def __init__( *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS @@ -9735,8 +9849,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9780,7 +9894,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -9814,8 +9928,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -9904,8 +10018,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -10036,8 +10150,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -10151,8 +10265,8 @@ def __init__( ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -10198,7 +10312,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -10221,7 +10335,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10247,7 +10361,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10286,7 +10402,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -10325,7 +10441,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -10367,8 +10483,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -10475,8 +10591,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10536,7 +10652,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -10605,8 +10723,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10703,8 +10821,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10763,8 +10881,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -10780,7 +10898,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2019_12_01.models.CachingTypes @@ -10820,8 +10939,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2019_12_01.models.CachingTypes @@ -10878,8 +10997,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -10924,8 +11043,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -10965,8 +11084,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2019_12_01.models.ImageReference @@ -11031,8 +11150,8 @@ def __init__( license_type: Optional[str] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -11219,8 +11338,8 @@ def __init__( # pylint: disable=too-many-locals availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -11321,7 +11440,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -11341,7 +11460,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -11369,7 +11488,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -11444,8 +11563,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -11509,7 +11628,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVM] @@ -11541,8 +11662,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -11626,8 +11747,8 @@ def __init__( eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -11708,8 +11829,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -11761,8 +11882,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -11799,7 +11920,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineSize] @@ -11829,7 +11950,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -11979,8 +12100,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, host: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12100,7 +12221,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -12155,8 +12276,8 @@ def __init__( time_zone: Optional[str] = None, additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -12200,7 +12321,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2019_12_01.models.WinRMListener] @@ -12236,8 +12357,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json index 03ccc0034a95..e6fe27f31672 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_compute_management_client_enums.py index 68f053d98b4f..9b6238f8e5d4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_compute_management_client_enums.py @@ -21,24 +21,24 @@ class AccessLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -50,47 +50,47 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently mounted to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is mounted to a stopped-deallocated VM + """The disk is currently mounted to a running VM.""" RESERVED = "Reserved" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is mounted to a stopped-deallocated VM""" ACTIVE_SAS = "ActiveSAS" - #: A disk is ready to be created by upload by requesting a write token. + """The disk currently has an Active SAS Uri associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -103,12 +103,12 @@ class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -138,9 +138,9 @@ class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiv class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_models_py3.py index 56315cb504bf..a0f9e15d338c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -33,7 +33,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -70,8 +70,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2020_05_01.models.ApiErrorBase] @@ -110,8 +110,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -186,8 +186,8 @@ def __init__( source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -257,7 +257,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -428,8 +428,8 @@ def __init__( # pylint: disable=too-many-locals max_shares: Optional[int] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -562,7 +562,7 @@ class DiskAccess(Resource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -596,7 +596,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2020_05_01.models.DiskAccess] @@ -620,7 +620,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -693,8 +693,8 @@ def __init__( identity: Optional["_models.EncryptionSetIdentity"] = None, encryption_type: Optional[Union[str, "_models.EncryptionType"]] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -739,7 +739,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_05_01.models.DiskEncryptionSet] @@ -778,8 +780,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, encryption_type: Optional[Union[str, "_models.EncryptionType"]] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -818,7 +820,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2020_05_01.models.Disk] @@ -852,7 +854,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -945,8 +947,8 @@ def __init__( encryption: Optional["_models.Encryption"] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1030,8 +1032,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -1047,7 +1049,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -1075,7 +1078,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported. "SystemAssigned" @@ -1122,8 +1127,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1164,8 +1169,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1200,7 +1205,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2020_05_01.models.AccessLevel @@ -1234,7 +1239,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1262,7 +1269,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1275,7 +1284,8 @@ def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -1295,7 +1305,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_05_01.models.SourceVault @@ -1328,7 +1338,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_05_01.models.SourceVault @@ -1357,7 +1367,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1410,8 +1420,8 @@ def __init__( *, private_endpoint: Optional["_models.PrivateEndpoint"] = None, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_endpoint: The resource of private end point. :paramtype private_endpoint: ~azure.mgmt.compute.v2020_05_01.models.PrivateEndpoint @@ -1465,7 +1475,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -1490,7 +1500,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2020_05_01.models.PrivateLinkResource] @@ -1500,7 +1510,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -1525,8 +1536,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -1561,7 +1572,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -1680,8 +1691,8 @@ def __init__( encryption: Optional["_models.Encryption"] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1759,7 +1770,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2020_05_01.models.Snapshot] @@ -1792,7 +1803,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -1857,8 +1870,8 @@ def __init__( encryption: Optional["_models.Encryption"] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1898,7 +1911,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -1908,7 +1922,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json index b8d37bfd07da..eb8d24efa732 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py index 6a3ca86485b3..27fffbf0cbc1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py @@ -151,10 +151,10 @@ class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEn class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py index ef68d4531b60..ccd4ce09720f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py @@ -42,7 +42,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -55,7 +55,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -87,8 +89,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -124,7 +126,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -165,8 +167,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2020_06_01.models.ApiErrorBase] @@ -205,8 +207,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -246,8 +248,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -283,7 +285,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -312,7 +314,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -363,7 +365,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -379,7 +381,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -446,8 +457,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -500,7 +511,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.AvailabilitySet] @@ -524,7 +537,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -534,7 +547,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -579,8 +593,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -660,7 +674,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -674,7 +688,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -695,7 +710,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -716,7 +731,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -731,7 +749,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -775,7 +793,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -800,7 +818,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -843,7 +861,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -944,8 +962,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, to_be_detached: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1019,7 +1037,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1109,8 +1127,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1160,7 +1178,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1186,7 +1204,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1198,7 +1218,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1264,8 +1287,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1303,7 +1326,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -1334,7 +1359,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.DedicatedHostGroup] @@ -1348,7 +1375,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1395,8 +1423,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1451,8 +1479,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -1467,7 +1495,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1500,8 +1529,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -1534,7 +1563,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.DedicatedHost] @@ -1548,7 +1577,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1606,8 +1636,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1637,7 +1667,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1650,7 +1681,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1663,7 +1694,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2020_06_01.models.DiffDiskOptions @@ -1688,8 +1721,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2020_06_01.models.DiffDiskOptions @@ -1720,7 +1753,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -1741,7 +1774,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1751,7 +1784,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -1761,7 +1797,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -1793,8 +1829,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -1835,8 +1871,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -1913,7 +1949,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. For more information about virtual machine sizes, see `Sizes for virtual machines @@ -1972,7 +2010,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -2028,8 +2068,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2100,8 +2140,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2020_06_01.models.SubResource @@ -2199,8 +2239,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2020_06_01.models.SubResource @@ -2265,7 +2305,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.Image] @@ -2345,8 +2385,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2020_06_01.models.SubResource @@ -2395,7 +2435,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -2441,8 +2485,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -2498,8 +2542,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -2559,8 +2603,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2594,7 +2638,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -2637,8 +2683,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -2680,7 +2726,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -2713,7 +2759,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -2804,7 +2850,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -2823,7 +2869,13 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -2849,8 +2901,8 @@ def __init__( disable_password_authentication: Optional[bool] = None, ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -2890,7 +2942,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.Usage] @@ -2955,8 +3007,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -3004,7 +3056,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -3027,7 +3079,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -3075,8 +3127,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -3135,8 +3187,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3172,8 +3224,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3198,7 +3254,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -3235,8 +3293,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. "AutomaticRepairs" :paramtype service_name: str or @@ -3273,7 +3331,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -3281,7 +3339,10 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -3362,8 +3423,8 @@ def __init__( diff_disk_settings: Optional["_models.DiffDiskSettings"] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -3441,7 +3502,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -3452,7 +3513,8 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -3550,8 +3612,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -3658,7 +3720,7 @@ class PatchSettings(_serialization.Model): "patch_mode": {"key": "patchMode", "type": "str"}, } - def __init__(self, *, patch_mode: Optional[Union[str, "_models.InGuestPatchMode"]] = None, **kwargs): + def __init__(self, *, patch_mode: Optional[Union[str, "_models.InGuestPatchMode"]] = None, **kwargs: Any) -> None: """ :keyword patch_mode: Specifies the mode of in-guest patching to IaaS virtual machine.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -3677,7 +3739,11 @@ def __init__(self, *, patch_mode: Optional[Union[str, "_models.InGuestPatchMode" class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -3704,8 +3770,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -3796,8 +3862,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3840,7 +3906,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.ProximityPlacementGroup] @@ -3863,7 +3931,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3897,7 +3965,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -3935,7 +4003,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -4000,8 +4068,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4059,7 +4127,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -4092,7 +4160,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -4145,8 +4213,8 @@ def __init__( max_unhealthy_instance_percent: Optional[int] = None, max_unhealthy_upgraded_instance_percent: Optional[int] = None, pause_time_between_batches: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -4206,7 +4274,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -4246,7 +4314,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -4306,7 +4374,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4361,8 +4429,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -4433,8 +4501,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -4487,8 +4555,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -4525,7 +4593,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -4558,7 +4626,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.RunCommandDocumentBase] @@ -4598,7 +4668,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -4627,7 +4699,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.InstanceViewStatus] @@ -4662,8 +4734,8 @@ class ScaleInPolicy(_serialization.Model): } def __init__( - self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs - ): + self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -4703,8 +4775,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -4730,7 +4802,7 @@ class SecurityProfile(_serialization.Model): "encryption_at_host": {"key": "encryptionAtHost", "type": "bool"}, } - def __init__(self, *, encryption_at_host: Optional[bool] = None, **kwargs): + def __init__(self, *, encryption_at_host: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword encryption_at_host: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will @@ -4744,7 +4816,9 @@ def __init__(self, *, encryption_at_host: Optional[bool] = None, **kwargs): class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -4763,8 +4837,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -4792,7 +4866,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2020_06_01.models.SshPublicKey] @@ -4802,7 +4876,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -4820,7 +4895,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -4867,7 +4942,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -4928,8 +5005,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4966,7 +5043,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.SshPublicKeyResource] @@ -4996,7 +5075,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5042,8 +5123,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -5084,7 +5165,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5110,8 +5191,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5140,7 +5221,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -5207,8 +5290,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5267,7 +5350,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -5313,7 +5396,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -5350,7 +5433,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -5389,8 +5472,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -5447,7 +5530,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -5476,7 +5559,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -5509,7 +5592,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -5517,7 +5600,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -5541,7 +5625,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -5585,8 +5671,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -5611,7 +5697,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -5806,8 +5892,8 @@ def __init__( # pylint: disable=too-many-locals host_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5957,8 +6043,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -6028,7 +6114,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -6067,7 +6153,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -6115,7 +6203,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -6213,8 +6301,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6282,8 +6370,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -6360,8 +6448,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6420,8 +6508,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -6453,7 +6541,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtension] @@ -6514,8 +6602,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6569,7 +6657,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -6615,8 +6703,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -6672,8 +6760,8 @@ def __init__( location: str, id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6759,8 +6847,8 @@ def __init__( automatic_os_upgrade_properties: Optional["_models.AutomaticOSUpgradeProperties"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, disallowed: Optional["_models.DisallowedConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6889,8 +6977,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -6968,7 +7056,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachine] @@ -7006,8 +7096,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -7024,7 +7114,8 @@ def __init__( class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -7035,7 +7126,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -7134,8 +7225,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7223,8 +7314,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -7278,8 +7369,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -7314,7 +7405,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommand] @@ -7396,8 +7489,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7575,8 +7668,8 @@ def __init__( host_group: Optional["_models.SubResource"] = None, additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7725,8 +7818,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -7848,8 +7941,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -7916,8 +8009,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetExtension] @@ -7953,8 +8046,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -8045,8 +8138,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -8135,8 +8228,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -8179,7 +8272,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -8217,7 +8310,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2020_06_01.models.InstanceViewStatus] @@ -8247,7 +8340,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -8333,8 +8426,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8399,7 +8492,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -8434,8 +8527,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -8470,7 +8567,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSet] @@ -8504,7 +8603,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetSku] @@ -8538,7 +8639,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSet] @@ -8575,8 +8678,8 @@ def __init__( *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -8653,8 +8756,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8701,7 +8804,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -8735,8 +8838,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -8825,8 +8928,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -8957,8 +9060,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -9072,8 +9175,8 @@ def __init__( ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -9119,7 +9222,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -9142,7 +9245,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9168,7 +9271,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9207,7 +9312,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -9246,7 +9351,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -9288,8 +9393,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -9396,8 +9501,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -9457,7 +9562,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -9526,8 +9633,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9628,8 +9735,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9691,8 +9798,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -9708,7 +9815,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2020_06_01.models.CachingTypes @@ -9748,8 +9856,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2020_06_01.models.CachingTypes @@ -9806,8 +9914,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -9852,8 +9960,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -9893,8 +10001,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2020_06_01.models.ImageReference @@ -9963,8 +10071,8 @@ def __init__( license_type: Optional[str] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -10161,8 +10269,8 @@ def __init__( # pylint: disable=too-many-locals availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10322,8 +10430,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -10377,7 +10485,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -10409,7 +10519,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -10482,8 +10592,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -10534,7 +10644,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -10562,7 +10672,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -10644,8 +10754,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -10710,7 +10820,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVM] @@ -10742,8 +10854,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -10834,8 +10946,8 @@ def __init__( eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -10922,8 +11034,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -10975,8 +11087,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -11013,7 +11125,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineSize] @@ -11079,7 +11191,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -11115,7 +11227,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -11285,8 +11397,8 @@ def __init__( # pylint: disable=too-many-locals host_group: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -11423,7 +11535,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -11482,8 +11594,8 @@ def __init__( additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -11530,7 +11642,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2020_06_01.models.WinRMListener] @@ -11566,8 +11678,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json index d478f40e3488..cbe2d4ea9840 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_compute_management_client_enums.py index a1f02d352612..b6be60a8b328 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_compute_management_client_enums.py @@ -21,24 +21,24 @@ class AccessLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -50,58 +50,58 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently mounted to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is mounted to a stopped-deallocated VM + """The disk is currently mounted to a running VM.""" RESERVED = "Reserved" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is mounted to a stopped-deallocated VM""" ACTIVE_SAS = "ActiveSAS" - #: A disk is ready to be created by upload by requesting a write token. + """The disk currently has an Active SAS Uri associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -114,12 +114,12 @@ class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -149,9 +149,9 @@ class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiv class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_models_py3.py index 6fd509692fdc..7f0ca9ea59c7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -33,7 +33,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -70,8 +70,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2020_06_30.models.ApiErrorBase] @@ -110,8 +110,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -191,8 +191,8 @@ def __init__( source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, logical_sector_size: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -266,7 +266,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -443,8 +443,8 @@ def __init__( # pylint: disable=too-many-locals network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, tier: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -582,7 +582,7 @@ class DiskAccess(Resource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -616,7 +616,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_30.models.DiskAccess] @@ -640,7 +640,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -712,8 +712,8 @@ def __init__( identity: Optional["_models.EncryptionSetIdentity"] = None, encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -757,7 +757,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_30.models.DiskEncryptionSet] @@ -795,8 +797,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -834,7 +836,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_30.models.Disk] @@ -868,7 +870,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -967,8 +969,8 @@ def __init__( network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, tier: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1057,8 +1059,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -1074,7 +1076,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -1102,7 +1105,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported. "SystemAssigned" @@ -1149,8 +1154,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1191,8 +1196,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1227,7 +1232,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2020_06_30.models.AccessLevel @@ -1261,7 +1266,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1289,7 +1296,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1302,7 +1311,8 @@ def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -1322,7 +1332,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_06_30.models.SourceVault @@ -1355,7 +1365,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_06_30.models.SourceVault @@ -1384,7 +1394,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1437,8 +1447,8 @@ def __init__( *, private_endpoint: Optional["_models.PrivateEndpoint"] = None, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_endpoint: The resource of private end point. :paramtype private_endpoint: ~azure.mgmt.compute.v2020_06_30.models.PrivateEndpoint @@ -1492,7 +1502,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -1517,7 +1527,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2020_06_30.models.PrivateLinkResource] @@ -1527,7 +1537,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -1552,8 +1563,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -1593,7 +1604,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -1624,7 +1635,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -1748,8 +1759,8 @@ def __init__( encryption: Optional["_models.Encryption"] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1828,7 +1839,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2020_06_30.models.Snapshot] @@ -1861,7 +1872,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -1926,8 +1939,8 @@ def __init__( encryption: Optional["_models.Encryption"] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1967,7 +1980,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -1977,7 +1991,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json index 423017dc39dd..eda11b338739 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_compute_management_client_enums.py index 01e72a65421a..cae0f8151179 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_compute_management_client_enums.py @@ -30,24 +30,24 @@ class AggregatedReplicationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -64,58 +64,58 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently mounted to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is mounted to a stopped-deallocated VM + """The disk is currently mounted to a running VM.""" RESERVED = "Reserved" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is mounted to a stopped-deallocated VM""" ACTIVE_SAS = "ActiveSAS" - #: A disk is ready to be created by upload by requesting a write token. + """The disk currently has an Active SAS Uri associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -195,12 +195,12 @@ class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -287,12 +287,12 @@ class SharingUpdateOperationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" class StorageAccountType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models_py3.py index df8d7e002319..2050577ed4be 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/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 @@ -34,7 +34,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -71,8 +71,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2020_09_30.models.ApiErrorBase] @@ -111,8 +111,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -192,8 +192,8 @@ def __init__( source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, logical_sector_size: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -245,7 +245,7 @@ class DiskImageEncryption(_serialization.Model): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -278,7 +278,7 @@ class DataDiskImageEncryption(DiskImageEncryption): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -303,7 +303,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -346,7 +346,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -539,8 +539,8 @@ def __init__( # pylint: disable=too-many-locals disk_access_id: Optional[str] = None, tier: Optional[str] = None, bursting_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -691,7 +691,7 @@ class DiskAccess(Resource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -725,7 +725,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.DiskAccess] @@ -749,7 +749,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -821,8 +821,8 @@ def __init__( identity: Optional["_models.EncryptionSetIdentity"] = None, encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -866,7 +866,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.DiskEncryptionSet] @@ -904,8 +906,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -943,7 +945,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.Disk] @@ -981,7 +983,7 @@ class ProxyOnlyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1052,8 +1054,8 @@ def __init__( *, hyper_v_generation: Optional[Union[str, "_models.HyperVGeneration"]] = None, purchase_plan: Optional["_models.PurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". @@ -1094,7 +1096,9 @@ class DiskRestorePointList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk restore points. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.DiskRestorePoint] @@ -1128,7 +1132,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS". @@ -1236,8 +1240,8 @@ def __init__( tier: Optional[str] = None, bursting_enabled: Optional[bool] = None, purchase_plan: Optional["_models.PurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1333,8 +1337,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -1350,7 +1354,8 @@ def __init__( class EncryptionImages(_serialization.Model): - """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. + """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in + the gallery artifact. :ivar os_disk_image: Contains encryption settings for an OS disk image. :vartype os_disk_image: ~azure.mgmt.compute.v2020_09_30.models.OSDiskImageEncryption @@ -1368,8 +1373,8 @@ def __init__( *, os_disk_image: Optional["_models.OSDiskImageEncryption"] = None, data_disk_images: Optional[List["_models.DataDiskImageEncryption"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: Contains encryption settings for an OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2020_09_30.models.OSDiskImageEncryption @@ -1383,7 +1388,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -1413,7 +1419,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None @@ -1462,8 +1470,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1504,8 +1512,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1538,8 +1546,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -1609,8 +1617,8 @@ def __init__( description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1632,7 +1640,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -1699,8 +1708,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1755,7 +1764,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.GalleryApplication] @@ -1797,7 +1808,7 @@ class UpdateResourceDefinition(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1870,8 +1881,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1960,8 +1971,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1998,7 +2009,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.GalleryApplicationVersion] @@ -2058,8 +2071,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2151,8 +2164,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, manage_actions: Optional["_models.UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2243,8 +2256,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2275,7 +2288,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2020_09_30.models.ManagedArtifact @@ -2301,8 +2314,8 @@ class GalleryArtifactVersionSource(_serialization.Model): } def __init__( - self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. @@ -2345,8 +2358,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -2398,8 +2411,8 @@ def __init__( lun: int, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -2433,7 +2446,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -2546,8 +2559,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2621,7 +2634,7 @@ class GalleryImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the gallery image feature. :paramtype name: str @@ -2658,7 +2671,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery image definition publisher. Required. :paramtype publisher: str @@ -2694,7 +2707,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.GalleryImage] @@ -2807,8 +2820,8 @@ def __init__( recommended: Optional["_models.RecommendedMachineConfiguration"] = None, disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2925,8 +2938,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2967,7 +2980,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery image versions. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.GalleryImageVersion] @@ -3027,8 +3042,8 @@ def __init__( exclude_from_latest: Optional[bool] = None, end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3082,8 +3097,8 @@ def __init__( source: Optional["_models.GalleryArtifactVersionSource"] = None, os_disk_image: Optional["_models.GalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.GalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source: The gallery artifact version source. :paramtype source: ~azure.mgmt.compute.v2020_09_30.models.GalleryArtifactVersionSource @@ -3150,8 +3165,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3190,7 +3205,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.Gallery] @@ -3232,8 +3247,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3295,8 +3310,8 @@ def __init__( description: Optional[str] = None, identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3336,7 +3351,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2020_09_30.models.AccessLevel @@ -3370,7 +3385,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -3402,8 +3419,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -3432,7 +3454,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -3466,7 +3490,7 @@ class KeyForDiskEncryptionSet(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs): + def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk @@ -3481,7 +3505,8 @@ def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault" class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -3501,7 +3526,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_09_30.models.SourceVault @@ -3534,7 +3559,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_09_30.models.SourceVault @@ -3563,7 +3588,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -3584,7 +3609,7 @@ class OSDiskImageEncryption(DiskImageEncryption): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -3614,7 +3639,7 @@ class PirResource(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -3645,7 +3670,7 @@ class PirSharedGalleryResource(PirResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3671,7 +3696,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3724,8 +3749,8 @@ def __init__( *, private_endpoint: Optional["_models.PrivateEndpoint"] = None, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_endpoint: The resource of private end point. :paramtype private_endpoint: ~azure.mgmt.compute.v2020_09_30.models.PrivateEndpoint @@ -3763,8 +3788,8 @@ def __init__( *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Array of private endpoint connections. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.PrivateEndpointConnection] @@ -3813,7 +3838,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -3838,7 +3863,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.PrivateLinkResource] @@ -3848,7 +3873,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -3873,8 +3899,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -3921,7 +3947,9 @@ class PurchasePlan(_serialization.Model): "promotion_code": {"key": "promotionCode", "type": "str"}, } - def __init__(self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs): + def __init__( + self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword name: The plan ID. Required. :paramtype name: str @@ -3941,7 +3969,8 @@ def __init__(self, *, name: str, publisher: str, product: str, promotion_code: O class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2020_09_30.models.ResourceRange @@ -3959,8 +3988,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2020_09_30.models.ResourceRange @@ -4002,7 +4031,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -4034,7 +4063,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -4060,8 +4089,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -4095,7 +4124,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -4133,7 +4162,7 @@ class SharedGallery(PirSharedGalleryResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -4214,8 +4243,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGeneration"]] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -4280,7 +4309,9 @@ class SharedGalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.SharedGalleryImage] @@ -4331,8 +4362,8 @@ def __init__( unique_id: Optional[str] = None, published_date: Optional[datetime.datetime] = None, end_of_life_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -4369,7 +4400,9 @@ class SharedGalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images versions. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.SharedGalleryImageVersion] @@ -4403,7 +4436,7 @@ class SharedGalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of shared galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.SharedGallery] @@ -4433,7 +4466,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -4462,7 +4495,9 @@ class SharingProfile(_serialization.Model): "groups": {"key": "groups", "type": "[SharingProfileGroup]"}, } - def __init__(self, *, permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None, **kwargs): + def __init__( + self, *, permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword permissions: This property allows you to specify the permission of sharing gallery. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Private** @@ -4496,8 +4531,8 @@ def __init__( *, type: Optional[Union[str, "_models.SharingProfileGroupTypes"]] = None, ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: This property allows you to specify the type of sharing group. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Subscriptions** @@ -4540,8 +4575,8 @@ def __init__( *, operation_type: Union[str, "_models.SharingUpdateOperationTypes"], groups: Optional[List["_models.SharingProfileGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword operation_type: This property allows you to specify the operation type of gallery sharing update. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Add** @@ -4687,8 +4722,8 @@ def __init__( encryption: Optional["_models.Encryption"] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4777,7 +4812,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2020_09_30.models.Snapshot] @@ -4791,7 +4826,9 @@ def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] class SnapshotSku(_serialization.Model): - """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. + """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + parameter for incremental snapshot and the default behavior is the SKU will be set to the same + sku as the previous snapshot. Variables are only populated by the server, and will be ignored when sending a request. @@ -4810,7 +4847,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -4877,8 +4916,8 @@ def __init__( encryption: Optional["_models.Encryption"] = None, network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4920,7 +4959,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -4930,7 +4970,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -4976,8 +5016,8 @@ def __init__( regional_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -5028,7 +5068,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -5069,7 +5109,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json index 6974a4e5c779..ca09fb715d00 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/models/_models_py3.py index 99b681582fd4..4ad547918bc1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -47,8 +47,8 @@ def __init__( code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2020_10_01_preview.models.ApiErrorBase] @@ -87,8 +87,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -146,8 +146,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, properties: Optional["_models.CloudServiceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -176,7 +176,7 @@ class CloudServiceExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[Extension]"}, } - def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs): + def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs: Any) -> None: """ :keyword extensions: List of extensions for the cloud service. :paramtype extensions: list[~azure.mgmt.compute.v2020_10_01_preview.models.Extension] @@ -263,8 +263,8 @@ def __init__( protected_settings_from_key_vault: Optional["_models.CloudServiceVaultAndSecretReference"] = None, force_update_tag: Optional[str] = None, roles_applied_to: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher: The name of the extension handler publisher. :paramtype publisher: str @@ -344,7 +344,7 @@ class CloudServiceInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs): + def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs: Any) -> None: """ :keyword role_instance: Instance view statuses. :paramtype role_instance: @@ -376,7 +376,7 @@ class CloudServiceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2020_10_01_preview.models.CloudService] @@ -409,8 +409,8 @@ def __init__( *, load_balancer_configurations: Optional[List["_models.LoadBalancerConfiguration"]] = None, swappable_cloud_service: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword load_balancer_configurations: The list of load balancer configurations for the cloud service. @@ -436,7 +436,9 @@ class CloudServiceOsProfile(_serialization.Model): "secrets": {"key": "secrets", "type": "[CloudServiceVaultSecretGroup]"}, } - def __init__(self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs): + def __init__( + self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs: Any + ) -> None: """ :keyword secrets: Specifies set of certificates that should be installed onto the role instances. @@ -527,8 +529,8 @@ def __init__( os_profile: Optional["_models.CloudServiceOsProfile"] = None, network_profile: Optional["_models.CloudServiceNetworkProfile"] = None, extension_profile: Optional["_models.CloudServiceExtensionProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword package_url: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage @@ -623,8 +625,8 @@ def __init__( *, sku: Optional["_models.CloudServiceRoleSku"] = None, properties: Optional["_models.CloudServiceRoleProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: Describes the cloud service role sku. :paramtype sku: ~azure.mgmt.compute.v2020_10_01_preview.models.CloudServiceRoleSku @@ -661,7 +663,9 @@ class CloudServiceRoleListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2020_10_01_preview.models.CloudServiceRole] @@ -685,7 +689,9 @@ class CloudServiceRoleProfile(_serialization.Model): "roles": {"key": "roles", "type": "[CloudServiceRoleProfileProperties]"}, } - def __init__(self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs): + def __init__( + self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs: Any + ) -> None: """ :keyword roles: List of roles for the cloud service. :paramtype roles: @@ -709,7 +715,9 @@ class CloudServiceRoleProfileProperties(_serialization.Model): "sku": {"key": "sku", "type": "CloudServiceRoleSku"}, } - def __init__(self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs): + def __init__( + self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs: Any + ) -> None: """ :keyword name: Resource name. :paramtype name: str @@ -738,7 +746,7 @@ class CloudServiceRoleProperties(_serialization.Model): "unique_id": {"key": "uniqueId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_id = None @@ -765,8 +773,8 @@ class CloudServiceRoleSku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the @@ -795,7 +803,7 @@ class CloudServiceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -819,8 +827,8 @@ class CloudServiceVaultAndSecretReference(_serialization.Model): } def __init__( - self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs - ): + self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword source_vault: :paramtype source_vault: ~azure.mgmt.compute.v2020_10_01_preview.models.SubResource @@ -833,7 +841,8 @@ def __init__( class CloudServiceVaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the role instance. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -844,7 +853,7 @@ class CloudServiceVaultCertificate(_serialization.Model): "certificate_url": {"key": "certificateUrl", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, **kwargs): + def __init__(self, *, certificate_url: Optional[str] = None, **kwargs: Any) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -876,8 +885,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.CloudServiceVaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -912,8 +921,8 @@ def __init__( *, name: Optional[str] = None, properties: Optional["_models.CloudServiceExtensionProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -940,7 +949,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -973,7 +984,7 @@ class InstanceSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -997,7 +1008,7 @@ class InstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[StatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -1023,8 +1034,8 @@ def __init__( *, name: Optional[str] = None, properties: Optional["_models.LoadBalancerConfigurationProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Resource Name. :paramtype name: str @@ -1056,8 +1067,8 @@ def __init__( self, *, frontend_ip_configurations: Optional[List["_models.LoadBalancerFrontendIPConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword frontend_ip_configurations: List of IP. :paramtype frontend_ip_configurations: @@ -1087,8 +1098,8 @@ def __init__( *, name: Optional[str] = None, properties: Optional["_models.LoadBalancerFrontendIPConfigurationProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: :paramtype name: str @@ -1124,8 +1135,8 @@ def __init__( public_ip_address: Optional["_models.SubResource"] = None, subnet: Optional["_models.SubResource"] = None, private_ip_address: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword public_ip_address: :paramtype public_ip_address: ~azure.mgmt.compute.v2020_10_01_preview.models.SubResource @@ -1172,7 +1183,7 @@ class ResourceInstanceViewStatus(_serialization.Model): "level": {"key": "level", "type": "str"}, } - def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs): + def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs: Any) -> None: """ :keyword level: The level code. Known values are: "Info", "Warning", and "Error". :paramtype level: str or ~azure.mgmt.compute.v2020_10_01_preview.models.StatusLevelTypes @@ -1229,8 +1240,8 @@ def __init__( *, sku: Optional["_models.InstanceSku"] = None, properties: Optional["_models.RoleInstanceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: :paramtype sku: ~azure.mgmt.compute.v2020_10_01_preview.models.InstanceSku @@ -1267,7 +1278,7 @@ class RoleInstanceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstance] @@ -1297,7 +1308,7 @@ class RoleInstanceNetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[SubResource]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.network_interfaces = None @@ -1323,8 +1334,8 @@ def __init__( *, network_profile: Optional["_models.RoleInstanceNetworkProfile"] = None, instance_view: Optional["_models.RoleInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_profile: Describes the network profile for the role instance. :paramtype network_profile: @@ -1355,7 +1366,7 @@ class RoleInstances(_serialization.Model): "role_instances": {"key": "roleInstances", "type": "[str]"}, } - def __init__(self, *, role_instances: List[str], **kwargs): + def __init__(self, *, role_instances: List[str], **kwargs: Any) -> None: """ :keyword role_instances: List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. Required. @@ -1397,7 +1408,7 @@ class RoleInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.platform_update_domain = None @@ -1427,7 +1438,7 @@ class StatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -1445,7 +1456,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1475,7 +1486,7 @@ class UpdateDomain(_serialization.Model): "name": {"key": "name", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1502,7 +1513,7 @@ class UpdateDomainListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2020_10_01_preview.models.UpdateDomain] diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json index 0e56fbef5f60..ef52e68b7775 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py index 5066b2ec8c80..d706a928aa9e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py @@ -74,24 +74,24 @@ class DiffDiskPlacement(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" class DiskCreateOptionTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -137,72 +137,72 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" class DiskSecurityTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the SecurityType of the VM. Applicable for OS disks only.""" - #: Trusted Launch provides security features such as secure boot and virtual Trusted Platform - #: Module (vTPM) TRUSTED_LAUNCH = "TrustedLaunch" + """Trusted Launch provides security features such as secure boot and virtual Trusted Platform + #: Module (vTPM)""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently mounted to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is mounted to a stopped-deallocated VM + """The disk is currently mounted to a running VM.""" RESERVED = "Reserved" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is mounted to a stopped-deallocated VM""" ACTIVE_SAS = "ActiveSAS" - #: A disk is ready to be created by upload by requesting a write token. + """The disk currently has an Active SAS Uri associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" - #: Premium SSD zone redundant storage. Best for the production workloads that need storage - #: resiliency against zone failures. + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" PREMIUM_ZRS = "Premium_ZRS" - #: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications - #: and dev/test that need storage resiliency against zone failures. + """Premium SSD zone redundant storage. Best for the production workloads that need storage + #: resiliency against zone failures.""" STANDARD_SSD_ZRS = "StandardSSD_ZRS" + """Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications + #: and dev/test that need storage resiliency against zone failures.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class ExecutionState(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -287,21 +287,21 @@ class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEn class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -455,12 +455,12 @@ class SettingNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" class StatusLevelTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py index 3f0ee834b7fd..eacde15ffcc7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py @@ -45,7 +45,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -65,7 +65,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -78,7 +78,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -110,8 +112,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -147,7 +149,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -188,8 +190,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2020_12_01.models.ApiErrorBase] @@ -228,8 +230,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -269,8 +271,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -306,7 +308,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -335,7 +337,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -386,7 +388,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -402,7 +404,16 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Manage the availability of virtual machines `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned maintenance for virtual machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Manage the + availability of virtual machines + `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -469,8 +480,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -523,7 +534,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.AvailabilitySet] @@ -547,7 +560,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -557,7 +570,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -602,8 +616,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -683,7 +697,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -697,7 +711,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -718,7 +733,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -739,7 +754,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -754,7 +772,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -798,7 +816,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -823,7 +841,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -866,7 +884,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -942,8 +960,8 @@ def __init__( source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, logical_sector_size: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", and "Upload". @@ -1086,8 +1104,8 @@ def __init__( managed_disk: Optional["_models.ManagedDiskParameters"] = None, to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1173,7 +1191,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1263,8 +1281,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1314,7 +1332,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1340,7 +1358,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1352,7 +1372,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1418,8 +1441,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1457,7 +1480,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -1488,7 +1513,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.DedicatedHostGroup] @@ -1502,7 +1529,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1549,8 +1577,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1605,8 +1633,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -1621,7 +1649,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1654,8 +1683,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -1688,7 +1717,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.DedicatedHost] @@ -1702,7 +1731,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1760,8 +1790,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1791,7 +1821,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1804,7 +1835,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -1817,7 +1848,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2020_12_01.models.DiffDiskOptions @@ -1842,8 +1875,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2020_12_01.models.DiffDiskOptions @@ -1874,7 +1907,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2078,8 +2111,8 @@ def __init__( # pylint: disable=too-many-locals bursting_enabled: Optional[bool] = None, supports_hibernation: Optional[bool] = None, security_profile: Optional["_models.DiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2237,7 +2270,7 @@ class DiskAccess(Resource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2271,7 +2304,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.DiskAccess] @@ -2295,7 +2328,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2380,8 +2413,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2430,7 +2463,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.DiskEncryptionSet] @@ -2454,7 +2489,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2464,7 +2499,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -2474,7 +2512,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -2506,8 +2544,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2561,8 +2599,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2612,8 +2650,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2651,7 +2689,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.Disk] @@ -2689,7 +2727,7 @@ class ProxyOnlyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2764,8 +2802,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGeneration"]] = None, purchase_plan: Optional["_models.PurchasePlan"] = None, supports_hibernation: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". @@ -2809,7 +2847,9 @@ class DiskRestorePointList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk restore points. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.DiskRestorePoint] @@ -2834,7 +2874,9 @@ class DiskSecurityProfile(_serialization.Model): "security_type": {"key": "securityType", "type": "str"}, } - def __init__(self, *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, **kwargs): + def __init__( + self, *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. "TrustedLaunch" @@ -2845,7 +2887,8 @@ def __init__(self, *, security_type: Optional[Union[str, "_models.DiskSecurityTy class DiskSku(_serialization.Model): - """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. + """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, + Premium_ZRS, or StandardSSD_ZRS. Variables are only populated by the server, and will be ignored when sending a request. @@ -2865,7 +2908,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", and "StandardSSD_ZRS". @@ -2990,8 +3033,8 @@ def __init__( bursting_enabled: Optional[bool] = None, purchase_plan: Optional["_models.PurchasePlan"] = None, supports_hibernation: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3091,8 +3134,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -3108,7 +3151,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -3138,7 +3182,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None @@ -3187,8 +3233,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -3229,8 +3275,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -3263,8 +3309,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -3297,7 +3343,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2020_12_01.models.AccessLevel @@ -3365,7 +3411,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -3420,7 +3468,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -3483,8 +3533,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3562,8 +3612,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2020_12_01.models.SubResource @@ -3663,8 +3713,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2020_12_01.models.SubResource @@ -3731,7 +3781,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -3766,7 +3818,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.Image] @@ -3847,8 +3899,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2020_12_01.models.SubResource @@ -3898,7 +3950,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -3944,8 +4000,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4001,8 +4057,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -4065,8 +4121,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4103,7 +4159,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -4146,8 +4204,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -4191,7 +4249,7 @@ class KeyForDiskEncryptionSet(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs): + def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk @@ -4207,7 +4265,8 @@ def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault" class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -4227,7 +4286,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_12_01.models.SourceVault @@ -4260,7 +4319,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2020_12_01.models.SourceVault @@ -4293,7 +4352,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -4326,7 +4385,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -4404,7 +4463,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -4421,7 +4480,13 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_ :code:`
`:code:`
` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_ + :code:`
`:code:`
` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -4452,8 +4517,8 @@ def __init__( ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -4508,8 +4573,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -4548,7 +4613,9 @@ class LinuxPatchSettings(_serialization.Model): "patch_mode": {"key": "patchMode", "type": "str"}, } - def __init__(self, *, patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, **kwargs): + def __init__( + self, *, patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **ImageDefault** - The @@ -4583,7 +4650,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.Usage] @@ -4648,8 +4715,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4697,7 +4764,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4720,7 +4787,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -4768,8 +4835,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4828,8 +4895,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4866,8 +4933,12 @@ class NetworkInterfaceReference(SubResource): } def __init__( - self, *, id: Optional[str] = None, primary: Optional[bool] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + primary: Optional[bool] = None, + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4892,7 +4963,9 @@ class NetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[NetworkInterfaceReference]"}, } - def __init__(self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs): + def __init__( + self, *, network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4929,8 +5002,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. "AutomaticRepairs" :paramtype service_name: str or @@ -4967,7 +5040,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -4975,7 +5048,10 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines + `_. All required parameters must be populated in order to send to Azure. @@ -5056,8 +5132,8 @@ def __init__( diff_disk_settings: Optional["_models.DiffDiskSettings"] = None, disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -5135,7 +5211,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -5146,7 +5222,8 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5244,8 +5321,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5372,7 +5449,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -5413,8 +5490,8 @@ def __init__( *, patch_mode: Optional[Union[str, "_models.WindowsVMGuestPatchMode"]] = None, enable_hotpatching: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -5438,7 +5515,11 @@ def __init__( class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -5465,8 +5546,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -5502,7 +5583,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5555,8 +5636,8 @@ def __init__( self, *, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_link_service_connection_state: A collection of information about the state of the connection between DiskAccess and Virtual Network. @@ -5592,8 +5673,8 @@ def __init__( *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Array of private endpoint connections. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.PrivateEndpointConnection] @@ -5642,7 +5723,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -5667,7 +5748,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.PrivateLinkResource] @@ -5677,7 +5758,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -5702,8 +5784,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -5733,7 +5815,7 @@ class PropertyUpdatesInProgress(_serialization.Model): "target_tier": {"key": "targetTier", "type": "str"}, } - def __init__(self, *, target_tier: Optional[str] = None, **kwargs): + def __init__(self, *, target_tier: Optional[str] = None, **kwargs: Any) -> None: """ :keyword target_tier: The target performance tier of the disk if a tier change operation is in progress. @@ -5815,8 +5897,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5859,7 +5941,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.ProximityPlacementGroup] @@ -5882,7 +5966,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5919,7 +6003,9 @@ class PurchasePlan(_serialization.Model): "promotion_code": {"key": "promotionCode", "type": "str"}, } - def __init__(self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs): + def __init__( + self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword name: The plan ID. Required. :paramtype name: str @@ -5964,7 +6050,7 @@ class PurchasePlanAutoGenerated(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -6002,7 +6088,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -6067,8 +6153,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -6127,7 +6213,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -6162,7 +6248,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -6195,7 +6281,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -6259,8 +6345,8 @@ def __init__( pause_time_between_batches: Optional[str] = None, enable_cross_zone_upgrade: Optional[bool] = None, prioritize_unhealthy_instances: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -6329,7 +6415,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -6369,7 +6455,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6429,7 +6515,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6484,8 +6570,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6556,8 +6642,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6610,8 +6696,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -6648,7 +6734,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6681,7 +6767,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.RunCommandDocumentBase] @@ -6721,7 +6809,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6750,7 +6840,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.InstanceViewStatus] @@ -6785,8 +6875,8 @@ class ScaleInPolicy(_serialization.Model): } def __init__( - self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs - ): + self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -6826,8 +6916,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6868,8 +6958,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -6908,14 +6998,16 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -6934,8 +7026,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -7086,8 +7178,8 @@ def __init__( # pylint: disable=too-many-locals network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, supports_hibernation: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7179,7 +7271,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.Snapshot] @@ -7193,7 +7285,9 @@ def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] class SnapshotSku(_serialization.Model): - """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. + """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + parameter for incremental snapshot and the default behavior is the SKU will be set to the same + sku as the previous snapshot. Variables are only populated by the server, and will be ignored when sending a request. @@ -7212,7 +7306,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -7283,8 +7379,8 @@ def __init__( network_access_policy: Optional[Union[str, "_models.NetworkAccessPolicy"]] = None, disk_access_id: Optional[str] = None, supports_hibernation: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7329,7 +7425,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -7339,7 +7436,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -7359,7 +7456,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2020_12_01.models.SshPublicKey] @@ -7369,7 +7466,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7387,7 +7485,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7434,7 +7532,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -7495,8 +7595,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7533,7 +7633,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.SshPublicKeyResource] @@ -7563,7 +7665,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7609,8 +7713,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -7651,7 +7755,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7677,8 +7781,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7707,7 +7811,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -7774,8 +7880,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -7809,7 +7915,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7824,7 +7931,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7864,7 +7973,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -7910,7 +8019,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -7947,7 +8056,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7986,8 +8095,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -8044,7 +8153,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -8073,7 +8182,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -8106,7 +8215,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -8114,7 +8223,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -8138,7 +8248,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -8182,8 +8294,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -8208,7 +8320,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -8418,8 +8530,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, extensions_time_budget: Optional[str] = None, platform_fault_domain: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8582,8 +8694,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -8654,7 +8766,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8693,7 +8805,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -8741,7 +8855,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -8839,8 +8953,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8908,8 +9022,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -8986,8 +9100,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9046,8 +9160,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -9079,7 +9193,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineExtension] @@ -9140,8 +9254,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -9195,7 +9309,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9241,8 +9355,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -9302,8 +9416,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9400,8 +9514,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, disallowed: Optional["_models.DisallowedConfiguration"] = None, features: Optional[List["_models.VirtualMachineImageFeature"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9460,7 +9574,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -9511,8 +9625,8 @@ def __init__( reboot_setting: Union[str, "_models.VMGuestPatchRebootSetting"], windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). Required. @@ -9608,7 +9722,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9714,8 +9828,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -9793,7 +9907,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachine] @@ -9841,8 +9957,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -9860,7 +9976,8 @@ def __init__( class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9871,7 +9988,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9970,8 +10087,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10059,8 +10176,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -10114,8 +10231,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -10150,7 +10267,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommand] @@ -10232,8 +10351,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10420,8 +10539,8 @@ def __init__( # pylint: disable=too-many-locals additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, orchestration_mode: Optional[Union[str, "_models.OrchestrationMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10577,8 +10696,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -10700,8 +10819,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -10768,8 +10887,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetExtension] @@ -10805,8 +10924,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -10897,8 +11016,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -10987,8 +11106,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -11031,7 +11150,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -11069,7 +11188,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2020_12_01.models.InstanceViewStatus] @@ -11099,7 +11218,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -11185,8 +11304,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11251,7 +11370,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -11286,8 +11405,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -11322,7 +11445,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSet] @@ -11356,7 +11481,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetSku] @@ -11390,7 +11517,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSet] @@ -11428,8 +11557,8 @@ def __init__( *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -11507,8 +11636,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11555,7 +11684,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -11589,8 +11718,8 @@ def __init__( *, health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -11679,8 +11808,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -11811,8 +11940,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -11926,8 +12055,8 @@ def __init__( ip_tags: Optional[List["_models.VirtualMachineScaleSetIpTag"]] = None, public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -11973,7 +12102,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -11996,7 +12125,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12022,7 +12151,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12061,7 +12192,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -12100,7 +12231,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -12142,8 +12273,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -12250,8 +12381,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12311,7 +12442,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -12380,8 +12513,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12482,8 +12615,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12545,8 +12678,8 @@ def __init__( network_interface_configurations: Optional[ List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -12562,7 +12695,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2020_12_01.models.CachingTypes @@ -12602,8 +12736,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2020_12_01.models.CachingTypes @@ -12660,8 +12794,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -12706,8 +12840,8 @@ def __init__( name: Optional[str] = None, idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -12747,8 +12881,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2020_12_01.models.ImageReference @@ -12817,8 +12951,8 @@ def __init__( license_type: Optional[str] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -13015,8 +13149,8 @@ def __init__( # pylint: disable=too-many-locals availability_set: Optional["_models.SubResource"] = None, license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -13176,8 +13310,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13231,7 +13365,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -13263,7 +13399,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -13336,8 +13472,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13388,7 +13524,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -13416,7 +13552,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -13498,8 +13634,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -13564,7 +13700,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVM] @@ -13596,8 +13734,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -13688,8 +13826,8 @@ def __init__( eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = None, billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -13776,8 +13914,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -13829,8 +13967,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -13867,7 +14005,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineSize] @@ -13933,7 +14071,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -13969,7 +14107,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -14150,8 +14288,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, extensions_time_budget: Optional[str] = None, platform_fault_domain: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -14298,7 +14436,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -14358,8 +14496,8 @@ def __init__( additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -14431,8 +14569,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -14468,7 +14606,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2020_12_01.models.WinRMListener] @@ -14504,8 +14642,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json index c28a4e5fffee..a135ce6476b6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py index 68ded4db3cd5..236ac0a79399 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py @@ -256,10 +256,10 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py index fc0f51294bb0..984e6750b8cf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py @@ -42,7 +42,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -55,7 +55,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -87,8 +89,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -124,7 +126,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -165,8 +167,8 @@ def __init__( code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_03_01.models.ApiErrorBase] @@ -218,8 +220,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_03_01.models.ApiErrorBase] @@ -271,8 +273,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_03_01.models.ApiErrorBase] @@ -311,8 +313,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -352,8 +354,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -389,7 +391,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -418,7 +420,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -469,7 +471,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -485,7 +487,15 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Availability sets + overview `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -552,8 +562,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -606,7 +616,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet] @@ -630,7 +642,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -640,7 +652,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -685,8 +698,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -766,7 +779,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiErrorAutoGenerated"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -780,7 +793,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -801,7 +815,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -822,7 +836,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -837,7 +854,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -881,7 +898,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -900,7 +917,7 @@ class CloudErrorAutoGenerated(_serialization.Model): "error": {"key": "error", "type": "ApiErrorAutoGenerated"}, } - def __init__(self, *, error: Optional["_models.ApiErrorAutoGenerated"] = None, **kwargs): + def __init__(self, *, error: Optional["_models.ApiErrorAutoGenerated"] = None, **kwargs: Any) -> None: """ :keyword error: Api error. :paramtype error: ~azure.mgmt.compute.v2021_03_01.models.ApiErrorAutoGenerated @@ -920,7 +937,7 @@ class CloudErrorAutoGenerated2(_serialization.Model): "error": {"key": "error", "type": "ApiErrorAutoGenerated2"}, } - def __init__(self, *, error: Optional["_models.ApiErrorAutoGenerated2"] = None, **kwargs): + def __init__(self, *, error: Optional["_models.ApiErrorAutoGenerated2"] = None, **kwargs: Any) -> None: """ :keyword error: Api error. :paramtype error: ~azure.mgmt.compute.v2021_03_01.models.ApiErrorAutoGenerated2 @@ -972,8 +989,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, properties: Optional["_models.CloudServiceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1002,7 +1019,7 @@ class CloudServiceExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[Extension]"}, } - def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs): + def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs: Any) -> None: """ :keyword extensions: List of extensions for the cloud service. :paramtype extensions: list[~azure.mgmt.compute.v2021_03_01.models.Extension] @@ -1089,8 +1106,8 @@ def __init__( protected_settings_from_key_vault: Optional["_models.CloudServiceVaultAndSecretReference"] = None, force_update_tag: Optional[str] = None, roles_applied_to: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher: The name of the extension handler publisher. :paramtype publisher: str @@ -1174,7 +1191,7 @@ class CloudServiceInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs): + def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs: Any) -> None: """ :keyword role_instance: Instance view statuses. :paramtype role_instance: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatusesSummary @@ -1206,7 +1223,7 @@ class CloudServiceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.CloudService] @@ -1243,8 +1260,8 @@ def __init__( *, load_balancer_configurations: Optional[List["_models.LoadBalancerConfiguration"]] = None, swappable_cloud_service: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword load_balancer_configurations: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an @@ -1273,7 +1290,9 @@ class CloudServiceOsProfile(_serialization.Model): "secrets": {"key": "secrets", "type": "[CloudServiceVaultSecretGroup]"}, } - def __init__(self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs): + def __init__( + self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs: Any + ) -> None: """ :keyword secrets: Specifies set of certificates that should be installed onto the role instances. @@ -1367,8 +1386,8 @@ def __init__( os_profile: Optional["_models.CloudServiceOsProfile"] = None, network_profile: Optional["_models.CloudServiceNetworkProfile"] = None, extension_profile: Optional["_models.CloudServiceExtensionProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword package_url: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage @@ -1467,8 +1486,8 @@ def __init__( *, sku: Optional["_models.CloudServiceRoleSku"] = None, properties: Optional["_models.CloudServiceRoleProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: Describes the cloud service role sku. :paramtype sku: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleSku @@ -1504,7 +1523,9 @@ class CloudServiceRoleListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceRole] @@ -1527,7 +1548,9 @@ class CloudServiceRoleProfile(_serialization.Model): "roles": {"key": "roles", "type": "[CloudServiceRoleProfileProperties]"}, } - def __init__(self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs): + def __init__( + self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs: Any + ) -> None: """ :keyword roles: List of roles for the cloud service. :paramtype roles: @@ -1551,7 +1574,9 @@ class CloudServiceRoleProfileProperties(_serialization.Model): "sku": {"key": "sku", "type": "CloudServiceRoleSku"}, } - def __init__(self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs): + def __init__( + self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs: Any + ) -> None: """ :keyword name: Resource name. :paramtype name: str @@ -1580,7 +1605,7 @@ class CloudServiceRoleProperties(_serialization.Model): "unique_id": {"key": "uniqueId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_id = None @@ -1607,8 +1632,8 @@ class CloudServiceRoleSku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the @@ -1637,7 +1662,7 @@ class CloudServiceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1661,8 +1686,8 @@ class CloudServiceVaultAndSecretReference(_serialization.Model): } def __init__( - self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs - ): + self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword source_vault: :paramtype source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource @@ -1675,7 +1700,8 @@ def __init__( class CloudServiceVaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the role instance. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -1686,7 +1712,7 @@ class CloudServiceVaultCertificate(_serialization.Model): "certificate_url": {"key": "certificateUrl", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, **kwargs): + def __init__(self, *, certificate_url: Optional[str] = None, **kwargs: Any) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -1718,8 +1744,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.CloudServiceVaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -1751,7 +1777,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1794,7 +1820,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -1916,8 +1942,8 @@ def __init__( to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -2010,7 +2036,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -2100,8 +2126,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2151,7 +2177,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -2177,7 +2203,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -2189,7 +2217,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2255,8 +2286,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2294,7 +2325,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -2325,7 +2358,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup] @@ -2339,7 +2374,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2386,8 +2422,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2442,8 +2478,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2458,7 +2494,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2491,8 +2528,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2525,7 +2562,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHost] @@ -2539,7 +2576,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2597,8 +2635,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2628,7 +2666,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -2641,7 +2680,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -2654,7 +2693,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2021_03_01.models.DiffDiskOptions @@ -2679,8 +2720,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2021_03_01.models.DiffDiskOptions @@ -2711,7 +2752,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2732,7 +2773,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2742,7 +2783,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -2752,7 +2796,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -2784,8 +2828,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2826,8 +2870,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2863,8 +2907,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -2895,8 +2939,8 @@ def __init__( *, name: Optional[str] = None, properties: Optional["_models.CloudServiceExtensionProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -2964,7 +3008,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -3019,7 +3065,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -3082,8 +3130,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3161,8 +3209,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource @@ -3262,8 +3310,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource @@ -3329,7 +3377,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.Image] @@ -3410,8 +3458,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource @@ -3461,7 +3509,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -3507,8 +3559,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3564,8 +3616,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -3628,8 +3680,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3666,7 +3718,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -3699,7 +3753,7 @@ class InstanceSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -3737,8 +3791,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -3776,7 +3830,7 @@ class InstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[StatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -3803,7 +3857,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -3836,7 +3890,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -3914,7 +3968,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiErrorAutoGenerated"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -3931,7 +3985,10 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3962,8 +4019,8 @@ def __init__( ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -4018,8 +4075,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -4073,8 +4130,8 @@ def __init__( *, patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, assessment_mode: Optional[Union[str, "_models.LinuxPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.Usage] @@ -4162,8 +4219,8 @@ def __init__( name: str, properties: "_models.LoadBalancerConfigurationProperties", id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4202,7 +4259,9 @@ class LoadBalancerConfigurationProperties(_serialization.Model): }, } - def __init__(self, *, frontend_ip_configurations: List["_models.LoadBalancerFrontendIPConfiguration"], **kwargs): + def __init__( + self, *, frontend_ip_configurations: List["_models.LoadBalancerFrontendIPConfiguration"], **kwargs: Any + ) -> None: """ :keyword frontend_ip_configurations: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must @@ -4238,7 +4297,9 @@ class LoadBalancerFrontendIPConfiguration(_serialization.Model): "properties": {"key": "properties", "type": "LoadBalancerFrontendIPConfigurationProperties"}, } - def __init__(self, *, name: str, properties: "_models.LoadBalancerFrontendIPConfigurationProperties", **kwargs): + def __init__( + self, *, name: str, properties: "_models.LoadBalancerFrontendIPConfigurationProperties", **kwargs: Any + ) -> None: """ :keyword name: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. @@ -4276,8 +4337,8 @@ def __init__( public_ip_address: Optional["_models.SubResource"] = None, subnet: Optional["_models.SubResource"] = None, private_ip_address: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword public_ip_address: The reference to the public ip address resource. :paramtype public_ip_address: ~azure.mgmt.compute.v2021_03_01.models.SubResource @@ -4344,8 +4405,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4393,7 +4454,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4416,7 +4477,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -4464,8 +4525,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4524,8 +4585,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4571,8 +4632,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4619,8 +4680,8 @@ def __init__( network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, network_interface_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4666,8 +4727,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. "AutomaticRepairs" :paramtype service_name: str or @@ -4704,7 +4765,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -4712,7 +4773,9 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines `_. All required parameters must be populated in order to send to Azure. @@ -4803,8 +4866,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -4891,7 +4954,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -4933,7 +4996,7 @@ class OSFamily(_serialization.Model): "properties": {"key": "properties", "type": "OSFamilyProperties"}, } - def __init__(self, *, properties: Optional["_models.OSFamilyProperties"] = None, **kwargs): + def __init__(self, *, properties: Optional["_models.OSFamilyProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: OS family properties. :paramtype properties: ~azure.mgmt.compute.v2021_03_01.models.OSFamilyProperties @@ -4966,7 +5029,7 @@ class OSFamilyListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.OSFamily"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.OSFamily"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.OSFamily] @@ -5003,7 +5066,7 @@ class OSFamilyProperties(_serialization.Model): "versions": {"key": "versions", "type": "[OSVersionPropertiesBase]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -5012,7 +5075,8 @@ def __init__(self, **kwargs): class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5106,8 +5170,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5221,7 +5285,7 @@ class OSVersion(_serialization.Model): "properties": {"key": "properties", "type": "OSVersionProperties"}, } - def __init__(self, *, properties: Optional["_models.OSVersionProperties"] = None, **kwargs): + def __init__(self, *, properties: Optional["_models.OSVersionProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: OS version properties. :paramtype properties: ~azure.mgmt.compute.v2021_03_01.models.OSVersionProperties @@ -5254,7 +5318,7 @@ class OSVersionListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.OSVersion"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.OSVersion"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.OSVersion] @@ -5303,7 +5367,7 @@ class OSVersionProperties(_serialization.Model): "is_active": {"key": "isActive", "type": "bool"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.family = None @@ -5343,7 +5407,7 @@ class OSVersionPropertiesBase(_serialization.Model): "is_active": {"key": "isActive", "type": "bool"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.version = None @@ -5392,7 +5456,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -5444,8 +5508,8 @@ def __init__( patch_mode: Optional[Union[str, "_models.WindowsVMGuestPatchMode"]] = None, enable_hotpatching: Optional[bool] = None, assessment_mode: Optional[Union[str, "_models.WindowsPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -5506,8 +5574,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -5598,8 +5666,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5642,7 +5710,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup] @@ -5665,7 +5735,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5674,7 +5744,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class ProxyResource(_serialization.Model): - """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for an Azure Resource Manager proxy resource. It will not have + tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -5698,7 +5769,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5725,8 +5796,8 @@ def __init__( *, name: Optional[Union[str, "_models.PublicIPAddressSkuName"]] = None, tier: Optional[Union[str, "_models.PublicIPAddressSkuTier"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". :paramtype name: str or ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSkuName @@ -5764,7 +5835,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -5802,7 +5873,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -5867,8 +5938,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5937,7 +6008,7 @@ class ResourceInstanceViewStatus(_serialization.Model): "level": {"key": "level", "type": "str"}, } - def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs): + def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs: Any) -> None: """ :keyword level: The level code. Known values are: "Info", "Warning", and "Error". :paramtype level: str or ~azure.mgmt.compute.v2021_03_01.models.StatusLevelTypes @@ -6002,8 +6073,8 @@ def __init__( *, exclude_disks: Optional[List["_models.ApiEntityReference"]] = None, time_created: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. @@ -6076,8 +6147,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6115,8 +6186,8 @@ def __init__( *, value: Optional[List["_models.RestorePointCollection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Gets the list of restore point collections. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection] @@ -6149,7 +6220,7 @@ class RestorePointCollectionSourceProperties(_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: Resource Id of the source resource used to create this restore point collection. :paramtype id: str @@ -6197,8 +6268,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6215,7 +6286,9 @@ def __init__( class RestorePointSourceMetadata(_serialization.Model): - """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + """Describes the properties of the Virtual Machine for which the restore point was created. The + properties provided are a subset and the snapshot of the overall Virtual Machine properties + captured at the time of the restore point creation. :ivar hardware_profile: Gets the hardware profile. :vartype hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile @@ -6258,8 +6331,8 @@ def __init__( vm_id: Optional[str] = None, security_profile: Optional["_models.SecurityProfile"] = None, location: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hardware_profile: Gets the hardware profile. :paramtype hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile @@ -6326,8 +6399,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Gets the logical unit number. :paramtype lun: int @@ -6391,8 +6464,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemType @@ -6439,8 +6512,8 @@ def __init__( *, os_disk: Optional["_models.RestorePointSourceVMOSDisk"] = None, data_disks: Optional[List["_models.RestorePointSourceVMDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -6476,7 +6549,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -6527,8 +6600,8 @@ def __init__( *, sku: Optional["_models.InstanceSku"] = None, properties: Optional["_models.RoleInstanceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: :paramtype sku: ~azure.mgmt.compute.v2021_03_01.models.InstanceSku @@ -6565,7 +6638,7 @@ class RoleInstanceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.RoleInstance] @@ -6595,7 +6668,7 @@ class RoleInstanceNetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[SubResource]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.network_interfaces = None @@ -6620,8 +6693,8 @@ def __init__( *, network_profile: Optional["_models.RoleInstanceNetworkProfile"] = None, instance_view: Optional["_models.RoleInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_profile: Describes the network profile for the role instance. :paramtype network_profile: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceNetworkProfile @@ -6651,7 +6724,7 @@ class RoleInstances(_serialization.Model): "role_instances": {"key": "roleInstances", "type": "[str]"}, } - def __init__(self, *, role_instances: List[str], **kwargs): + def __init__(self, *, role_instances: List[str], **kwargs: Any) -> None: """ :keyword role_instances: List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. Required. @@ -6692,7 +6765,7 @@ class RoleInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.platform_update_domain = None @@ -6727,7 +6800,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiErrorAutoGenerated"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -6791,8 +6864,8 @@ def __init__( pause_time_between_batches: Optional[str] = None, enable_cross_zone_upgrade: Optional[bool] = None, prioritize_unhealthy_instances: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -6861,7 +6934,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -6901,7 +6974,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6961,7 +7034,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiErrorAutoGenerated"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7016,8 +7089,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -7088,8 +7161,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -7142,8 +7215,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -7180,7 +7253,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -7213,7 +7286,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandDocumentBase] @@ -7253,7 +7328,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -7282,7 +7359,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] @@ -7317,8 +7394,8 @@ class ScaleInPolicy(_serialization.Model): } def __init__( - self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs - ): + self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -7358,8 +7435,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -7400,8 +7477,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7424,7 +7501,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -7443,8 +7522,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -7472,7 +7551,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2021_03_01.models.SshPublicKey] @@ -7482,7 +7561,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7500,7 +7580,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7547,7 +7627,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -7608,8 +7690,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7646,7 +7728,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource] @@ -7676,7 +7760,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7711,7 +7797,7 @@ class StatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7750,8 +7836,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -7792,7 +7878,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7818,8 +7904,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7848,7 +7934,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -7915,8 +8003,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -7950,7 +8038,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7965,7 +8054,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -8000,7 +8091,7 @@ class UpdateDomain(_serialization.Model): "name": {"key": "name", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -8027,7 +8118,7 @@ class UpdateDomainListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.UpdateDomain] @@ -8065,7 +8156,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -8111,7 +8202,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -8148,7 +8239,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -8187,8 +8278,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -8245,7 +8336,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -8274,7 +8365,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -8307,7 +8398,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -8315,7 +8406,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -8343,7 +8435,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -8391,8 +8485,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -8417,7 +8511,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -8637,8 +8731,8 @@ def __init__( # pylint: disable=too-many-locals platform_fault_domain: Optional[int] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8809,8 +8903,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -8881,7 +8975,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiErrorAutoGenerated"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8920,7 +9014,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -8968,7 +9064,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -9066,8 +9162,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9135,8 +9231,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -9213,8 +9309,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9273,8 +9369,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -9306,7 +9402,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] @@ -9367,8 +9463,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -9422,7 +9518,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9468,8 +9564,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -9529,8 +9625,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9627,8 +9723,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, disallowed: Optional["_models.DisallowedConfiguration"] = None, features: Optional[List["_models.VirtualMachineImageFeature"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9687,7 +9783,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -9738,8 +9834,8 @@ def __init__( reboot_setting: Union[str, "_models.VMGuestPatchRebootSetting"], windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). Required. @@ -9835,7 +9931,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiErrorAutoGenerated"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9941,8 +10037,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -10013,7 +10109,7 @@ class VirtualMachineIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -10046,7 +10142,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachine] @@ -10127,8 +10225,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, ip_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceIPConfiguration"]] = None, dscp_configuration: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The network interface configuration name. Required. :paramtype name: str @@ -10180,7 +10278,7 @@ class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_serialization.Mode "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -10260,8 +10358,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The IP configuration name. Required. :paramtype name: str @@ -10340,8 +10438,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -10420,8 +10518,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersions"]] = None, public_ip_allocation_method: Optional[Union[str, "_models.PublicIPAllocationMethod"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -10479,7 +10577,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm @@ -10491,7 +10589,8 @@ def __init__(self, *, domain_name_label: str, **kwargs): class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10502,7 +10601,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10601,8 +10700,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10690,8 +10789,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -10745,8 +10844,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -10781,7 +10880,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] @@ -10863,8 +10964,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -11051,8 +11152,8 @@ def __init__( # pylint: disable=too-many-locals additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, orchestration_mode: Optional[Union[str, "_models.OrchestrationMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -11208,8 +11309,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -11331,8 +11432,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -11399,8 +11500,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] @@ -11436,8 +11537,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -11528,8 +11629,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -11618,8 +11719,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -11662,7 +11763,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -11700,7 +11801,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] @@ -11730,7 +11831,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -11816,8 +11917,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11882,7 +11983,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -11917,8 +12018,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -11953,7 +12058,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] @@ -11987,7 +12094,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetSku] @@ -12021,7 +12130,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] @@ -12059,8 +12170,8 @@ def __init__( *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -12143,8 +12254,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12195,7 +12306,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -12235,8 +12346,8 @@ def __init__( health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -12330,8 +12441,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -12457,8 +12568,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -12576,8 +12687,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -12630,7 +12741,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -12653,7 +12764,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12679,7 +12790,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12718,7 +12831,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -12757,7 +12870,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -12799,8 +12912,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -12907,8 +13020,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12968,7 +13081,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -13037,8 +13152,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -13144,8 +13259,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -13217,8 +13332,8 @@ def __init__( List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -13239,7 +13354,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes @@ -13279,8 +13395,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes @@ -13337,8 +13453,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -13388,8 +13504,8 @@ def __init__( idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -13433,8 +13549,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference @@ -13508,8 +13624,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -13715,8 +13831,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -13880,8 +13996,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13935,7 +14051,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -13967,7 +14085,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -14040,8 +14158,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -14092,7 +14210,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -14120,7 +14238,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -14202,8 +14320,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -14268,7 +14386,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM] @@ -14300,8 +14420,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -14398,8 +14518,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -14491,8 +14611,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -14548,8 +14668,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -14590,7 +14710,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSize] @@ -14656,7 +14776,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -14692,7 +14812,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -14883,8 +15003,8 @@ def __init__( # pylint: disable=too-many-locals platform_fault_domain: Optional[int] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -15039,7 +15159,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -15099,8 +15219,8 @@ def __init__( additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -15172,8 +15292,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -15209,7 +15329,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2021_03_01.models.WinRMListener] @@ -15249,8 +15369,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_metadata.json index df01b66ea250..c995022f0f0a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_compute_management_client_enums.py index a41ca939088e..f419dab6f780 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_compute_management_client_enums.py @@ -103,27 +103,27 @@ class DiffDiskPlacement(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" - #: Create a new disk by using a deep copy process, where the resource creation is considered - #: complete only after all data has been copied from the source. + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" COPY_START = "CopyStart" + """Create a new disk by using a deep copy process, where the resource creation is considered + #: complete only after all data has been copied from the source.""" class DiskCreateOptionTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -181,76 +181,76 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" class DiskSecurityTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the SecurityType of the VM. Applicable for OS disks only.""" - #: Trusted Launch provides security features such as secure boot and virtual Trusted Platform - #: Module (vTPM) TRUSTED_LAUNCH = "TrustedLaunch" + """Trusted Launch provides security features such as secure boot and virtual Trusted Platform + #: Module (vTPM)""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently attached to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is attached to a stopped-deallocated VM. + """The disk is currently attached to a running VM.""" RESERVED = "Reserved" - #: The disk is attached to a VM which is in hibernated state. + """The disk is attached to a stopped-deallocated VM.""" FROZEN = "Frozen" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is attached to a VM which is in hibernated state.""" ACTIVE_SAS = "ActiveSAS" - #: The disk is attached to a VM in hibernated state and has an active SAS URI associated with it. + """The disk currently has an Active SAS Uri associated with it.""" ACTIVE_SAS_FROZEN = "ActiveSASFrozen" - #: A disk is ready to be created by upload by requesting a write token. + """The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" - #: Premium SSD zone redundant storage. Best for the production workloads that need storage - #: resiliency against zone failures. + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" PREMIUM_ZRS = "Premium_ZRS" - #: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications - #: and dev/test that need storage resiliency against zone failures. + """Premium SSD zone redundant storage. Best for the production workloads that need storage + #: resiliency against zone failures.""" STANDARD_SSD_ZRS = "StandardSSD_ZRS" + """Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications + #: and dev/test that need storage resiliency against zone failures.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class ExecutionState(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -378,12 +378,12 @@ class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEn class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -397,10 +397,10 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -536,14 +536,14 @@ class PublicIPAllocationMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for controlling export on the disk.""" - #: You can generate a SAS URI to access the underlying data of the disk publicly on the internet - #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from - #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. ENABLED = "Enabled" - #: You cannot access the underlying data of the disk publicly on the internet even when - #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your - #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. + """You can generate a SAS URI to access the underlying data of the disk publicly on the internet + #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from + #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" DISABLED = "Disabled" + """You cannot access the underlying data of the disk publicly on the internet even when + #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your + #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -601,12 +601,12 @@ class SettingNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" class StatusLevelTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py index 847a0900c97b..c742860cee28 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py @@ -45,7 +45,7 @@ class AccessUri(_serialization.Model): "access_sas": {"key": "accessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -65,7 +65,7 @@ class AdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -78,7 +78,9 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -110,8 +112,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -147,7 +149,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -188,8 +190,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_04_01.models.ApiErrorBase] @@ -228,8 +230,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -269,8 +271,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -306,7 +308,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -335,7 +337,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -386,7 +388,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -402,7 +404,15 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Availability sets + overview `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -469,8 +479,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -523,7 +533,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.AvailabilitySet] @@ -547,7 +559,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -557,7 +569,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -602,8 +615,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -683,7 +696,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -697,7 +710,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -718,7 +732,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -739,7 +753,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -754,7 +771,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -798,7 +815,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -885,8 +902,8 @@ def __init__( sku: "_models.Sku", tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -916,7 +933,10 @@ def __init__( class CapacityReservationGroup(Resource): - """Specifies information about the capacity reservation group that the capacity reservations should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. + """Specifies information about the capacity reservation group that the capacity reservations + should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be + added to a capacity reservation group at creation time. An existing capacity reservation cannot + be added or moved to another capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -974,8 +994,8 @@ class CapacityReservationGroup(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1013,7 +1033,7 @@ class CapacityReservationGroupInstanceView(_serialization.Model): "capacity_reservations": {"key": "capacityReservations", "type": "[CapacityReservationInstanceViewWithName]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.capacity_reservations = None @@ -1040,7 +1060,9 @@ class CapacityReservationGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservation groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.CapacityReservationGroup] @@ -1087,7 +1109,7 @@ class CapacityReservationGroupUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationGroupInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1099,7 +1121,9 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CapacityReservationInstanceView(_serialization.Model): - """The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. + """The instance view of a capacity reservation that provides as snapshot of the runtime properties + of the capacity reservation that is managed by the platform and can change outside of control + plane operations. :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: @@ -1118,8 +1142,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1133,7 +1157,8 @@ def __init__( class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): - """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. + """The instance view of a capacity reservation that includes the name of the capacity reservation. + It is used for the response to the instance view of a capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1161,8 +1186,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1195,7 +1220,9 @@ class CapacityReservationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservations. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.CapacityReservation] @@ -1222,7 +1249,7 @@ class CapacityReservationProfile(_serialization.Model): "capacity_reservation_group": {"key": "capacityReservationGroup", "type": "SubResource"}, } - def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs): + def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs: Any) -> None: """ :keyword capacity_reservation_group: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough @@ -1235,7 +1262,8 @@ def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource" class CapacityReservationUpdate(UpdateResource): - """Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. + """Specifies information about the capacity reservation. Only tags and sku.capacity can be + updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1280,7 +1308,9 @@ class CapacityReservationUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1319,7 +1349,7 @@ class CapacityReservationUtilization(_serialization.Model): "virtual_machines_allocated": {"key": "virtualMachinesAllocated", "type": "[SubResourceReadOnly]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.virtual_machines_allocated = None @@ -1342,7 +1372,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1385,7 +1415,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -1462,8 +1492,8 @@ def __init__( source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, logical_sector_size: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", and @@ -1615,8 +1645,8 @@ def __init__( to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1709,7 +1739,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1799,8 +1829,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1850,7 +1880,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1876,7 +1906,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1888,7 +1920,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1954,8 +1989,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1993,7 +2028,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -2024,7 +2061,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.DedicatedHostGroup] @@ -2038,7 +2077,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2085,8 +2125,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2141,8 +2181,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2157,7 +2197,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2190,8 +2231,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2224,7 +2265,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.DedicatedHost] @@ -2238,7 +2279,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2296,8 +2338,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2327,7 +2369,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -2340,7 +2383,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily @@ -2353,7 +2396,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2021_04_01.models.DiffDiskOptions @@ -2378,8 +2423,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2021_04_01.models.DiffDiskOptions @@ -2410,7 +2455,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2630,8 +2675,8 @@ def __init__( # pylint: disable=too-many-locals security_profile: Optional["_models.DiskSecurityProfile"] = None, completion_percent: Optional[float] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2812,8 +2857,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2851,7 +2896,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.DiskAccess] @@ -2875,7 +2920,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2966,8 +3011,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3017,7 +3062,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.DiskEncryptionSet] @@ -3041,7 +3088,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -3051,7 +3098,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -3061,7 +3111,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -3093,8 +3143,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -3148,8 +3198,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3199,8 +3249,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -3238,7 +3288,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.Disk] @@ -3276,7 +3326,7 @@ class ProxyOnlyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3377,8 +3427,8 @@ def __init__( public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, disk_access_id: Optional[str] = None, completion_percent: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". @@ -3444,7 +3494,9 @@ class DiskRestorePointList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk restore points. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.DiskRestorePoint] @@ -3469,7 +3521,9 @@ class DiskSecurityProfile(_serialization.Model): "security_type": {"key": "securityType", "type": "str"}, } - def __init__(self, *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, **kwargs): + def __init__( + self, *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. "TrustedLaunch" @@ -3480,7 +3534,8 @@ def __init__(self, *, security_type: Optional[Union[str, "_models.DiskSecurityTy class DiskSku(_serialization.Model): - """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. + """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, + Premium_ZRS, or StandardSSD_ZRS. Variables are only populated by the server, and will be ignored when sending a request. @@ -3500,7 +3555,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", and "StandardSSD_ZRS". @@ -3636,8 +3691,8 @@ def __init__( supported_capabilities: Optional["_models.SupportedCapabilities"] = None, supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3746,8 +3801,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -3763,7 +3818,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -3793,7 +3849,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None @@ -3842,8 +3900,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -3884,8 +3942,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -3918,8 +3976,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -3952,7 +4010,7 @@ class GrantAccessData(_serialization.Model): "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, } - def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs): + def __init__(self, *, access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, **kwargs: Any) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2021_04_01.models.AccessLevel @@ -4020,7 +4078,9 @@ class HardwareProfile(_serialization.Model): "vm_size": {"key": "vmSize", "type": "str"}, } - def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs): + def __init__( + self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -4075,7 +4135,9 @@ def __init__(self, *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTy class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -4138,8 +4200,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4217,8 +4279,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_04_01.models.SubResource @@ -4318,8 +4380,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_04_01.models.SubResource @@ -4386,7 +4448,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -4421,7 +4485,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.Image] @@ -4502,8 +4566,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_04_01.models.SubResource @@ -4553,7 +4617,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -4599,8 +4667,8 @@ def __init__( offer: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4656,8 +4724,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -4720,8 +4788,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4758,7 +4826,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -4801,8 +4871,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -4846,7 +4916,7 @@ class KeyForDiskEncryptionSet(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs): + def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk @@ -4862,7 +4932,8 @@ def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault" class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -4882,7 +4953,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2021_04_01.models.SourceVault @@ -4915,7 +4986,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2021_04_01.models.SourceVault @@ -4948,7 +5019,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -4981,7 +5052,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -5059,7 +5130,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -5076,7 +5147,10 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -5107,8 +5181,8 @@ def __init__( ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -5163,8 +5237,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -5218,8 +5292,8 @@ def __init__( *, patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, assessment_mode: Optional[Union[str, "_models.LinuxPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.Usage] @@ -5329,8 +5403,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5378,7 +5452,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -5401,7 +5475,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -5449,8 +5523,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -5509,8 +5583,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5555,8 +5629,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5603,8 +5677,8 @@ def __init__( network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, network_interface_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -5650,8 +5724,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. "AutomaticRepairs" :paramtype service_name: str or @@ -5688,7 +5762,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -5696,7 +5770,9 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines `_. All required parameters must be populated in order to send to Azure. @@ -5787,8 +5863,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -5875,7 +5951,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -5886,7 +5962,8 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -5980,8 +6057,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -6103,7 +6180,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -6155,8 +6232,8 @@ def __init__( patch_mode: Optional[Union[str, "_models.WindowsVMGuestPatchMode"]] = None, enable_hotpatching: Optional[bool] = None, assessment_mode: Optional[Union[str, "_models.WindowsPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -6217,8 +6298,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -6254,7 +6335,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -6307,8 +6388,8 @@ def __init__( self, *, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_link_service_connection_state: A collection of information about the state of the connection between DiskAccess and Virtual Network. @@ -6344,8 +6425,8 @@ def __init__( *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Array of private endpoint connections. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.PrivateEndpointConnection] @@ -6394,7 +6475,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -6419,7 +6500,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.PrivateLinkResource] @@ -6429,7 +6510,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -6454,8 +6536,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -6485,7 +6567,7 @@ class PropertyUpdatesInProgress(_serialization.Model): "target_tier": {"key": "targetTier", "type": "str"}, } - def __init__(self, *, target_tier: Optional[str] = None, **kwargs): + def __init__(self, *, target_tier: Optional[str] = None, **kwargs: Any) -> None: """ :keyword target_tier: The target performance tier of the disk if a tier change operation is in progress. @@ -6567,8 +6649,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6611,7 +6693,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.ProximityPlacementGroup] @@ -6634,7 +6718,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6643,7 +6727,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class ProxyResource(_serialization.Model): - """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for an Azure Resource Manager proxy resource. It will not have + tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -6667,7 +6752,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -6694,8 +6779,8 @@ def __init__( *, name: Optional[Union[str, "_models.PublicIPAddressSkuName"]] = None, tier: Optional[Union[str, "_models.PublicIPAddressSkuTier"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". :paramtype name: str or ~azure.mgmt.compute.v2021_04_01.models.PublicIPAddressSkuName @@ -6733,7 +6818,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -6778,7 +6863,9 @@ class PurchasePlanAutoGenerated(_serialization.Model): "promotion_code": {"key": "promotionCode", "type": "str"}, } - def __init__(self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs): + def __init__( + self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword name: The plan ID. Required. :paramtype name: str @@ -6819,7 +6906,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -6884,8 +6971,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -6944,7 +7031,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -7010,8 +7097,8 @@ def __init__( *, exclude_disks: Optional[List["_models.ApiEntityReference"]] = None, time_created: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. @@ -7084,8 +7171,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7123,8 +7210,8 @@ def __init__( *, value: Optional[List["_models.RestorePointCollection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Gets the list of restore point collections. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.RestorePointCollection] @@ -7157,7 +7244,7 @@ class RestorePointCollectionSourceProperties(_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: Resource Id of the source resource used to create this restore point collection. :paramtype id: str @@ -7205,8 +7292,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7223,7 +7310,9 @@ def __init__( class RestorePointSourceMetadata(_serialization.Model): - """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + """Describes the properties of the Virtual Machine for which the restore point was created. The + properties provided are a subset and the snapshot of the overall Virtual Machine properties + captured at the time of the restore point creation. :ivar hardware_profile: Gets the hardware profile. :vartype hardware_profile: ~azure.mgmt.compute.v2021_04_01.models.HardwareProfile @@ -7266,8 +7355,8 @@ def __init__( vm_id: Optional[str] = None, security_profile: Optional["_models.SecurityProfile"] = None, location: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hardware_profile: Gets the hardware profile. :paramtype hardware_profile: ~azure.mgmt.compute.v2021_04_01.models.HardwareProfile @@ -7334,8 +7423,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Gets the logical unit number. :paramtype lun: int @@ -7399,8 +7488,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.compute.v2021_04_01.models.OperatingSystemType @@ -7447,8 +7536,8 @@ def __init__( *, os_disk: Optional["_models.RestorePointSourceVMOSDisk"] = None, data_disks: Optional[List["_models.RestorePointSourceVMDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -7484,7 +7573,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -7517,7 +7606,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -7581,8 +7670,8 @@ def __init__( pause_time_between_batches: Optional[str] = None, enable_cross_zone_upgrade: Optional[bool] = None, prioritize_unhealthy_instances: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -7651,7 +7740,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -7691,7 +7780,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7751,7 +7840,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7806,8 +7895,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -7878,8 +7967,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -7932,8 +8021,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -7970,7 +8059,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -8003,7 +8092,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.RunCommandDocumentBase] @@ -8043,7 +8134,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -8072,7 +8165,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.InstanceViewStatus] @@ -8107,8 +8200,8 @@ class ScaleInPolicy(_serialization.Model): } def __init__( - self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs - ): + self, *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -8148,8 +8241,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -8190,8 +8283,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -8230,14 +8323,16 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -8256,8 +8351,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -8424,8 +8519,8 @@ def __init__( # pylint: disable=too-many-locals supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, completion_percent: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8530,7 +8625,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.Snapshot] @@ -8544,7 +8639,9 @@ def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] class SnapshotSku(_serialization.Model): - """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. + """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + parameter for incremental snapshot and the default behavior is the SKU will be set to the same + sku as the previous snapshot. Variables are only populated by the server, and will be ignored when sending a request. @@ -8563,7 +8660,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -8640,8 +8739,8 @@ def __init__( disk_access_id: Optional[str] = None, supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8691,7 +8790,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -8701,7 +8801,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -8711,7 +8811,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class SpotRestorePolicy(_serialization.Model): - """Specifies the Spot-Try-Restore properties for the virtual machine scale set. :code:`
`:code:`
` With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. + """Specifies the Spot-Try-Restore properties for the virtual machine scale set. + :code:`
`:code:`
` With this property customer can enable or disable automatic restore of + the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing + constraint. :ivar enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. @@ -8726,7 +8829,7 @@ class SpotRestorePolicy(_serialization.Model): "restore_timeout": {"key": "restoreTimeout", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing @@ -8752,7 +8855,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2021_04_01.models.SshPublicKey] @@ -8762,7 +8865,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -8780,7 +8884,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -8827,7 +8931,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -8888,8 +8994,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8926,7 +9032,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.SshPublicKeyResource] @@ -8956,7 +9064,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -9002,8 +9112,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -9044,7 +9154,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -9070,8 +9180,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9084,7 +9194,8 @@ def __init__( class SupportedCapabilities(_serialization.Model): - """List of supported capabilities (like accelerated networking) persisted on the disk resource for VM use. + """List of supported capabilities (like accelerated networking) persisted on the disk resource for + VM use. :ivar accelerated_network: True if the image from which the OS disk is created supports accelerated networking. @@ -9095,7 +9206,7 @@ class SupportedCapabilities(_serialization.Model): "accelerated_network": {"key": "acceleratedNetwork", "type": "bool"}, } - def __init__(self, *, accelerated_network: Optional[bool] = None, **kwargs): + def __init__(self, *, accelerated_network: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword accelerated_network: True if the image from which the OS disk is created supports accelerated networking. @@ -9122,7 +9233,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -9189,8 +9302,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -9224,7 +9337,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -9239,7 +9353,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -9279,7 +9395,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -9325,7 +9441,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -9362,7 +9478,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -9401,8 +9517,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -9459,7 +9575,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -9488,7 +9604,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -9521,7 +9637,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -9529,7 +9645,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -9557,7 +9674,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -9605,8 +9724,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -9631,7 +9750,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -9857,8 +9976,8 @@ def __init__( # pylint: disable=too-many-locals scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10034,8 +10153,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -10106,7 +10225,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -10145,7 +10264,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -10193,7 +10314,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -10291,8 +10412,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10360,8 +10481,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -10438,8 +10559,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10498,8 +10619,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -10531,7 +10652,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineExtension] @@ -10592,8 +10713,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10647,7 +10768,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -10693,8 +10814,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -10754,8 +10875,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10852,8 +10973,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, disallowed: Optional["_models.DisallowedConfiguration"] = None, features: Optional[List["_models.VirtualMachineImageFeature"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -10912,7 +11033,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -10963,8 +11084,8 @@ def __init__( reboot_setting: Union[str, "_models.VMGuestPatchRebootSetting"], windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). Required. @@ -11060,7 +11181,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -11166,8 +11287,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -11238,7 +11359,7 @@ class VirtualMachineIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -11271,7 +11392,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachine] @@ -11352,8 +11475,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, ip_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceIPConfiguration"]] = None, dscp_configuration: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The network interface configuration name. Required. :paramtype name: str @@ -11405,7 +11528,7 @@ class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_serialization.Mode "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -11485,8 +11608,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The IP configuration name. Required. :paramtype name: str @@ -11565,8 +11688,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -11645,8 +11768,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersions"]] = None, public_ip_allocation_method: Optional[Union[str, "_models.PublicIPAllocationMethod"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -11704,7 +11827,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm @@ -11716,7 +11839,8 @@ def __init__(self, *, domain_name_label: str, **kwargs): class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -11727,7 +11851,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -11826,8 +11950,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -11915,8 +12039,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -11970,8 +12094,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -12006,7 +12130,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineRunCommand] @@ -12088,8 +12214,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12283,8 +12409,8 @@ def __init__( # pylint: disable=too-many-locals scale_in_policy: Optional["_models.ScaleInPolicy"] = None, orchestration_mode: Optional[Union[str, "_models.OrchestrationMode"]] = None, spot_restore_policy: Optional["_models.SpotRestorePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -12446,8 +12572,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -12569,8 +12695,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -12637,8 +12763,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineScaleSetExtension] @@ -12674,8 +12800,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -12766,8 +12892,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -12856,8 +12982,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -12900,7 +13026,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -12938,7 +13064,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2021_04_01.models.InstanceViewStatus] @@ -12968,7 +13094,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -13054,8 +13180,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -13120,7 +13246,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -13155,8 +13281,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -13191,7 +13321,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineScaleSet] @@ -13225,7 +13357,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineScaleSetSku] @@ -13259,7 +13393,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineScaleSet] @@ -13297,8 +13433,8 @@ def __init__( *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -13381,8 +13517,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -13433,7 +13569,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -13473,8 +13609,8 @@ def __init__( health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -13568,8 +13704,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -13695,8 +13831,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -13814,8 +13950,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -13868,7 +14004,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -13891,7 +14027,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -13917,7 +14053,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -13956,7 +14094,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -13995,7 +14133,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -14037,8 +14175,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -14145,8 +14283,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -14206,7 +14344,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -14275,8 +14415,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -14382,8 +14522,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -14455,8 +14595,8 @@ def __init__( List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -14477,7 +14617,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2021_04_01.models.CachingTypes @@ -14517,8 +14658,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2021_04_01.models.CachingTypes @@ -14575,8 +14716,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -14626,8 +14767,8 @@ def __init__( idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -14671,8 +14812,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2021_04_01.models.ImageReference @@ -14746,8 +14887,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -14953,8 +15094,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -15118,8 +15259,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -15173,7 +15314,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -15205,7 +15348,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -15278,8 +15421,8 @@ def __init__( enable_automatic_upgrade: Optional[bool] = None, settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -15330,7 +15473,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -15358,7 +15501,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -15440,8 +15583,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -15506,7 +15649,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineScaleSetVM] @@ -15538,8 +15683,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -15642,8 +15787,8 @@ def __init__( scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -15740,8 +15885,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -15797,8 +15942,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -15839,7 +15984,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2021_04_01.models.VirtualMachineSize] @@ -15905,7 +16050,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -15941,7 +16086,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -16138,8 +16283,8 @@ def __init__( # pylint: disable=too-many-locals scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -16299,7 +16444,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -16359,8 +16504,8 @@ def __init__( additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -16432,8 +16577,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -16469,7 +16614,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2021_04_01.models.WinRMListener] @@ -16509,8 +16654,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_metadata.json index 3b58cee47bd8..4e309e65cb80 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_compute_management_client_enums.py index 3af6a2339caa..641917d2e707 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_compute_management_client_enums.py @@ -342,10 +342,10 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py index 058f56ef52a8..74906933b589 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py @@ -46,8 +46,8 @@ class AdditionalCapabilities(_serialization.Model): } def __init__( - self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs - ): + self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -64,7 +64,9 @@ def __init__( class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -96,8 +98,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -133,7 +135,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -174,8 +176,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_07_01.models.ApiErrorBase] @@ -214,8 +216,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -243,7 +245,9 @@ class ApplicationProfile(_serialization.Model): "gallery_applications": {"key": "galleryApplications", "type": "[VMGalleryApplication]"}, } - def __init__(self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs): + def __init__( + self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs: Any + ) -> None: """ :keyword gallery_applications: Specifies the gallery applications that should be made available to the VM/VMSS. @@ -279,8 +283,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -316,7 +320,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -345,7 +349,7 @@ class AutomaticRepairsPolicy(_serialization.Model): "grace_period": {"key": "gracePeriod", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, grace_period: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -396,7 +400,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -412,7 +416,15 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Availability sets + overview `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -479,8 +491,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -533,7 +545,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.AvailabilitySet] @@ -557,7 +571,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -567,7 +581,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -612,8 +627,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -693,7 +708,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -707,7 +722,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -728,7 +744,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -749,7 +765,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -764,7 +783,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -808,7 +827,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -895,8 +914,8 @@ def __init__( sku: "_models.Sku", tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -926,7 +945,10 @@ def __init__( class CapacityReservationGroup(Resource): - """Specifies information about the capacity reservation group that the capacity reservations should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. + """Specifies information about the capacity reservation group that the capacity reservations + should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be + added to a capacity reservation group at creation time. An existing capacity reservation cannot + be added or moved to another capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -984,8 +1006,8 @@ class CapacityReservationGroup(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1023,7 +1045,7 @@ class CapacityReservationGroupInstanceView(_serialization.Model): "capacity_reservations": {"key": "capacityReservations", "type": "[CapacityReservationInstanceViewWithName]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.capacity_reservations = None @@ -1050,7 +1072,9 @@ class CapacityReservationGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservation groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.CapacityReservationGroup] @@ -1097,7 +1121,7 @@ class CapacityReservationGroupUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationGroupInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1109,7 +1133,9 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CapacityReservationInstanceView(_serialization.Model): - """The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. + """The instance view of a capacity reservation that provides as snapshot of the runtime properties + of the capacity reservation that is managed by the platform and can change outside of control + plane operations. :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: @@ -1128,8 +1154,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1143,7 +1169,8 @@ def __init__( class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): - """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. + """The instance view of a capacity reservation that includes the name of the capacity reservation. + It is used for the response to the instance view of a capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1171,8 +1198,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1205,7 +1232,9 @@ class CapacityReservationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservations. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.CapacityReservation] @@ -1232,7 +1261,7 @@ class CapacityReservationProfile(_serialization.Model): "capacity_reservation_group": {"key": "capacityReservationGroup", "type": "SubResource"}, } - def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs): + def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs: Any) -> None: """ :keyword capacity_reservation_group: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough @@ -1245,7 +1274,8 @@ def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource" class CapacityReservationUpdate(UpdateResource): - """Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. + """Specifies information about the capacity reservation. Only tags and sku.capacity can be + updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1290,7 +1320,9 @@ class CapacityReservationUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1329,7 +1361,7 @@ class CapacityReservationUtilization(_serialization.Model): "virtual_machines_allocated": {"key": "virtualMachinesAllocated", "type": "[SubResourceReadOnly]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.virtual_machines_allocated = None @@ -1363,7 +1395,7 @@ class PirCommunityGalleryResource(_serialization.Model): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -1403,7 +1435,7 @@ class CommunityGallery(PirCommunityGalleryResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -1488,8 +1520,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGeneration"]] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -1575,8 +1607,8 @@ def __init__( unique_id: Optional[str] = None, published_date: Optional[datetime.datetime] = None, end_of_life_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -1609,7 +1641,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1652,7 +1684,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -1774,8 +1806,8 @@ def __init__( to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1868,7 +1900,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1886,7 +1918,7 @@ class DiskImageEncryption(_serialization.Model): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -1919,7 +1951,7 @@ class DataDiskImageEncryption(DiskImageEncryption): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -2017,8 +2049,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2068,7 +2100,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -2094,7 +2126,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -2106,7 +2140,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2172,8 +2209,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2211,7 +2248,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -2242,7 +2281,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.DedicatedHostGroup] @@ -2256,7 +2297,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2303,8 +2345,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2359,8 +2401,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2375,7 +2417,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2408,8 +2451,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2442,7 +2485,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.DedicatedHost] @@ -2456,7 +2499,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2514,8 +2558,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2545,7 +2589,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2560,7 +2605,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2575,7 +2620,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2021_07_01.models.DiffDiskOptions @@ -2600,8 +2647,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2021_07_01.models.DiffDiskOptions @@ -2631,7 +2678,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -2652,7 +2699,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2673,7 +2720,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2683,7 +2730,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -2693,7 +2743,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -2725,8 +2775,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2767,8 +2817,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2786,7 +2836,8 @@ def __init__( class EncryptionImages(_serialization.Model): - """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. + """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in + the gallery artifact. :ivar os_disk_image: Contains encryption settings for an OS disk image. :vartype os_disk_image: ~azure.mgmt.compute.v2021_07_01.models.OSDiskImageEncryption @@ -2804,8 +2855,8 @@ def __init__( *, os_disk_image: Optional["_models.OSDiskImageEncryption"] = None, data_disk_images: Optional[List["_models.DataDiskImageEncryption"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: Contains encryption settings for an OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2021_07_01.models.OSDiskImageEncryption @@ -2837,8 +2888,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -2912,8 +2963,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2939,7 +2990,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -3006,8 +3058,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3062,7 +3114,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.GalleryApplication] @@ -3104,7 +3158,7 @@ class UpdateResourceDefinition(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3177,8 +3231,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3267,8 +3321,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3305,7 +3359,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.GalleryApplicationVersion] @@ -3370,8 +3426,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3472,8 +3528,8 @@ def __init__( replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, manage_actions: Optional["_models.UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3568,8 +3624,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3600,7 +3656,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2021_07_01.models.ManagedArtifact @@ -3626,8 +3682,8 @@ class GalleryArtifactVersionSource(_serialization.Model): } def __init__( - self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. @@ -3670,8 +3726,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3723,8 +3779,8 @@ def __init__( lun: int, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3758,7 +3814,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -3871,8 +3927,8 @@ def __init__( disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -3946,7 +4002,7 @@ class GalleryImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the gallery image feature. :paramtype name: str @@ -3983,7 +4039,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery image definition publisher. Required. :paramtype publisher: str @@ -4019,7 +4075,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.GalleryImage] @@ -4132,8 +4188,8 @@ def __init__( disallowed: Optional["_models.Disallowed"] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4250,8 +4306,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4292,7 +4348,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery image versions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.GalleryImageVersion] @@ -4357,8 +4415,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -4416,8 +4474,8 @@ def __init__( source: Optional["_models.GalleryArtifactVersionSource"] = None, os_disk_image: Optional["_models.GalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.GalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source: The gallery artifact version source. :paramtype source: ~azure.mgmt.compute.v2021_07_01.models.GalleryArtifactVersionSource @@ -4484,8 +4542,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4524,7 +4582,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.Gallery] @@ -4566,8 +4624,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -4633,8 +4691,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4725,8 +4783,8 @@ def __init__( *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, vm_size_properties: Optional["_models.VMSizeProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -4788,7 +4846,9 @@ def __init__( class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -4851,8 +4911,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4930,8 +4990,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_07_01.models.SubResource @@ -5031,8 +5091,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_07_01.models.SubResource @@ -5098,7 +5158,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.Image] @@ -5179,8 +5239,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_07_01.models.SubResource @@ -5247,8 +5307,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -5264,7 +5329,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -5315,8 +5384,8 @@ def __init__( sku: Optional[str] = None, version: Optional[str] = None, shared_gallery_image_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -5376,8 +5445,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -5440,8 +5509,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5478,7 +5547,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -5521,8 +5592,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -5564,7 +5635,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -5597,7 +5668,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -5675,7 +5746,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -5692,7 +5763,10 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -5723,8 +5797,8 @@ def __init__( ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -5779,8 +5853,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -5834,8 +5908,8 @@ def __init__( *, patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, assessment_mode: Optional[Union[str, "_models.LinuxPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.Usage] @@ -5945,8 +6019,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5994,7 +6068,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -6017,7 +6091,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -6065,8 +6139,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -6113,7 +6187,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -6151,8 +6225,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6197,8 +6271,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6245,8 +6319,8 @@ def __init__( network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, network_interface_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -6292,8 +6366,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. "AutomaticRepairs" :paramtype service_name: str or @@ -6330,7 +6404,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -6338,7 +6412,9 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines `_. All required parameters must be populated in order to send to Azure. @@ -6429,8 +6505,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -6517,7 +6593,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -6539,7 +6615,7 @@ class OSDiskImageEncryption(DiskImageEncryption): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -6549,7 +6625,8 @@ def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -6643,8 +6720,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -6766,7 +6843,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -6818,8 +6895,8 @@ def __init__( patch_mode: Optional[Union[str, "_models.WindowsVMGuestPatchMode"]] = None, enable_hotpatching: Optional[bool] = None, assessment_mode: Optional[Union[str, "_models.WindowsPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ """ super().__init__(**kwargs) self.name = None @@ -6904,7 +6981,7 @@ class PirSharedGalleryResource(PirResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -6914,7 +6991,11 @@ def __init__(self, *, unique_id: Optional[str] = None, **kwargs): class Plan(_serialization.Model): - """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -6941,8 +7022,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -7033,8 +7114,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7077,7 +7158,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.ProximityPlacementGroup] @@ -7100,7 +7183,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7109,7 +7192,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class ProxyResource(_serialization.Model): - """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for an Azure Resource Manager proxy resource. It will not have + tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -7133,7 +7217,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7160,8 +7244,8 @@ def __init__( *, name: Optional[Union[str, "_models.PublicIPAddressSkuName"]] = None, tier: Optional[Union[str, "_models.PublicIPAddressSkuTier"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". :paramtype name: str or ~azure.mgmt.compute.v2021_07_01.models.PublicIPAddressSkuName @@ -7199,7 +7283,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -7216,7 +7300,8 @@ def __init__(self, *, publisher: str, name: str, product: str, **kwargs): class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2021_07_01.models.ResourceRange @@ -7234,8 +7319,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2021_07_01.models.ResourceRange @@ -7269,7 +7354,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -7306,7 +7391,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -7338,7 +7423,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -7403,8 +7488,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -7460,8 +7545,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -7542,7 +7627,7 @@ class ResourceSku(_serialization.Model): # pylint: disable=too-many-instance-at "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -7581,7 +7666,7 @@ class ResourceSkuCapabilities(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -7618,7 +7703,7 @@ class ResourceSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -7652,7 +7737,7 @@ class ResourceSkuCosts(_serialization.Model): "extended_unit": {"key": "extendedUnit", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.meter_id = None @@ -7693,7 +7778,7 @@ class ResourceSkuLocationInfo(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.location = None @@ -7724,7 +7809,7 @@ class ResourceSkuRestrictionInfo(_serialization.Model): "zones": {"key": "zones", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.locations = None @@ -7763,7 +7848,7 @@ class ResourceSkuRestrictions(_serialization.Model): "reason_code": {"key": "reasonCode", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type = None @@ -7793,7 +7878,7 @@ class ResourceSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of skus available for the subscription. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.ResourceSku] @@ -7828,7 +7913,7 @@ class ResourceSkuZoneDetails(_serialization.Model): "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -7887,8 +7972,8 @@ def __init__( *, exclude_disks: Optional[List["_models.ApiEntityReference"]] = None, time_created: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. @@ -7961,8 +8046,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8000,8 +8085,8 @@ def __init__( *, value: Optional[List["_models.RestorePointCollection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Gets the list of restore point collections. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.RestorePointCollection] @@ -8034,7 +8119,7 @@ class RestorePointCollectionSourceProperties(_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: Resource Id of the source resource used to create this restore point collection. :paramtype id: str @@ -8082,8 +8167,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8100,7 +8185,9 @@ def __init__( class RestorePointSourceMetadata(_serialization.Model): - """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + """Describes the properties of the Virtual Machine for which the restore point was created. The + properties provided are a subset and the snapshot of the overall Virtual Machine properties + captured at the time of the restore point creation. :ivar hardware_profile: Gets the hardware profile. :vartype hardware_profile: ~azure.mgmt.compute.v2021_07_01.models.HardwareProfile @@ -8143,8 +8230,8 @@ def __init__( vm_id: Optional[str] = None, security_profile: Optional["_models.SecurityProfile"] = None, location: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hardware_profile: Gets the hardware profile. :paramtype hardware_profile: ~azure.mgmt.compute.v2021_07_01.models.HardwareProfile @@ -8211,8 +8298,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Gets the logical unit number. :paramtype lun: int @@ -8276,8 +8363,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.compute.v2021_07_01.models.OperatingSystemType @@ -8324,8 +8411,8 @@ def __init__( *, os_disk: Optional["_models.RestorePointSourceVMOSDisk"] = None, data_disks: Optional[List["_models.RestorePointSourceVMDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -8361,7 +8448,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -8394,7 +8481,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -8458,8 +8545,8 @@ def __init__( pause_time_between_batches: Optional[str] = None, enable_cross_zone_upgrade: Optional[bool] = None, prioritize_unhealthy_instances: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -8528,7 +8615,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -8568,7 +8655,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -8628,7 +8715,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8683,8 +8770,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -8755,8 +8842,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -8809,8 +8896,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -8847,7 +8934,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -8880,7 +8967,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.RunCommandDocumentBase] @@ -8920,7 +9009,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -8949,7 +9040,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.InstanceViewStatus] @@ -8993,8 +9084,8 @@ def __init__( *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, force_deletion: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -9039,8 +9130,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -9081,8 +9172,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -9128,7 +9219,7 @@ class SharedGallery(PirSharedGalleryResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -9209,8 +9300,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGeneration"]] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -9275,7 +9366,9 @@ class SharedGalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.SharedGalleryImage] @@ -9326,8 +9419,8 @@ def __init__( unique_id: Optional[str] = None, published_date: Optional[datetime.datetime] = None, end_of_life_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -9364,7 +9457,9 @@ class SharedGalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images versions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.SharedGalleryImageVersion] @@ -9398,7 +9493,7 @@ class SharedGalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of shared galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.SharedGallery] @@ -9434,7 +9529,9 @@ class SharingProfile(_serialization.Model): "groups": {"key": "groups", "type": "[SharingProfileGroup]"}, } - def __init__(self, *, permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None, **kwargs): + def __init__( + self, *, permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword permissions: This property allows you to specify the permission of sharing gallery. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Private** @@ -9468,8 +9565,8 @@ def __init__( *, type: Optional[Union[str, "_models.SharingProfileGroupTypes"]] = None, ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: This property allows you to specify the type of sharing group. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Subscriptions** @@ -9512,8 +9609,8 @@ def __init__( *, operation_type: Union[str, "_models.SharingUpdateOperationTypes"], groups: Optional[List["_models.SharingProfileGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword operation_type: This property allows you to specify the operation type of gallery sharing update. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Add** @@ -9530,7 +9627,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -9549,8 +9648,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -9579,7 +9678,7 @@ class SoftDeletePolicy(_serialization.Model): "is_soft_delete_enabled": {"key": "isSoftDeleteEnabled", "type": "bool"}, } - def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword is_soft_delete_enabled: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. @@ -9590,7 +9689,10 @@ def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs): class SpotRestorePolicy(_serialization.Model): - """Specifies the Spot-Try-Restore properties for the virtual machine scale set. :code:`
`:code:`
` With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. + """Specifies the Spot-Try-Restore properties for the virtual machine scale set. + :code:`
`:code:`
` With this property customer can enable or disable automatic restore of + the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing + constraint. :ivar enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. @@ -9605,7 +9707,7 @@ class SpotRestorePolicy(_serialization.Model): "restore_timeout": {"key": "restoreTimeout", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing @@ -9631,7 +9733,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2021_07_01.models.SshPublicKey] @@ -9641,7 +9743,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -9659,7 +9762,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -9706,7 +9809,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -9767,8 +9872,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9805,7 +9910,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.SshPublicKeyResource] @@ -9835,7 +9942,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -9881,8 +9990,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -9923,7 +10032,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -9949,8 +10058,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9999,8 +10108,8 @@ def __init__( regional_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -10040,7 +10149,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -10107,8 +10218,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -10142,7 +10253,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -10157,7 +10269,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -10197,7 +10311,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -10243,7 +10357,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -10280,7 +10394,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -10319,8 +10433,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -10377,7 +10491,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -10406,7 +10520,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -10446,7 +10560,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -10487,7 +10601,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. @@ -10522,7 +10636,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -10530,7 +10644,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -10558,7 +10673,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -10606,8 +10723,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -10632,7 +10749,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -10863,8 +10980,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -11044,8 +11161,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -11116,7 +11233,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -11155,7 +11272,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -11203,7 +11322,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -11307,8 +11426,8 @@ def __init__( protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -11381,8 +11500,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -11459,8 +11578,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -11519,8 +11638,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -11552,7 +11671,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineExtension] @@ -11619,8 +11738,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -11679,7 +11798,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -11725,8 +11844,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -11786,8 +11905,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11884,8 +12003,8 @@ def __init__( hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, disallowed: Optional["_models.DisallowedConfiguration"] = None, features: Optional[List["_models.VirtualMachineImageFeature"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11944,7 +12063,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -11994,8 +12113,8 @@ def __init__( maximum_duration: Optional[str] = None, windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). @@ -12091,7 +12210,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -12197,8 +12316,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -12269,7 +12388,7 @@ class VirtualMachineIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -12302,7 +12421,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachine] @@ -12383,8 +12504,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, ip_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceIPConfiguration"]] = None, dscp_configuration: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The network interface configuration name. Required. :paramtype name: str @@ -12436,7 +12557,7 @@ class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_serialization.Mode "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -12516,8 +12637,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The IP configuration name. Required. :paramtype name: str @@ -12596,8 +12717,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -12676,8 +12797,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersions"]] = None, public_ip_allocation_method: Optional[Union[str, "_models.PublicIPAllocationMethod"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -12735,7 +12856,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm @@ -12747,7 +12868,8 @@ def __init__(self, *, domain_name_label: str, **kwargs): class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12758,7 +12880,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12857,8 +12979,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -12946,8 +13068,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -13001,8 +13123,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -13037,7 +13159,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineRunCommand] @@ -13119,8 +13243,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -13314,8 +13438,8 @@ def __init__( # pylint: disable=too-many-locals scale_in_policy: Optional["_models.ScaleInPolicy"] = None, orchestration_mode: Optional[Union[str, "_models.OrchestrationMode"]] = None, spot_restore_policy: Optional["_models.SpotRestorePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -13477,8 +13601,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -13606,8 +13730,8 @@ def __init__( protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -13679,8 +13803,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineScaleSetExtension] @@ -13716,8 +13840,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -13814,8 +13938,8 @@ def __init__( protected_settings: Optional[JSON] = None, provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -13909,8 +14033,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -13953,7 +14077,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -13991,7 +14115,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2021_07_01.models.InstanceViewStatus] @@ -14021,7 +14145,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -14107,8 +14231,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -14173,7 +14297,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -14208,8 +14332,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -14244,7 +14372,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineScaleSet] @@ -14278,7 +14408,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineScaleSetSku] @@ -14312,7 +14444,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineScaleSet] @@ -14350,8 +14484,8 @@ def __init__( *, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -14434,8 +14568,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -14486,7 +14620,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -14526,8 +14660,8 @@ def __init__( health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -14621,8 +14755,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -14748,8 +14882,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -14867,8 +15001,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -14921,7 +15055,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -14944,7 +15078,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -14970,7 +15104,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -15009,7 +15145,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -15048,7 +15184,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -15090,8 +15226,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -15198,8 +15334,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -15259,7 +15395,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -15328,8 +15466,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -15435,8 +15573,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -15508,8 +15646,8 @@ def __init__( List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -15530,7 +15668,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2021_07_01.models.CachingTypes @@ -15570,8 +15709,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2021_07_01.models.CachingTypes @@ -15628,8 +15767,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -15679,8 +15818,8 @@ def __init__( idle_timeout_in_minutes: Optional[int] = None, dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -15724,8 +15863,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2021_07_01.models.ImageReference @@ -15799,8 +15938,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -16006,8 +16145,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -16177,8 +16316,8 @@ def __init__( protected_settings: Optional[JSON] = None, instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -16237,7 +16376,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -16269,7 +16410,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -16348,8 +16489,8 @@ def __init__( settings: Optional[JSON] = None, protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -16405,7 +16546,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -16433,7 +16574,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -16515,8 +16656,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -16581,7 +16722,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineScaleSetVM] @@ -16613,8 +16756,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -16722,8 +16865,8 @@ def __init__( user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -16824,8 +16967,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -16881,8 +17024,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -16923,7 +17066,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.VirtualMachineSize] @@ -16989,7 +17132,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -17025,7 +17168,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -17227,8 +17370,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -17414,8 +17557,8 @@ def __init__( tags: Optional[str] = None, order: Optional[int] = None, configuration_reference: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Optional, Specifies a passthrough value for more generic context. :paramtype tags: str @@ -17451,7 +17594,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -17486,7 +17629,9 @@ class VMSizeProperties(_serialization.Model): "v_cpus_per_core": {"key": "vCPUsPerCore", "type": "int"}, } - def __init__(self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs): + def __init__( + self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword v_cpus_available: Specifies the number of vCPUs available for the VM. :code:`
`:code:`
` When this property is not specified in the request body the default @@ -17556,8 +17701,8 @@ def __init__( additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -17629,8 +17774,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -17666,7 +17811,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2021_07_01.models.WinRMListener] @@ -17706,8 +17851,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_metadata.json index 9abc85a8f0ae..d7b05a6b7ae1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_compute_management_client_enums.py index fdc41c4c447e..456af4959d77 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_compute_management_client_enums.py @@ -21,34 +21,34 @@ class AccessLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" - #: Create a new disk by using a deep copy process, where the resource creation is considered - #: complete only after all data has been copied from the source. + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" COPY_START = "CopyStart" - #: Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk by importing additional blob for VM guest state specified by securityDataUri in storage - #: account specified by storageAccountId + """Create a new disk by using a deep copy process, where the resource creation is considered + #: complete only after all data has been copied from the source.""" IMPORT_SECURE = "ImportSecure" - #: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk and upload using write token in both disk and VM guest state + """Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk by importing additional blob for VM guest state specified by securityDataUri in storage + #: account specified by storageAccountId""" UPLOAD_PREPARED_SECURE = "UploadPreparedSecure" + """Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk and upload using write token in both disk and VM guest state""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -65,88 +65,88 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" - #: Confidential VM supported disk and VM guest state would be encrypted with customer managed key. + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" CONFIDENTIAL_VM_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVmEncryptedWithCustomerKey" + """Confidential VM supported disk and VM guest state would be encrypted with customer managed key.""" class DiskSecurityTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the SecurityType of the VM. Applicable for OS disks only.""" - #: Trusted Launch provides security features such as secure boot and virtual Trusted Platform - #: Module (vTPM) TRUSTED_LAUNCH = "TrustedLaunch" - #: Indicates Confidential VM disk with only VM guest state encrypted + """Trusted Launch provides security features such as secure boot and virtual Trusted Platform + #: Module (vTPM)""" CONFIDENTIAL_VM_VMGUEST_STATE_ONLY_ENCRYPTED_WITH_PLATFORM_KEY = ( "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" ) - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform - #: managed key + """Indicates Confidential VM disk with only VM guest state encrypted""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_PLATFORM_KEY = "ConfidentialVM_DiskEncryptedWithPlatformKey" - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer - #: managed key + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform + #: managed key""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVM_DiskEncryptedWithCustomerKey" + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer + #: managed key""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently attached to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is attached to a stopped-deallocated VM. + """The disk is currently attached to a running VM.""" RESERVED = "Reserved" - #: The disk is attached to a VM which is in hibernated state. + """The disk is attached to a stopped-deallocated VM.""" FROZEN = "Frozen" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is attached to a VM which is in hibernated state.""" ACTIVE_SAS = "ActiveSAS" - #: The disk is attached to a VM in hibernated state and has an active SAS URI associated with it. + """The disk currently has an Active SAS Uri associated with it.""" ACTIVE_SAS_FROZEN = "ActiveSASFrozen" - #: A disk is ready to be created by upload by requesting a write token. + """The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" - #: Premium SSD zone redundant storage. Best for the production workloads that need storage - #: resiliency against zone failures. + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" PREMIUM_ZRS = "Premium_ZRS" - #: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications - #: and dev/test that need storage resiliency against zone failures. + """Premium SSD zone redundant storage. Best for the production workloads that need storage + #: resiliency against zone failures.""" STANDARD_SSD_ZRS = "StandardSSD_ZRS" + """Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications + #: and dev/test that need storage resiliency against zone failures.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -165,12 +165,12 @@ class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -200,22 +200,22 @@ class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiv class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for controlling export on the disk.""" - #: You can generate a SAS URI to access the underlying data of the disk publicly on the internet - #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from - #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. ENABLED = "Enabled" - #: You cannot access the underlying data of the disk publicly on the internet even when - #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your - #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. + """You can generate a SAS URI to access the underlying data of the disk publicly on the internet + #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from + #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" DISABLED = "Disabled" + """You cannot access the underlying data of the disk publicly on the internet even when + #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your + #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_models_py3.py index 9d3aaab76eb3..1e0bccc3e5e3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -37,7 +37,7 @@ class AccessUri(_serialization.Model): "security_data_access_sas": {"key": "securityDataAccessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -75,8 +75,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_08_01.models.ApiErrorBase] @@ -115,8 +115,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -202,8 +202,8 @@ def __init__( upload_size_bytes: Optional[int] = None, logical_sector_size: Optional[int] = None, security_data_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", @@ -282,7 +282,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -507,8 +507,8 @@ def __init__( # pylint: disable=too-many-locals security_profile: Optional["_models.DiskSecurityProfile"] = None, completion_percent: Optional[float] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -689,8 +689,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -728,7 +728,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2021_08_01.models.DiskAccess] @@ -752,7 +752,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -844,8 +844,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -896,7 +896,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_08_01.models.DiskEncryptionSet] @@ -948,8 +950,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -996,7 +998,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2021_08_01.models.Disk] @@ -1034,7 +1036,7 @@ class ProxyOnlyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1145,8 +1147,8 @@ def __init__( public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, disk_access_id: Optional[str] = None, completion_percent: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". @@ -1214,7 +1216,9 @@ class DiskRestorePointList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk restore points. Required. :paramtype value: list[~azure.mgmt.compute.v2021_08_01.models.DiskRestorePoint] @@ -1250,8 +1254,8 @@ def __init__( *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, secure_vm_disk_encryption_set_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. Known values are: "TrustedLaunch", "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", @@ -1268,7 +1272,8 @@ def __init__( class DiskSku(_serialization.Model): - """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. + """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, + Premium_ZRS, or StandardSSD_ZRS. Variables are only populated by the server, and will be ignored when sending a request. @@ -1288,7 +1293,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", and "StandardSSD_ZRS". @@ -1424,8 +1429,8 @@ def __init__( supported_capabilities: Optional["_models.SupportedCapabilities"] = None, supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1534,8 +1539,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -1551,7 +1556,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -1581,7 +1587,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None @@ -1630,8 +1638,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1672,8 +1680,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1706,8 +1714,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -1750,8 +1758,8 @@ def __init__( access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, get_secure_vm_guest_state_sas: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2021_08_01.models.AccessLevel @@ -1789,7 +1797,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1817,7 +1827,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1852,7 +1864,7 @@ class KeyForDiskEncryptionSet(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs): + def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk @@ -1868,7 +1880,8 @@ def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault" class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -1888,7 +1901,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2021_08_01.models.SourceVault @@ -1921,7 +1934,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2021_08_01.models.SourceVault @@ -1950,7 +1963,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2003,8 +2016,8 @@ def __init__( self, *, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_link_service_connection_state: A collection of information about the state of the connection between DiskAccess and Virtual Network. @@ -2040,8 +2053,8 @@ def __init__( *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Array of private endpoint connections. :paramtype value: list[~azure.mgmt.compute.v2021_08_01.models.PrivateEndpointConnection] @@ -2090,7 +2103,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -2115,7 +2128,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2021_08_01.models.PrivateLinkResource] @@ -2125,7 +2138,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2150,8 +2164,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2181,7 +2195,7 @@ class PropertyUpdatesInProgress(_serialization.Model): "target_tier": {"key": "targetTier", "type": "str"}, } - def __init__(self, *, target_tier: Optional[str] = None, **kwargs): + def __init__(self, *, target_tier: Optional[str] = None, **kwargs: Any) -> None: """ :keyword target_tier: The target performance tier of the disk if a tier change operation is in progress. @@ -2220,7 +2234,9 @@ class PurchasePlan(_serialization.Model): "promotion_code": {"key": "promotionCode", "type": "str"}, } - def __init__(self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs): + def __init__( + self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword name: The plan ID. Required. :paramtype name: str @@ -2261,7 +2277,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -2292,7 +2308,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -2452,8 +2468,8 @@ def __init__( # pylint: disable=too-many-locals supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, completion_percent: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2561,7 +2577,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2021_08_01.models.Snapshot] @@ -2575,7 +2591,9 @@ def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] class SnapshotSku(_serialization.Model): - """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. + """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + parameter for incremental snapshot and the default behavior is the SKU will be set to the same + sku as the previous snapshot. Variables are only populated by the server, and will be ignored when sending a request. @@ -2594,7 +2612,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -2676,8 +2696,8 @@ def __init__( supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, supported_capabilities: Optional["_models.SupportedCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2731,7 +2751,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -2741,7 +2762,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -2751,7 +2772,8 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class SupportedCapabilities(_serialization.Model): - """List of supported capabilities (like accelerated networking) persisted on the disk resource for VM use. + """List of supported capabilities (like accelerated networking) persisted on the disk resource for + VM use. :ivar accelerated_network: True if the image from which the OS disk is created supports accelerated networking. @@ -2762,7 +2784,7 @@ class SupportedCapabilities(_serialization.Model): "accelerated_network": {"key": "acceleratedNetwork", "type": "bool"}, } - def __init__(self, *, accelerated_network: Optional[bool] = None, **kwargs): + def __init__(self, *, accelerated_network: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword accelerated_network: True if the image from which the OS disk is created supports accelerated networking. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_metadata.json index f21d192644f0..dcf50254a425 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/models/_compute_management_client_enums.py index f83d5cffbd34..41c3cc343a2f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/models/_compute_management_client_enums.py @@ -204,3 +204,4 @@ class StorageAccountType(str, Enum, metaclass=CaseInsensitiveEnumMeta): STANDARD_LRS = "Standard_LRS" STANDARD_ZRS = "Standard_ZRS" PREMIUM_LRS = "Premium_LRS" + STANDARD_SSD_LRS = "StandardSSD_LRS" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/models/_models_py3.py index a94d9dc8a357..4ad3224724cb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/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__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_10_01.models.ApiErrorBase] @@ -88,8 +88,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -145,8 +145,8 @@ def __init__( publisher_contact: Optional[str] = None, eula: Optional[str] = None, public_name_prefix: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher_uri: Community gallery publisher uri. :paramtype publisher_uri: str @@ -178,7 +178,7 @@ class DiskImageEncryption(_serialization.Model): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -211,7 +211,7 @@ class DataDiskImageEncryption(DiskImageEncryption): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -236,7 +236,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -246,7 +246,8 @@ def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): class EncryptionImages(_serialization.Model): - """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. + """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in + the gallery artifact. :ivar os_disk_image: Contains encryption settings for an OS disk image. :vartype os_disk_image: ~azure.mgmt.compute.v2021_10_01.models.OSDiskImageEncryption @@ -264,8 +265,8 @@ def __init__( *, os_disk_image: Optional["_models.OSDiskImageEncryption"] = None, data_disk_images: Optional[List["_models.DataDiskImageEncryption"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: Contains encryption settings for an OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2021_10_01.models.OSDiskImageEncryption @@ -312,7 +313,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -393,8 +394,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -421,7 +422,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -488,8 +490,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -544,7 +546,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2021_10_01.models.GalleryApplication] @@ -586,7 +590,7 @@ class UpdateResourceDefinition(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -659,8 +663,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -749,8 +753,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -787,7 +791,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_10_01.models.GalleryApplicationVersion] @@ -821,8 +827,8 @@ class GalleryArtifactPublishingProfileBase(_serialization.Model): used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -858,8 +864,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, target_extended_locations: Optional[List["_models.GalleryTargetExtendedLocation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -875,8 +881,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -923,8 +929,8 @@ class GalleryApplicationVersionPublishingProfile( used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -973,8 +979,8 @@ def __init__( target_extended_locations: Optional[List["_models.GalleryTargetExtendedLocation"]] = None, manage_actions: Optional["_models.UserArtifactManage"] = None, enable_health_check: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -990,8 +996,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -1074,8 +1080,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1106,7 +1112,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2021_10_01.models.ManagedArtifact @@ -1132,8 +1138,8 @@ class GalleryArtifactVersionSource(_serialization.Model): } def __init__( - self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. @@ -1176,8 +1182,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -1229,8 +1235,8 @@ def __init__( lun: int, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -1265,8 +1271,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.GalleryExtendedLocationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: :paramtype name: str @@ -1296,7 +1302,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -1414,8 +1420,8 @@ def __init__( purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1493,7 +1499,7 @@ class GalleryImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the gallery image feature. :paramtype name: str @@ -1530,7 +1536,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery image definition publisher. Required. :paramtype publisher: str @@ -1566,7 +1572,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2021_10_01.models.GalleryImage] @@ -1684,8 +1690,8 @@ def __init__( purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1806,8 +1812,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1848,7 +1854,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery image versions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_10_01.models.GalleryImageVersion] @@ -1882,8 +1890,8 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -1919,8 +1927,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, target_extended_locations: Optional[List["_models.GalleryTargetExtendedLocation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -1936,8 +1944,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -1983,8 +1991,8 @@ def __init__( source: Optional["_models.GalleryArtifactVersionSource"] = None, os_disk_image: Optional["_models.GalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.GalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source: The gallery artifact version source. :paramtype source: ~azure.mgmt.compute.v2021_10_01.models.GalleryArtifactVersionSource @@ -2051,8 +2059,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2091,7 +2099,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2021_10_01.models.Gallery] @@ -2133,8 +2141,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -2156,8 +2164,8 @@ class GalleryTargetExtendedLocation(_serialization.Model): created per extended location. This property is updatable. :vartype extended_location_replica_count: int :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. @@ -2180,8 +2188,8 @@ def __init__( extended_location_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. :paramtype name: str @@ -2191,8 +2199,8 @@ def __init__( created per extended location. This property is updatable. :paramtype extended_location_replica_count: int :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :keyword encryption: Optional. Allows users to provide customer managed keys for encrypting the @@ -2266,8 +2274,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2309,8 +2317,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2339,7 +2352,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -2368,7 +2383,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -2397,8 +2412,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, security_profile: Optional["_models.OSDiskImageSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -2431,8 +2446,8 @@ def __init__( *, confidential_vm_encryption_type: Optional[Union[str, "_models.ConfidentialVMEncryptionType"]] = None, secure_vm_disk_encryption_set_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword confidential_vm_encryption_type: confidential VM encryption types. Known values are: "EncryptedVMGuestStateOnlyWithPmk", "EncryptedWithPmk", and "EncryptedWithCmk". @@ -2447,7 +2462,8 @@ def __init__( class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2021_10_01.models.ResourceRange @@ -2465,8 +2481,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2021_10_01.models.ResourceRange @@ -2508,7 +2524,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -2541,7 +2557,7 @@ class RegionalSharingStatus(_serialization.Model): "details": {"key": "details", "type": "str"}, } - def __init__(self, *, region: Optional[str] = None, details: Optional[str] = None, **kwargs): + def __init__(self, *, region: Optional[str] = None, details: Optional[str] = None, **kwargs: Any) -> None: """ :keyword region: Region name. :paramtype region: str @@ -2577,7 +2593,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -2603,8 +2619,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -2648,8 +2664,8 @@ def __init__( *, permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None, community_gallery_info: Optional["_models.CommunityGalleryInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword permissions: This property allows you to specify the permission of sharing gallery. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Private** @@ -2688,8 +2704,8 @@ def __init__( *, type: Optional[Union[str, "_models.SharingProfileGroupTypes"]] = None, ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: This property allows you to specify the type of sharing group. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Subscriptions** @@ -2725,7 +2741,7 @@ class SharingStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalSharingStatus]"}, } - def __init__(self, *, summary: Optional[List["_models.RegionalSharingStatus"]] = None, **kwargs): + def __init__(self, *, summary: Optional[List["_models.RegionalSharingStatus"]] = None, **kwargs: Any) -> None: """ :keyword summary: Summary of all regional sharing status. :paramtype summary: list[~azure.mgmt.compute.v2021_10_01.models.RegionalSharingStatus] @@ -2764,8 +2780,8 @@ def __init__( *, operation_type: Union[str, "_models.SharingUpdateOperationTypes"], groups: Optional[List["_models.SharingProfileGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword operation_type: This property allows you to specify the operation type of gallery sharing update. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Add** @@ -2793,7 +2809,7 @@ class SoftDeletePolicy(_serialization.Model): "is_soft_delete_enabled": {"key": "isSoftDeleteEnabled", "type": "bool"}, } - def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword is_soft_delete_enabled: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. @@ -2814,8 +2830,8 @@ class TargetRegion(_serialization.Model): region. This property is updatable. :vartype regional_replica_count: int :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. @@ -2840,8 +2856,8 @@ def __init__( regional_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -2849,8 +2865,8 @@ def __init__( region. This property is updatable. :paramtype regional_replica_count: int :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2021_10_01.models.StorageAccountType :keyword encryption: Optional. Allows users to provide customer managed keys for encrypting the @@ -2892,7 +2908,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -2933,7 +2949,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_metadata.json index b0edf8fd5a7d..0ec054b4cae1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_compute_management_client_enums.py index 204ad2286d00..a5701cc2ead5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_compute_management_client_enums.py @@ -266,10 +266,10 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_models_py3.py index cb86c7cd54ef..2339c31accc0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/models/_models_py3.py @@ -46,8 +46,8 @@ class AdditionalCapabilities(_serialization.Model): } def __init__( - self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs - ): + self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -64,7 +64,9 @@ def __init__( class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -96,8 +98,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -133,7 +135,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -174,8 +176,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_11_01.models.ApiErrorBase] @@ -214,8 +216,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -243,7 +245,9 @@ class ApplicationProfile(_serialization.Model): "gallery_applications": {"key": "galleryApplications", "type": "[VMGalleryApplication]"}, } - def __init__(self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs): + def __init__( + self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs: Any + ) -> None: """ :keyword gallery_applications: Specifies the gallery applications that should be made available to the VM/VMSS. @@ -279,8 +283,8 @@ def __init__( *, enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -316,7 +320,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -356,8 +360,8 @@ def __init__( enabled: Optional[bool] = None, grace_period: Optional[str] = None, repair_action: Optional[Union[str, "_models.RepairAction"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -413,7 +417,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -429,7 +433,15 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Availability sets + overview `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -496,8 +508,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -550,7 +562,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.AvailabilitySet] @@ -574,7 +588,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -584,7 +598,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -629,8 +644,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -710,7 +725,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -724,7 +739,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -745,7 +761,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -766,7 +782,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -781,7 +800,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -825,7 +844,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -917,8 +936,8 @@ def __init__( sku: "_models.Sku", tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -949,7 +968,10 @@ def __init__( class CapacityReservationGroup(Resource): - """Specifies information about the capacity reservation group that the capacity reservations should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. + """Specifies information about the capacity reservation group that the capacity reservations + should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be + added to a capacity reservation group at creation time. An existing capacity reservation cannot + be added or moved to another capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1007,8 +1029,8 @@ class CapacityReservationGroup(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1046,7 +1068,7 @@ class CapacityReservationGroupInstanceView(_serialization.Model): "capacity_reservations": {"key": "capacityReservations", "type": "[CapacityReservationInstanceViewWithName]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.capacity_reservations = None @@ -1073,7 +1095,9 @@ class CapacityReservationGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservation groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.CapacityReservationGroup] @@ -1120,7 +1144,7 @@ class CapacityReservationGroupUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationGroupInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1132,7 +1156,9 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CapacityReservationInstanceView(_serialization.Model): - """The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. + """The instance view of a capacity reservation that provides as snapshot of the runtime properties + of the capacity reservation that is managed by the platform and can change outside of control + plane operations. :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: @@ -1151,8 +1177,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1166,7 +1192,8 @@ def __init__( class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): - """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. + """The instance view of a capacity reservation that includes the name of the capacity reservation. + It is used for the response to the instance view of a capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1194,8 +1221,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1228,7 +1255,9 @@ class CapacityReservationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservations. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.CapacityReservation] @@ -1255,7 +1284,7 @@ class CapacityReservationProfile(_serialization.Model): "capacity_reservation_group": {"key": "capacityReservationGroup", "type": "SubResource"}, } - def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs): + def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs: Any) -> None: """ :keyword capacity_reservation_group: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough @@ -1268,7 +1297,8 @@ def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource" class CapacityReservationUpdate(UpdateResource): - """Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. + """Specifies information about the capacity reservation. Only tags and sku.capacity can be + updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1318,7 +1348,9 @@ class CapacityReservationUpdate(UpdateResource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1358,7 +1390,7 @@ class CapacityReservationUtilization(_serialization.Model): "virtual_machines_allocated": {"key": "virtualMachinesAllocated", "type": "[SubResourceReadOnly]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.virtual_machines_allocated = None @@ -1381,7 +1413,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1424,7 +1456,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -1546,8 +1578,8 @@ def __init__( to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1640,7 +1672,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1735,8 +1767,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1787,7 +1819,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1813,7 +1845,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1825,7 +1859,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1891,8 +1928,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1930,7 +1967,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -1961,7 +2000,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.DedicatedHostGroup] @@ -1975,7 +2016,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2022,8 +2064,8 @@ def __init__( zones: Optional[List[str]] = None, platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2078,8 +2120,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2094,7 +2136,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2127,8 +2170,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2161,7 +2204,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.DedicatedHost] @@ -2175,7 +2218,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2238,8 +2282,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2270,7 +2314,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2285,7 +2330,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2300,7 +2345,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2021_11_01.models.DiffDiskOptions @@ -2325,8 +2372,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2021_11_01.models.DiffDiskOptions @@ -2357,7 +2404,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2378,7 +2425,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2388,7 +2435,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -2398,7 +2448,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -2430,8 +2480,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2472,8 +2522,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2509,8 +2559,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin replication_status: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Disk restore point Id. :paramtype id: str @@ -2533,7 +2583,7 @@ class DiskRestorePointReplicationStatus(_serialization.Model): "status": {"key": "status", "type": "object"}, } - def __init__(self, *, status: Optional[JSON] = None, **kwargs): + def __init__(self, *, status: Optional[JSON] = None, **kwargs: Any) -> None: """ :keyword status: The resource status information. :paramtype status: JSON @@ -2561,8 +2611,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -2642,8 +2692,8 @@ def __init__( *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, vm_size_properties: Optional["_models.VMSizeProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -2705,7 +2755,9 @@ def __init__( class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -2768,8 +2820,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2847,8 +2899,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_11_01.models.SubResource @@ -2948,8 +3000,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_11_01.models.SubResource @@ -3015,7 +3067,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.Image] @@ -3096,8 +3148,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2021_11_01.models.SubResource @@ -3147,7 +3199,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -3207,8 +3263,8 @@ def __init__( version: Optional[str] = None, shared_gallery_image_id: Optional[str] = None, community_gallery_image_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3276,8 +3332,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -3340,8 +3396,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3378,7 +3434,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -3421,8 +3479,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -3464,7 +3522,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -3497,7 +3555,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -3575,7 +3633,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -3592,7 +3650,10 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3623,8 +3684,8 @@ def __init__( ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3679,8 +3740,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -3734,8 +3795,8 @@ def __init__( *, patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, assessment_mode: Optional[Union[str, "_models.LinuxPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.Usage] @@ -3845,8 +3906,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -3894,7 +3955,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -3917,7 +3978,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -3965,8 +4026,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4029,8 +4090,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4078,8 +4139,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4126,8 +4187,8 @@ def __init__( network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, network_interface_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4173,8 +4234,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. "AutomaticRepairs" :paramtype service_name: str or @@ -4211,7 +4272,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -4219,7 +4280,9 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines `_. All required parameters must be populated in order to send to Azure. @@ -4310,8 +4373,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -4398,7 +4461,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -4409,7 +4472,8 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4502,8 +4566,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4624,7 +4688,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -4676,8 +4740,8 @@ def __init__( patch_mode: Optional[Union[str, "_models.WindowsVMGuestPatchMode"]] = None, enable_hotpatching: Optional[bool] = None, assessment_mode: Optional[Union[str, "_models.WindowsPatchAssessmentMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -4738,8 +4806,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -4830,8 +4898,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -4874,7 +4942,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.ProximityPlacementGroup] @@ -4897,7 +4967,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -4906,7 +4976,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class ProxyResource(_serialization.Model): - """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for an Azure Resource Manager proxy resource. It will not have + tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -4930,7 +5001,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -4957,8 +5028,8 @@ def __init__( *, name: Optional[Union[str, "_models.PublicIPAddressSkuName"]] = None, tier: Optional[Union[str, "_models.PublicIPAddressSkuTier"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". :paramtype name: str or ~azure.mgmt.compute.v2021_11_01.models.PublicIPAddressSkuName @@ -4996,7 +5067,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -5034,7 +5105,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -5099,8 +5170,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5198,8 +5269,8 @@ def __init__( exclude_disks: Optional[List["_models.ApiEntityReference"]] = None, time_created: Optional[datetime.datetime] = None, source_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. @@ -5277,8 +5348,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5316,8 +5387,8 @@ def __init__( *, value: Optional[List["_models.RestorePointCollection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Gets the list of restore point collections. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.RestorePointCollection] @@ -5350,7 +5421,7 @@ class RestorePointCollectionSourceProperties(_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: Resource Id of the source resource used to create this restore point collection. :paramtype id: str @@ -5398,8 +5469,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5435,8 +5506,8 @@ def __init__( *, disk_restore_points: Optional[List["_models.DiskRestorePointInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_restore_points: The disk restore points information. :paramtype disk_restore_points: @@ -5450,7 +5521,9 @@ def __init__( class RestorePointSourceMetadata(_serialization.Model): - """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + """Describes the properties of the Virtual Machine for which the restore point was created. The + properties provided are a subset and the snapshot of the overall Virtual Machine properties + captured at the time of the restore point creation. :ivar hardware_profile: Gets the hardware profile. :vartype hardware_profile: ~azure.mgmt.compute.v2021_11_01.models.HardwareProfile @@ -5493,8 +5566,8 @@ def __init__( vm_id: Optional[str] = None, security_profile: Optional["_models.SecurityProfile"] = None, location: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hardware_profile: Gets the hardware profile. :paramtype hardware_profile: ~azure.mgmt.compute.v2021_11_01.models.HardwareProfile @@ -5561,8 +5634,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Gets the logical unit number. :paramtype lun: int @@ -5626,8 +5699,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.compute.v2021_11_01.models.OperatingSystemType @@ -5674,8 +5747,8 @@ def __init__( *, os_disk: Optional["_models.RestorePointSourceVMOSDisk"] = None, data_disks: Optional[List["_models.RestorePointSourceVMDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -5711,7 +5784,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -5744,7 +5817,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -5808,8 +5881,8 @@ def __init__( pause_time_between_batches: Optional[str] = None, enable_cross_zone_upgrade: Optional[bool] = None, prioritize_unhealthy_instances: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -5878,7 +5951,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -5918,7 +5991,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -5978,7 +6051,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6033,8 +6106,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6105,8 +6178,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6159,8 +6232,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -6197,7 +6270,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6230,7 +6303,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.RunCommandDocumentBase] @@ -6270,7 +6345,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6299,7 +6376,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.InstanceViewStatus] @@ -6343,8 +6420,8 @@ def __init__( *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, force_deletion: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -6389,8 +6466,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6431,8 +6508,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -6456,7 +6533,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -6475,8 +6554,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -6494,7 +6573,10 @@ def __init__( class SpotRestorePolicy(_serialization.Model): - """Specifies the Spot-Try-Restore properties for the virtual machine scale set. :code:`
`:code:`
` With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. + """Specifies the Spot-Try-Restore properties for the virtual machine scale set. + :code:`
`:code:`
` With this property customer can enable or disable automatic restore of + the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing + constraint. :ivar enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. @@ -6509,7 +6591,7 @@ class SpotRestorePolicy(_serialization.Model): "restore_timeout": {"key": "restoreTimeout", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing @@ -6535,7 +6617,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2021_11_01.models.SshPublicKey] @@ -6545,7 +6627,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6563,7 +6646,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6610,7 +6693,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -6671,8 +6756,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6709,7 +6794,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.SshPublicKeyResource] @@ -6739,7 +6826,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -6785,8 +6874,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -6827,7 +6916,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -6853,8 +6942,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -6883,7 +6972,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -6950,8 +7041,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -6985,7 +7076,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7000,7 +7092,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7040,7 +7134,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -7086,7 +7180,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -7123,7 +7217,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7162,8 +7256,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -7220,7 +7314,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -7249,7 +7343,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -7282,7 +7376,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -7290,7 +7384,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7318,7 +7413,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7366,8 +7463,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -7392,7 +7489,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -7628,8 +7725,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7810,8 +7907,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -7882,7 +7979,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -7921,7 +8018,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -7969,7 +8068,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -8078,8 +8177,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8156,8 +8255,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -8234,8 +8333,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8294,8 +8393,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -8327,7 +8426,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineExtension] @@ -8399,8 +8498,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8463,7 +8562,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8509,8 +8608,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -8570,8 +8669,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8672,8 +8771,8 @@ def __init__( disallowed: Optional["_models.DisallowedConfiguration"] = None, features: Optional[List["_models.VirtualMachineImageFeature"]] = None, architecture: Optional[Union[str, "_models.ArchitectureTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8735,7 +8834,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -8785,8 +8884,8 @@ def __init__( maximum_duration: Optional[str] = None, windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). @@ -8882,7 +8981,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8988,8 +9087,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -9060,7 +9159,7 @@ class VirtualMachineIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -9093,7 +9192,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachine] @@ -9174,8 +9275,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, ip_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceIPConfiguration"]] = None, dscp_configuration: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The network interface configuration name. Required. :paramtype name: str @@ -9227,7 +9328,7 @@ class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_serialization.Mode "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -9307,8 +9408,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The IP configuration name. Required. :paramtype name: str @@ -9387,8 +9488,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -9467,8 +9568,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersions"]] = None, public_ip_allocation_method: Optional[Union[str, "_models.PublicIPAllocationMethod"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -9527,7 +9628,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm @@ -9539,7 +9640,8 @@ def __init__(self, *, domain_name_label: str, **kwargs): class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9550,7 +9652,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9649,8 +9751,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9738,8 +9840,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -9793,8 +9895,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -9829,7 +9931,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineRunCommand] @@ -9911,8 +10015,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10111,8 +10215,8 @@ def __init__( # pylint: disable=too-many-locals scale_in_policy: Optional["_models.ScaleInPolicy"] = None, orchestration_mode: Optional[Union[str, "_models.OrchestrationMode"]] = None, spot_restore_policy: Optional["_models.SpotRestorePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10275,8 +10379,8 @@ def __init__( managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -10409,8 +10513,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -10486,8 +10590,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineScaleSetExtension] @@ -10523,8 +10627,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -10626,8 +10730,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -10692,7 +10796,7 @@ class VirtualMachineScaleSetHardwareProfile(_serialization.Model): "vm_size_properties": {"key": "vmSizeProperties", "type": "VMSizeProperties"}, } - def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs): + def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs: Any) -> None: """ :keyword vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. :code:`
`:code:`
` Please follow the @@ -10749,8 +10853,8 @@ def __init__( user_assigned_identities: Optional[ Dict[str, "_models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -10793,7 +10897,7 @@ class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(_serialization.M "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -10831,7 +10935,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2021_11_01.models.InstanceViewStatus] @@ -10861,7 +10965,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -10947,8 +11051,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11013,7 +11117,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -11048,8 +11152,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -11084,7 +11192,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineScaleSet] @@ -11118,7 +11228,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineScaleSetSku] @@ -11152,7 +11264,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineScaleSet] @@ -11194,8 +11308,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -11281,8 +11395,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11333,7 +11447,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -11373,8 +11487,8 @@ def __init__( health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -11468,8 +11582,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -11601,8 +11715,8 @@ def __init__( linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -11725,8 +11839,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -11780,7 +11894,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -11803,7 +11917,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -11829,7 +11943,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -11868,7 +11984,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -11907,7 +12023,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -11949,8 +12065,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -12057,8 +12173,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12118,7 +12234,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -12187,8 +12305,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12294,8 +12412,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12367,8 +12485,8 @@ def __init__( List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -12389,7 +12507,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2021_11_01.models.CachingTypes @@ -12429,8 +12548,8 @@ def __init__( image: Optional["_models.VirtualHardDisk"] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2021_11_01.models.CachingTypes @@ -12487,8 +12606,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -12542,8 +12661,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, public_ip_prefix: Optional["_models.SubResource"] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -12590,8 +12709,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2021_11_01.models.ImageReference @@ -12665,8 +12784,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -12872,8 +12991,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -13048,8 +13167,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13112,7 +13231,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -13144,7 +13265,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -13228,8 +13349,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional[JSON] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13289,7 +13410,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -13317,7 +13438,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -13399,8 +13520,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -13465,7 +13586,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineScaleSetVM] @@ -13497,8 +13620,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -13612,8 +13735,8 @@ def __init__( capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, hardware_profile: Optional["_models.VirtualMachineScaleSetHardwareProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -13719,8 +13842,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -13776,8 +13899,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -13818,7 +13941,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2021_11_01.models.VirtualMachineSize] @@ -13884,7 +14007,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -13920,7 +14043,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -14127,8 +14250,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -14280,7 +14403,8 @@ def __init__( # pylint: disable=too-many-locals class VMDiskSecurityProfile(_serialization.Model): - """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It can only be set for Confidential VMs. + """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It + can only be set for Confidential VMs. :ivar security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState @@ -14306,8 +14430,8 @@ def __init__( *, security_encryption_type: Optional[Union[str, "_models.SecurityEncryptionTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with @@ -14363,8 +14487,8 @@ def __init__( tags: Optional[str] = None, order: Optional[int] = None, configuration_reference: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Optional, Specifies a passthrough value for more generic context. :paramtype tags: str @@ -14400,7 +14524,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -14435,7 +14559,9 @@ class VMSizeProperties(_serialization.Model): "v_cpus_per_core": {"key": "vCPUsPerCore", "type": "int"}, } - def __init__(self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs): + def __init__( + self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword v_cpus_available: Specifies the number of vCPUs available for the VM. :code:`
`:code:`
` When this property is not specified in the request body the default @@ -14505,8 +14631,8 @@ def __init__( additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -14578,8 +14704,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -14615,7 +14741,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2021_11_01.models.WinRMListener] @@ -14655,8 +14781,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_metadata.json index e6b5e874b9ca..76310488fd43 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_compute_management_client_enums.py index 715861d1af48..108596617f4e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_compute_management_client_enums.py @@ -28,45 +28,45 @@ class Architecture(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DataAccessAuthMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Additional authentication requirements when exporting or uploading to a disk or snapshot.""" - #: When export/upload URL is used, the system checks if the user has an identity in Azure Active - #: Directory and has necessary permissions to export/upload the data. Please refer to - #: aka.ms/DisksAzureADAuth. AZURE_ACTIVE_DIRECTORY = "AzureActiveDirectory" - #: No additional authentication would be performed when accessing export/upload URL. + """When export/upload URL is used, the system checks if the user has an identity in Azure Active + #: Directory and has necessary permissions to export/upload the data. Please refer to + #: aka.ms/DisksAzureADAuth.""" NONE = "None" + """No additional authentication would be performed when accessing export/upload URL.""" class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" - #: Create a new disk by using a deep copy process, where the resource creation is considered - #: complete only after all data has been copied from the source. + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" COPY_START = "CopyStart" - #: Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk by importing additional blob for VM guest state specified by securityDataUri in storage - #: account specified by storageAccountId + """Create a new disk by using a deep copy process, where the resource creation is considered + #: complete only after all data has been copied from the source.""" IMPORT_SECURE = "ImportSecure" - #: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk and upload using write token in both disk and VM guest state + """Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk by importing additional blob for VM guest state specified by securityDataUri in storage + #: account specified by storageAccountId""" UPLOAD_PREPARED_SECURE = "UploadPreparedSecure" + """Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk and upload using write token in both disk and VM guest state""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -83,88 +83,88 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" - #: Confidential VM supported disk and VM guest state would be encrypted with customer managed key. + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" CONFIDENTIAL_VM_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVmEncryptedWithCustomerKey" + """Confidential VM supported disk and VM guest state would be encrypted with customer managed key.""" class DiskSecurityTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the SecurityType of the VM. Applicable for OS disks only.""" - #: Trusted Launch provides security features such as secure boot and virtual Trusted Platform - #: Module (vTPM) TRUSTED_LAUNCH = "TrustedLaunch" - #: Indicates Confidential VM disk with only VM guest state encrypted + """Trusted Launch provides security features such as secure boot and virtual Trusted Platform + #: Module (vTPM)""" CONFIDENTIAL_VM_VMGUEST_STATE_ONLY_ENCRYPTED_WITH_PLATFORM_KEY = ( "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" ) - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform - #: managed key + """Indicates Confidential VM disk with only VM guest state encrypted""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_PLATFORM_KEY = "ConfidentialVM_DiskEncryptedWithPlatformKey" - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer - #: managed key + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform + #: managed key""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVM_DiskEncryptedWithCustomerKey" + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer + #: managed key""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently attached to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is attached to a stopped-deallocated VM. + """The disk is currently attached to a running VM.""" RESERVED = "Reserved" - #: The disk is attached to a VM which is in hibernated state. + """The disk is attached to a stopped-deallocated VM.""" FROZEN = "Frozen" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is attached to a VM which is in hibernated state.""" ACTIVE_SAS = "ActiveSAS" - #: The disk is attached to a VM in hibernated state and has an active SAS URI associated with it. + """The disk currently has an Active SAS Uri associated with it.""" ACTIVE_SAS_FROZEN = "ActiveSASFrozen" - #: A disk is ready to be created by upload by requesting a write token. + """The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" - #: Premium SSD zone redundant storage. Best for the production workloads that need storage - #: resiliency against zone failures. + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" PREMIUM_ZRS = "Premium_ZRS" - #: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications - #: and dev/test that need storage resiliency against zone failures. + """Premium SSD zone redundant storage. Best for the production workloads that need storage + #: resiliency against zone failures.""" STANDARD_SSD_ZRS = "StandardSSD_ZRS" + """Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications + #: and dev/test that need storage resiliency against zone failures.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -183,12 +183,12 @@ class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -218,22 +218,22 @@ class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiv class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for controlling export on the disk.""" - #: You can generate a SAS URI to access the underlying data of the disk publicly on the internet - #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from - #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. ENABLED = "Enabled" - #: You cannot access the underlying data of the disk publicly on the internet even when - #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your - #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. + """You can generate a SAS URI to access the underlying data of the disk publicly on the internet + #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from + #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" DISABLED = "Disabled" + """You cannot access the underlying data of the disk publicly on the internet even when + #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your + #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_models_py3.py index a2b2ab2fa993..66b8cb0190ee 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -37,7 +37,7 @@ class AccessUri(_serialization.Model): "security_data_access_sas": {"key": "securityDataAccessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -75,8 +75,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2021_12_01.models.ApiErrorBase] @@ -115,8 +115,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -202,8 +202,8 @@ def __init__( upload_size_bytes: Optional[int] = None, logical_sector_size: Optional[int] = None, security_data_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", @@ -282,7 +282,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -513,8 +513,8 @@ def __init__( # pylint: disable=too-many-locals completion_percent: Optional[float] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -700,8 +700,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -739,7 +739,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2021_12_01.models.DiskAccess] @@ -763,7 +763,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -855,8 +855,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -907,7 +907,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2021_12_01.models.DiskEncryptionSet] @@ -959,8 +961,8 @@ def __init__( encryption_type: Optional[Union[str, "_models.DiskEncryptionSetType"]] = None, active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1007,7 +1009,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2021_12_01.models.Disk] @@ -1045,7 +1047,7 @@ class ProxyOnlyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1156,8 +1158,8 @@ def __init__( public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, disk_access_id: Optional[str] = None, completion_percent: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". @@ -1225,7 +1227,9 @@ class DiskRestorePointList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk restore points. Required. :paramtype value: list[~azure.mgmt.compute.v2021_12_01.models.DiskRestorePoint] @@ -1261,8 +1265,8 @@ def __init__( *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, secure_vm_disk_encryption_set_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. Known values are: "TrustedLaunch", "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", @@ -1279,7 +1283,8 @@ def __init__( class DiskSku(_serialization.Model): - """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. + """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, + Premium_ZRS, or StandardSSD_ZRS. Variables are only populated by the server, and will be ignored when sending a request. @@ -1299,7 +1304,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", and "StandardSSD_ZRS". @@ -1440,8 +1445,8 @@ def __init__( supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1554,8 +1559,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -1571,7 +1576,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -1601,7 +1607,9 @@ class EncryptionSetIdentity(_serialization.Model): "tenant_id": {"key": "tenantId", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs): + def __init__( + self, *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None @@ -1650,8 +1658,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1692,8 +1700,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1726,8 +1734,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -1770,8 +1778,8 @@ def __init__( access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, get_secure_vm_guest_state_sas: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2021_12_01.models.AccessLevel @@ -1809,7 +1817,9 @@ class ImageDiskReference(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, id: str, lun: Optional[int] = None, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, id: str, lun: Optional[int] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository or user image reference. Required. @@ -1837,7 +1847,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1872,7 +1884,7 @@ class KeyForDiskEncryptionSet(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs): + def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk @@ -1888,7 +1900,8 @@ def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault" class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -1908,7 +1921,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2021_12_01.models.SourceVault @@ -1941,7 +1954,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2021_12_01.models.SourceVault @@ -1970,7 +1983,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2023,8 +2036,8 @@ def __init__( self, *, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_link_service_connection_state: A collection of information about the state of the connection between DiskAccess and Virtual Network. @@ -2060,8 +2073,8 @@ def __init__( *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Array of private endpoint connections. :paramtype value: list[~azure.mgmt.compute.v2021_12_01.models.PrivateEndpointConnection] @@ -2110,7 +2123,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -2135,7 +2148,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2021_12_01.models.PrivateLinkResource] @@ -2145,7 +2158,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2170,8 +2184,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2201,7 +2215,7 @@ class PropertyUpdatesInProgress(_serialization.Model): "target_tier": {"key": "targetTier", "type": "str"}, } - def __init__(self, *, target_tier: Optional[str] = None, **kwargs): + def __init__(self, *, target_tier: Optional[str] = None, **kwargs: Any) -> None: """ :keyword target_tier: The target performance tier of the disk if a tier change operation is in progress. @@ -2240,7 +2254,9 @@ class PurchasePlan(_serialization.Model): "promotion_code": {"key": "promotionCode", "type": "str"}, } - def __init__(self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs): + def __init__( + self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword name: The plan ID. Required. :paramtype name: str @@ -2281,7 +2297,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -2312,7 +2328,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -2478,8 +2494,8 @@ def __init__( # pylint: disable=too-many-locals public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, completion_percent: Optional[float] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2592,7 +2608,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2021_12_01.models.Snapshot] @@ -2606,7 +2622,9 @@ def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] class SnapshotSku(_serialization.Model): - """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. + """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + parameter for incremental snapshot and the default behavior is the SKU will be set to the same + sku as the previous snapshot. Variables are only populated by the server, and will be ignored when sending a request. @@ -2625,7 +2643,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -2713,8 +2733,8 @@ def __init__( public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, supported_capabilities: Optional["_models.SupportedCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2773,7 +2793,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -2783,7 +2804,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -2813,8 +2834,8 @@ def __init__( *, accelerated_network: Optional[bool] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword accelerated_network: True if the image from which the OS disk is created supports accelerated networking. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_metadata.json index af23cf9a53de..af8cb3891439 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/models/_compute_management_client_enums.py index 23b330b8b81d..5ae561a1aa1d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/models/_compute_management_client_enums.py @@ -192,3 +192,4 @@ class StorageAccountType(str, Enum, metaclass=CaseInsensitiveEnumMeta): STANDARD_LRS = "Standard_LRS" STANDARD_ZRS = "Standard_ZRS" PREMIUM_LRS = "Premium_LRS" + STANDARD_SSD_LRS = "StandardSSD_LRS" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/models/_models_py3.py index af45e3d7b33e..84cbde5e412c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/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__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_01_03.models.ApiErrorBase] @@ -88,8 +88,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -132,7 +132,7 @@ class PirCommunityGalleryResource(_serialization.Model): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -172,7 +172,7 @@ class CommunityGallery(PirCommunityGalleryResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -270,8 +270,8 @@ def __init__( architecture: Optional[Union[str, "_models.Architecture"]] = None, privacy_statement_uri: Optional[str] = None, eula: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -346,7 +346,9 @@ class CommunityGalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CommunityGalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CommunityGalleryImage"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of community gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.CommunityGalleryImage] @@ -411,8 +413,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, exclude_from_latest: Optional[bool] = None, storage_profile: Optional["_models.SharedGalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -458,8 +460,8 @@ class CommunityGalleryImageVersionList(_serialization.Model): } def __init__( - self, *, value: List["_models.CommunityGalleryImageVersion"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.CommunityGalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of community gallery image versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.CommunityGalleryImageVersion] @@ -515,8 +517,8 @@ def __init__( publisher_contact: Optional[str] = None, eula: Optional[str] = None, public_name_prefix: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher_uri: The link to the publisher website. Visible to all users. :paramtype publisher_uri: str @@ -550,7 +552,7 @@ class DiskImageEncryption(_serialization.Model): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -583,7 +585,7 @@ class DataDiskImageEncryption(DiskImageEncryption): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -608,7 +610,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -618,7 +620,8 @@ def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): class EncryptionImages(_serialization.Model): - """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. + """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in + the gallery artifact. :ivar os_disk_image: Contains encryption settings for an OS disk image. :vartype os_disk_image: ~azure.mgmt.compute.v2022_01_03.models.OSDiskImageEncryption @@ -636,8 +639,8 @@ def __init__( *, os_disk_image: Optional["_models.OSDiskImageEncryption"] = None, data_disk_images: Optional[List["_models.DataDiskImageEncryption"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: Contains encryption settings for an OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2022_01_03.models.OSDiskImageEncryption @@ -669,8 +672,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -716,7 +719,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -797,8 +800,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -825,7 +828,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -892,8 +896,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -948,7 +952,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.GalleryApplication] @@ -990,7 +996,7 @@ class UpdateResourceDefinition(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1063,8 +1069,8 @@ def __init__( release_note_uri: Optional[str] = None, end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1153,8 +1159,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1191,7 +1197,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.GalleryApplicationVersion] @@ -1225,8 +1233,8 @@ class GalleryArtifactPublishingProfileBase(_serialization.Model): used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -1262,8 +1270,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, target_extended_locations: Optional[List["_models.GalleryTargetExtendedLocation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -1279,8 +1287,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -1327,8 +1335,8 @@ class GalleryApplicationVersionPublishingProfile( used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -1387,8 +1395,8 @@ def __init__( settings: Optional["_models.UserArtifactSettings"] = None, advanced_settings: Optional[Dict[str, str]] = None, enable_health_check: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -1404,8 +1412,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -1496,8 +1504,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1528,7 +1536,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2022_01_03.models.ManagedArtifact @@ -1554,8 +1562,8 @@ class GalleryArtifactVersionSource(_serialization.Model): } def __init__( - self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs # pylint: disable=redefined-builtin - ): + self, *, id: Optional[str] = None, uri: Optional[str] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword id: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. @@ -1598,8 +1606,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -1651,8 +1659,8 @@ def __init__( lun: int, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -1687,8 +1695,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.GalleryExtendedLocationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: :paramtype name: str @@ -1718,7 +1726,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -1836,8 +1844,8 @@ def __init__( purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1915,7 +1923,7 @@ class GalleryImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the gallery image feature. :paramtype name: str @@ -1952,7 +1960,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery image definition publisher. Required. :paramtype publisher: str @@ -1988,7 +1996,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.GalleryImage] @@ -2106,8 +2114,8 @@ def __init__( purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2228,8 +2236,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2270,7 +2278,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery image versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.GalleryImageVersion] @@ -2304,8 +2314,8 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -2341,8 +2351,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, target_extended_locations: Optional[List["_models.GalleryTargetExtendedLocation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2358,8 +2368,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -2405,8 +2415,8 @@ def __init__( source: Optional["_models.GalleryArtifactVersionSource"] = None, os_disk_image: Optional["_models.GalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.GalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source: The gallery artifact version source. :paramtype source: ~azure.mgmt.compute.v2022_01_03.models.GalleryArtifactVersionSource @@ -2473,8 +2483,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2513,7 +2523,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.Gallery] @@ -2555,8 +2565,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryArtifactVersionSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -2578,8 +2588,8 @@ class GalleryTargetExtendedLocation(_serialization.Model): created per extended location. This property is updatable. :vartype extended_location_replica_count: int :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. @@ -2602,8 +2612,8 @@ def __init__( extended_location_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. :paramtype name: str @@ -2613,8 +2623,8 @@ def __init__( created per extended location. This property is updatable. :paramtype extended_location_replica_count: int :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :keyword encryption: Optional. Allows users to provide customer managed keys for encrypting the @@ -2688,8 +2698,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2731,8 +2741,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -2761,7 +2776,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -2790,7 +2807,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -2819,8 +2836,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, security_profile: Optional["_models.OSDiskImageSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -2853,8 +2870,8 @@ def __init__( *, confidential_vm_encryption_type: Optional[Union[str, "_models.ConfidentialVMEncryptionType"]] = None, secure_vm_disk_encryption_set_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword confidential_vm_encryption_type: confidential VM encryption types. Known values are: "EncryptedVMGuestStateOnlyWithPmk", "EncryptedWithPmk", and "EncryptedWithCmk". @@ -2889,7 +2906,7 @@ class PirResource(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -2920,7 +2937,7 @@ class PirSharedGalleryResource(PirResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -2930,7 +2947,8 @@ def __init__(self, *, unique_id: Optional[str] = None, **kwargs): class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2022_01_03.models.ResourceRange @@ -2948,8 +2966,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2022_01_03.models.ResourceRange @@ -2991,7 +3009,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -3024,7 +3042,7 @@ class RegionalSharingStatus(_serialization.Model): "details": {"key": "details", "type": "str"}, } - def __init__(self, *, region: Optional[str] = None, details: Optional[str] = None, **kwargs): + def __init__(self, *, region: Optional[str] = None, details: Optional[str] = None, **kwargs: Any) -> None: """ :keyword region: Region name. :paramtype region: str @@ -3060,7 +3078,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -3086,8 +3104,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -3130,7 +3148,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -3169,7 +3187,7 @@ class SharedGallery(PirSharedGalleryResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3198,7 +3216,9 @@ class SharedGalleryDiskImage(_serialization.Model): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs): + def __init__( + self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3239,8 +3259,8 @@ class SharedGalleryDataDiskImage(SharedGalleryDiskImage): } def __init__( - self, *, lun: int, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs - ): + self, *, lun: int, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3332,8 +3352,8 @@ def __init__( features: Optional[List["_models.GalleryImageFeature"]] = None, purchase_plan: Optional["_models.ImagePurchasePlan"] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3402,7 +3422,9 @@ class SharedGalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.SharedGalleryImage] @@ -3463,8 +3485,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, exclude_from_latest: Optional[bool] = None, storage_profile: Optional["_models.SharedGalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3509,7 +3531,9 @@ class SharedGalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.SharedGalleryImageVersion] @@ -3542,8 +3566,8 @@ def __init__( *, os_disk_image: Optional["_models.SharedGalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.SharedGalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: This is the OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2022_01_03.models.SharedGalleryOSDiskImage @@ -3577,7 +3601,7 @@ class SharedGalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of shared galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2022_01_03.models.SharedGallery] @@ -3611,7 +3635,9 @@ class SharedGalleryOSDiskImage(SharedGalleryDiskImage): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs): + def __init__( + self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3653,8 +3679,8 @@ def __init__( *, permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None, community_gallery_info: Optional["_models.CommunityGalleryInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword permissions: This property allows you to specify the permission of sharing gallery. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Private** @@ -3693,8 +3719,8 @@ def __init__( *, type: Optional[Union[str, "_models.SharingProfileGroupTypes"]] = None, ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: This property allows you to specify the type of sharing group. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Subscriptions** @@ -3729,7 +3755,7 @@ class SharingStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalSharingStatus]"}, } - def __init__(self, *, summary: Optional[List["_models.RegionalSharingStatus"]] = None, **kwargs): + def __init__(self, *, summary: Optional[List["_models.RegionalSharingStatus"]] = None, **kwargs: Any) -> None: """ :keyword summary: Summary of all regional sharing status. :paramtype summary: list[~azure.mgmt.compute.v2022_01_03.models.RegionalSharingStatus] @@ -3768,8 +3794,8 @@ def __init__( *, operation_type: Union[str, "_models.SharingUpdateOperationTypes"], groups: Optional[List["_models.SharingProfileGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword operation_type: This property allows you to specify the operation type of gallery sharing update. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Add** @@ -3797,7 +3823,7 @@ class SoftDeletePolicy(_serialization.Model): "is_soft_delete_enabled": {"key": "isSoftDeleteEnabled", "type": "bool"}, } - def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword is_soft_delete_enabled: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. @@ -3818,7 +3844,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -3844,7 +3870,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3861,8 +3887,8 @@ class TargetRegion(_serialization.Model): region. This property is updatable. :vartype regional_replica_count: int :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. @@ -3887,8 +3913,8 @@ def __init__( regional_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -3896,8 +3922,8 @@ def __init__( region. This property is updatable. :paramtype regional_replica_count: int :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_01_03.models.StorageAccountType :keyword encryption: Optional. Allows users to provide customer managed keys for encrypting the @@ -3939,7 +3965,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -3959,7 +3985,8 @@ def __init__(self, *, install: str, remove: str, update: Optional[str] = None, * class UserArtifactSettings(_serialization.Model): - """Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. + """Additional settings for the VM app that contains the target package and config file name when + it is deployed to target VM or VM scale set. :ivar package_file_name: Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same @@ -3976,7 +4003,9 @@ class UserArtifactSettings(_serialization.Model): "config_file_name": {"key": "configFileName", "type": "str"}, } - def __init__(self, *, package_file_name: Optional[str] = None, config_file_name: Optional[str] = None, **kwargs): + def __init__( + self, *, package_file_name: Optional[str] = None, config_file_name: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword package_file_name: Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same @@ -4014,7 +4043,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. @@ -4049,7 +4078,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_metadata.json index 0f9dff02f237..b156f5397041 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_compute_management_client_enums.py index 4f95f121b9ff..2dc022db8321 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_compute_management_client_enums.py @@ -276,10 +276,10 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State. For managed images, use Generalized.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_models_py3.py index 192eba5574bb..cfe56c8d1383 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/models/_models_py3.py @@ -46,8 +46,8 @@ class AdditionalCapabilities(_serialization.Model): } def __init__( - self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs - ): + self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -64,7 +64,9 @@ def __init__( class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -96,8 +98,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -133,7 +135,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -174,8 +176,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_03_01.models.ApiErrorBase] @@ -214,8 +216,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -243,7 +245,9 @@ class ApplicationProfile(_serialization.Model): "gallery_applications": {"key": "galleryApplications", "type": "[VMGalleryApplication]"}, } - def __init__(self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs): + def __init__( + self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs: Any + ) -> None: """ :keyword gallery_applications: Specifies the gallery applications that should be made available to the VM/VMSS. @@ -285,8 +289,8 @@ def __init__( enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, use_rolling_upgrade_policy: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -327,7 +331,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -367,8 +371,8 @@ def __init__( enabled: Optional[bool] = None, grace_period: Optional[str] = None, repair_action: Optional[Union[str, "_models.RepairAction"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -424,7 +428,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -440,7 +444,15 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Availability sets + overview `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -507,8 +519,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -561,7 +573,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.AvailabilitySet] @@ -585,7 +599,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -595,7 +609,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -640,8 +655,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -721,7 +736,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -735,7 +750,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -756,7 +772,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -777,7 +793,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -792,7 +811,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -836,7 +855,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -928,8 +947,8 @@ def __init__( sku: "_models.Sku", tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -960,7 +979,10 @@ def __init__( class CapacityReservationGroup(Resource): - """Specifies information about the capacity reservation group that the capacity reservations should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. + """Specifies information about the capacity reservation group that the capacity reservations + should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be + added to a capacity reservation group at creation time. An existing capacity reservation cannot + be added or moved to another capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1018,8 +1040,8 @@ class CapacityReservationGroup(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1057,7 +1079,7 @@ class CapacityReservationGroupInstanceView(_serialization.Model): "capacity_reservations": {"key": "capacityReservations", "type": "[CapacityReservationInstanceViewWithName]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.capacity_reservations = None @@ -1084,7 +1106,9 @@ class CapacityReservationGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservation groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.CapacityReservationGroup] @@ -1131,7 +1155,7 @@ class CapacityReservationGroupUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationGroupInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1143,7 +1167,9 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CapacityReservationInstanceView(_serialization.Model): - """The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. + """The instance view of a capacity reservation that provides as snapshot of the runtime properties + of the capacity reservation that is managed by the platform and can change outside of control + plane operations. :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: @@ -1162,8 +1188,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1177,7 +1203,8 @@ def __init__( class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): - """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. + """The instance view of a capacity reservation that includes the name of the capacity reservation. + It is used for the response to the instance view of a capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1205,8 +1232,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1239,7 +1266,9 @@ class CapacityReservationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservations. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.CapacityReservation] @@ -1266,7 +1295,7 @@ class CapacityReservationProfile(_serialization.Model): "capacity_reservation_group": {"key": "capacityReservationGroup", "type": "SubResource"}, } - def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs): + def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs: Any) -> None: """ :keyword capacity_reservation_group: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough @@ -1279,7 +1308,8 @@ def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource" class CapacityReservationUpdate(UpdateResource): - """Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. + """Specifies information about the capacity reservation. Only tags and sku.capacity can be + updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1329,7 +1359,9 @@ class CapacityReservationUpdate(UpdateResource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1369,7 +1401,7 @@ class CapacityReservationUtilization(_serialization.Model): "virtual_machines_allocated": {"key": "virtualMachinesAllocated", "type": "[SubResourceReadOnly]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.virtual_machines_allocated = None @@ -1392,7 +1424,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1435,7 +1467,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -1557,8 +1589,8 @@ def __init__( to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1651,7 +1683,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1746,8 +1778,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1798,7 +1830,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1824,7 +1856,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1836,7 +1870,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1911,8 +1948,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, additional_capabilities: Optional["_models.DedicatedHostGroupPropertiesAdditionalCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1955,7 +1992,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -1986,7 +2025,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.DedicatedHostGroup] @@ -2000,7 +2041,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupPropertiesAdditionalCapabilities(_serialization.Model): - """Enables or disables a capability on the dedicated host group.:code:`
`:code:`
`Minimum api-version: 2022-03-01. + """Enables or disables a capability on the dedicated host group.:code:`
`:code:`
`Minimum + api-version: 2022-03-01. :ivar ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual @@ -2017,7 +2059,7 @@ class DedicatedHostGroupPropertiesAdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual @@ -2034,7 +2076,8 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2090,8 +2133,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, additional_capabilities: Optional["_models.DedicatedHostGroupPropertiesAdditionalCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2151,8 +2194,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2167,7 +2210,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2200,8 +2244,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2234,7 +2278,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.DedicatedHost] @@ -2248,7 +2292,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2311,8 +2356,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2343,7 +2388,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2358,7 +2404,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2373,7 +2419,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2022_03_01.models.DiffDiskOptions @@ -2398,8 +2446,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2022_03_01.models.DiffDiskOptions @@ -2430,7 +2478,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2451,7 +2499,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2461,7 +2509,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -2471,7 +2522,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -2503,8 +2554,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2545,8 +2596,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2583,8 +2634,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin replication_status: Optional["_models.DiskRestorePointReplicationStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Disk restore point Id. :paramtype id: str @@ -2616,8 +2667,8 @@ def __init__( *, status: Optional["_models.InstanceViewStatus"] = None, completion_percent: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: The resource status information. :paramtype status: ~azure.mgmt.compute.v2022_03_01.models.InstanceViewStatus @@ -2648,8 +2699,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -2729,8 +2780,8 @@ def __init__( *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, vm_size_properties: Optional["_models.VMSizeProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -2792,7 +2843,9 @@ def __init__( class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -2855,8 +2908,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2934,8 +2987,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_03_01.models.SubResource @@ -3035,8 +3088,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_03_01.models.SubResource @@ -3102,7 +3155,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.Image] @@ -3184,8 +3237,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_03_01.models.SubResource @@ -3236,7 +3289,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -3296,8 +3353,8 @@ def __init__( version: Optional[str] = None, shared_gallery_image_id: Optional[str] = None, community_gallery_image_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3365,8 +3422,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -3429,8 +3486,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3467,7 +3524,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -3510,8 +3569,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -3553,7 +3612,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -3586,7 +3645,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -3664,7 +3723,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -3681,7 +3740,10 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3712,8 +3774,8 @@ def __init__( ssh: Optional["_models.SshConfiguration"] = None, provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3768,8 +3830,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -3832,8 +3894,8 @@ def __init__( patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, assessment_mode: Optional[Union[str, "_models.LinuxPatchAssessmentMode"]] = None, automatic_by_platform_settings: Optional["_models.LinuxVMGuestPatchAutomaticByPlatformSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -3912,7 +3975,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.Usage] @@ -3977,8 +4040,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4026,7 +4089,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4049,7 +4112,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -4097,8 +4160,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4161,8 +4224,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4210,8 +4273,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4258,8 +4321,8 @@ def __init__( network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, network_interface_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4306,8 +4369,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. Known values are: "AutomaticRepairs" and "DummyOrchestrationServiceName". @@ -4346,7 +4409,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -4354,7 +4417,9 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines `_. All required parameters must be populated in order to send to Azure. @@ -4445,8 +4510,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -4533,7 +4598,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -4544,7 +4609,8 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4637,8 +4703,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4759,7 +4825,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -4820,8 +4886,8 @@ def __init__( enable_hotpatching: Optional[bool] = None, assessment_mode: Optional[Union[str, "_models.WindowsPatchAssessmentMode"]] = None, automatic_by_platform_settings: Optional["_models.WindowsVMGuestPatchAutomaticByPlatformSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -4887,8 +4957,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -4988,8 +5058,8 @@ def __init__( proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, intent: Optional["_models.ProximityPlacementGroupPropertiesIntent"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5040,7 +5110,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.ProximityPlacementGroup] @@ -5064,7 +5136,7 @@ class ProximityPlacementGroupPropertiesIntent(_serialization.Model): "vm_sizes": {"key": "vmSizes", "type": "[str]"}, } - def __init__(self, *, vm_sizes: Optional[List[str]] = None, **kwargs): + def __init__(self, *, vm_sizes: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword vm_sizes: Specifies possible sizes of virtual machines that can be created in the proximity placement group. @@ -5085,7 +5157,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5094,7 +5166,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class ProxyResource(_serialization.Model): - """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for an Azure Resource Manager proxy resource. It will not have + tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -5118,7 +5191,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5145,8 +5218,8 @@ def __init__( *, name: Optional[Union[str, "_models.PublicIPAddressSkuName"]] = None, tier: Optional[Union[str, "_models.PublicIPAddressSkuTier"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". :paramtype name: str or ~azure.mgmt.compute.v2022_03_01.models.PublicIPAddressSkuName @@ -5184,7 +5257,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -5222,7 +5295,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -5287,8 +5360,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5356,7 +5429,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -5433,8 +5506,8 @@ def __init__( consistency_mode: Optional[Union[str, "_models.ConsistencyModeTypes"]] = None, time_created: Optional[datetime.datetime] = None, source_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. @@ -5517,8 +5590,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5556,8 +5629,8 @@ def __init__( *, value: Optional[List["_models.RestorePointCollection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Gets the list of restore point collections. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.RestorePointCollection] @@ -5590,7 +5663,7 @@ class RestorePointCollectionSourceProperties(_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: Resource Id of the source resource used to create this restore point collection. :paramtype id: str @@ -5638,8 +5711,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5675,8 +5748,8 @@ def __init__( *, disk_restore_points: Optional[List["_models.DiskRestorePointInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_restore_points: The disk restore points information. :paramtype disk_restore_points: @@ -5690,7 +5763,9 @@ def __init__( class RestorePointSourceMetadata(_serialization.Model): - """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + """Describes the properties of the Virtual Machine for which the restore point was created. The + properties provided are a subset and the snapshot of the overall Virtual Machine properties + captured at the time of the restore point creation. :ivar hardware_profile: Gets the hardware profile. :vartype hardware_profile: ~azure.mgmt.compute.v2022_03_01.models.HardwareProfile @@ -5733,8 +5808,8 @@ def __init__( vm_id: Optional[str] = None, security_profile: Optional["_models.SecurityProfile"] = None, location: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hardware_profile: Gets the hardware profile. :paramtype hardware_profile: ~azure.mgmt.compute.v2022_03_01.models.HardwareProfile @@ -5801,8 +5876,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Gets the logical unit number. :paramtype lun: int @@ -5866,8 +5941,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.compute.v2022_03_01.models.OperatingSystemType @@ -5914,8 +5989,8 @@ def __init__( *, os_disk: Optional["_models.RestorePointSourceVMOSDisk"] = None, data_disks: Optional[List["_models.RestorePointSourceVMDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -5951,7 +6026,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -5984,7 +6059,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -6048,8 +6123,8 @@ def __init__( pause_time_between_batches: Optional[str] = None, enable_cross_zone_upgrade: Optional[bool] = None, prioritize_unhealthy_instances: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -6118,7 +6193,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -6158,7 +6233,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6218,7 +6293,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6273,8 +6348,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6345,8 +6420,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6399,8 +6474,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -6437,7 +6512,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6470,7 +6545,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.RunCommandDocumentBase] @@ -6510,7 +6587,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6539,7 +6618,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.InstanceViewStatus] @@ -6583,8 +6662,8 @@ def __init__( *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, force_deletion: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -6629,8 +6708,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6671,8 +6750,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -6696,7 +6775,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -6715,8 +6796,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -6734,7 +6815,10 @@ def __init__( class SpotRestorePolicy(_serialization.Model): - """Specifies the Spot-Try-Restore properties for the virtual machine scale set. :code:`
`:code:`
` With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. + """Specifies the Spot-Try-Restore properties for the virtual machine scale set. + :code:`
`:code:`
` With this property customer can enable or disable automatic restore of + the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing + constraint. :ivar enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. @@ -6749,7 +6833,7 @@ class SpotRestorePolicy(_serialization.Model): "restore_timeout": {"key": "restoreTimeout", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing @@ -6775,7 +6859,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2022_03_01.models.SshPublicKey] @@ -6785,7 +6869,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6803,7 +6888,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6850,7 +6935,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -6911,8 +6998,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6949,7 +7036,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.SshPublicKeyResource] @@ -6979,7 +7068,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7025,8 +7116,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -7067,7 +7158,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7093,8 +7184,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7123,7 +7214,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -7190,8 +7283,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -7225,7 +7318,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7240,7 +7334,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7280,7 +7376,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -7326,7 +7422,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -7363,7 +7459,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7402,8 +7498,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -7460,7 +7556,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -7489,7 +7585,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -7522,7 +7618,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -7530,7 +7626,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7558,7 +7655,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7606,8 +7705,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -7632,7 +7731,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -7868,8 +7967,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8050,8 +8149,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -8122,7 +8221,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8161,7 +8260,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -8209,7 +8310,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -8319,8 +8420,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -8398,8 +8499,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -8476,8 +8577,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8536,8 +8637,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -8569,7 +8670,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineExtension] @@ -8645,8 +8746,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8710,7 +8811,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8756,8 +8857,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -8817,8 +8918,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8919,8 +9020,8 @@ def __init__( disallowed: Optional["_models.DisallowedConfiguration"] = None, features: Optional[List["_models.VirtualMachineImageFeature"]] = None, architecture: Optional[Union[str, "_models.ArchitectureTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -8982,7 +9083,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -9032,8 +9133,8 @@ def __init__( maximum_duration: Optional[str] = None, windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). @@ -9129,7 +9230,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9235,8 +9336,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -9307,7 +9408,7 @@ class VirtualMachineIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -9340,7 +9441,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachine] @@ -9421,8 +9524,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, ip_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceIPConfiguration"]] = None, dscp_configuration: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The network interface configuration name. Required. :paramtype name: str @@ -9474,7 +9577,7 @@ class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_serialization.Mode "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -9554,8 +9657,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The IP configuration name. Required. :paramtype name: str @@ -9634,8 +9737,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -9714,8 +9817,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersions"]] = None, public_ip_allocation_method: Optional[Union[str, "_models.PublicIPAllocationMethod"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -9774,7 +9877,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm @@ -9786,7 +9889,8 @@ def __init__(self, *, domain_name_label: str, **kwargs): class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9797,7 +9901,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9896,8 +10000,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -9985,8 +10089,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -10040,8 +10144,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -10076,7 +10180,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineRunCommand] @@ -10158,8 +10264,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10358,8 +10464,8 @@ def __init__( # pylint: disable=too-many-locals scale_in_policy: Optional["_models.ScaleInPolicy"] = None, orchestration_mode: Optional[Union[str, "_models.OrchestrationMode"]] = None, spot_restore_policy: Optional["_models.SpotRestorePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10532,8 +10638,8 @@ def __init__( disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -10679,8 +10785,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -10757,8 +10863,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineScaleSetExtension] @@ -10794,8 +10900,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -10901,8 +11007,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -10968,7 +11074,7 @@ class VirtualMachineScaleSetHardwareProfile(_serialization.Model): "vm_size_properties": {"key": "vmSizeProperties", "type": "VMSizeProperties"}, } - def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs): + def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs: Any) -> None: """ :keyword vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01. :code:`
`:code:`
` Please follow the @@ -11020,8 +11126,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -11074,7 +11180,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2022_03_01.models.InstanceViewStatus] @@ -11104,7 +11210,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -11190,8 +11296,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11256,7 +11362,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -11291,8 +11397,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -11327,7 +11437,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineScaleSet] @@ -11361,7 +11473,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineScaleSetSku] @@ -11395,7 +11509,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineScaleSet] @@ -11437,8 +11553,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -11524,8 +11640,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11576,7 +11692,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -11616,8 +11732,8 @@ def __init__( health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -11722,8 +11838,8 @@ def __init__( vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -11865,8 +11981,8 @@ def __init__( linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -11989,8 +12105,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -12044,7 +12160,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -12067,7 +12183,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12093,7 +12209,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12132,7 +12250,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -12171,7 +12289,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -12213,8 +12331,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -12321,8 +12439,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12382,7 +12500,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -12451,8 +12571,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12558,8 +12678,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12631,8 +12751,8 @@ def __init__( List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -12653,7 +12773,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2022_03_01.models.CachingTypes @@ -12704,8 +12825,8 @@ def __init__( vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2022_03_01.models.CachingTypes @@ -12772,8 +12893,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -12827,8 +12948,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, public_ip_prefix: Optional["_models.SubResource"] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -12875,8 +12996,8 @@ def __init__( image_reference: Optional["_models.ImageReference"] = None, os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2022_03_01.models.ImageReference @@ -12950,8 +13071,8 @@ def __init__( billing_profile: Optional["_models.BillingProfile"] = None, scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -13161,8 +13282,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -13344,8 +13465,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13409,7 +13530,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -13441,7 +13564,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -13529,8 +13652,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13591,7 +13714,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -13619,7 +13742,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -13701,8 +13824,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -13767,7 +13890,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineScaleSetVM] @@ -13799,8 +13924,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -13914,8 +14039,8 @@ def __init__( capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, hardware_profile: Optional["_models.VirtualMachineScaleSetHardwareProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -14021,8 +14146,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -14078,8 +14203,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -14120,7 +14245,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineSize] @@ -14186,7 +14311,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -14222,7 +14347,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -14429,8 +14554,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -14582,7 +14707,8 @@ def __init__( # pylint: disable=too-many-locals class VMDiskSecurityProfile(_serialization.Model): - """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It can only be set for Confidential VMs. + """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It + can only be set for Confidential VMs. :ivar security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState @@ -14608,8 +14734,8 @@ def __init__( *, security_encryption_type: Optional[Union[str, "_models.SecurityEncryptionTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with @@ -14675,8 +14801,8 @@ def __init__( configuration_reference: Optional[str] = None, treat_failure_as_deployment_failure: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Optional, Specifies a passthrough value for more generic context. :paramtype tags: str @@ -14726,8 +14852,8 @@ def __init__( *, value: Optional[List["_models.VirtualMachineImageResource"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: The list of VMImages in EdgeZone. :paramtype value: list[~azure.mgmt.compute.v2022_03_01.models.VirtualMachineImageResource] @@ -14754,7 +14880,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -14789,7 +14915,9 @@ class VMSizeProperties(_serialization.Model): "v_cpus_per_core": {"key": "vCPUsPerCore", "type": "int"}, } - def __init__(self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs): + def __init__( + self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword v_cpus_available: Specifies the number of vCPUs available for the VM. :code:`
`:code:`
` When this property is not specified in the request body the default @@ -14859,8 +14987,8 @@ def __init__( additional_unattend_content: Optional[List["_models.AdditionalUnattendContent"]] = None, patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -14932,8 +15060,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -14959,7 +15087,8 @@ def __init__( class WindowsVMGuestPatchAutomaticByPlatformSettings(_serialization.Model): - """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings. + """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in + Windows patch settings. :ivar reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -14975,8 +15104,8 @@ def __init__( self, *, reboot_setting: Optional[Union[str, "_models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -14998,7 +15127,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2022_03_01.models.WinRMListener] @@ -15038,8 +15167,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_metadata.json index a811da177191..0dc25a036b2b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_compute_management_client_enums.py index d7aa998d84b8..533e46a89e2d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_compute_management_client_enums.py @@ -30,53 +30,53 @@ class CopyCompletionErrorReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): operation fails. """ - #: Indicates that the source snapshot was deleted while the background copy of the resource - #: created via CopyStart operation was in progress. COPY_SOURCE_NOT_FOUND = "CopySourceNotFound" + """Indicates that the source snapshot was deleted while the background copy of the resource + #: created via CopyStart operation was in progress.""" class DataAccessAuthMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Additional authentication requirements when exporting or uploading to a disk or snapshot.""" - #: When export/upload URL is used, the system checks if the user has an identity in Azure Active - #: Directory and has necessary permissions to export/upload the data. Please refer to - #: aka.ms/DisksAzureADAuth. AZURE_ACTIVE_DIRECTORY = "AzureActiveDirectory" - #: No additional authentication would be performed when accessing export/upload URL. + """When export/upload URL is used, the system checks if the user has an identity in Azure Active + #: Directory and has necessary permissions to export/upload the data. Please refer to + #: aka.ms/DisksAzureADAuth.""" NONE = "None" + """No additional authentication would be performed when accessing export/upload URL.""" class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" - #: Create a new disk by using a deep copy process, where the resource creation is considered - #: complete only after all data has been copied from the source. + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" COPY_START = "CopyStart" - #: Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk by importing additional blob for VM guest state specified by securityDataUri in storage - #: account specified by storageAccountId + """Create a new disk by using a deep copy process, where the resource creation is considered + #: complete only after all data has been copied from the source.""" IMPORT_SECURE = "ImportSecure" - #: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk and upload using write token in both disk and VM guest state + """Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk by importing additional blob for VM guest state specified by securityDataUri in storage + #: account specified by storageAccountId""" UPLOAD_PREPARED_SECURE = "UploadPreparedSecure" + """Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk and upload using write token in both disk and VM guest state""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -95,91 +95,91 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" - #: Confidential VM supported disk and VM guest state would be encrypted with customer managed key. + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" CONFIDENTIAL_VM_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVmEncryptedWithCustomerKey" + """Confidential VM supported disk and VM guest state would be encrypted with customer managed key.""" class DiskSecurityTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the SecurityType of the VM. Applicable for OS disks only.""" - #: Trusted Launch provides security features such as secure boot and virtual Trusted Platform - #: Module (vTPM) TRUSTED_LAUNCH = "TrustedLaunch" - #: Indicates Confidential VM disk with only VM guest state encrypted + """Trusted Launch provides security features such as secure boot and virtual Trusted Platform + #: Module (vTPM)""" CONFIDENTIAL_VM_VMGUEST_STATE_ONLY_ENCRYPTED_WITH_PLATFORM_KEY = ( "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" ) - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform - #: managed key + """Indicates Confidential VM disk with only VM guest state encrypted""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_PLATFORM_KEY = "ConfidentialVM_DiskEncryptedWithPlatformKey" - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer - #: managed key + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform + #: managed key""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVM_DiskEncryptedWithCustomerKey" + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer + #: managed key""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently attached to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is attached to a stopped-deallocated VM. + """The disk is currently attached to a running VM.""" RESERVED = "Reserved" - #: The disk is attached to a VM which is in hibernated state. + """The disk is attached to a stopped-deallocated VM.""" FROZEN = "Frozen" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is attached to a VM which is in hibernated state.""" ACTIVE_SAS = "ActiveSAS" - #: The disk is attached to a VM in hibernated state and has an active SAS URI associated with it. + """The disk currently has an Active SAS Uri associated with it.""" ACTIVE_SAS_FROZEN = "ActiveSASFrozen" - #: A disk is ready to be created by upload by requesting a write token. + """The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" - #: Premium SSD zone redundant storage. Best for the production workloads that need storage - #: resiliency against zone failures. + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" PREMIUM_ZRS = "Premium_ZRS" - #: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications - #: and dev/test that need storage resiliency against zone failures. + """Premium SSD zone redundant storage. Best for the production workloads that need storage + #: resiliency against zone failures.""" STANDARD_SSD_ZRS = "StandardSSD_ZRS" - #: Premium SSD v2 locally redundant storage. Best for production and performance-sensitive - #: workloads that consistently require low latency and high IOPS and throughput. + """Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications + #: and dev/test that need storage resiliency against zone failures.""" PREMIUM_V2_LRS = "PremiumV2_LRS" + """Premium SSD v2 locally redundant storage. Best for production and performance-sensitive + #: workloads that consistently require low latency and high IOPS and throughput.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -198,12 +198,12 @@ class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -233,22 +233,22 @@ class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiv class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for controlling export on the disk.""" - #: You can generate a SAS URI to access the underlying data of the disk publicly on the internet - #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from - #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. ENABLED = "Enabled" - #: You cannot access the underlying data of the disk publicly on the internet even when - #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your - #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. + """You can generate a SAS URI to access the underlying data of the disk publicly on the internet + #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from + #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" DISABLED = "Disabled" + """You cannot access the underlying data of the disk publicly on the internet even when + #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your + #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_models_py3.py index 7992921979f4..d8dbebb2e12d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -37,7 +37,7 @@ class AccessUri(_serialization.Model): "security_data_access_sas": {"key": "securityDataAccessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -75,8 +75,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_03_02.models.ApiErrorBase] @@ -115,8 +115,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -132,7 +132,8 @@ def __init__( class CopyCompletionError(_serialization.Model): - """Indicates the error details if the background copy of a resource created via the CopyStart operation fails. + """Indicates the error details if the background copy of a resource created via the CopyStart + operation fails. All required parameters must be populated in order to send to Azure. @@ -154,7 +155,9 @@ class CopyCompletionError(_serialization.Model): "error_message": {"key": "errorMessage", "type": "str"}, } - def __init__(self, *, error_code: Union[str, "_models.CopyCompletionErrorReason"], error_message: str, **kwargs): + def __init__( + self, *, error_code: Union[str, "_models.CopyCompletionErrorReason"], error_message: str, **kwargs: Any + ) -> None: """ :keyword error_code: Indicates the error code if the background copy of a resource created via the CopyStart operation fails. Required. "CopySourceNotFound" @@ -239,8 +242,8 @@ def __init__( upload_size_bytes: Optional[int] = None, logical_sector_size: Optional[int] = None, security_data_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", @@ -319,7 +322,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -550,8 +553,8 @@ def __init__( # pylint: disable=too-many-locals completion_percent: Optional[float] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -737,8 +740,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -776,7 +779,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_02.models.DiskAccess] @@ -800,7 +803,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -897,8 +900,8 @@ def __init__( active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, federated_client_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -953,7 +956,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_02.models.DiskEncryptionSet] @@ -1010,8 +1015,8 @@ def __init__( active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, federated_client_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1062,7 +1067,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_02.models.Disk] @@ -1100,7 +1105,7 @@ class ProxyOnlyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1215,8 +1220,8 @@ def __init__( disk_access_id: Optional[str] = None, completion_percent: Optional[float] = None, security_profile: Optional["_models.DiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". @@ -1287,7 +1292,9 @@ class DiskRestorePointList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk restore points. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_02.models.DiskRestorePoint] @@ -1323,8 +1330,8 @@ def __init__( *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, secure_vm_disk_encryption_set_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. Known values are: "TrustedLaunch", "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", @@ -1341,7 +1348,8 @@ def __init__( class DiskSku(_serialization.Model): - """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. + """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, + Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. Variables are only populated by the server, and will be ignored when sending a request. @@ -1361,7 +1369,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". @@ -1502,8 +1510,8 @@ def __init__( supports_hibernation: Optional[bool] = None, public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1616,8 +1624,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -1633,7 +1641,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -1675,8 +1684,8 @@ def __init__( *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None @@ -1733,8 +1742,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1775,8 +1784,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1809,8 +1818,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -1853,8 +1862,8 @@ def __init__( access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, get_secure_vm_guest_state_sas: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2022_03_02.models.AccessLevel @@ -1901,8 +1910,8 @@ def __init__( shared_gallery_image_id: Optional[str] = None, community_gallery_image_id: Optional[str] = None, lun: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference. @@ -1938,7 +1947,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1973,7 +1984,7 @@ class KeyForDiskEncryptionSet(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs): + def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk @@ -1989,7 +2000,8 @@ def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault" class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -2009,7 +2021,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2022_03_02.models.SourceVault @@ -2042,7 +2054,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2022_03_02.models.SourceVault @@ -2071,7 +2083,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2124,8 +2136,8 @@ def __init__( self, *, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_link_service_connection_state: A collection of information about the state of the connection between DiskAccess and Virtual Network. @@ -2161,8 +2173,8 @@ def __init__( *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Array of private endpoint connections. :paramtype value: list[~azure.mgmt.compute.v2022_03_02.models.PrivateEndpointConnection] @@ -2211,7 +2223,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -2236,7 +2248,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2022_03_02.models.PrivateLinkResource] @@ -2246,7 +2258,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2271,8 +2284,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2302,7 +2315,7 @@ class PropertyUpdatesInProgress(_serialization.Model): "target_tier": {"key": "targetTier", "type": "str"}, } - def __init__(self, *, target_tier: Optional[str] = None, **kwargs): + def __init__(self, *, target_tier: Optional[str] = None, **kwargs: Any) -> None: """ :keyword target_tier: The target performance tier of the disk if a tier change operation is in progress. @@ -2341,7 +2354,9 @@ class PurchasePlan(_serialization.Model): "promotion_code": {"key": "promotionCode", "type": "str"}, } - def __init__(self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs): + def __init__( + self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword name: The plan ID. Required. :paramtype name: str @@ -2382,7 +2397,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -2427,7 +2442,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -2459,7 +2474,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -2630,8 +2645,8 @@ def __init__( # pylint: disable=too-many-locals completion_percent: Optional[float] = None, copy_completion_error: Optional["_models.CopyCompletionError"] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2748,7 +2763,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_02.models.Snapshot] @@ -2762,7 +2777,9 @@ def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] class SnapshotSku(_serialization.Model): - """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. + """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + parameter for incremental snapshot and the default behavior is the SKU will be set to the same + sku as the previous snapshot. Variables are only populated by the server, and will be ignored when sending a request. @@ -2781,7 +2798,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -2869,8 +2888,8 @@ def __init__( public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, supported_capabilities: Optional["_models.SupportedCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2929,7 +2948,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -2939,7 +2959,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -2959,7 +2979,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2985,7 +3005,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3012,8 +3032,8 @@ def __init__( *, accelerated_network: Optional[bool] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword accelerated_network: True if the image from which the OS disk is created supports accelerated networking. @@ -3048,7 +3068,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_metadata.json index 54ca545c3d90..bf68d6ad5df5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/models/_compute_management_client_enums.py index e53b4c3f8cf8..afb16cca9bb9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/models/_compute_management_client_enums.py @@ -211,3 +211,4 @@ class StorageAccountType(str, Enum, metaclass=CaseInsensitiveEnumMeta): STANDARD_LRS = "Standard_LRS" STANDARD_ZRS = "Standard_ZRS" PREMIUM_LRS = "Premium_LRS" + STANDARD_SSD_LRS = "StandardSSD_LRS" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/models/_models_py3.py index 95fb98c23a7f..ca580a863ea2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_03/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__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_03_03.models.ApiErrorBase] @@ -88,8 +88,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -132,7 +132,7 @@ class PirCommunityGalleryResource(_serialization.Model): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -172,7 +172,7 @@ class CommunityGallery(PirCommunityGalleryResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -270,8 +270,8 @@ def __init__( architecture: Optional[Union[str, "_models.Architecture"]] = None, privacy_statement_uri: Optional[str] = None, eula: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -346,7 +346,9 @@ class CommunityGalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CommunityGalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CommunityGalleryImage"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of community gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.CommunityGalleryImage] @@ -411,8 +413,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, exclude_from_latest: Optional[bool] = None, storage_profile: Optional["_models.SharedGalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this community gallery. :paramtype unique_id: str @@ -458,8 +460,8 @@ class CommunityGalleryImageVersionList(_serialization.Model): } def __init__( - self, *, value: List["_models.CommunityGalleryImageVersion"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.CommunityGalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of community gallery image versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.CommunityGalleryImageVersion] @@ -515,8 +517,8 @@ def __init__( publisher_contact: Optional[str] = None, eula: Optional[str] = None, public_name_prefix: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher_uri: The link to the publisher website. Visible to all users. :paramtype publisher_uri: str @@ -550,7 +552,7 @@ class DiskImageEncryption(_serialization.Model): "disk_encryption_set_id": {"key": "diskEncryptionSetId", "type": "str"}, } - def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -583,7 +585,7 @@ class DataDiskImageEncryption(DiskImageEncryption): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs): + def __init__(self, *, lun: int, disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -608,7 +610,7 @@ class Disallowed(_serialization.Model): "disk_types": {"key": "diskTypes", "type": "[str]"}, } - def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): + def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword disk_types: A list of disk types. :paramtype disk_types: list[str] @@ -618,7 +620,8 @@ def __init__(self, *, disk_types: Optional[List[str]] = None, **kwargs): class EncryptionImages(_serialization.Model): - """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. + """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in + the gallery artifact. :ivar os_disk_image: Contains encryption settings for an OS disk image. :vartype os_disk_image: ~azure.mgmt.compute.v2022_03_03.models.OSDiskImageEncryption @@ -636,8 +639,8 @@ def __init__( *, os_disk_image: Optional["_models.OSDiskImageEncryption"] = None, data_disk_images: Optional[List["_models.DataDiskImageEncryption"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: Contains encryption settings for an OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2022_03_03.models.OSDiskImageEncryption @@ -669,8 +672,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -716,7 +719,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -797,8 +800,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -825,7 +828,8 @@ def __init__( class GalleryApplication(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the gallery Application Definition that you want to create or update. + """Specifies information about the gallery Application Definition that you want to create or + update. Variables are only populated by the server, and will be ignored when sending a request. @@ -898,8 +902,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, custom_actions: Optional[List["_models.GalleryApplicationCustomAction"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -974,8 +978,8 @@ def __init__( script: str, description: Optional[str] = None, parameters: Optional[List["_models.GalleryApplicationCustomActionParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the custom action. Must be unique within the Gallery Application Version. Required. @@ -996,7 +1000,8 @@ def __init__( class GalleryApplicationCustomActionParameter(_serialization.Model): - """The definition of a parameter that can be passed to a custom action of a Gallery Application Version. + """The definition of a parameter that can be passed to a custom action of a Gallery Application + Version. All required parameters must be populated in order to send to Azure. @@ -1036,8 +1041,8 @@ def __init__( type: Optional[Union[str, "_models.GalleryApplicationCustomActionParameterType"]] = None, default_value: Optional[str] = None, description: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the custom action. Must be unique within the Gallery Application Version. Required. @@ -1084,7 +1089,9 @@ class GalleryApplicationList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplication"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of Gallery Applications. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.GalleryApplication] @@ -1126,7 +1133,7 @@ class UpdateResourceDefinition(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1205,8 +1212,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, supported_os_type: Optional[Union[str, "_models.OperatingSystemTypes"]] = None, custom_actions: Optional[List["_models.GalleryApplicationCustomAction"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1305,8 +1312,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, safety_profile: Optional["_models.GalleryApplicationVersionSafetyProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1347,7 +1354,9 @@ class GalleryApplicationVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryApplicationVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery Application Versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.GalleryApplicationVersion] @@ -1381,8 +1390,8 @@ class GalleryArtifactPublishingProfileBase(_serialization.Model): used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -1418,8 +1427,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, target_extended_locations: Optional[List["_models.GalleryTargetExtendedLocation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -1435,8 +1444,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -1483,8 +1492,8 @@ class GalleryApplicationVersionPublishingProfile( used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -1549,8 +1558,8 @@ def __init__( advanced_settings: Optional[Dict[str, str]] = None, enable_health_check: Optional[bool] = None, custom_actions: Optional[List["_models.GalleryApplicationCustomAction"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -1566,8 +1575,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -1625,7 +1634,7 @@ class GalleryArtifactSafetyProfileBase(_serialization.Model): "allow_deletion_of_replicated_locations": {"key": "allowDeletionOfReplicatedLocations", "type": "bool"}, } - def __init__(self, *, allow_deletion_of_replicated_locations: Optional[bool] = None, **kwargs): + def __init__(self, *, allow_deletion_of_replicated_locations: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. @@ -1647,7 +1656,7 @@ class GalleryApplicationVersionSafetyProfile(GalleryArtifactSafetyProfileBase): "allow_deletion_of_replicated_locations": {"key": "allowDeletionOfReplicatedLocations", "type": "bool"}, } - def __init__(self, *, allow_deletion_of_replicated_locations: Optional[bool] = None, **kwargs): + def __init__(self, *, allow_deletion_of_replicated_locations: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. @@ -1711,8 +1720,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, publishing_profile: Optional["_models.GalleryApplicationVersionPublishingProfile"] = None, safety_profile: Optional["_models.GalleryApplicationVersionSafetyProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1747,7 +1756,7 @@ class GalleryArtifactSource(_serialization.Model): "managed_image": {"key": "managedImage", "type": "ManagedArtifact"}, } - def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs): + def __init__(self, *, managed_image: "_models.ManagedArtifact", **kwargs: Any) -> None: """ :keyword managed_image: The managed artifact. Required. :paramtype managed_image: ~azure.mgmt.compute.v2022_03_03.models.ManagedArtifact @@ -1768,7 +1777,7 @@ class GalleryArtifactVersionSource(_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: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. @@ -1799,8 +1808,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin community_gallery_image_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. @@ -1842,8 +1851,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryDiskImageSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -1895,8 +1904,8 @@ def __init__( lun: int, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryDiskImageSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -1938,8 +1947,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin uri: Optional[str] = None, storage_account_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. @@ -1975,8 +1984,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.GalleryExtendedLocationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: :paramtype name: str @@ -2006,7 +2015,7 @@ class GalleryIdentifier(_serialization.Model): "unique_name": {"key": "uniqueName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_name = None @@ -2124,8 +2133,8 @@ def __init__( purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2203,7 +2212,7 @@ class GalleryImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the gallery image feature. :paramtype name: str @@ -2240,7 +2249,7 @@ class GalleryImageIdentifier(_serialization.Model): "sku": {"key": "sku", "type": "str"}, } - def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs): + def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs: Any) -> None: """ :keyword publisher: The name of the gallery image definition publisher. Required. :paramtype publisher: str @@ -2276,7 +2285,7 @@ class GalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.GalleryImage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of Shared Image Gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.GalleryImage] @@ -2394,8 +2403,8 @@ def __init__( purchase_plan: Optional["_models.ImagePurchasePlan"] = None, features: Optional[List["_models.GalleryImageFeature"]] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2521,8 +2530,8 @@ def __init__( publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, safety_profile: Optional["_models.GalleryImageVersionSafetyProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2567,7 +2576,9 @@ class GalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.GalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of gallery image versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.GalleryImageVersion] @@ -2601,8 +2612,8 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) used for decommissioning purposes. This property is updatable. :vartype end_of_life_date: ~datetime.datetime :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". @@ -2638,8 +2649,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, replication_mode: Optional[Union[str, "_models.ReplicationMode"]] = None, target_extended_locations: Optional[List["_models.GalleryTargetExtendedLocation"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -2655,8 +2666,8 @@ def __init__( be used for decommissioning purposes. This property is updatable. :paramtype end_of_life_date: ~datetime.datetime :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :keyword replication_mode: Optional parameter which specifies the mode to be used for @@ -2706,7 +2717,7 @@ class GalleryImageVersionSafetyProfile(GalleryArtifactSafetyProfileBase): "policy_violations": {"key": "policyViolations", "type": "[PolicyViolation]"}, } - def __init__(self, *, allow_deletion_of_replicated_locations: Optional[bool] = None, **kwargs): + def __init__(self, *, allow_deletion_of_replicated_locations: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. @@ -2740,8 +2751,8 @@ def __init__( source: Optional["_models.GalleryArtifactVersionFullSource"] = None, os_disk_image: Optional["_models.GalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.GalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source: The source of the gallery artifact version. :paramtype source: ~azure.mgmt.compute.v2022_03_03.models.GalleryArtifactVersionFullSource @@ -2813,8 +2824,8 @@ def __init__( publishing_profile: Optional["_models.GalleryImageVersionPublishingProfile"] = None, storage_profile: Optional["_models.GalleryImageVersionStorageProfile"] = None, safety_profile: Optional["_models.GalleryImageVersionSafetyProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2857,7 +2868,7 @@ class GalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Gallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.Gallery] @@ -2899,8 +2910,8 @@ def __init__( *, host_caching: Optional[Union[str, "_models.HostCaching"]] = None, source: Optional["_models.GalleryDiskImageSource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -2922,8 +2933,8 @@ class GalleryTargetExtendedLocation(_serialization.Model): created per extended location. This property is updatable. :vartype extended_location_replica_count: int :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. @@ -2946,8 +2957,8 @@ def __init__( extended_location_replica_count: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. :paramtype name: str @@ -2957,8 +2968,8 @@ def __init__( created per extended location. This property is updatable. :paramtype extended_location_replica_count: int :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :keyword encryption: Optional. Allows users to provide customer managed keys for encrypting the @@ -3032,8 +3043,8 @@ def __init__( identifier: Optional["_models.GalleryIdentifier"] = None, sharing_profile: Optional["_models.SharingProfile"] = None, soft_delete_policy: Optional["_models.SoftDeletePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3075,8 +3086,13 @@ class ImagePurchasePlan(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, publisher: Optional[str] = None, product: Optional[str] = None, **kwargs - ): + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -3105,7 +3121,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -3131,7 +3149,9 @@ class LatestGalleryImageVersion(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, *, latest_version_name: Optional[str] = None, location: Optional[str] = None, **kwargs): + def __init__( + self, *, latest_version_name: Optional[str] = None, location: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword latest_version_name: The name of the latest version in the region. :paramtype latest_version_name: str @@ -3160,7 +3180,7 @@ class ManagedArtifact(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin """ :keyword id: The managed artifact id. Required. :paramtype id: str @@ -3189,8 +3209,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, security_profile: Optional["_models.OSDiskImageSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption set. @@ -3223,8 +3243,8 @@ def __init__( *, confidential_vm_encryption_type: Optional[Union[str, "_models.ConfidentialVMEncryptionType"]] = None, secure_vm_disk_encryption_set_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword confidential_vm_encryption_type: confidential VM encryption types. Known values are: "EncryptedVMGuestStateOnlyWithPmk", "EncryptedWithPmk", and "EncryptedWithCmk". @@ -3259,7 +3279,7 @@ class PirResource(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -3290,7 +3310,7 @@ class PirSharedGalleryResource(PirResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3319,8 +3339,8 @@ def __init__( *, category: Optional[Union[str, "_models.PolicyViolationCategory"]] = None, details: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword category: Describes the nature of the policy violation. Known values are: "Other", "ImageFlaggedUnsafe", "CopyrightValidation", and "IpTheft". @@ -3334,7 +3354,8 @@ def __init__( class RecommendedMachineConfiguration(_serialization.Model): - """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + """The properties describe the recommended machine configuration for this Image Definition. These + properties are updatable. :ivar v_cp_us: Describes the resource range. :vartype v_cp_us: ~azure.mgmt.compute.v2022_03_03.models.ResourceRange @@ -3352,8 +3373,8 @@ def __init__( *, v_cp_us: Optional["_models.ResourceRange"] = None, memory: Optional["_models.ResourceRange"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword v_cp_us: Describes the resource range. :paramtype v_cp_us: ~azure.mgmt.compute.v2022_03_03.models.ResourceRange @@ -3395,7 +3416,7 @@ class RegionalReplicationStatus(_serialization.Model): "progress": {"key": "progress", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.region = None @@ -3428,7 +3449,7 @@ class RegionalSharingStatus(_serialization.Model): "details": {"key": "details", "type": "str"}, } - def __init__(self, *, region: Optional[str] = None, details: Optional[str] = None, **kwargs): + def __init__(self, *, region: Optional[str] = None, details: Optional[str] = None, **kwargs: Any) -> None: """ :keyword region: Region name. :paramtype region: str @@ -3464,7 +3485,7 @@ class ReplicationStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalReplicationStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.aggregated_state = None @@ -3490,8 +3511,8 @@ def __init__( *, min: Optional[int] = None, # pylint: disable=redefined-builtin max: Optional[int] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min: The minimum number of the resource. :paramtype min: int @@ -3534,7 +3555,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -3573,7 +3594,7 @@ class SharedGallery(PirSharedGalleryResource): "unique_id": {"key": "identifier.uniqueId", "type": "str"}, } - def __init__(self, *, unique_id: Optional[str] = None, **kwargs): + def __init__(self, *, unique_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3602,7 +3623,9 @@ class SharedGalleryDiskImage(_serialization.Model): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs): + def __init__( + self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3643,8 +3666,8 @@ class SharedGalleryDataDiskImage(SharedGalleryDiskImage): } def __init__( - self, *, lun: int, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs - ): + self, *, lun: int, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -3744,8 +3767,8 @@ def __init__( architecture: Optional[Union[str, "_models.Architecture"]] = None, privacy_statement_uri: Optional[str] = None, eula: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3820,7 +3843,9 @@ class SharedGalleryImageList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImage"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.SharedGalleryImage] @@ -3881,8 +3906,8 @@ def __init__( end_of_life_date: Optional[datetime.datetime] = None, exclude_from_latest: Optional[bool] = None, storage_profile: Optional["_models.SharedGalleryImageVersionStorageProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword unique_id: The unique id of this shared gallery. :paramtype unique_id: str @@ -3927,7 +3952,9 @@ class SharedGalleryImageVersionList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SharedGalleryImageVersion"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of shared gallery images versions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.SharedGalleryImageVersion] @@ -3960,8 +3987,8 @@ def __init__( *, os_disk_image: Optional["_models.SharedGalleryOSDiskImage"] = None, data_disk_images: Optional[List["_models.SharedGalleryDataDiskImage"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk_image: This is the OS disk image. :paramtype os_disk_image: ~azure.mgmt.compute.v2022_03_03.models.SharedGalleryOSDiskImage @@ -3995,7 +4022,7 @@ class SharedGalleryList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.SharedGallery"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of shared galleries. Required. :paramtype value: list[~azure.mgmt.compute.v2022_03_03.models.SharedGallery] @@ -4029,7 +4056,9 @@ class SharedGalleryOSDiskImage(SharedGalleryDiskImage): "host_caching": {"key": "hostCaching", "type": "str"}, } - def __init__(self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs): + def __init__( + self, *, host_caching: Optional[Union[str, "_models.SharedGalleryHostCaching"]] = None, **kwargs: Any + ) -> None: """ :keyword host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". @@ -4071,8 +4100,8 @@ def __init__( *, permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None, community_gallery_info: Optional["_models.CommunityGalleryInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword permissions: This property allows you to specify the permission of sharing gallery. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Private** @@ -4111,8 +4140,8 @@ def __init__( *, type: Optional[Union[str, "_models.SharingProfileGroupTypes"]] = None, ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: This property allows you to specify the type of sharing group. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Subscriptions** @@ -4147,7 +4176,7 @@ class SharingStatus(_serialization.Model): "summary": {"key": "summary", "type": "[RegionalSharingStatus]"}, } - def __init__(self, *, summary: Optional[List["_models.RegionalSharingStatus"]] = None, **kwargs): + def __init__(self, *, summary: Optional[List["_models.RegionalSharingStatus"]] = None, **kwargs: Any) -> None: """ :keyword summary: Summary of all regional sharing status. :paramtype summary: list[~azure.mgmt.compute.v2022_03_03.models.RegionalSharingStatus] @@ -4186,8 +4215,8 @@ def __init__( *, operation_type: Union[str, "_models.SharingUpdateOperationTypes"], groups: Optional[List["_models.SharingProfileGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword operation_type: This property allows you to specify the operation type of gallery sharing update. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Add** @@ -4215,7 +4244,7 @@ class SoftDeletePolicy(_serialization.Model): "is_soft_delete_enabled": {"key": "isSoftDeleteEnabled", "type": "bool"}, } - def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, is_soft_delete_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword is_soft_delete_enabled: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. @@ -4236,7 +4265,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -4262,7 +4291,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -4291,7 +4320,7 @@ class SystemData(_serialization.Model): "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.created_at = None @@ -4309,8 +4338,8 @@ class TargetRegion(_serialization.Model): region. This property is updatable. :vartype regional_replica_count: int :ivar storage_account_type: Specifies the storage account type to be used to store the image. - This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :vartype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. @@ -4340,8 +4369,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountType"]] = None, encryption: Optional["_models.EncryptionImages"] = None, exclude_from_latest: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the region. Required. :paramtype name: str @@ -4349,8 +4378,8 @@ def __init__( region. This property is updatable. :paramtype regional_replica_count: int :keyword storage_account_type: Specifies the storage account type to be used to store the - image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", and - "Premium_LRS". + image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", + "Premium_LRS", and "StandardSSD_LRS". :paramtype storage_account_type: str or ~azure.mgmt.compute.v2022_03_03.models.StorageAccountType :keyword encryption: Optional. Allows users to provide customer managed keys for encrypting the @@ -4396,7 +4425,7 @@ class UserArtifactManage(_serialization.Model): "update": {"key": "update", "type": "str"}, } - def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs): + def __init__(self, *, install: str, remove: str, update: Optional[str] = None, **kwargs: Any) -> None: """ :keyword install: Required. The path and arguments to install the gallery application. This is limited to 4096 characters. Required. @@ -4416,7 +4445,8 @@ def __init__(self, *, install: str, remove: str, update: Optional[str] = None, * class UserArtifactSettings(_serialization.Model): - """Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. + """Additional settings for the VM app that contains the target package and config file name when + it is deployed to target VM or VM scale set. :ivar package_file_name: Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same @@ -4433,7 +4463,9 @@ class UserArtifactSettings(_serialization.Model): "config_file_name": {"key": "configFileName", "type": "str"}, } - def __init__(self, *, package_file_name: Optional[str] = None, config_file_name: Optional[str] = None, **kwargs): + def __init__( + self, *, package_file_name: Optional[str] = None, config_file_name: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword package_file_name: Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same @@ -4471,7 +4503,7 @@ class UserArtifactSource(_serialization.Model): "default_configuration_link": {"key": "defaultConfigurationLink", "type": "str"}, } - def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs): + def __init__(self, *, media_link: str, default_configuration_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword media_link: Required. The mediaLink of the artifact, must be a readable storage page blob. Required. @@ -4506,7 +4538,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_metadata.json index aed75ce7eea5..ef974c743cdb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/models/_models_py3.py index a3d49e565ac8..99e811b84c0f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_04_04/models/_models_py3.py @@ -54,8 +54,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_04_04.models.ApiErrorBase] @@ -94,8 +94,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -157,8 +157,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, properties: Optional["_models.CloudServiceProperties"] = None, system_data: Optional["_models.SystemData"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -190,7 +190,7 @@ class CloudServiceExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[Extension]"}, } - def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs): + def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs: Any) -> None: """ :keyword extensions: List of extensions for the cloud service. :paramtype extensions: list[~azure.mgmt.compute.v2022_04_04.models.Extension] @@ -278,8 +278,8 @@ def __init__( protected_settings_from_key_vault: Optional["_models.CloudServiceVaultAndSecretReference"] = None, force_update_tag: Optional[str] = None, roles_applied_to: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher: The name of the extension handler publisher. :paramtype publisher: str @@ -364,7 +364,7 @@ class CloudServiceInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs): + def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs: Any) -> None: """ :keyword role_instance: Instance view statuses. :paramtype role_instance: ~azure.mgmt.compute.v2022_04_04.models.InstanceViewStatusesSummary @@ -397,7 +397,7 @@ class CloudServiceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_04_04.models.CloudService] @@ -443,8 +443,8 @@ def __init__( load_balancer_configurations: Optional[List["_models.LoadBalancerConfiguration"]] = None, slot_type: Optional[Union[str, "_models.CloudServiceSlotType"]] = None, swappable_cloud_service: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword load_balancer_configurations: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an @@ -480,7 +480,9 @@ class CloudServiceOsProfile(_serialization.Model): "secrets": {"key": "secrets", "type": "[CloudServiceVaultSecretGroup]"}, } - def __init__(self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs): + def __init__( + self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs: Any + ) -> None: """ :keyword secrets: Specifies set of certificates that should be installed onto the role instances. @@ -574,8 +576,8 @@ def __init__( os_profile: Optional["_models.CloudServiceOsProfile"] = None, network_profile: Optional["_models.CloudServiceNetworkProfile"] = None, extension_profile: Optional["_models.CloudServiceExtensionProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword package_url: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage @@ -674,8 +676,8 @@ def __init__( *, sku: Optional["_models.CloudServiceRoleSku"] = None, properties: Optional["_models.CloudServiceRoleProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: Describes the cloud service role sku. :paramtype sku: ~azure.mgmt.compute.v2022_04_04.models.CloudServiceRoleSku @@ -712,7 +714,9 @@ class CloudServiceRoleListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_04_04.models.CloudServiceRole] @@ -736,7 +740,9 @@ class CloudServiceRoleProfile(_serialization.Model): "roles": {"key": "roles", "type": "[CloudServiceRoleProfileProperties]"}, } - def __init__(self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs): + def __init__( + self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs: Any + ) -> None: """ :keyword roles: List of roles for the cloud service. :paramtype roles: @@ -760,7 +766,9 @@ class CloudServiceRoleProfileProperties(_serialization.Model): "sku": {"key": "sku", "type": "CloudServiceRoleSku"}, } - def __init__(self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs): + def __init__( + self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs: Any + ) -> None: """ :keyword name: Resource name. :paramtype name: str @@ -789,7 +797,7 @@ class CloudServiceRoleProperties(_serialization.Model): "unique_id": {"key": "uniqueId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_id = None @@ -816,8 +824,8 @@ class CloudServiceRoleSku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the @@ -846,7 +854,7 @@ class CloudServiceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -856,7 +864,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CloudServiceVaultAndSecretReference(_serialization.Model): - """Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance. + """Protected settings for the extension, referenced using KeyVault which are encrypted before sent + to the role instance. :ivar source_vault: The ARM Resource ID of the Key Vault. :vartype source_vault: ~azure.mgmt.compute.v2022_04_04.models.SubResource @@ -870,8 +879,8 @@ class CloudServiceVaultAndSecretReference(_serialization.Model): } def __init__( - self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs - ): + self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword source_vault: The ARM Resource ID of the Key Vault. :paramtype source_vault: ~azure.mgmt.compute.v2022_04_04.models.SubResource @@ -884,7 +893,8 @@ def __init__( class CloudServiceVaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the role instance. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -895,7 +905,7 @@ class CloudServiceVaultCertificate(_serialization.Model): "certificate_url": {"key": "certificateUrl", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, **kwargs): + def __init__(self, *, certificate_url: Optional[str] = None, **kwargs: Any) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -927,8 +937,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.CloudServiceVaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -962,8 +972,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -994,8 +1004,8 @@ def __init__( *, name: Optional[str] = None, properties: Optional["_models.CloudServiceExtensionProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -1021,7 +1031,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1054,7 +1066,7 @@ class InstanceSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -1078,7 +1090,7 @@ class InstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[StatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -1114,8 +1126,8 @@ def __init__( name: str, properties: "_models.LoadBalancerConfigurationProperties", id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1154,7 +1166,9 @@ class LoadBalancerConfigurationProperties(_serialization.Model): }, } - def __init__(self, *, frontend_ip_configurations: List["_models.LoadBalancerFrontendIPConfiguration"], **kwargs): + def __init__( + self, *, frontend_ip_configurations: List["_models.LoadBalancerFrontendIPConfiguration"], **kwargs: Any + ) -> None: """ :keyword frontend_ip_configurations: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must @@ -1167,7 +1181,8 @@ def __init__(self, *, frontend_ip_configurations: List["_models.LoadBalancerFron class LoadBalancerFrontendIPConfiguration(_serialization.Model): - """Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + """Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is + supported. Each load balancer configuration must have exactly one frontend IP configuration. All required parameters must be populated in order to send to Azure. @@ -1190,7 +1205,9 @@ class LoadBalancerFrontendIPConfiguration(_serialization.Model): "properties": {"key": "properties", "type": "LoadBalancerFrontendIPConfigurationProperties"}, } - def __init__(self, *, name: str, properties: "_models.LoadBalancerFrontendIPConfigurationProperties", **kwargs): + def __init__( + self, *, name: str, properties: "_models.LoadBalancerFrontendIPConfigurationProperties", **kwargs: Any + ) -> None: """ :keyword name: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. @@ -1228,8 +1245,8 @@ def __init__( public_ip_address: Optional["_models.SubResource"] = None, subnet: Optional["_models.SubResource"] = None, private_ip_address: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword public_ip_address: The reference to the public ip address resource. :paramtype public_ip_address: ~azure.mgmt.compute.v2022_04_04.models.SubResource @@ -1276,7 +1293,7 @@ class OSFamily(_serialization.Model): "properties": {"key": "properties", "type": "OSFamilyProperties"}, } - def __init__(self, *, properties: Optional["_models.OSFamilyProperties"] = None, **kwargs): + def __init__(self, *, properties: Optional["_models.OSFamilyProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: OS family properties. :paramtype properties: ~azure.mgmt.compute.v2022_04_04.models.OSFamilyProperties @@ -1310,7 +1327,7 @@ class OSFamilyListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.OSFamily"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.OSFamily"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_04_04.models.OSFamily] @@ -1348,7 +1365,7 @@ class OSFamilyProperties(_serialization.Model): "versions": {"key": "versions", "type": "[OSVersionPropertiesBase]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -1388,7 +1405,7 @@ class OSVersion(_serialization.Model): "properties": {"key": "properties", "type": "OSVersionProperties"}, } - def __init__(self, *, properties: Optional["_models.OSVersionProperties"] = None, **kwargs): + def __init__(self, *, properties: Optional["_models.OSVersionProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: OS version properties. :paramtype properties: ~azure.mgmt.compute.v2022_04_04.models.OSVersionProperties @@ -1422,7 +1439,7 @@ class OSVersionListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.OSVersion"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.OSVersion"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_04_04.models.OSVersion] @@ -1472,7 +1489,7 @@ class OSVersionProperties(_serialization.Model): "is_active": {"key": "isActive", "type": "bool"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.family = None @@ -1512,7 +1529,7 @@ class OSVersionPropertiesBase(_serialization.Model): "is_active": {"key": "isActive", "type": "bool"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.version = None @@ -1555,7 +1572,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1602,7 +1619,7 @@ class ResourceInstanceViewStatus(_serialization.Model): "level": {"key": "level", "type": "str"}, } - def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs): + def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs: Any) -> None: """ :keyword level: The level code. Known values are: "Info", "Warning", and "Error". :paramtype level: str or ~azure.mgmt.compute.v2022_04_04.models.StatusLevelTypes @@ -1646,7 +1663,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -1705,8 +1722,8 @@ def __init__( *, sku: Optional["_models.InstanceSku"] = None, properties: Optional["_models.RoleInstanceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: The role instance SKU. :paramtype sku: ~azure.mgmt.compute.v2022_04_04.models.InstanceSku @@ -1744,7 +1761,7 @@ class RoleInstanceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_04_04.models.RoleInstance] @@ -1775,7 +1792,7 @@ class RoleInstanceNetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[SubResource]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.network_interfaces = None @@ -1800,8 +1817,8 @@ def __init__( *, network_profile: Optional["_models.RoleInstanceNetworkProfile"] = None, instance_view: Optional["_models.RoleInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_profile: Describes the network profile for the role instance. :paramtype network_profile: ~azure.mgmt.compute.v2022_04_04.models.RoleInstanceNetworkProfile @@ -1831,7 +1848,7 @@ class RoleInstances(_serialization.Model): "role_instances": {"key": "roleInstances", "type": "[str]"}, } - def __init__(self, *, role_instances: List[str], **kwargs): + def __init__(self, *, role_instances: List[str], **kwargs: Any) -> None: """ :keyword role_instances: List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. Required. @@ -1872,7 +1889,7 @@ class RoleInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.platform_update_domain = None @@ -1902,7 +1919,7 @@ class StatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -1920,7 +1937,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1946,7 +1963,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1975,7 +1992,7 @@ class SystemData(_serialization.Model): "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.created_at = None @@ -2003,7 +2020,7 @@ class UpdateDomain(_serialization.Model): "name": {"key": "name", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2031,7 +2048,7 @@ class UpdateDomainListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_04_04.models.UpdateDomain] @@ -2065,7 +2082,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_metadata.json index bb4caf492ddb..03d5d508acd3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_compute_management_client_enums.py index d7aa998d84b8..533e46a89e2d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_compute_management_client_enums.py @@ -30,53 +30,53 @@ class CopyCompletionErrorReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): operation fails. """ - #: Indicates that the source snapshot was deleted while the background copy of the resource - #: created via CopyStart operation was in progress. COPY_SOURCE_NOT_FOUND = "CopySourceNotFound" + """Indicates that the source snapshot was deleted while the background copy of the resource + #: created via CopyStart operation was in progress.""" class DataAccessAuthMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Additional authentication requirements when exporting or uploading to a disk or snapshot.""" - #: When export/upload URL is used, the system checks if the user has an identity in Azure Active - #: Directory and has necessary permissions to export/upload the data. Please refer to - #: aka.ms/DisksAzureADAuth. AZURE_ACTIVE_DIRECTORY = "AzureActiveDirectory" - #: No additional authentication would be performed when accessing export/upload URL. + """When export/upload URL is used, the system checks if the user has an identity in Azure Active + #: Directory and has necessary permissions to export/upload the data. Please refer to + #: aka.ms/DisksAzureADAuth.""" NONE = "None" + """No additional authentication would be performed when accessing export/upload URL.""" class DiskCreateOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible sources of a disk's creation.""" - #: Create an empty data disk of a size given by diskSizeGB. EMPTY = "Empty" - #: Disk will be attached to a VM. + """Create an empty data disk of a size given by diskSizeGB.""" ATTACH = "Attach" - #: Create a new disk from a platform image specified by the given imageReference or - #: galleryImageReference. + """Disk will be attached to a VM.""" FROM_IMAGE = "FromImage" - #: Create a disk by importing from a blob specified by a sourceUri in a storage account specified - #: by storageAccountId. + """Create a new disk from a platform image specified by the given imageReference or + #: galleryImageReference.""" IMPORT = "Import" - #: Create a new disk or snapshot by copying from a disk or snapshot specified by the given - #: sourceResourceId. + """Create a disk by importing from a blob specified by a sourceUri in a storage account specified + #: by storageAccountId.""" COPY = "Copy" - #: Create a new disk by copying from a backup recovery point. + """Create a new disk or snapshot by copying from a disk or snapshot specified by the given + #: sourceResourceId.""" RESTORE = "Restore" - #: Create a new disk by obtaining a write token and using it to directly upload the contents of - #: the disk. + """Create a new disk by copying from a backup recovery point.""" UPLOAD = "Upload" - #: Create a new disk by using a deep copy process, where the resource creation is considered - #: complete only after all data has been copied from the source. + """Create a new disk by obtaining a write token and using it to directly upload the contents of + #: the disk.""" COPY_START = "CopyStart" - #: Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk by importing additional blob for VM guest state specified by securityDataUri in storage - #: account specified by storageAccountId + """Create a new disk by using a deep copy process, where the resource creation is considered + #: complete only after all data has been copied from the source.""" IMPORT_SECURE = "ImportSecure" - #: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported - #: disk and upload using write token in both disk and VM guest state + """Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk by importing additional blob for VM guest state specified by securityDataUri in storage + #: account specified by storageAccountId""" UPLOAD_PREPARED_SECURE = "UploadPreparedSecure" + """Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported + #: disk and upload using write token in both disk and VM guest state""" class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -95,91 +95,91 @@ class DiskEncryptionSetIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta class DiskEncryptionSetType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can - #: be changed and revoked by a customer. ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One - #: of the keys is Customer managed and the other key is Platform managed. + """Resource using diskEncryptionSet would be encrypted at rest with Customer managed key that can + #: be changed and revoked by a customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" - #: Confidential VM supported disk and VM guest state would be encrypted with customer managed key. + """Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One + #: of the keys is Customer managed and the other key is Platform managed.""" CONFIDENTIAL_VM_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVmEncryptedWithCustomerKey" + """Confidential VM supported disk and VM guest state would be encrypted with customer managed key.""" class DiskSecurityTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the SecurityType of the VM. Applicable for OS disks only.""" - #: Trusted Launch provides security features such as secure boot and virtual Trusted Platform - #: Module (vTPM) TRUSTED_LAUNCH = "TrustedLaunch" - #: Indicates Confidential VM disk with only VM guest state encrypted + """Trusted Launch provides security features such as secure boot and virtual Trusted Platform + #: Module (vTPM)""" CONFIDENTIAL_VM_VMGUEST_STATE_ONLY_ENCRYPTED_WITH_PLATFORM_KEY = ( "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" ) - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform - #: managed key + """Indicates Confidential VM disk with only VM guest state encrypted""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_PLATFORM_KEY = "ConfidentialVM_DiskEncryptedWithPlatformKey" - #: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer - #: managed key + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform + #: managed key""" CONFIDENTIAL_VM_DISK_ENCRYPTED_WITH_CUSTOMER_KEY = "ConfidentialVM_DiskEncryptedWithCustomerKey" + """Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer + #: managed key""" class DiskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This enumerates the possible state of the disk.""" - #: The disk is not being used and can be attached to a VM. UNATTACHED = "Unattached" - #: The disk is currently attached to a running VM. + """The disk is not being used and can be attached to a VM.""" ATTACHED = "Attached" - #: The disk is attached to a stopped-deallocated VM. + """The disk is currently attached to a running VM.""" RESERVED = "Reserved" - #: The disk is attached to a VM which is in hibernated state. + """The disk is attached to a stopped-deallocated VM.""" FROZEN = "Frozen" - #: The disk currently has an Active SAS Uri associated with it. + """The disk is attached to a VM which is in hibernated state.""" ACTIVE_SAS = "ActiveSAS" - #: The disk is attached to a VM in hibernated state and has an active SAS URI associated with it. + """The disk currently has an Active SAS Uri associated with it.""" ACTIVE_SAS_FROZEN = "ActiveSASFrozen" - #: A disk is ready to be created by upload by requesting a write token. + """The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.""" READY_TO_UPLOAD = "ReadyToUpload" - #: A disk is created for upload and a write token has been issued for uploading to it. + """A disk is ready to be created by upload by requesting a write token.""" ACTIVE_UPLOAD = "ActiveUpload" + """A disk is created for upload and a write token has been issued for uploading to it.""" class DiskStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + """Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.""" PREMIUM_LRS = "Premium_LRS" - #: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise - #: applications and dev/test. + """Premium SSD locally redundant storage. Best for production and performance sensitive workloads.""" STANDARD_SSD_LRS = "StandardSSD_LRS" - #: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier - #: databases (for example, SQL, Oracle), and other transaction-heavy workloads. + """Standard SSD locally redundant storage. Best for web servers, lightly used enterprise + #: applications and dev/test.""" ULTRA_SSD_LRS = "UltraSSD_LRS" - #: Premium SSD zone redundant storage. Best for the production workloads that need storage - #: resiliency against zone failures. + """Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier + #: databases (for example, SQL, Oracle), and other transaction-heavy workloads.""" PREMIUM_ZRS = "Premium_ZRS" - #: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications - #: and dev/test that need storage resiliency against zone failures. + """Premium SSD zone redundant storage. Best for the production workloads that need storage + #: resiliency against zone failures.""" STANDARD_SSD_ZRS = "StandardSSD_ZRS" - #: Premium SSD v2 locally redundant storage. Best for production and performance-sensitive - #: workloads that consistently require low latency and high IOPS and throughput. + """Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications + #: and dev/test that need storage resiliency against zone failures.""" PREMIUM_V2_LRS = "PremiumV2_LRS" + """Premium SSD v2 locally redundant storage. Best for production and performance-sensitive + #: workloads that consistently require low latency and high IOPS and throughput.""" class EncryptionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of key used to encrypt the data of the disk.""" - #: Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is - #: not a valid encryption type for disk encryption sets. ENCRYPTION_AT_REST_WITH_PLATFORM_KEY = "EncryptionAtRestWithPlatformKey" - #: Disk is encrypted at rest with Customer managed key that can be changed and revoked by a - #: customer. + """Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is + #: not a valid encryption type for disk encryption sets.""" ENCRYPTION_AT_REST_WITH_CUSTOMER_KEY = "EncryptionAtRestWithCustomerKey" - #: Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and - #: the other key is Platform managed. + """Disk is encrypted at rest with Customer managed key that can be changed and revoked by a + #: customer.""" ENCRYPTION_AT_REST_WITH_PLATFORM_AND_CUSTOMER_KEYS = "EncryptionAtRestWithPlatformAndCustomerKeys" + """Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and + #: the other key is Platform managed.""" class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -198,12 +198,12 @@ class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): class NetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for accessing the disk via network.""" - #: The disk can be exported or uploaded to from any network. ALLOW_ALL = "AllowAll" - #: The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. + """The disk can be exported or uploaded to from any network.""" ALLOW_PRIVATE = "AllowPrivate" - #: The disk cannot be exported. + """The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.""" DENY_ALL = "DenyAll" + """The disk cannot be exported.""" class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -233,22 +233,22 @@ class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiv class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Policy for controlling export on the disk.""" - #: You can generate a SAS URI to access the underlying data of the disk publicly on the internet - #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from - #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. ENABLED = "Enabled" - #: You cannot access the underlying data of the disk publicly on the internet even when - #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your - #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. + """You can generate a SAS URI to access the underlying data of the disk publicly on the internet + #: when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from + #: your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" DISABLED = "Disabled" + """You cannot access the underlying data of the disk publicly on the internet even when + #: NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your + #: trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.""" class SnapshotStorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The sku name.""" - #: Standard HDD locally redundant storage STANDARD_LRS = "Standard_LRS" - #: Premium SSD locally redundant storage + """Standard HDD locally redundant storage""" PREMIUM_LRS = "Premium_LRS" - #: Standard zone redundant storage + """Premium SSD locally redundant storage""" STANDARD_ZRS = "Standard_ZRS" + """Standard zone redundant storage""" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_models_py3.py index c48b64df8ce7..54102a658072 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_07_02/models/_models_py3.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization @@ -37,7 +37,7 @@ class AccessUri(_serialization.Model): "security_data_access_sas": {"key": "securityDataAccessSAS", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.access_sas = None @@ -75,8 +75,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_07_02.models.ApiErrorBase] @@ -115,8 +115,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -132,7 +132,8 @@ def __init__( class CopyCompletionError(_serialization.Model): - """Indicates the error details if the background copy of a resource created via the CopyStart operation fails. + """Indicates the error details if the background copy of a resource created via the CopyStart + operation fails. All required parameters must be populated in order to send to Azure. @@ -154,7 +155,9 @@ class CopyCompletionError(_serialization.Model): "error_message": {"key": "errorMessage", "type": "str"}, } - def __init__(self, *, error_code: Union[str, "_models.CopyCompletionErrorReason"], error_message: str, **kwargs): + def __init__( + self, *, error_code: Union[str, "_models.CopyCompletionErrorReason"], error_message: str, **kwargs: Any + ) -> None: """ :keyword error_code: Indicates the error code if the background copy of a resource created via the CopyStart operation fails. Required. "CopySourceNotFound" @@ -245,8 +248,8 @@ def __init__( logical_sector_size: Optional[int] = None, security_data_uri: Optional[str] = None, performance_plus: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword create_option: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", @@ -330,7 +333,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -573,8 +576,8 @@ def __init__( # pylint: disable=too-many-locals public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, optimized_for_frequent_attach: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -768,8 +771,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -807,7 +810,7 @@ class DiskAccessList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DiskAccess"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disk access resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_07_02.models.DiskAccess] @@ -831,7 +834,7 @@ class DiskAccessUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -928,8 +931,8 @@ def __init__( active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, federated_client_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -984,7 +987,9 @@ class DiskEncryptionSetList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskEncryptionSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk encryption sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_07_02.models.DiskEncryptionSet] @@ -1041,8 +1046,8 @@ def __init__( active_key: Optional["_models.KeyForDiskEncryptionSet"] = None, rotation_to_latest_key_version_enabled: Optional[bool] = None, federated_client_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1093,7 +1098,7 @@ class DiskList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Disk"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of disks. Required. :paramtype value: list[~azure.mgmt.compute.v2022_07_02.models.Disk] @@ -1131,7 +1136,7 @@ class ProxyOnlyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1246,8 +1251,8 @@ def __init__( disk_access_id: Optional[str] = None, completion_percent: Optional[float] = None, security_profile: Optional["_models.DiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". @@ -1318,7 +1323,9 @@ class DiskRestorePointList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DiskRestorePoint"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: A list of disk restore points. Required. :paramtype value: list[~azure.mgmt.compute.v2022_07_02.models.DiskRestorePoint] @@ -1354,8 +1361,8 @@ def __init__( *, security_type: Optional[Union[str, "_models.DiskSecurityTypes"]] = None, secure_vm_disk_encryption_set_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. Known values are: "TrustedLaunch", "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", @@ -1372,7 +1379,8 @@ def __init__( class DiskSku(_serialization.Model): - """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. + """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, + Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. Variables are only populated by the server, and will be ignored when sending a request. @@ -1392,7 +1400,7 @@ class DiskSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs): + def __init__(self, *, name: Optional[Union[str, "_models.DiskStorageAccountTypes"]] = None, **kwargs: Any) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". @@ -1541,8 +1549,8 @@ def __init__( public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, optimized_for_frequent_attach: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1662,8 +1670,8 @@ def __init__( *, disk_encryption_set_id: Optional[str] = None, type: Optional[Union[str, "_models.EncryptionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling encryption at rest. @@ -1679,7 +1687,8 @@ def __init__( class EncryptionSetIdentity(_serialization.Model): - """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. + """The managed identity for the disk encryption set. It should be given permission on the key + vault before it can be used to encrypt disks. Variables are only populated by the server, and will be ignored when sending a request. @@ -1721,8 +1730,8 @@ def __init__( *, type: Optional[Union[str, "_models.DiskEncryptionSetIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None @@ -1779,8 +1788,8 @@ def __init__( enabled: bool, encryption_settings: Optional[List["_models.EncryptionSettingsElement"]] = None, encryption_settings_version: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and @@ -1821,8 +1830,8 @@ def __init__( *, disk_encryption_key: Optional["_models.KeyVaultAndSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultAndKeyReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. :paramtype disk_encryption_key: @@ -1855,8 +1864,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -1899,8 +1908,8 @@ def __init__( access: Union[str, "_models.AccessLevel"], duration_in_seconds: int, get_secure_vm_guest_state_sas: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword access: Required. Known values are: "None", "Read", and "Write". :paramtype access: str or ~azure.mgmt.compute.v2022_07_02.models.AccessLevel @@ -1947,8 +1956,8 @@ def __init__( shared_gallery_image_id: Optional[str] = None, community_gallery_image_id: Optional[str] = None, lun: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference. @@ -1984,7 +1993,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -2019,7 +2030,7 @@ class KeyForDiskEncryptionSet(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs): + def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault"] = None, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk @@ -2035,7 +2046,8 @@ def __init__(self, *, key_url: str, source_vault: Optional["_models.SourceVault" class KeyVaultAndKeyReference(_serialization.Model): - """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. + """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the + encryptionKey. All required parameters must be populated in order to send to Azure. @@ -2055,7 +2067,7 @@ class KeyVaultAndKeyReference(_serialization.Model): "key_url": {"key": "keyUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", key_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2022_07_02.models.SourceVault @@ -2088,7 +2100,7 @@ class KeyVaultAndSecretReference(_serialization.Model): "secret_url": {"key": "secretUrl", "type": "str"}, } - def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs): + def __init__(self, *, source_vault: "_models.SourceVault", secret_url: str, **kwargs: Any) -> None: """ :keyword source_vault: Resource id of the KeyVault containing the key or secret. Required. :paramtype source_vault: ~azure.mgmt.compute.v2022_07_02.models.SourceVault @@ -2117,7 +2129,7 @@ class PrivateEndpoint(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2170,8 +2182,8 @@ def __init__( self, *, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword private_link_service_connection_state: A collection of information about the state of the connection between DiskAccess and Virtual Network. @@ -2207,8 +2219,8 @@ def __init__( *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Array of private endpoint connections. :paramtype value: list[~azure.mgmt.compute.v2022_07_02.models.PrivateEndpointConnection] @@ -2257,7 +2269,7 @@ class PrivateLinkResource(_serialization.Model): "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, } - def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs): + def __init__(self, *, required_zone_names: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword required_zone_names: The private link resource DNS zone name. :paramtype required_zone_names: list[str] @@ -2282,7 +2294,7 @@ class PrivateLinkResourceListResult(_serialization.Model): "value": {"key": "value", "type": "[PrivateLinkResource]"}, } - def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. :paramtype value: list[~azure.mgmt.compute.v2022_07_02.models.PrivateLinkResource] @@ -2292,7 +2304,8 @@ def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = Non class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and provider. + """A collection of information about the state of the connection between service consumer and + provider. :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2317,8 +2330,8 @@ def __init__( status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, description: Optional[str] = None, actions_required: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". @@ -2348,7 +2361,7 @@ class PropertyUpdatesInProgress(_serialization.Model): "target_tier": {"key": "targetTier", "type": "str"}, } - def __init__(self, *, target_tier: Optional[str] = None, **kwargs): + def __init__(self, *, target_tier: Optional[str] = None, **kwargs: Any) -> None: """ :keyword target_tier: The target performance tier of the disk if a tier change operation is in progress. @@ -2387,7 +2400,9 @@ class PurchasePlan(_serialization.Model): "promotion_code": {"key": "promotionCode", "type": "str"}, } - def __init__(self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs): + def __init__( + self, *, name: str, publisher: str, product: str, promotion_code: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword name: The plan ID. Required. :paramtype name: str @@ -2428,7 +2443,7 @@ class ResourceUriList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List[str], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. Required. @@ -2473,7 +2488,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -2505,7 +2520,7 @@ class ShareInfoElement(_serialization.Model): "vm_uri": {"key": "vmUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.vm_uri = None @@ -2682,8 +2697,8 @@ def __init__( # pylint: disable=too-many-locals completion_percent: Optional[float] = None, copy_completion_error: Optional["_models.CopyCompletionError"] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2801,7 +2816,7 @@ class SnapshotList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: A list of snapshots. Required. :paramtype value: list[~azure.mgmt.compute.v2022_07_02.models.Snapshot] @@ -2815,7 +2830,9 @@ def __init__(self, *, value: List["_models.Snapshot"], next_link: Optional[str] class SnapshotSku(_serialization.Model): - """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. + """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + parameter for incremental snapshot and the default behavior is the SKU will be set to the same + sku as the previous snapshot. Variables are only populated by the server, and will be ignored when sending a request. @@ -2834,7 +2851,9 @@ class SnapshotSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs): + def __init__( + self, *, name: Optional[Union[str, "_models.SnapshotStorageAccountTypes"]] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. Known values are: "Standard_LRS", "Premium_LRS", and "Standard_ZRS". @@ -2922,8 +2941,8 @@ def __init__( public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, data_access_auth_mode: Optional[Union[str, "_models.DataAccessAuthMode"]] = None, supported_capabilities: Optional["_models.SupportedCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2982,7 +3001,8 @@ def __init__( class SourceVault(_serialization.Model): - """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. + """The vault id is an Azure Resource Manager Resource id in the form + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. :ivar id: Resource Id. :vartype id: str @@ -2992,7 +3012,7 @@ class SourceVault(_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: Resource Id. :paramtype id: str @@ -3012,7 +3032,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -3038,7 +3058,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3070,8 +3090,8 @@ def __init__( disk_controller_types: Optional[str] = None, accelerated_network: Optional[bool] = None, architecture: Optional[Union[str, "_models.Architecture"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_controller_types: The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI. @@ -3112,7 +3132,7 @@ class SystemData(_serialization.Model): "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.created_at = None @@ -3140,7 +3160,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_metadata.json index a2e3b646e768..fec146c54a5a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_compute_management_client_enums.py index 1d230c6bb9df..e19794902d5d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_compute_management_client_enums.py @@ -291,10 +291,10 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State. For managed images, use Generalized.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_models_py3.py index 5983b5529839..fc0229c931cc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/models/_models_py3.py @@ -46,8 +46,8 @@ class AdditionalCapabilities(_serialization.Model): } def __init__( - self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs - ): + self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -64,7 +64,9 @@ def __init__( class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -96,8 +98,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -133,7 +135,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -174,8 +176,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_08_01.models.ApiErrorBase] @@ -214,8 +216,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -243,7 +245,9 @@ class ApplicationProfile(_serialization.Model): "gallery_applications": {"key": "galleryApplications", "type": "[VMGalleryApplication]"}, } - def __init__(self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs): + def __init__( + self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs: Any + ) -> None: """ :keyword gallery_applications: Specifies the gallery applications that should be made available to the VM/VMSS. @@ -285,8 +289,8 @@ def __init__( enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, use_rolling_upgrade_policy: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -327,7 +331,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -367,8 +371,8 @@ def __init__( enabled: Optional[bool] = None, grace_period: Optional[str] = None, repair_action: Optional[Union[str, "_models.RepairAction"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -424,7 +428,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -440,7 +444,15 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Availability sets + overview `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -507,8 +519,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -561,7 +573,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.AvailabilitySet] @@ -585,7 +599,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -595,7 +609,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -640,8 +655,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -721,7 +736,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -735,7 +750,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -756,7 +772,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -777,7 +793,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -792,7 +811,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -836,7 +855,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -935,8 +954,8 @@ def __init__( sku: "_models.Sku", tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -968,7 +987,10 @@ def __init__( class CapacityReservationGroup(Resource): - """Specifies information about the capacity reservation group that the capacity reservations should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. + """Specifies information about the capacity reservation group that the capacity reservations + should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be + added to a capacity reservation group at creation time. An existing capacity reservation cannot + be added or moved to another capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1026,8 +1048,8 @@ class CapacityReservationGroup(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1065,7 +1087,7 @@ class CapacityReservationGroupInstanceView(_serialization.Model): "capacity_reservations": {"key": "capacityReservations", "type": "[CapacityReservationInstanceViewWithName]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.capacity_reservations = None @@ -1092,7 +1114,9 @@ class CapacityReservationGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservation groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.CapacityReservationGroup] @@ -1139,7 +1163,7 @@ class CapacityReservationGroupUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationGroupInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1151,7 +1175,9 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CapacityReservationInstanceView(_serialization.Model): - """The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. + """The instance view of a capacity reservation that provides as snapshot of the runtime properties + of the capacity reservation that is managed by the platform and can change outside of control + plane operations. :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: @@ -1170,8 +1196,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1185,7 +1211,8 @@ def __init__( class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): - """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. + """The instance view of a capacity reservation that includes the name of the capacity reservation. + It is used for the response to the instance view of a capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1213,8 +1240,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1247,7 +1274,9 @@ class CapacityReservationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservations. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.CapacityReservation] @@ -1274,7 +1303,7 @@ class CapacityReservationProfile(_serialization.Model): "capacity_reservation_group": {"key": "capacityReservationGroup", "type": "SubResource"}, } - def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs): + def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs: Any) -> None: """ :keyword capacity_reservation_group: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough @@ -1287,7 +1316,8 @@ def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource" class CapacityReservationUpdate(UpdateResource): - """Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. + """Specifies information about the capacity reservation. Only tags and sku.capacity can be + updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1344,7 +1374,9 @@ class CapacityReservationUpdate(UpdateResource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1391,7 +1423,7 @@ class CapacityReservationUtilization(_serialization.Model): "virtual_machines_allocated": {"key": "virtualMachinesAllocated", "type": "[SubResourceReadOnly]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.current_capacity = None @@ -1415,7 +1447,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1458,7 +1490,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -1581,8 +1613,8 @@ def __init__( to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1676,7 +1708,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1771,8 +1803,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1823,7 +1855,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1849,7 +1881,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1861,7 +1895,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1936,8 +1973,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, additional_capabilities: Optional["_models.DedicatedHostGroupPropertiesAdditionalCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1980,7 +2017,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -2011,7 +2050,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.DedicatedHostGroup] @@ -2025,7 +2066,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupPropertiesAdditionalCapabilities(_serialization.Model): - """Enables or disables a capability on the dedicated host group.:code:`
`:code:`
`Minimum api-version: 2022-03-01. + """Enables or disables a capability on the dedicated host group.:code:`
`:code:`
`Minimum + api-version: 2022-03-01. :ivar ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual @@ -2042,7 +2084,7 @@ class DedicatedHostGroupPropertiesAdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual @@ -2059,7 +2101,8 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2115,8 +2158,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, additional_capabilities: Optional["_models.DedicatedHostGroupPropertiesAdditionalCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2176,8 +2219,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2192,7 +2235,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2225,8 +2269,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2259,7 +2303,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.DedicatedHost] @@ -2273,7 +2317,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2336,8 +2381,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2368,7 +2413,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2383,7 +2429,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2398,7 +2444,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2022_08_01.models.DiffDiskOptions @@ -2423,8 +2471,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2022_08_01.models.DiffDiskOptions @@ -2455,7 +2503,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2476,7 +2524,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2486,7 +2534,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -2496,7 +2547,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -2528,8 +2579,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2570,8 +2621,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2608,8 +2659,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin replication_status: Optional["_models.DiskRestorePointReplicationStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Disk restore point Id. :paramtype id: str @@ -2641,8 +2692,8 @@ def __init__( *, status: Optional["_models.InstanceViewStatus"] = None, completion_percent: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: The resource status information. :paramtype status: ~azure.mgmt.compute.v2022_08_01.models.InstanceViewStatus @@ -2673,8 +2724,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -2754,8 +2805,8 @@ def __init__( *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, vm_size_properties: Optional["_models.VMSizeProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -2817,7 +2868,9 @@ def __init__( class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -2880,8 +2933,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2959,8 +3012,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_08_01.models.SubResource @@ -3060,8 +3113,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_08_01.models.SubResource @@ -3127,7 +3180,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.Image] @@ -3209,8 +3262,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_08_01.models.SubResource @@ -3261,7 +3314,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -3321,8 +3378,8 @@ def __init__( version: Optional[str] = None, shared_gallery_image_id: Optional[str] = None, community_gallery_image_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3390,8 +3447,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -3454,8 +3511,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3492,7 +3549,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -3535,8 +3594,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -3578,7 +3637,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -3611,7 +3670,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -3689,7 +3748,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -3706,7 +3765,10 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3742,8 +3804,8 @@ def __init__( provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, enable_vm_agent_platform_updates: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3802,8 +3864,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -3866,8 +3928,8 @@ def __init__( patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, assessment_mode: Optional[Union[str, "_models.LinuxPatchAssessmentMode"]] = None, automatic_by_platform_settings: Optional["_models.LinuxVMGuestPatchAutomaticByPlatformSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -3946,7 +4009,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.Usage] @@ -4011,8 +4074,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4060,7 +4123,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4083,7 +4146,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -4131,8 +4194,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4195,8 +4258,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4244,8 +4307,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4292,8 +4355,8 @@ def __init__( network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, network_interface_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4340,8 +4403,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. Known values are: "AutomaticRepairs" and "DummyOrchestrationServiceName". @@ -4380,7 +4443,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -4388,7 +4451,9 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines `_. All required parameters must be populated in order to send to Azure. @@ -4480,8 +4545,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -4569,7 +4634,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -4580,7 +4645,8 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4673,8 +4739,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4795,7 +4861,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -4856,8 +4922,8 @@ def __init__( enable_hotpatching: Optional[bool] = None, assessment_mode: Optional[Union[str, "_models.WindowsPatchAssessmentMode"]] = None, automatic_by_platform_settings: Optional["_models.WindowsVMGuestPatchAutomaticByPlatformSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -4923,8 +4993,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -4944,7 +5014,10 @@ def __init__( class PriorityMixPolicy(_serialization.Model): - """Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode. :code:`
`:code:`
`With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached. + """Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible + orchestration mode. :code:`
`:code:`
`With this property the customer is able to specify + the base number of regular priority VMs created as the VMSS flex instance scales out and the + split between Spot and Regular priority VMs after this base target has been reached. :ivar base_regular_priority_count: The base number of regular priority VMs that will be created in this scale set as it scales out. @@ -4969,8 +5042,8 @@ def __init__( *, base_regular_priority_count: Optional[int] = None, regular_priority_percentage_above_base: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword base_regular_priority_count: The base number of regular priority VMs that will be created in this scale set as it scales out. @@ -5065,8 +5138,8 @@ def __init__( proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, intent: Optional["_models.ProximityPlacementGroupPropertiesIntent"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5117,7 +5190,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.ProximityPlacementGroup] @@ -5141,7 +5216,7 @@ class ProximityPlacementGroupPropertiesIntent(_serialization.Model): "vm_sizes": {"key": "vmSizes", "type": "[str]"}, } - def __init__(self, *, vm_sizes: Optional[List[str]] = None, **kwargs): + def __init__(self, *, vm_sizes: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword vm_sizes: Specifies possible sizes of virtual machines that can be created in the proximity placement group. @@ -5162,7 +5237,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5171,7 +5246,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class ProxyResource(_serialization.Model): - """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for an Azure Resource Manager proxy resource. It will not have + tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -5195,7 +5271,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5222,8 +5298,8 @@ def __init__( *, name: Optional[Union[str, "_models.PublicIPAddressSkuName"]] = None, tier: Optional[Union[str, "_models.PublicIPAddressSkuTier"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". :paramtype name: str or ~azure.mgmt.compute.v2022_08_01.models.PublicIPAddressSkuName @@ -5261,7 +5337,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -5299,7 +5375,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -5364,8 +5440,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5433,7 +5509,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -5510,8 +5586,8 @@ def __init__( consistency_mode: Optional[Union[str, "_models.ConsistencyModeTypes"]] = None, time_created: Optional[datetime.datetime] = None, source_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. @@ -5594,8 +5670,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5633,8 +5709,8 @@ def __init__( *, value: Optional[List["_models.RestorePointCollection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Gets the list of restore point collections. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.RestorePointCollection] @@ -5667,7 +5743,7 @@ class RestorePointCollectionSourceProperties(_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: Resource Id of the source resource used to create this restore point collection. :paramtype id: str @@ -5715,8 +5791,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5752,8 +5828,8 @@ def __init__( *, disk_restore_points: Optional[List["_models.DiskRestorePointInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_restore_points: The disk restore points information. :paramtype disk_restore_points: @@ -5767,7 +5843,9 @@ def __init__( class RestorePointSourceMetadata(_serialization.Model): - """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + """Describes the properties of the Virtual Machine for which the restore point was created. The + properties provided are a subset and the snapshot of the overall Virtual Machine properties + captured at the time of the restore point creation. :ivar hardware_profile: Gets the hardware profile. :vartype hardware_profile: ~azure.mgmt.compute.v2022_08_01.models.HardwareProfile @@ -5810,8 +5888,8 @@ def __init__( vm_id: Optional[str] = None, security_profile: Optional["_models.SecurityProfile"] = None, location: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hardware_profile: Gets the hardware profile. :paramtype hardware_profile: ~azure.mgmt.compute.v2022_08_01.models.HardwareProfile @@ -5878,8 +5956,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Gets the logical unit number. :paramtype lun: int @@ -5943,8 +6021,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.compute.v2022_08_01.models.OperatingSystemType @@ -5991,8 +6069,8 @@ def __init__( *, os_disk: Optional["_models.RestorePointSourceVMOSDisk"] = None, data_disks: Optional[List["_models.RestorePointSourceVMDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -6028,7 +6106,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -6061,7 +6139,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -6125,8 +6203,8 @@ def __init__( pause_time_between_batches: Optional[str] = None, enable_cross_zone_upgrade: Optional[bool] = None, prioritize_unhealthy_instances: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -6195,7 +6273,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -6235,7 +6313,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6295,7 +6373,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6350,8 +6428,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6422,8 +6500,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6476,8 +6554,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -6514,7 +6592,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6547,7 +6625,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.RunCommandDocumentBase] @@ -6587,7 +6667,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6616,7 +6698,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.InstanceViewStatus] @@ -6660,8 +6742,8 @@ def __init__( *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, force_deletion: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -6706,8 +6788,8 @@ class ScheduledEventsProfile(_serialization.Model): } def __init__( - self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs - ): + self, *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6748,8 +6830,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -6773,7 +6855,9 @@ def __init__( class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -6792,8 +6876,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -6811,7 +6895,10 @@ def __init__( class SpotRestorePolicy(_serialization.Model): - """Specifies the Spot-Try-Restore properties for the virtual machine scale set. :code:`
`:code:`
` With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. + """Specifies the Spot-Try-Restore properties for the virtual machine scale set. + :code:`
`:code:`
` With this property customer can enable or disable automatic restore of + the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing + constraint. :ivar enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. @@ -6826,7 +6913,7 @@ class SpotRestorePolicy(_serialization.Model): "restore_timeout": {"key": "restoreTimeout", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing @@ -6852,7 +6939,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2022_08_01.models.SshPublicKey] @@ -6862,7 +6949,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6880,7 +6968,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -6927,7 +7015,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -6988,8 +7078,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7026,7 +7116,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.SshPublicKeyResource] @@ -7056,7 +7148,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7114,8 +7208,8 @@ def __init__( os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, disk_controller_type: Optional[Union[str, "_models.DiskControllerTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -7167,7 +7261,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7193,8 +7287,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7229,7 +7323,7 @@ class SystemData(_serialization.Model): "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.created_at = None @@ -7253,7 +7347,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -7320,8 +7416,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -7355,7 +7451,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7370,7 +7467,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7410,7 +7509,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -7456,7 +7555,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -7493,7 +7592,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7532,8 +7631,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -7590,7 +7689,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -7619,7 +7718,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -7652,7 +7751,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -7660,7 +7759,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7688,7 +7788,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7736,8 +7838,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -7762,7 +7864,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -7998,8 +8100,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8180,8 +8282,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -8252,7 +8354,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8291,7 +8393,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -8339,7 +8443,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -8449,8 +8553,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -8528,8 +8632,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -8606,8 +8710,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8666,8 +8770,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -8699,7 +8803,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineExtension] @@ -8775,8 +8879,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -8840,7 +8944,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8886,8 +8990,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -8947,8 +9051,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9049,8 +9153,8 @@ def __init__( disallowed: Optional["_models.DisallowedConfiguration"] = None, features: Optional[List["_models.VirtualMachineImageFeature"]] = None, architecture: Optional[Union[str, "_models.ArchitectureTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9112,7 +9216,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -9162,8 +9266,8 @@ def __init__( maximum_duration: Optional[str] = None, windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). @@ -9259,7 +9363,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9365,8 +9469,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -9437,7 +9541,7 @@ class VirtualMachineIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -9470,7 +9574,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachine] @@ -9556,8 +9662,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, ip_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceIPConfiguration"]] = None, dscp_configuration: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The network interface configuration name. Required. :paramtype name: str @@ -9613,7 +9719,7 @@ class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_serialization.Mode "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -9693,8 +9799,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The IP configuration name. Required. :paramtype name: str @@ -9773,8 +9879,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -9853,8 +9959,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersions"]] = None, public_ip_allocation_method: Optional[Union[str, "_models.PublicIPAllocationMethod"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -9913,7 +10019,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm @@ -9925,7 +10031,8 @@ def __init__(self, *, domain_name_label: str, **kwargs): class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -9936,7 +10043,7 @@ class VirtualMachineReimageParameters(_serialization.Model): "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10035,8 +10142,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10124,8 +10231,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -10179,8 +10286,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -10215,7 +10322,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineRunCommand] @@ -10297,8 +10406,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10502,8 +10611,8 @@ def __init__( # pylint: disable=too-many-locals orchestration_mode: Optional[Union[str, "_models.OrchestrationMode"]] = None, spot_restore_policy: Optional["_models.SpotRestorePolicy"] = None, priority_mix_policy: Optional["_models.PriorityMixPolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10681,8 +10790,8 @@ def __init__( disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -10829,8 +10938,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -10907,8 +11016,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineScaleSetExtension] @@ -10944,8 +11053,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -11051,8 +11160,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -11118,7 +11227,7 @@ class VirtualMachineScaleSetHardwareProfile(_serialization.Model): "vm_size_properties": {"key": "vmSizeProperties", "type": "VMSizeProperties"}, } - def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs): + def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs: Any) -> None: """ :keyword vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. :code:`
`:code:`
` Please follow the @@ -11170,8 +11279,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -11224,7 +11333,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2022_08_01.models.InstanceViewStatus] @@ -11254,7 +11363,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -11340,8 +11449,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11406,7 +11515,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -11441,8 +11550,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -11477,7 +11590,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineScaleSet] @@ -11511,7 +11626,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineScaleSetSku] @@ -11545,7 +11662,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineScaleSet] @@ -11587,8 +11706,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -11679,8 +11798,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11735,7 +11854,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -11775,8 +11894,8 @@ def __init__( health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -11882,8 +12001,8 @@ def __init__( vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -12026,8 +12145,8 @@ def __init__( linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -12150,8 +12269,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -12205,7 +12324,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -12228,7 +12347,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) "temp_disk": {"key": "tempDisk", "type": "bool"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs): + def __init__(self, *, temp_disk: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12254,7 +12373,9 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, temp_disk: Optional[bool] = None, instance_ids: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12293,7 +12414,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -12332,7 +12453,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -12378,8 +12499,8 @@ def __init__( os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, disk_controller_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -12489,8 +12610,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12550,7 +12671,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -12619,8 +12742,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12731,8 +12854,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12808,8 +12931,8 @@ def __init__( List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -12830,7 +12953,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2022_08_01.models.CachingTypes @@ -12882,8 +13006,8 @@ def __init__( vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2022_08_01.models.CachingTypes @@ -12951,8 +13075,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -13006,8 +13130,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, public_ip_prefix: Optional["_models.SubResource"] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -13058,8 +13182,8 @@ def __init__( os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, disk_controller_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2022_08_01.models.ImageReference @@ -13142,8 +13266,8 @@ def __init__( scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, hardware_profile: Optional["_models.VirtualMachineScaleSetHardwareProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -13358,8 +13482,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -13541,8 +13665,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13606,7 +13730,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -13638,7 +13764,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -13726,8 +13852,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13788,7 +13914,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -13816,7 +13942,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -13898,8 +14024,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -13964,7 +14090,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineScaleSetVM] @@ -13996,8 +14124,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -14111,8 +14239,8 @@ def __init__( capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, hardware_profile: Optional["_models.VirtualMachineScaleSetHardwareProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -14218,8 +14346,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -14275,8 +14403,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -14317,7 +14445,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineSize] @@ -14383,7 +14511,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -14419,7 +14547,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -14626,8 +14754,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -14779,7 +14907,8 @@ def __init__( # pylint: disable=too-many-locals class VMDiskSecurityProfile(_serialization.Model): - """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It can only be set for Confidential VMs. + """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It + can only be set for Confidential VMs. :ivar security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState @@ -14805,8 +14934,8 @@ def __init__( *, security_encryption_type: Optional[Union[str, "_models.SecurityEncryptionTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with @@ -14872,8 +15001,8 @@ def __init__( configuration_reference: Optional[str] = None, treat_failure_as_deployment_failure: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Optional, Specifies a passthrough value for more generic context. :paramtype tags: str @@ -14923,8 +15052,8 @@ def __init__( *, value: Optional[List["_models.VirtualMachineImageResource"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: The list of VMImages in EdgeZone. :paramtype value: list[~azure.mgmt.compute.v2022_08_01.models.VirtualMachineImageResource] @@ -14951,7 +15080,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -14986,7 +15115,9 @@ class VMSizeProperties(_serialization.Model): "v_cpus_per_core": {"key": "vCPUsPerCore", "type": "int"}, } - def __init__(self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs): + def __init__( + self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword v_cpus_available: Specifies the number of vCPUs available for the VM. :code:`
`:code:`
` When this property is not specified in the request body the default @@ -15061,8 +15192,8 @@ def __init__( patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, enable_vm_agent_platform_updates: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -15138,8 +15269,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -15165,7 +15296,8 @@ def __init__( class WindowsVMGuestPatchAutomaticByPlatformSettings(_serialization.Model): - """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings. + """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in + Windows patch settings. :ivar reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -15181,8 +15313,8 @@ def __init__( self, *, reboot_setting: Optional[Union[str, "_models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -15204,7 +15336,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2022_08_01.models.WinRMListener] @@ -15244,8 +15376,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_metadata.json index f83e905a75e7..c8aa4b7bad23 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/models/_models_py3.py index 4d6db4edefa5..63fb6842b265 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/models/_models_py3.py @@ -54,8 +54,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_09_04.models.ApiErrorBase] @@ -94,8 +94,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -162,8 +162,8 @@ def __init__( properties: Optional["_models.CloudServiceProperties"] = None, system_data: Optional["_models.SystemData"] = None, zones: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -199,7 +199,7 @@ class CloudServiceExtensionProfile(_serialization.Model): "extensions": {"key": "extensions", "type": "[Extension]"}, } - def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs): + def __init__(self, *, extensions: Optional[List["_models.Extension"]] = None, **kwargs: Any) -> None: """ :keyword extensions: List of extensions for the cloud service. :paramtype extensions: list[~azure.mgmt.compute.v2022_09_04.models.Extension] @@ -287,8 +287,8 @@ def __init__( protected_settings_from_key_vault: Optional["_models.CloudServiceVaultAndSecretReference"] = None, force_update_tag: Optional[str] = None, roles_applied_to: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword publisher: The name of the extension handler publisher. :paramtype publisher: str @@ -373,7 +373,7 @@ class CloudServiceInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs): + def __init__(self, *, role_instance: Optional["_models.InstanceViewStatusesSummary"] = None, **kwargs: Any) -> None: """ :keyword role_instance: Instance view statuses. :paramtype role_instance: ~azure.mgmt.compute.v2022_09_04.models.InstanceViewStatusesSummary @@ -406,7 +406,7 @@ class CloudServiceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.CloudService"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_09_04.models.CloudService] @@ -452,8 +452,8 @@ def __init__( load_balancer_configurations: Optional[List["_models.LoadBalancerConfiguration"]] = None, slot_type: Optional[Union[str, "_models.CloudServiceSlotType"]] = None, swappable_cloud_service: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword load_balancer_configurations: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an @@ -489,7 +489,9 @@ class CloudServiceOsProfile(_serialization.Model): "secrets": {"key": "secrets", "type": "[CloudServiceVaultSecretGroup]"}, } - def __init__(self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs): + def __init__( + self, *, secrets: Optional[List["_models.CloudServiceVaultSecretGroup"]] = None, **kwargs: Any + ) -> None: """ :keyword secrets: Specifies set of certificates that should be installed onto the role instances. @@ -583,8 +585,8 @@ def __init__( os_profile: Optional["_models.CloudServiceOsProfile"] = None, network_profile: Optional["_models.CloudServiceNetworkProfile"] = None, extension_profile: Optional["_models.CloudServiceExtensionProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword package_url: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage @@ -683,8 +685,8 @@ def __init__( *, sku: Optional["_models.CloudServiceRoleSku"] = None, properties: Optional["_models.CloudServiceRoleProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: Describes the cloud service role sku. :paramtype sku: ~azure.mgmt.compute.v2022_09_04.models.CloudServiceRoleSku @@ -721,7 +723,9 @@ class CloudServiceRoleListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CloudServiceRole"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_09_04.models.CloudServiceRole] @@ -745,7 +749,9 @@ class CloudServiceRoleProfile(_serialization.Model): "roles": {"key": "roles", "type": "[CloudServiceRoleProfileProperties]"}, } - def __init__(self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs): + def __init__( + self, *, roles: Optional[List["_models.CloudServiceRoleProfileProperties"]] = None, **kwargs: Any + ) -> None: """ :keyword roles: List of roles for the cloud service. :paramtype roles: @@ -769,7 +775,9 @@ class CloudServiceRoleProfileProperties(_serialization.Model): "sku": {"key": "sku", "type": "CloudServiceRoleSku"}, } - def __init__(self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs): + def __init__( + self, *, name: Optional[str] = None, sku: Optional["_models.CloudServiceRoleSku"] = None, **kwargs: Any + ) -> None: """ :keyword name: Resource name. :paramtype name: str @@ -798,7 +806,7 @@ class CloudServiceRoleProperties(_serialization.Model): "unique_id": {"key": "uniqueId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.unique_id = None @@ -825,8 +833,8 @@ class CloudServiceRoleSku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the @@ -855,7 +863,7 @@ class CloudServiceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -865,7 +873,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CloudServiceVaultAndSecretReference(_serialization.Model): - """Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance. + """Protected settings for the extension, referenced using KeyVault which are encrypted before sent + to the role instance. :ivar source_vault: The ARM Resource ID of the Key Vault. :vartype source_vault: ~azure.mgmt.compute.v2022_09_04.models.SubResource @@ -879,8 +888,8 @@ class CloudServiceVaultAndSecretReference(_serialization.Model): } def __init__( - self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs - ): + self, *, source_vault: Optional["_models.SubResource"] = None, secret_url: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword source_vault: The ARM Resource ID of the Key Vault. :paramtype source_vault: ~azure.mgmt.compute.v2022_09_04.models.SubResource @@ -893,7 +902,8 @@ def __init__( class CloudServiceVaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the role instance. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -904,7 +914,7 @@ class CloudServiceVaultCertificate(_serialization.Model): "certificate_url": {"key": "certificateUrl", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, **kwargs): + def __init__(self, *, certificate_url: Optional[str] = None, **kwargs: Any) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. @@ -936,8 +946,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.CloudServiceVaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -971,8 +981,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -1003,8 +1013,8 @@ def __init__( *, name: Optional[str] = None, properties: Optional["_models.CloudServiceExtensionProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -1030,7 +1040,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -1063,7 +1075,7 @@ class InstanceSku(_serialization.Model): "tier": {"key": "tier", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -1087,7 +1099,7 @@ class InstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[StatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -1123,8 +1135,8 @@ def __init__( name: str, properties: "_models.LoadBalancerConfigurationProperties", id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -1163,7 +1175,9 @@ class LoadBalancerConfigurationProperties(_serialization.Model): }, } - def __init__(self, *, frontend_ip_configurations: List["_models.LoadBalancerFrontendIpConfiguration"], **kwargs): + def __init__( + self, *, frontend_ip_configurations: List["_models.LoadBalancerFrontendIpConfiguration"], **kwargs: Any + ) -> None: """ :keyword frontend_ip_configurations: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must @@ -1176,7 +1190,8 @@ def __init__(self, *, frontend_ip_configurations: List["_models.LoadBalancerFron class LoadBalancerFrontendIpConfiguration(_serialization.Model): - """Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + """Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is + supported. Each load balancer configuration must have exactly one frontend IP configuration. All required parameters must be populated in order to send to Azure. @@ -1199,7 +1214,9 @@ class LoadBalancerFrontendIpConfiguration(_serialization.Model): "properties": {"key": "properties", "type": "LoadBalancerFrontendIpConfigurationProperties"}, } - def __init__(self, *, name: str, properties: "_models.LoadBalancerFrontendIpConfigurationProperties", **kwargs): + def __init__( + self, *, name: str, properties: "_models.LoadBalancerFrontendIpConfigurationProperties", **kwargs: Any + ) -> None: """ :keyword name: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. @@ -1237,8 +1254,8 @@ def __init__( public_ip_address: Optional["_models.SubResource"] = None, subnet: Optional["_models.SubResource"] = None, private_ip_address: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword public_ip_address: The reference to the public ip address resource. :paramtype public_ip_address: ~azure.mgmt.compute.v2022_09_04.models.SubResource @@ -1285,7 +1302,7 @@ class OSFamily(_serialization.Model): "properties": {"key": "properties", "type": "OSFamilyProperties"}, } - def __init__(self, *, properties: Optional["_models.OSFamilyProperties"] = None, **kwargs): + def __init__(self, *, properties: Optional["_models.OSFamilyProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: OS family properties. :paramtype properties: ~azure.mgmt.compute.v2022_09_04.models.OSFamilyProperties @@ -1319,7 +1336,7 @@ class OSFamilyListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.OSFamily"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.OSFamily"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_09_04.models.OSFamily] @@ -1357,7 +1374,7 @@ class OSFamilyProperties(_serialization.Model): "versions": {"key": "versions", "type": "[OSVersionPropertiesBase]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -1397,7 +1414,7 @@ class OSVersion(_serialization.Model): "properties": {"key": "properties", "type": "OSVersionProperties"}, } - def __init__(self, *, properties: Optional["_models.OSVersionProperties"] = None, **kwargs): + def __init__(self, *, properties: Optional["_models.OSVersionProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: OS version properties. :paramtype properties: ~azure.mgmt.compute.v2022_09_04.models.OSVersionProperties @@ -1431,7 +1448,7 @@ class OSVersionListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.OSVersion"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.OSVersion"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_09_04.models.OSVersion] @@ -1481,7 +1498,7 @@ class OSVersionProperties(_serialization.Model): "is_active": {"key": "isActive", "type": "bool"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.family = None @@ -1521,7 +1538,7 @@ class OSVersionPropertiesBase(_serialization.Model): "is_active": {"key": "isActive", "type": "bool"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.version = None @@ -1564,7 +1581,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1611,7 +1628,7 @@ class ResourceInstanceViewStatus(_serialization.Model): "level": {"key": "level", "type": "str"}, } - def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs): + def __init__(self, *, level: Optional[Union[str, "_models.StatusLevelTypes"]] = None, **kwargs: Any) -> None: """ :keyword level: The level code. Known values are: "Info", "Warning", and "Error". :paramtype level: str or ~azure.mgmt.compute.v2022_09_04.models.StatusLevelTypes @@ -1655,7 +1672,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -1714,8 +1731,8 @@ def __init__( *, sku: Optional["_models.InstanceSku"] = None, properties: Optional["_models.RoleInstanceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword sku: The role instance SKU. :paramtype sku: ~azure.mgmt.compute.v2022_09_04.models.InstanceSku @@ -1753,7 +1770,7 @@ class RoleInstanceListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.RoleInstance"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_09_04.models.RoleInstance] @@ -1784,7 +1801,7 @@ class RoleInstanceNetworkProfile(_serialization.Model): "network_interfaces": {"key": "networkInterfaces", "type": "[SubResource]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.network_interfaces = None @@ -1809,8 +1826,8 @@ def __init__( *, network_profile: Optional["_models.RoleInstanceNetworkProfile"] = None, instance_view: Optional["_models.RoleInstanceView"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_profile: Describes the network profile for the role instance. :paramtype network_profile: ~azure.mgmt.compute.v2022_09_04.models.RoleInstanceNetworkProfile @@ -1840,7 +1857,7 @@ class RoleInstances(_serialization.Model): "role_instances": {"key": "roleInstances", "type": "[str]"}, } - def __init__(self, *, role_instances: List[str], **kwargs): + def __init__(self, *, role_instances: List[str], **kwargs: Any) -> None: """ :keyword role_instances: List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. Required. @@ -1881,7 +1898,7 @@ class RoleInstanceView(_serialization.Model): "statuses": {"key": "statuses", "type": "[ResourceInstanceViewStatus]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.platform_update_domain = None @@ -1911,7 +1928,7 @@ class StatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -1929,7 +1946,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -1955,7 +1972,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1984,7 +2001,7 @@ class SystemData(_serialization.Model): "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.created_at = None @@ -2012,7 +2029,7 @@ class UpdateDomain(_serialization.Model): "name": {"key": "name", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2040,7 +2057,7 @@ class UpdateDomainListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.UpdateDomain"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of resources. Required. :paramtype value: list[~azure.mgmt.compute.v2022_09_04.models.UpdateDomain] @@ -2074,7 +2091,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_metadata.json index 3be907edd76a..86e2adc1e430 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_metadata.json @@ -19,13 +19,15 @@ "signature": "credential: \"TokenCredential\",", "description": "Credential needed for the client to connect to Azure. Required.", "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true + "required": true, + "method_location": "positional" }, "subscription_id": { "signature": "subscription_id: str,", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.", "docstring_type": "str", - "required": true + "required": true, + "method_location": "positional" } }, "async": { @@ -51,19 +53,22 @@ "signature": "api_version: Optional[str]=None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles=KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } }, "async": { @@ -71,19 +76,22 @@ "signature": "api_version: Optional[str] = None,", "description": "API version to use if no profile is provided, or if missing in profile.", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "base_url": { "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", - "required": false + "required": false, + "method_location": "positional" }, "profile": { "signature": "profile: KnownProfiles = KnownProfiles.default,", "description": "A profile definition, from KnownProfiles to dict.", "docstring_type": "azure.profiles.KnownProfiles", - "required": false + "required": false, + "method_location": "positional" } } } diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_vendor.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_vendor.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_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/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_version.py index 5a946a5bf158..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "29.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_compute_management_client_enums.py index 007b8eae9264..7b14f6a3c824 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_compute_management_client_enums.py @@ -307,10 +307,10 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The OS State. For managed images, use Generalized.""" - #: Generalized image. Needs to be provisioned during deployment time. GENERALIZED = "Generalized" - #: Specialized image. Contains already provisioned OS Disk. + """Generalized image. Needs to be provisioned during deployment time.""" SPECIALIZED = "Specialized" + """Specialized image. Contains already provisioned OS Disk.""" class OperatingSystemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_models_py3.py index 6ae7b31c6551..0fbda138258a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_11_01/models/_models_py3.py @@ -46,8 +46,8 @@ class AdditionalCapabilities(_serialization.Model): } def __init__( - self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs - ): + self, *, ultra_ssd_enabled: Optional[bool] = None, hibernation_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with @@ -64,7 +64,9 @@ def __init__( class AdditionalUnattendContent(_serialization.Model): - """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + """Specifies additional XML formatted information that can be included in the Unattend.xml file, + which is used by Windows Setup. Contents are defined by setting name, component name, and the + pass in which the content is applied. :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -96,8 +98,8 @@ def __init__( component_name: Optional[Literal["Microsoft-Windows-Shell-Setup"]] = None, setting_name: Optional[Union[str, "_models.SettingNames"]] = None, content: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value is "OobeSystem". @@ -122,7 +124,8 @@ def __init__( class AlternativeOption(_serialization.Model): - """Describes the alternative option specified by the Publisher for this image when this image is deprecated. + """Describes the alternative option specified by the Publisher for this image when this image is + deprecated. :ivar type: Describes the type of the alternative option. Known values are: "None", "Offer", and "Plan". @@ -138,8 +141,12 @@ class AlternativeOption(_serialization.Model): } def __init__( - self, *, type: Optional[Union[str, "_models.AlternativeType"]] = None, value: Optional[str] = None, **kwargs - ): + self, + *, + type: Optional[Union[str, "_models.AlternativeType"]] = None, + value: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword type: Describes the type of the alternative option. Known values are: "None", "Offer", and "Plan". @@ -165,7 +172,7 @@ class ApiEntityReference(_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: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... @@ -206,8 +213,8 @@ def __init__( code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword details: The Api error details. :paramtype details: list[~azure.mgmt.compute.v2022_11_01.models.ApiErrorBase] @@ -246,8 +253,8 @@ class ApiErrorBase(_serialization.Model): } def __init__( - self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs - ): + self, *, code: Optional[str] = None, target: Optional[str] = None, message: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword code: The error code. :paramtype code: str @@ -275,7 +282,9 @@ class ApplicationProfile(_serialization.Model): "gallery_applications": {"key": "galleryApplications", "type": "[VMGalleryApplication]"}, } - def __init__(self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs): + def __init__( + self, *, gallery_applications: Optional[List["_models.VMGalleryApplication"]] = None, **kwargs: Any + ) -> None: """ :keyword gallery_applications: Specifies the gallery applications that should be made available to the VM/VMSS. @@ -317,8 +326,8 @@ def __init__( enable_automatic_os_upgrade: Optional[bool] = None, disable_automatic_rollback: Optional[bool] = None, use_rolling_upgrade_policy: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image @@ -359,7 +368,7 @@ class AutomaticOSUpgradeProperties(_serialization.Model): "automatic_os_upgrade_supported": {"key": "automaticOSUpgradeSupported", "type": "bool"}, } - def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs): + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs: Any) -> None: """ :keyword automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on the image. Required. @@ -399,8 +408,8 @@ def __init__( enabled: Optional[bool] = None, grace_period: Optional[str] = None, repair_action: Optional[Union[str, "_models.RepairAction"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. @@ -456,7 +465,7 @@ class Resource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -472,7 +481,15 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class AvailabilitySet(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview `_. :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. + """Specifies information about the availability set that the virtual machine should be assigned + to. Virtual machines specified in the same availability set are allocated to different nodes to + maximize availability. For more information about availability sets, see `Availability sets + overview `_. + :code:`
`:code:`
` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
`:code:`
` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. Variables are only populated by the server, and will be ignored when sending a request. @@ -539,8 +556,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -593,7 +610,9 @@ class AvailabilitySetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.AvailabilitySet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of availability sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.AvailabilitySet] @@ -617,7 +636,7 @@ class UpdateResource(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -627,7 +646,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class AvailabilitySetUpdate(UpdateResource): - """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. + """Specifies information about the availability set that the virtual machine should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -672,8 +692,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["_models.SubResource"]] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -753,7 +773,7 @@ class AvailablePatchSummary(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -767,7 +787,8 @@ def __init__(self, **kwargs): class BillingProfile(_serialization.Model): - """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
`:code:`
`Minimum api-version: 2019-03-01. + """Specifies the billing related details of a Azure Spot VM or VMSS. + :code:`
`:code:`
`Minimum api-version: 2019-03-01. :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with the @@ -788,7 +809,7 @@ class BillingProfile(_serialization.Model): "max_price": {"key": "maxPrice", "type": "float"}, } - def __init__(self, *, max_price: Optional[float] = None, **kwargs): + def __init__(self, *, max_price: Optional[float] = None, **kwargs: Any) -> None: """ :keyword max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. :code:`
`:code:`
` This price will be compared with @@ -809,7 +830,10 @@ def __init__(self, *, max_price: Optional[float] = None, **kwargs): class BootDiagnostics(_serialization.Model): - """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the hypervisor. + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot + to diagnose VM status. :code:`
`:code:`
` You can easily view the output of your console + log. :code:`
`:code:`
` Azure also enables you to see a screenshot of the VM from the + hypervisor. :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool @@ -824,7 +848,7 @@ class BootDiagnostics(_serialization.Model): "storage_uri": {"key": "storageUri", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, storage_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :paramtype enabled: bool @@ -868,7 +892,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -967,8 +991,8 @@ def __init__( sku: "_models.Sku", tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1000,7 +1024,10 @@ def __init__( class CapacityReservationGroup(Resource): - """Specifies information about the capacity reservation group that the capacity reservations should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. + """Specifies information about the capacity reservation group that the capacity reservations + should be assigned to. :code:`
`:code:`
` Currently, a capacity reservation can only be + added to a capacity reservation group at creation time. An existing capacity reservation cannot + be added or moved to another capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1058,8 +1085,8 @@ class CapacityReservationGroup(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1097,7 +1124,7 @@ class CapacityReservationGroupInstanceView(_serialization.Model): "capacity_reservations": {"key": "capacityReservations", "type": "[CapacityReservationInstanceViewWithName]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.capacity_reservations = None @@ -1124,7 +1151,9 @@ class CapacityReservationGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservationGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservation groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.CapacityReservationGroup] @@ -1171,7 +1200,7 @@ class CapacityReservationGroupUpdate(UpdateResource): "instance_view": {"key": "properties.instanceView", "type": "CapacityReservationGroupInstanceView"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1183,7 +1212,9 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class CapacityReservationInstanceView(_serialization.Model): - """The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. + """The instance view of a capacity reservation that provides as snapshot of the runtime properties + of the capacity reservation that is managed by the platform and can change outside of control + plane operations. :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: @@ -1202,8 +1233,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1217,7 +1248,8 @@ def __init__( class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): - """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. + """The instance view of a capacity reservation that includes the name of the capacity reservation. + It is used for the response to the instance view of a capacity reservation group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1245,8 +1277,8 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: @@ -1279,7 +1311,9 @@ class CapacityReservationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.CapacityReservation"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of capacity reservations. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.CapacityReservation] @@ -1306,7 +1340,7 @@ class CapacityReservationProfile(_serialization.Model): "capacity_reservation_group": {"key": "capacityReservationGroup", "type": "SubResource"}, } - def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs): + def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, **kwargs: Any) -> None: """ :keyword capacity_reservation_group: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough @@ -1319,7 +1353,8 @@ def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource" class CapacityReservationUpdate(UpdateResource): - """Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. + """Specifies information about the capacity reservation. Only tags and sku.capacity can be + updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -1376,7 +1411,9 @@ class CapacityReservationUpdate(UpdateResource): "time_created": {"key": "properties.timeCreated", "type": "iso-8601"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, sku: Optional["_models.Sku"] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1423,7 +1460,7 @@ class CapacityReservationUtilization(_serialization.Model): "virtual_machines_allocated": {"key": "virtualMachinesAllocated", "type": "[SubResourceReadOnly]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.current_capacity = None @@ -1447,7 +1484,7 @@ class ComputeOperationListResult(_serialization.Model): "value": {"key": "value", "type": "[ComputeOperationValue]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1490,7 +1527,7 @@ class ComputeOperationValue(_serialization.Model): "provider": {"key": "display.provider", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.origin = None @@ -1613,8 +1650,8 @@ def __init__( to_be_detached: Optional[bool] = None, detach_option: Optional[Union[str, "_models.DiskDetachOptionTypes"]] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a @@ -1708,7 +1745,7 @@ class DataDiskImage(_serialization.Model): "lun": {"key": "lun", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.lun = None @@ -1803,8 +1840,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -1855,7 +1892,7 @@ class DedicatedHostAllocatableVM(_serialization.Model): "count": {"key": "count", "type": "float"}, } - def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs): + def __init__(self, *, vm_size: Optional[str] = None, count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword vm_size: VM size in terms of which the unutilized capacity is represented. :paramtype vm_size: str @@ -1881,7 +1918,9 @@ class DedicatedHostAvailableCapacity(_serialization.Model): "allocatable_v_ms": {"key": "allocatableVMs", "type": "[DedicatedHostAllocatableVM]"}, } - def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs): + def __init__( + self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllocatableVM"]] = None, **kwargs: Any + ) -> None: """ :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. @@ -1893,7 +1932,10 @@ def __init__(self, *, allocatable_v_ms: Optional[List["_models.DedicatedHostAllo class DedicatedHostGroup(Resource): # pylint: disable=too-many-instance-attributes - """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + """Specifies information about the dedicated host group that the dedicated hosts should be + assigned to. :code:`
`:code:`
` Currently, a dedicated host can only be added to a + dedicated host group at creation time. An existing dedicated host cannot be added to another + dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -1968,8 +2010,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, additional_capabilities: Optional["_models.DedicatedHostGroupPropertiesAdditionalCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2012,7 +2054,9 @@ class DedicatedHostGroupInstanceView(_serialization.Model): "hosts": {"key": "hosts", "type": "[DedicatedHostInstanceViewWithName]"}, } - def __init__(self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs): + def __init__( + self, *, hosts: Optional[List["_models.DedicatedHostInstanceViewWithName"]] = None, **kwargs: Any + ) -> None: """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: @@ -2043,7 +2087,9 @@ class DedicatedHostGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.DedicatedHostGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of dedicated host groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.DedicatedHostGroup] @@ -2057,7 +2103,8 @@ def __init__(self, *, value: List["_models.DedicatedHostGroup"], next_link: Opti class DedicatedHostGroupPropertiesAdditionalCapabilities(_serialization.Model): - """Enables or disables a capability on the dedicated host group.:code:`
`:code:`
`Minimum api-version: 2022-03-01. + """Enables or disables a capability on the dedicated host group.:code:`
`:code:`
`Minimum + api-version: 2022-03-01. :ivar ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual @@ -2074,7 +2121,7 @@ class DedicatedHostGroupPropertiesAdditionalCapabilities(_serialization.Model): "ultra_ssd_enabled": {"key": "ultraSSDEnabled", "type": "bool"}, } - def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): + def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual @@ -2091,7 +2138,8 @@ def __init__(self, *, ultra_ssd_enabled: Optional[bool] = None, **kwargs): class DedicatedHostGroupUpdate(UpdateResource): - """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + """Specifies information about the dedicated host group that the dedicated host should be assigned + to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2147,8 +2195,8 @@ def __init__( platform_fault_domain_count: Optional[int] = None, support_automatic_placement: Optional[bool] = None, additional_capabilities: Optional["_models.DedicatedHostGroupPropertiesAdditionalCapabilities"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2208,8 +2256,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2224,7 +2272,8 @@ def __init__( class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): - """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + """The instance view of a dedicated host that includes the name of the dedicated host. It is used + for the response to the instance view of a dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. @@ -2257,8 +2306,8 @@ def __init__( *, available_capacity: Optional["_models.DedicatedHostAvailableCapacity"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: @@ -2291,7 +2340,7 @@ class DedicatedHostListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.DedicatedHost] @@ -2305,7 +2354,8 @@ def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[ class DedicatedHostUpdate(UpdateResource): - """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + may be updated. Variables are only populated by the server, and will be ignored when sending a request. @@ -2368,8 +2418,8 @@ def __init__( platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, "_models.DedicatedHostLicenseTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2400,7 +2450,8 @@ def __init__( class DiagnosticsProfile(_serialization.Model): - """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: 2015-06-15. + """Specifies the boot diagnostic settings state. :code:`
`:code:`
`Minimum api-version: + 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2415,7 +2466,7 @@ class DiagnosticsProfile(_serialization.Model): "boot_diagnostics": {"key": "bootDiagnostics", "type": "BootDiagnostics"}, } - def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs): + def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = None, **kwargs: Any) -> None: """ :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
`\ **NOTE**\ : If storageUri is @@ -2430,7 +2481,9 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No class DiffDiskSettings(_serialization.Model): - """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for managed disk. + """Describes the parameters of ephemeral disk settings that can be specified for operating system + disk. :code:`
`:code:`
` NOTE: The ephemeral disk settings can only be specified for + managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" :vartype option: str or ~azure.mgmt.compute.v2022_11_01.models.DiffDiskOptions @@ -2455,8 +2508,8 @@ def __init__( *, option: Optional[Union[str, "_models.DiffDiskOptions"]] = None, placement: Optional[Union[str, "_models.DiffDiskPlacement"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" :paramtype option: str or ~azure.mgmt.compute.v2022_11_01.models.DiffDiskOptions @@ -2487,7 +2540,7 @@ class DisallowedConfiguration(_serialization.Model): "vm_disk_type": {"key": "vmDiskType", "type": "str"}, } - def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs): + def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] = None, **kwargs: Any) -> None: """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". @@ -2508,7 +2561,7 @@ class SubResource(_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: Resource Id. :paramtype id: str @@ -2518,7 +2571,10 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class DiskEncryptionSetParameters(SubResource): - """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + """Describes the parameter of customer managed disk encryption set resource id that can be + specified for disk. :code:`
`:code:`
` NOTE: The disk encryption set resource id can only + be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more + details. :ivar id: Resource Id. :vartype id: str @@ -2528,7 +2584,7 @@ class DiskEncryptionSetParameters(SubResource): "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: Resource Id. :paramtype id: str @@ -2560,8 +2616,8 @@ def __init__( disk_encryption_key: Optional["_models.KeyVaultSecretReference"] = None, key_encryption_key: Optional["_models.KeyVaultKeyReference"] = None, enabled: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. @@ -2602,8 +2658,8 @@ def __init__( name: Optional[str] = None, encryption_settings: Optional[List["_models.DiskEncryptionSettings"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -2640,8 +2696,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin replication_status: Optional["_models.DiskRestorePointReplicationStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Disk restore point Id. :paramtype id: str @@ -2673,8 +2729,8 @@ def __init__( *, status: Optional["_models.InstanceViewStatus"] = None, completion_percent: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword status: The resource status information. :paramtype status: ~azure.mgmt.compute.v2022_11_01.models.InstanceViewStatus @@ -2705,8 +2761,8 @@ def __init__( *, name: Optional[str] = None, type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extended location. :paramtype name: str @@ -2786,8 +2842,8 @@ def __init__( *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, vm_size_properties: Optional["_models.VMSizeProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_size: Specifies the size of the virtual machine. :code:`
`:code:`
` The enum data type is currently deprecated and will be removed by December 23rd 2023. @@ -2849,7 +2905,9 @@ def __init__( class Image(Resource): - """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. + """The source user image virtual hard disk. The virtual hard disk will be copied before being + attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive + must not exist. Variables are only populated by the server, and will be ignored when sending a request. @@ -2912,8 +2970,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -2991,8 +3049,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_11_01.models.SubResource @@ -3092,8 +3150,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_11_01.models.SubResource @@ -3164,8 +3222,8 @@ def __init__( image_state: Optional[Union[str, "_models.ImageState"]] = None, scheduled_deprecation_time: Optional[datetime.datetime] = None, alternative_option: Optional["_models.AlternativeOption"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_state: Describes the state of the image. Known values are: "Active", "ScheduledForDeprecation", and "Deprecated". @@ -3204,7 +3262,7 @@ class ImageListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.Image] @@ -3286,8 +3344,8 @@ def __init__( disk_size_gb: Optional[int] = None, storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword snapshot: The snapshot. :paramtype snapshot: ~azure.mgmt.compute.v2022_11_01.models.SubResource @@ -3338,7 +3396,11 @@ def __init__( class ImageReference(SubResource): - """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. + """Specifies information about the image to use. You can specify information about platform + images, marketplace images, or virtual machine images. This element is required when you want + to use a platform image, marketplace image, or virtual machine image, but is not used in other + creation operations. NOTE: Image reference publisher and offer can only be set when you create + the scale set. Variables are only populated by the server, and will be ignored when sending a request. @@ -3398,8 +3460,8 @@ def __init__( version: Optional[str] = None, shared_gallery_image_id: Optional[str] = None, community_gallery_image_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -3467,8 +3529,8 @@ def __init__( os_disk: Optional["_models.ImageOSDisk"] = None, data_disks: Optional[List["_models.ImageDataDisk"]] = None, zone_resilient: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs @@ -3531,8 +3593,8 @@ def __init__( source_virtual_machine: Optional["_models.SubResource"] = None, storage_profile: Optional["_models.ImageStorageProfile"] = None, hyper_v_generation: Optional[Union[str, "_models.HyperVGenerationTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -3569,7 +3631,9 @@ class InnerError(_serialization.Model): "errordetail": {"key": "errordetail", "type": "str"}, } - def __init__(self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs): + def __init__( + self, *, exceptiontype: Optional[str] = None, errordetail: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword exceptiontype: The exception type. :paramtype exceptiontype: str @@ -3612,8 +3676,8 @@ def __init__( display_status: Optional[str] = None, message: Optional[str] = None, time: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The status code. :paramtype code: str @@ -3655,7 +3719,7 @@ class KeyVaultKeyReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str @@ -3688,7 +3752,7 @@ class KeyVaultSecretReference(_serialization.Model): "source_vault": {"key": "sourceVault", "type": "SubResource"}, } - def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs): + def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kwargs: Any) -> None: """ :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str @@ -3766,7 +3830,7 @@ class LastPatchInstallationSummary(_serialization.Model): # pylint: disable=too "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -3783,7 +3847,10 @@ def __init__(self, **kwargs): class LinuxConfiguration(_serialization.Model): - """Specifies the Linux operating system settings on the virtual machine. :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + """Specifies the Linux operating system settings on the virtual machine. + :code:`
`:code:`
`For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. :ivar disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3819,8 +3886,8 @@ def __init__( provision_vm_agent: Optional[bool] = None, patch_settings: Optional["_models.LinuxPatchSettings"] = None, enable_vm_agent_platform_updates: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disable_password_authentication: Specifies whether password authentication should be disabled. @@ -3879,8 +3946,8 @@ def __init__( package_name_masks_to_include: Optional[List[str]] = None, package_name_masks_to_exclude: Optional[List[str]] = None, maintenance_run_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Linux. @@ -3943,8 +4010,8 @@ def __init__( patch_mode: Optional[Union[str, "_models.LinuxVMGuestPatchMode"]] = None, assessment_mode: Optional[Union[str, "_models.LinuxPatchAssessmentMode"]] = None, automatic_by_platform_settings: Optional["_models.LinuxVMGuestPatchAutomaticByPlatformSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
None: """ :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -4023,7 +4091,7 @@ class ListUsagesResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.Usage] @@ -4088,8 +4156,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -4137,7 +4205,7 @@ class LogAnalyticsOperationResult(_serialization.Model): "properties": {"key": "properties", "type": "LogAnalyticsOutput"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -4160,7 +4228,7 @@ class LogAnalyticsOutput(_serialization.Model): "output": {"key": "output", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.output = None @@ -4208,8 +4276,8 @@ def __init__( maintenance_window_end_time: Optional[datetime.datetime] = None, last_operation_result_code: Optional[Union[str, "_models.MaintenanceOperationResultCodeTypes"]] = None, last_operation_message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform Maintenance. @@ -4272,8 +4340,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4321,8 +4389,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin primary: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -4369,8 +4437,8 @@ def __init__( network_interfaces: Optional[List["_models.NetworkInterfaceReference"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, network_interface_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. @@ -4417,8 +4485,8 @@ def __init__( *, service_name: Union[str, "_models.OrchestrationServiceNames"], action: Union[str, "_models.OrchestrationServiceStateAction"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword service_name: The name of the service. Required. Known values are: "AutomaticRepairs" and "DummyOrchestrationServiceName". @@ -4457,7 +4525,7 @@ class OrchestrationServiceSummary(_serialization.Model): "service_state": {"key": "serviceState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.service_name = None @@ -4465,7 +4533,9 @@ def __init__(self, **kwargs): class OSDisk(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifies information about the operating system disk used by the virtual machine. :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + """Specifies information about the operating system disk used by the virtual machine. + :code:`
`:code:`
` For more information about disks, see `About disks and VHDs for Azure + virtual machines `_. All required parameters must be populated in order to send to Azure. @@ -4557,8 +4627,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. :code:`
`:code:`
` @@ -4646,7 +4716,7 @@ class OSDiskImage(_serialization.Model): "operating_system": {"key": "operatingSystem", "type": "str"}, } - def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs): + def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes"], **kwargs: Any) -> None: """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". @@ -4673,7 +4743,9 @@ class OSImageNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto @@ -4689,7 +4761,8 @@ def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional class OSProfile(_serialization.Model): - """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be + changed once VM is provisioned. :ivar computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4782,8 +4855,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name: Specifies the host OS name of the virtual machine. :code:`
`:code:`
` This name cannot be updated after the VM is created. @@ -4900,7 +4973,9 @@ class OSProfileProvisioningData(_serialization.Model): "custom_data": {"key": "customData", "type": "str"}, } - def __init__(self, *, admin_password: Optional[str] = None, custom_data: Optional[str] = None, **kwargs): + def __init__( + self, *, admin_password: Optional[str] = None, custom_data: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword admin_password: Specifies the password of the administrator account. :code:`
`:code:`
` **Minimum-length (Windows):** 8 characters :code:`
`:code:`
` @@ -4974,7 +5049,7 @@ class PatchInstallationDetail(_serialization.Model): "installation_state": {"key": "installationState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -5035,8 +5110,8 @@ def __init__( enable_hotpatching: Optional[bool] = None, assessment_mode: Optional[Union[str, "_models.WindowsPatchAssessmentMode"]] = None, automatic_by_platform_settings: Optional["_models.WindowsVMGuestPatchAutomaticByPlatformSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
**. Enter any required information and then click **Save**. + """Specifies information about the marketplace image used to create the virtual machine. This + element is only used for marketplace images. Before you can use a marketplace image from an + API, you must enable the image for programmatic use. In the Azure portal, find the marketplace + image that you want to use and then click **Want to deploy programmatically, Get Started ->**. + Enter any required information and then click **Save**. :ivar name: The plan ID. :vartype name: str @@ -5102,8 +5181,8 @@ def __init__( publisher: Optional[str] = None, product: Optional[str] = None, promotion_code: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The plan ID. :paramtype name: str @@ -5123,7 +5202,10 @@ def __init__( class PriorityMixPolicy(_serialization.Model): - """Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode. :code:`
`:code:`
`With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached. + """Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible + orchestration mode. :code:`
`:code:`
`With this property the customer is able to specify + the base number of regular priority VMs created as the VMSS flex instance scales out and the + split between Spot and Regular priority VMs after this base target has been reached. :ivar base_regular_priority_count: The base number of regular priority VMs that will be created in this scale set as it scales out. @@ -5148,8 +5230,8 @@ def __init__( *, base_regular_priority_count: Optional[int] = None, regular_priority_percentage_above_base: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword base_regular_priority_count: The base number of regular priority VMs that will be created in this scale set as it scales out. @@ -5244,8 +5326,8 @@ def __init__( proximity_placement_group_type: Optional[Union[str, "_models.ProximityPlacementGroupType"]] = None, colocation_status: Optional["_models.InstanceViewStatus"] = None, intent: Optional["_models.ProximityPlacementGroupPropertiesIntent"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5296,7 +5378,9 @@ class ProximityPlacementGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.ProximityPlacementGroup"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of proximity placement groups. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.ProximityPlacementGroup] @@ -5320,7 +5404,7 @@ class ProximityPlacementGroupPropertiesIntent(_serialization.Model): "vm_sizes": {"key": "vmSizes", "type": "[str]"}, } - def __init__(self, *, vm_sizes: Optional[List[str]] = None, **kwargs): + def __init__(self, *, vm_sizes: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword vm_sizes: Specifies possible sizes of virtual machines that can be created in the proximity placement group. @@ -5341,7 +5425,7 @@ class ProximityPlacementGroupUpdate(UpdateResource): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5350,7 +5434,8 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): class ProxyResource(_serialization.Model): - """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for an Azure Resource Manager proxy resource. It will not have + tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -5374,7 +5459,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5401,8 +5486,8 @@ def __init__( *, name: Optional[Union[str, "_models.PublicIPAddressSkuName"]] = None, tier: Optional[Union[str, "_models.PublicIPAddressSkuTier"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". :paramtype name: str or ~azure.mgmt.compute.v2022_11_01.models.PublicIPAddressSkuName @@ -5440,7 +5525,7 @@ class PurchasePlan(_serialization.Model): "product": {"key": "product", "type": "str"}, } - def __init__(self, *, publisher: str, name: str, product: str, **kwargs): + def __init__(self, *, publisher: str, name: str, product: str, **kwargs: Any) -> None: """ :keyword publisher: The publisher ID. Required. :paramtype publisher: str @@ -5478,7 +5563,7 @@ class RecoveryWalkResponse(_serialization.Model): "next_platform_update_domain": {"key": "nextPlatformUpdateDomain", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.walk_performed = None @@ -5543,8 +5628,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -5612,7 +5697,7 @@ class ResourceWithOptionalLocation(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -5689,8 +5774,8 @@ def __init__( consistency_mode: Optional[Union[str, "_models.ConsistencyModeTypes"]] = None, time_created: Optional[datetime.datetime] = None, source_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. @@ -5773,8 +5858,8 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -5812,8 +5897,8 @@ def __init__( *, value: Optional[List["_models.RestorePointCollection"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: Gets the list of restore point collections. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.RestorePointCollection] @@ -5846,7 +5931,7 @@ class RestorePointCollectionSourceProperties(_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: Resource Id of the source resource used to create this restore point collection. :paramtype id: str @@ -5894,8 +5979,8 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, source: Optional["_models.RestorePointCollectionSourceProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -5931,8 +6016,8 @@ def __init__( *, disk_restore_points: Optional[List["_models.DiskRestorePointInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword disk_restore_points: The disk restore points information. :paramtype disk_restore_points: @@ -5946,7 +6031,9 @@ def __init__( class RestorePointSourceMetadata(_serialization.Model): - """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + """Describes the properties of the Virtual Machine for which the restore point was created. The + properties provided are a subset and the snapshot of the overall Virtual Machine properties + captured at the time of the restore point creation. :ivar hardware_profile: Gets the hardware profile. :vartype hardware_profile: ~azure.mgmt.compute.v2022_11_01.models.HardwareProfile @@ -5994,8 +6081,8 @@ def __init__( security_profile: Optional["_models.SecurityProfile"] = None, location: Optional[str] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword hardware_profile: Gets the hardware profile. :paramtype hardware_profile: ~azure.mgmt.compute.v2022_11_01.models.HardwareProfile @@ -6066,8 +6153,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword lun: Gets the logical unit number. :paramtype lun: int @@ -6131,8 +6218,8 @@ def __init__( disk_size_gb: Optional[int] = None, managed_disk: Optional["_models.ManagedDiskParameters"] = None, disk_restore_point: Optional["_models.ApiEntityReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". :paramtype os_type: str or ~azure.mgmt.compute.v2022_11_01.models.OperatingSystemType @@ -6179,8 +6266,8 @@ def __init__( *, os_disk: Optional["_models.RestorePointSourceVMOSDisk"] = None, data_disks: Optional[List["_models.RestorePointSourceVMDataDisk"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -6216,7 +6303,7 @@ class RetrieveBootDiagnosticsDataResult(_serialization.Model): "serial_console_log_blob_uri": {"key": "serialConsoleLogBlobUri", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.console_screenshot_blob_uri = None @@ -6249,7 +6336,7 @@ class RollbackStatusInfo(_serialization.Model): "rollback_error": {"key": "rollbackError", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successfully_rolledback_instance_count = None @@ -6324,8 +6411,8 @@ def __init__( prioritize_unhealthy_instances: Optional[bool] = None, rollback_failed_instances_on_policy_breach: Optional[bool] = None, max_surge: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, @@ -6403,7 +6490,7 @@ class RollingUpgradeProgressInfo(_serialization.Model): "pending_instance_count": {"key": "pendingInstanceCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.successful_instance_count = None @@ -6443,7 +6530,7 @@ class RollingUpgradeRunningStatus(_serialization.Model): "last_action_time": {"key": "lastActionTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -6503,7 +6590,7 @@ class RollingUpgradeStatusInfo(Resource): "error": {"key": "properties.error", "type": "ApiError"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -6558,8 +6645,8 @@ def __init__( os_type: Union[str, "_models.OperatingSystemTypes"], label: str, description: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6630,8 +6717,8 @@ def __init__( description: str, script: List[str], parameters: Optional[List["_models.RunCommandParameterDefinition"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema: The VM run command schema. Required. :paramtype schema: str @@ -6684,8 +6771,8 @@ def __init__( command_id: str, script: Optional[List[str]] = None, parameters: Optional[List["_models.RunCommandInputParameter"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword command_id: The run command id. Required. :paramtype command_id: str @@ -6722,7 +6809,7 @@ class RunCommandInputParameter(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: str, value: str, **kwargs): + def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6755,7 +6842,9 @@ class RunCommandListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.RunCommandDocumentBase"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.RunCommandDocumentBase] @@ -6795,7 +6884,9 @@ class RunCommandParameterDefinition(_serialization.Model): "required": {"key": "required", "type": "bool"}, } - def __init__(self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs): + def __init__( + self, *, name: str, type: str, default_value: Optional[str] = None, required: bool = False, **kwargs: Any + ) -> None: """ :keyword name: The run command parameter name. Required. :paramtype name: str @@ -6824,7 +6915,7 @@ class RunCommandResult(_serialization.Model): "value": {"key": "value", "type": "[InstanceViewStatus]"}, } - def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.InstanceViewStatus] @@ -6868,8 +6959,8 @@ def __init__( *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, force_deletion: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword rules: The rules to be followed when scaling-in a virtual machine scale set. :code:`
`:code:`
` Possible values are: :code:`
`:code:`
` **Default** When a @@ -6922,8 +7013,8 @@ def __init__( *, terminate_notification_profile: Optional["_models.TerminateNotificationProfile"] = None, os_image_notification_profile: Optional["_models.OSImageNotificationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. @@ -6969,8 +7060,8 @@ def __init__( uefi_settings: Optional["_models.UefiSettings"] = None, encryption_at_host: Optional[bool] = None, security_type: Optional[Union[str, "_models.SecurityTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -6994,7 +7085,8 @@ def __init__( class ServiceArtifactReference(_serialization.Model): - """Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01. + """Specifies the service artifact reference id used to set same image version for all virtual + machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01. :ivar id: The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}. @@ -7005,7 +7097,7 @@ class ServiceArtifactReference(_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: The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}. @@ -7016,7 +7108,9 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class Sku(_serialization.Model): - """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + you modify the SKU name. :ivar name: The sku name. :vartype name: str @@ -7035,8 +7129,8 @@ class Sku(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs - ): + self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword name: The sku name. :paramtype name: str @@ -7054,7 +7148,10 @@ def __init__( class SpotRestorePolicy(_serialization.Model): - """Specifies the Spot-Try-Restore properties for the virtual machine scale set. :code:`
`:code:`
` With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. + """Specifies the Spot-Try-Restore properties for the virtual machine scale set. + :code:`
`:code:`
` With this property customer can enable or disable automatic restore of + the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing + constraint. :ivar enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. @@ -7069,7 +7166,7 @@ class SpotRestorePolicy(_serialization.Model): "restore_timeout": {"key": "restoreTimeout", "type": "str"}, } - def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs): + def __init__(self, *, enabled: Optional[bool] = None, restore_timeout: Optional[str] = None, **kwargs: Any) -> None: """ :keyword enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing @@ -7095,7 +7192,7 @@ class SshConfiguration(_serialization.Model): "public_keys": {"key": "publicKeys", "type": "[SshPublicKey]"}, } - def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs): + def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. :paramtype public_keys: list[~azure.mgmt.compute.v2022_11_01.models.SshPublicKey] @@ -7105,7 +7202,8 @@ def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None class SshPublicKey(_serialization.Model): - """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + """Contains information about SSH certificate public key and the path on the Linux VM where the + public key is placed. :ivar path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7123,7 +7221,7 @@ class SshPublicKey(_serialization.Model): "key_data": {"key": "keyData", "type": "str"}, } - def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs): + def __init__(self, *, path: Optional[str] = None, key_data: Optional[str] = None, **kwargs: Any) -> None: """ :keyword path: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: @@ -7170,7 +7268,9 @@ class SshPublicKeyGenerateKeyPairResult(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, *, private_key: str, public_key: str, id: str, **kwargs): # pylint: disable=redefined-builtin + def __init__( + self, *, private_key: str, public_key: str, id: str, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: """ :keyword private_key: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a @@ -7231,8 +7331,8 @@ class SshPublicKeyResource(Resource): } def __init__( - self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs - ): + self, *, location: str, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -7269,7 +7369,9 @@ class SshPublicKeysGroupListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.SshPublicKeyResource"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of SSH public keys. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.SshPublicKeyResource] @@ -7299,7 +7401,9 @@ class SshPublicKeyUpdateResource(UpdateResource): "public_key": {"key": "properties.publicKey", "type": "str"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs): + def __init__( + self, *, tags: Optional[Dict[str, str]] = None, public_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -7357,8 +7461,8 @@ def __init__( os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, disk_controller_type: Optional[Union[str, "_models.DiskControllerTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -7410,7 +7514,7 @@ class SubResourceReadOnly(_serialization.Model): "id": {"key": "id", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7436,8 +7540,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin colocation_status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -7472,7 +7576,7 @@ class SystemData(_serialization.Model): "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.created_at = None @@ -7496,7 +7600,9 @@ class TerminateNotificationProfile(_serialization.Model): "enable": {"key": "enable", "type": "bool"}, } - def __init__(self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs): + def __init__( + self, *, not_before_timeout: Optional[str] = None, enable: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword not_before_timeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved @@ -7563,8 +7669,8 @@ def __init__( group_by_resource_name: Optional[bool] = None, group_by_client_application_id: Optional[bool] = None, group_by_user_agent: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. @@ -7598,7 +7704,8 @@ def __init__( class UefiSettings(_serialization.Model): - """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. + """Specifies the security settings like secure boot and vTPM used while creating the virtual + machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7613,7 +7720,9 @@ class UefiSettings(_serialization.Model): "v_tpm_enabled": {"key": "vTpmEnabled", "type": "bool"}, } - def __init__(self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs): + def __init__( + self, *, secure_boot_enabled: Optional[bool] = None, v_tpm_enabled: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine. :code:`
`:code:`
`Minimum api-version: 2020-12-01. @@ -7653,7 +7762,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): "location": {"key": "location", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.properties = None @@ -7699,7 +7808,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): "rollback_info": {"key": "rollbackInfo", "type": "RollbackStatusInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.running_status = None @@ -7736,7 +7845,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): "end_time": {"key": "endTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -7775,8 +7884,8 @@ def __init__( mode: Optional[Union[str, "_models.UpgradeMode"]] = None, rolling_upgrade_policy: Optional["_models.RollingUpgradePolicy"] = None, automatic_os_upgrade_policy: Optional["_models.AutomaticOSUpgradePolicy"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
`:code:`
` Possible values are::code:`
`:code:`
` **Manual** - You control @@ -7833,7 +7942,7 @@ class Usage(_serialization.Model): unit = "Count" - def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs): + def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", **kwargs: Any) -> None: """ :keyword current_value: The current usage of the resource. Required. :paramtype current_value: int @@ -7862,7 +7971,7 @@ class UsageName(_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: The name of the resource. :paramtype value: str @@ -7895,7 +8004,7 @@ class UserAssignedIdentitiesValue(_serialization.Model): "client_id": {"key": "clientId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.principal_id = None @@ -7903,7 +8012,8 @@ def __init__(self, **kwargs): class VaultCertificate(_serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + """Describes a single certificate reference in a Key Vault, and where the certificate should + reside on the VM. :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7931,7 +8041,9 @@ class VaultCertificate(_serialization.Model): "certificate_store": {"key": "certificateStore", "type": "str"}, } - def __init__(self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs): + def __init__( + self, *, certificate_url: Optional[str] = None, certificate_store: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault @@ -7979,8 +8091,8 @@ def __init__( *, source_vault: Optional["_models.SubResource"] = None, vault_certificates: Optional[List["_models.VaultCertificate"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. @@ -8005,7 +8117,7 @@ class VirtualHardDisk(_serialization.Model): "uri": {"key": "uri", "type": "str"}, } - def __init__(self, *, uri: Optional[str] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword uri: Specifies the virtual hard disk's uri. :paramtype uri: str @@ -8241,8 +8353,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8423,8 +8535,8 @@ def __init__( vm_agent_version: Optional[str] = None, extension_handlers: Optional[List["_models.VirtualMachineExtensionHandlerInstanceView"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword vm_agent_version: The VM Agent full version. :paramtype vm_agent_version: str @@ -8495,7 +8607,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -8534,7 +8646,9 @@ class VirtualMachineCaptureParameters(_serialization.Model): "overwrite_vhds": {"key": "overwriteVhds", "type": "bool"}, } - def __init__(self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs): + def __init__( + self, *, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any + ) -> None: """ :keyword vhd_prefix: The captured virtual hard disk's name prefix. Required. :paramtype vhd_prefix: str @@ -8582,7 +8696,7 @@ class VirtualMachineCaptureResult(SubResource): "resources": {"key": "resources", "type": "[object]"}, } - 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: Resource Id. :paramtype id: str @@ -8692,8 +8806,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. :paramtype location: str @@ -8771,8 +8885,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, status: Optional["_models.InstanceViewStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: Specifies the type of the extension; an example is "CustomScriptExtension". :paramtype type: str @@ -8849,8 +8963,8 @@ def __init__( handler_schema: Optional[str] = None, vm_scale_set_enabled: Optional[bool] = None, supports_multiple_extensions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -8909,8 +9023,8 @@ def __init__( type_handler_version: Optional[str] = None, substatuses: Optional[List["_models.InstanceViewStatus"]] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The virtual machine extension name. :paramtype name: str @@ -8942,7 +9056,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineExtension] @@ -9018,8 +9132,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -9083,7 +9197,7 @@ class VirtualMachineHealthStatus(_serialization.Model): "status": {"key": "status", "type": "InstanceViewStatus"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9129,8 +9243,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -9190,8 +9304,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin tags: Optional[Dict[str, str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9297,8 +9411,8 @@ def __init__( features: Optional[List["_models.VirtualMachineImageFeature"]] = None, architecture: Optional[Union[str, "_models.ArchitectureTypes"]] = None, image_deprecation_status: Optional["_models.ImageDeprecationStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -9364,7 +9478,7 @@ class VirtualMachineImageFeature(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The name of the feature. :paramtype name: str @@ -9414,8 +9528,8 @@ def __init__( maximum_duration: Optional[str] = None, windows_parameters: Optional["_models.WindowsParameters"] = None, linux_parameters: Optional["_models.LinuxParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword maximum_duration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). @@ -9511,7 +9625,7 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): # pylint: disab "error": {"key": "error", "type": "ApiError"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.status = None @@ -9617,8 +9731,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, patch_status: Optional["_models.VirtualMachinePatchStatus"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: Specifies the update domain of the virtual machine. :paramtype platform_update_domain: int @@ -9689,7 +9803,7 @@ class VirtualMachineIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -9722,7 +9836,9 @@ class VirtualMachineListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machines. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachine] @@ -9808,8 +9924,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, ip_configurations: Optional[List["_models.VirtualMachineNetworkInterfaceIPConfiguration"]] = None, dscp_configuration: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The network interface configuration name. Required. :paramtype name: str @@ -9865,7 +9981,7 @@ class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_serialization.Mode "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -9945,8 +10061,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, application_gateway_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The IP configuration name. Required. :paramtype name: str @@ -10025,8 +10141,8 @@ def __init__( *, available_patch_summary: Optional["_models.AvailablePatchSummary"] = None, last_patch_installation_summary: Optional["_models.LastPatchInstallationSummary"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. @@ -10105,8 +10221,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersions"]] = None, public_ip_allocation_method: Optional[Union[str, "_models.PublicIPAllocationMethod"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -10165,7 +10281,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm @@ -10177,7 +10293,8 @@ def __init__(self, *, domain_name_label: str, **kwargs): class VirtualMachineReimageParameters(_serialization.Model): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be + reimaged. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10202,8 +10319,8 @@ def __init__( temp_disk: Optional[bool] = None, exact_version: Optional[str] = None, os_profile: Optional["_models.OSProfileProvisioningData"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -10310,8 +10427,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10399,8 +10516,8 @@ def __init__( start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". @@ -10454,8 +10571,8 @@ def __init__( script: Optional[str] = None, script_uri: Optional[str] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword script: Specifies the script content to be executed on the VM. :paramtype script: str @@ -10490,7 +10607,9 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineRunCommand"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of run commands. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineRunCommand] @@ -10572,8 +10691,8 @@ def __init__( timeout_in_seconds: Optional[int] = None, output_blob_uri: Optional[str] = None, error_blob_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -10782,8 +10901,8 @@ def __init__( # pylint: disable=too-many-locals spot_restore_policy: Optional["_models.SpotRestorePolicy"] = None, priority_mix_policy: Optional["_models.PriorityMixPolicy"] = None, constrained_maximum_capacity: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -10965,8 +11084,8 @@ def __init__( disk_iops_read_write: Optional[int] = None, disk_m_bps_read_write: Optional[int] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -11113,8 +11232,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the extension. :paramtype name: str @@ -11191,8 +11310,8 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): } def __init__( - self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs - ): + self, *, value: List["_models.VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VM scale set extensions. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineScaleSetExtension] @@ -11228,8 +11347,8 @@ def __init__( *, extensions: Optional[List["_models.VirtualMachineScaleSetExtension"]] = None, extensions_time_budget: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: @@ -11335,8 +11454,8 @@ def __init__( provision_after_extensions: Optional[List[str]] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. @@ -11402,7 +11521,7 @@ class VirtualMachineScaleSetHardwareProfile(_serialization.Model): "vm_size_properties": {"key": "vmSizeProperties", "type": "VMSizeProperties"}, } - def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs): + def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, **kwargs: Any) -> None: """ :keyword vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. :code:`
`:code:`
` Please follow the @@ -11454,8 +11573,8 @@ def __init__( *, type: Optional[Union[str, "_models.ResourceIdentityType"]] = None, user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentitiesValue"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user @@ -11508,7 +11627,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): "orchestration_services": {"key": "orchestrationServices", "type": "[OrchestrationServiceSummary]"}, } - def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs): + def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. :paramtype statuses: list[~azure.mgmt.compute.v2022_11_01.models.InstanceViewStatus] @@ -11538,7 +11657,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.statuses_summary = None @@ -11624,8 +11743,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -11690,7 +11809,7 @@ class VirtualMachineScaleSetIpTag(_serialization.Model): "tag": {"key": "tag", "type": "str"}, } - def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs): + def __init__(self, *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, **kwargs: Any) -> None: """ :keyword ip_tag_type: IP tag type. Example: FirstPartyUsage. :paramtype ip_tag_type: str @@ -11725,8 +11844,12 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): } def __init__( - self, *, value: List["_models.UpgradeOperationHistoricalStatusInfo"], next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: List["_models.UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: @@ -11761,7 +11884,9 @@ class VirtualMachineScaleSetListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineScaleSet] @@ -11795,7 +11920,9 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineScaleSetSku] @@ -11829,7 +11956,9 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSet"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineScaleSet] @@ -11871,8 +12000,8 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -11963,8 +12092,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -12019,7 +12148,7 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_serialization.Model "dns_servers": {"key": "dnsServers", "type": "[str]"}, } - def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs): + def __init__(self, *, dns_servers: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword dns_servers: List of DNS servers IP addresses. :paramtype dns_servers: list[str] @@ -12059,8 +12188,8 @@ def __init__( health_probe: Optional["_models.ApiEntityReference"] = None, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -12166,8 +12295,8 @@ def __init__( vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The disk name. :paramtype name: str @@ -12315,8 +12444,8 @@ def __init__( secrets: Optional[List["_models.VaultSecretGroup"]] = None, allow_extension_operations: Optional[bool] = None, require_guest_provision_signal: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword computer_name_prefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. @@ -12443,8 +12572,8 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. Required. :paramtype name: str @@ -12498,7 +12627,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_serializati "domain_name_label": {"key": "domainNameLabel", "type": "str"}, } - def __init__(self, *, domain_name_label: str, **kwargs): + def __init__(self, *, domain_name_label: str, **kwargs: Any) -> None: """ :keyword domain_name_label: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be @@ -12535,8 +12664,8 @@ def __init__( temp_disk: Optional[bool] = None, exact_version: Optional[str] = None, os_profile: Optional["_models.OSProfileProvisioningData"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12583,8 +12712,8 @@ def __init__( exact_version: Optional[str] = None, os_profile: Optional["_models.OSProfileProvisioningData"] = None, instance_ids: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. @@ -12629,7 +12758,7 @@ class VirtualMachineScaleSetSku(_serialization.Model): "capacity": {"key": "capacity", "type": "VirtualMachineScaleSetSkuCapacity"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -12668,7 +12797,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -12714,8 +12843,8 @@ def __init__( os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, disk_controller_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element @@ -12825,8 +12954,8 @@ def __init__( additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, scale_in_policy: Optional["_models.ScaleInPolicy"] = None, proximity_placement_group: Optional["_models.SubResource"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -12886,7 +13015,9 @@ def __init__( class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): - """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + scale set may be modified as long as the original subnet and the new subnet are in the same + virtual network. :ivar id: Resource Id. :vartype id: str @@ -12955,8 +13086,8 @@ def __init__( application_security_groups: Optional[List["_models.SubResource"]] = None, load_balancer_backend_address_pools: Optional[List["_models.SubResource"]] = None, load_balancer_inbound_nat_pools: Optional[List["_models.SubResource"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -13067,8 +13198,8 @@ def __init__( ip_configurations: Optional[List["_models.VirtualMachineScaleSetUpdateIPConfiguration"]] = None, enable_ip_forwarding: Optional[bool] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Resource Id. :paramtype id: str @@ -13144,8 +13275,8 @@ def __init__( List["_models.VirtualMachineScaleSetUpdateNetworkConfiguration"] ] = None, network_api_version: Optional[Union[str, "_models.NetworkApiVersion"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: @@ -13166,7 +13297,8 @@ def __init__( class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): - """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + """Describes virtual machine scale set operating system disk Update Object. This should be used + for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: str or ~azure.mgmt.compute.v2022_11_01.models.CachingTypes @@ -13218,8 +13350,8 @@ def __init__( vhd_containers: Optional[List[str]] = None, managed_disk: Optional["_models.VirtualMachineScaleSetManagedDiskParameters"] = None, delete_option: Optional[Union[str, "_models.DiskDeleteOptionTypes"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :paramtype caching: str or ~azure.mgmt.compute.v2022_11_01.models.CachingTypes @@ -13287,8 +13419,8 @@ def __init__( windows_configuration: Optional["_models.WindowsConfiguration"] = None, linux_configuration: Optional["_models.LinuxConfiguration"] = None, secrets: Optional[List["_models.VaultSecretGroup"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str @@ -13342,8 +13474,8 @@ def __init__( dns_settings: Optional["_models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, public_ip_prefix: Optional["_models.SubResource"] = None, delete_option: Optional[Union[str, "_models.DeleteOptions"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The publicIP address configuration name. :paramtype name: str @@ -13394,8 +13526,8 @@ def __init__( os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[List["_models.VirtualMachineScaleSetDataDisk"]] = None, disk_controller_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword image_reference: The image reference. :paramtype image_reference: ~azure.mgmt.compute.v2022_11_01.models.ImageReference @@ -13478,8 +13610,8 @@ def __init__( scheduled_events_profile: Optional["_models.ScheduledEventsProfile"] = None, user_data: Optional[str] = None, hardware_profile: Optional["_models.VirtualMachineScaleSetHardwareProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: @@ -13694,8 +13826,8 @@ def __init__( # pylint: disable=too-many-locals license_type: Optional[str] = None, protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Resource location. Required. :paramtype location: str @@ -13877,8 +14009,8 @@ def __init__( instance_view: Optional["_models.VirtualMachineExtensionInstanceView"] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -13942,7 +14074,9 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineScaleSetVMExtension]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.VirtualMachineScaleSetVMExtension"]] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of VMSS VM extensions. :paramtype value: @@ -13974,7 +14108,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): "statuses_summary": {"key": "statusesSummary", "type": "[VirtualMachineStatusCodeCount]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -14062,8 +14196,8 @@ def __init__( protected_settings: Optional[JSON] = None, suppress_failures: Optional[bool] = None, protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. @@ -14124,7 +14258,7 @@ class VirtualMachineScaleSetVMInstanceIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs): + def __init__(self, *, instance_ids: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in @@ -14152,7 +14286,7 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(_serialization.Model): "instance_ids": {"key": "instanceIds", "type": "[str]"}, } - def __init__(self, *, instance_ids: List[str], **kwargs): + def __init__(self, *, instance_ids: List[str], **kwargs: Any) -> None: """ :keyword instance_ids: The virtual machine scale set instance ids. Required. :paramtype instance_ids: list[str] @@ -14234,8 +14368,8 @@ def __init__( boot_diagnostics: Optional["_models.BootDiagnosticsInstanceView"] = None, statuses: Optional[List["_models.InstanceViewStatus"]] = None, placement_group_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword platform_update_domain: The Update Domain count. :paramtype platform_update_domain: int @@ -14300,7 +14434,9 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: List["_models.VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineScaleSetVM] @@ -14332,8 +14468,8 @@ def __init__( self, *, network_interface_configurations: Optional[List["_models.VirtualMachineScaleSetNetworkConfiguration"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: @@ -14454,8 +14590,8 @@ def __init__( application_profile: Optional["_models.ApplicationProfile"] = None, hardware_profile: Optional["_models.VirtualMachineScaleSetHardwareProfile"] = None, service_artifact_reference: Optional["_models.ServiceArtifactReference"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. @@ -14567,8 +14703,8 @@ def __init__( *, protect_from_scale_in: Optional[bool] = None, protect_from_scale_set_actions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. @@ -14624,8 +14760,8 @@ def __init__( resource_disk_size_in_mb: Optional[int] = None, memory_in_mb: Optional[int] = None, max_data_disk_count: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the virtual machine size. :paramtype name: str @@ -14666,7 +14802,7 @@ class VirtualMachineSizeListResult(_serialization.Model): "value": {"key": "value", "type": "[VirtualMachineSize]"}, } - def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineSize] @@ -14732,7 +14868,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): "assessment_state": {"key": "assessmentState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.patch_id = None @@ -14768,7 +14904,7 @@ class VirtualMachineStatusCodeCount(_serialization.Model): "count": {"key": "count", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -14975,8 +15111,8 @@ def __init__( # pylint: disable=too-many-locals user_data: Optional[str] = None, capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, application_profile: Optional["_models.ApplicationProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -15128,7 +15264,8 @@ def __init__( # pylint: disable=too-many-locals class VMDiskSecurityProfile(_serialization.Model): - """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It can only be set for Confidential VMs. + """Specifies the security profile settings for the managed disk. :code:`
`:code:`
` NOTE: It + can only be set for Confidential VMs. :ivar security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState @@ -15154,8 +15291,8 @@ def __init__( *, security_encryption_type: Optional[Union[str, "_models.SecurityEncryptionTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword security_encryption_type: Specifies the EncryptionType of the managed disk. :code:`
` It is set to DiskWithVMGuestState for encryption of the managed disk along with @@ -15221,8 +15358,8 @@ def __init__( configuration_reference: Optional[str] = None, treat_failure_as_deployment_failure: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Optional, Specifies a passthrough value for more generic context. :paramtype tags: str @@ -15272,8 +15409,8 @@ def __init__( *, value: Optional[List["_models.VirtualMachineImageResource"]] = None, next_link: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword value: The list of VMImages in EdgeZone. :paramtype value: list[~azure.mgmt.compute.v2022_11_01.models.VirtualMachineImageResource] @@ -15300,7 +15437,7 @@ class VMScaleSetConvertToSinglePlacementGroupInput(_serialization.Model): "active_placement_group_id": {"key": "activePlacementGroupId", "type": "str"}, } - def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs): + def __init__(self, *, active_placement_group_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword active_placement_group_id: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale @@ -15335,7 +15472,9 @@ class VMSizeProperties(_serialization.Model): "v_cpus_per_core": {"key": "vCPUsPerCore", "type": "int"}, } - def __init__(self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs): + def __init__( + self, *, v_cpus_available: Optional[int] = None, v_cpus_per_core: Optional[int] = None, **kwargs: Any + ) -> None: """ :keyword v_cpus_available: Specifies the number of vCPUs available for the VM. :code:`
`:code:`
` When this property is not specified in the request body the default @@ -15410,8 +15549,8 @@ def __init__( patch_settings: Optional["_models.PatchSettings"] = None, win_rm: Optional["_models.WinRMConfiguration"] = None, enable_vm_agent_platform_updates: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. :code:`
`:code:`
` When this property is not specified in the @@ -15487,8 +15626,8 @@ def __init__( kb_numbers_to_exclude: Optional[List[str]] = None, exclude_kbs_requiring_reboot: Optional[bool] = None, max_patch_publish_date: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword classifications_to_include: The update classifications to select when installing patches for Windows. @@ -15514,7 +15653,8 @@ def __init__( class WindowsVMGuestPatchAutomaticByPlatformSettings(_serialization.Model): - """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings. + """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in + Windows patch settings. :ivar reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -15530,8 +15670,8 @@ def __init__( self, *, reboot_setting: Optional[Union[str, "_models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". @@ -15553,7 +15693,7 @@ class WinRMConfiguration(_serialization.Model): "listeners": {"key": "listeners", "type": "[WinRMListener]"}, } - def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs): + def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. :paramtype listeners: list[~azure.mgmt.compute.v2022_11_01.models.WinRMListener] @@ -15593,8 +15733,8 @@ def __init__( *, protocol: Optional[Union[str, "_models.ProtocolTypes"]] = None, certificate_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword protocol: Specifies the protocol of WinRM listener. :code:`
`:code:`
` Possible values are: :code:`
`\ **http** :code:`
`:code:`
` **https**. Known values are: "Http"