diff --git a/sdk/orbital/azure-mgmt-orbital/_meta.json b/sdk/orbital/azure-mgmt-orbital/_meta.json index d5d9fb0aba5c..df9a2fc727f2 100644 --- a/sdk/orbital/azure-mgmt-orbital/_meta.json +++ b/sdk/orbital/azure-mgmt-orbital/_meta.json @@ -1,11 +1,11 @@ { - "commit": "2f2e48923cebd95f7d184608a29bcd06d9cb3653", + "commit": "0af72a945db45c2c4e02006362b8fcb75611ddaf", "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/orbital/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/orbital/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/orbital/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_serialization.py b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_serialization.py index 2c170e28dbca..f17c068e833e 100644 --- a/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_serialization.py +++ b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_serialization.py @@ -38,7 +38,22 @@ import re import sys import codecs -from typing import Optional, Union, AnyStr, IO, Mapping +from typing import ( + Dict, + Any, + cast, + Optional, + Union, + AnyStr, + IO, + Mapping, + Callable, + TypeVar, + MutableMapping, + Type, + List, + Mapping, +) try: from urllib import quote # type: ignore @@ -48,12 +63,14 @@ import isodate # type: ignore -from typing import Dict, Any, cast - from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback +from azure.core.serialization import NULL as AzureCoreNull _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") +ModelType = TypeVar("ModelType", bound="Model") +JSON = MutableMapping[str, Any] + class RawDeserializer: @@ -277,8 +294,8 @@ class Model(object): _attribute_map: Dict[str, Dict[str, Any]] = {} _validation: Dict[str, Dict[str, Any]] = {} - def __init__(self, **kwargs): - self.additional_properties = {} + def __init__(self, **kwargs: Any) -> None: + self.additional_properties: Dict[str, Any] = {} for k in kwargs: if k not in self._attribute_map: _LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__) @@ -287,25 +304,25 @@ def __init__(self, **kwargs): else: setattr(self, k, kwargs[k]) - def __eq__(self, other): + def __eq__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" if isinstance(other, self.__class__): return self.__dict__ == other.__dict__ return False - def __ne__(self, other): + def __ne__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" return not self.__eq__(other) - def __str__(self): + def __str__(self) -> str: return str(self.__dict__) @classmethod - def enable_additional_properties_sending(cls): + def enable_additional_properties_sending(cls) -> None: cls._attribute_map["additional_properties"] = {"key": "", "type": "{object}"} @classmethod - def is_xml_model(cls): + def is_xml_model(cls) -> bool: try: cls._xml_map # type: ignore except AttributeError: @@ -322,7 +339,7 @@ def _create_xml_node(cls): return _create_xml_node(xml_map.get("name", cls.__name__), xml_map.get("prefix", None), xml_map.get("ns", None)) - def serialize(self, keep_readonly=False, **kwargs): + def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: """Return the JSON that would be sent to azure from this model. This is an alias to `as_dict(full_restapi_key_transformer, keep_readonly=False)`. @@ -336,8 +353,13 @@ def serialize(self, keep_readonly=False, **kwargs): serializer = Serializer(self._infer_class_models()) return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) - def as_dict(self, keep_readonly=True, key_transformer=attribute_transformer, **kwargs): - """Return a dict that can be JSONify using json.dump. + def as_dict( + self, + keep_readonly: bool = True, + key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, + **kwargs: Any + ) -> JSON: + """Return a dict that can be serialized using json.dump. Advanced usage might optionally use a callback as parameter: @@ -384,7 +406,7 @@ def _infer_class_models(cls): return client_models @classmethod - def deserialize(cls, data, content_type=None): + def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = None) -> ModelType: """Parse a str using the RestAPI syntax and return a model. :param str data: A str using RestAPI structure. JSON by default. @@ -396,7 +418,12 @@ def deserialize(cls, data, content_type=None): return deserializer(cls.__name__, data, content_type=content_type) @classmethod - def from_dict(cls, data, key_extractors=None, content_type=None): + def from_dict( + cls: Type[ModelType], + data: Any, + key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None, + content_type: Optional[str] = None, + ) -> ModelType: """Parse a dict using given key extractor return a model. By default consider key @@ -409,8 +436,8 @@ def from_dict(cls, data, key_extractors=None, content_type=None): :raises: DeserializationError if something went wrong """ deserializer = Deserializer(cls._infer_class_models()) - deserializer.key_extractors = ( - [ + deserializer.key_extractors = ( # type: ignore + [ # type: ignore attribute_key_case_insensitive_extractor, rest_key_case_insensitive_extractor, last_rest_key_case_insensitive_extractor, @@ -518,7 +545,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -534,7 +561,7 @@ def __init__(self, classes=None): "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True @@ -626,8 +653,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): serialized.append(local_node) # type: ignore else: # JSON for k in reversed(keys): # type: ignore - unflattened = {k: new_attr} - new_attr = unflattened + new_attr = {k: new_attr} _new_attr = new_attr _serialized = serialized @@ -656,8 +682,8 @@ def body(self, data, data_type, **kwargs): """ # Just in case this is a dict - internal_data_type = data_type.strip("[]{}") - internal_data_type = self.dependencies.get(internal_data_type, None) + internal_data_type_str = data_type.strip("[]{}") + internal_data_type = self.dependencies.get(internal_data_type_str, None) try: is_xml_model_serialization = kwargs["is_xml"] except KeyError: @@ -777,6 +803,8 @@ def serialize_data(self, data, data_type, **kwargs): raise ValueError("No value for given attribute") try: + if data is AzureCoreNull: + return None if data_type in self.basic_types.values(): return self.serialize_basic(data, data_type, **kwargs) @@ -1161,7 +1189,8 @@ def rest_key_extractor(attr, attr_desc, data): working_data = data while "." in key: - dict_keys = _FLATTEN.split(key) + # Need the cast, as for some reasons "split" is typed as list[str | Any] + dict_keys = cast(List[str], _FLATTEN.split(key)) if len(dict_keys) == 1: key = _decode_attribute_map_key(dict_keys[0]) break @@ -1332,7 +1361,7 @@ class Deserializer(object): valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, @@ -1352,7 +1381,7 @@ def __init__(self, classes=None): "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_extractors = [rest_key_extractor, xml_key_extractor] # Additional properties only works if the "rest_key_extractor" is used to # extract the keys. Making it to work whatever the key extractor is too much @@ -1471,7 +1500,7 @@ def _classify_target(self, target, data): Once classification has been determined, initialize object. :param str target: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. """ if target is None: return None, None @@ -1486,7 +1515,7 @@ def _classify_target(self, target, data): target = target._classify(data, self.dependencies) except AttributeError: pass # Target is not a Model, no classify - return target, target.__class__.__name__ + return target, target.__class__.__name__ # type: ignore def failsafe_deserialize(self, target_obj, data, content_type=None): """Ignores any errors encountered in deserialization, @@ -1496,7 +1525,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None): a deserialization error. :param str target_obj: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. :param str content_type: Swagger "produces" if available. """ try: diff --git a/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_vendor.py b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_vendor.py +++ b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_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/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_version.py b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_version.py index 653b73a4a199..e5754a47ce68 100644 --- a/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_version.py +++ b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.1.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/models/_models_py3.py b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/models/_models_py3.py index 50aa2cda57fb..900d06f254b1 100644 --- a/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/models/_models_py3.py +++ b/sdk/orbital/azure-mgmt-orbital/azure/mgmt/orbital/models/_models_py3.py @@ -39,8 +39,8 @@ class AuthorizedGroundstation(_serialization.Model): } def __init__( - self, *, ground_station: Optional[str] = None, expiration_date: Optional[datetime.date] = None, **kwargs - ): + self, *, ground_station: Optional[str] = None, expiration_date: Optional[datetime.date] = None, **kwargs: Any + ) -> None: """ :keyword ground_station: Groundstation name. :paramtype ground_station: str @@ -53,7 +53,8 @@ def __init__( class AvailableContacts(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Customer retrieves list of Available Contacts for a spacecraft resource. Later, one of the available contact can be selected to create a contact. + """Customer retrieves list of Available Contacts for a spacecraft resource. Later, one of the + available contact can be selected to create a contact. Variables are only populated by the server, and will be ignored when sending a request. @@ -110,7 +111,7 @@ class AvailableContacts(_serialization.Model): # pylint: disable=too-many-insta "end_elevation_degrees": {"key": "properties.endElevationDegrees", "type": "float"}, } - def __init__(self, *, spacecraft: Optional["_models.AvailableContactsSpacecraft"] = None, **kwargs): + def __init__(self, *, spacecraft: Optional["_models.AvailableContactsSpacecraft"] = None, **kwargs: Any) -> None: """ :keyword spacecraft: The reference to the spacecraft resource. :paramtype spacecraft: ~azure.mgmt.orbital.models.AvailableContactsSpacecraft @@ -149,7 +150,7 @@ class AvailableContactsListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.AvailableContacts"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.AvailableContacts"]] = None, **kwargs: Any) -> None: """ :keyword value: A list of available contacts. :paramtype value: list[~azure.mgmt.orbital.models.AvailableContacts] @@ -210,7 +211,7 @@ class ContactInstanceProperties(_serialization.Model): "end_elevation_degrees": {"key": "endElevationDegrees", "type": "float"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.maximum_elevation_degrees = None @@ -275,7 +276,7 @@ class AvailableContactsProperties(ContactInstanceProperties): "end_elevation_degrees": {"key": "endElevationDegrees", "type": "float"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) @@ -291,7 +292,7 @@ class ResourceReference(_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 @@ -311,7 +312,7 @@ class AvailableContactsSpacecraft(ResourceReference): "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 @@ -375,8 +376,8 @@ def __init__( latitude_degrees: Optional[float] = None, altitude_meters: Optional[float] = None, release_mode: Optional[Union[str, "_models.ReleaseMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: Azure region. :paramtype location: str @@ -427,7 +428,7 @@ class AvailableGroundStationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.AvailableGroundStation"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.AvailableGroundStation"]] = None, **kwargs: Any) -> None: """ :keyword value: A list of ground station resources. :paramtype value: list[~azure.mgmt.orbital.models.AvailableGroundStation] @@ -472,8 +473,8 @@ def __init__( latitude_degrees: Optional[float] = None, altitude_meters: Optional[float] = None, release_mode: Optional[Union[str, "_models.ReleaseMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword city: City of ground station. :paramtype city: str @@ -533,8 +534,8 @@ def __init__( latitude_degrees: Optional[float] = None, altitude_meters: Optional[float] = None, release_mode: Optional[Union[str, "_models.ReleaseMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword city: City of ground station. :paramtype city: str @@ -591,8 +592,8 @@ def __init__( message: Optional[str] = None, target: Optional[str] = None, details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. @@ -645,7 +646,7 @@ class Resource(_serialization.Model): "system_data": {"key": "systemData", "type": "SystemData"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -655,7 +656,8 @@ def __init__(self, **kwargs): class ProxyResource(Resource): - """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. + """The resource model definition for a 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. @@ -686,7 +688,7 @@ class ProxyResource(Resource): "system_data": {"key": "systemData", "type": "SystemData"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) @@ -808,8 +810,8 @@ def __init__( reservation_end_time: Optional[datetime.datetime] = None, ground_station_name: Optional[str] = None, contact_profile: Optional["_models.ContactsPropertiesContactProfile"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provisioning_state: The current state of the resource's creation, deletion, or modification. Known values are: "Creating", "Succeeded", "Failed", "Canceled", "Updating", and @@ -866,7 +868,7 @@ class ContactListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.Contact"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.Contact"]] = None, **kwargs: Any) -> None: """ :keyword value: A list of contact resources in a resource group. :paramtype value: list[~azure.mgmt.orbital.models.Contact] @@ -912,8 +914,8 @@ def __init__( ground_station_name: str, start_time: datetime.datetime, end_time: datetime.datetime, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword contact_profile: The reference to the contact profile resource. Required. :paramtype contact_profile: ~azure.mgmt.orbital.models.ContactParametersContactProfile @@ -942,7 +944,7 @@ class ContactParametersContactProfile(ResourceReference): "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 @@ -951,7 +953,8 @@ def __init__(self, *, id: Optional[str] = None, **kwargs): # pylint: disable=re class TrackedResource(Resource): - """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + """The resource model definition for an Azure Resource Manager tracked top level resource which + has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. @@ -991,7 +994,7 @@ class TrackedResource(Resource): "location": {"key": "location", "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 tags: Resource tags. :paramtype tags: dict[str, str] @@ -1004,7 +1007,8 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw class ContactProfile(TrackedResource): # pylint: disable=too-many-instance-attributes - """Customer creates a Contact Profile Resource, which will contain all of the configurations required for scheduling a contact. + """Customer creates a Contact Profile Resource, which will contain all of the configurations + required for scheduling a contact. Variables are only populated by the server, and will be ignored when sending a request. @@ -1094,8 +1098,8 @@ def __init__( event_hub_uri: Optional[str] = None, network_configuration: Optional["_models.ContactProfilesPropertiesNetworkConfiguration"] = None, links: Optional[List["_models.ContactProfileLink"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -1185,8 +1189,8 @@ def __init__( channels: List["_models.ContactProfileLinkChannel"], gain_over_temperature: Optional[float] = None, eirpd_bw: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Link name. Required. :paramtype name: str @@ -1270,8 +1274,8 @@ def __init__( demodulation_configuration: Optional[str] = None, encoding_configuration: Optional[str] = None, decoding_configuration: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Channel name. Required. :paramtype name: str @@ -1325,7 +1329,7 @@ class ContactProfileListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.ContactProfile"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.ContactProfile"]] = None, **kwargs: Any) -> None: """ :keyword value: A list of contact profile resources in a resource group. :paramtype value: list[~azure.mgmt.orbital.models.ContactProfile] @@ -1394,8 +1398,8 @@ def __init__( minimum_elevation_degrees: Optional[float] = None, auto_tracking_configuration: Optional[Union[str, "_models.AutoTrackingConfiguration"]] = None, event_hub_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provisioning_state: The current state of the resource's creation, deletion, or modification. Known values are: "Creating", "Succeeded", "Failed", "Canceled", "Updating", and @@ -1491,8 +1495,8 @@ def __init__( minimum_elevation_degrees: Optional[float] = None, auto_tracking_configuration: Optional[Union[str, "_models.AutoTrackingConfiguration"]] = None, event_hub_uri: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provisioning_state: The current state of the resource's creation, deletion, or modification. Known values are: "Creating", "Succeeded", "Failed", "Canceled", "Updating", and @@ -1550,7 +1554,7 @@ class ContactProfilesPropertiesNetworkConfiguration(_serialization.Model): "subnet_id": {"key": "subnetId", "type": "str"}, } - def __init__(self, *, subnet_id: str, **kwargs): + def __init__(self, *, subnet_id: str, **kwargs: Any) -> None: """ :keyword subnet_id: ARM resource identifier of the subnet delegated to the Microsoft.Orbital/orbitalGateways. Needs to be at least a class C subnet, and should not have @@ -1576,7 +1580,9 @@ class ContactsPropertiesAntennaConfiguration(_serialization.Model): "source_ips": {"key": "sourceIps", "type": "[str]"}, } - def __init__(self, *, destination_ip: Optional[str] = None, source_ips: Optional[List[str]] = None, **kwargs): + def __init__( + self, *, destination_ip: Optional[str] = None, source_ips: Optional[List[str]] = None, **kwargs: Any + ) -> None: """ :keyword destination_ip: The destination IP a packet can be sent to. This would for example be the TCP endpoint you would send data to. @@ -1600,7 +1606,7 @@ class ContactsPropertiesContactProfile(ResourceReference): "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 @@ -1638,8 +1644,14 @@ class EndPoint(_serialization.Model): } def __init__( - self, *, ip_address: str, end_point_name: str, port: str, protocol: Union[str, "_models.Protocol"], **kwargs - ): + self, + *, + ip_address: str, + end_point_name: str, + port: str, + protocol: Union[str, "_models.Protocol"], + **kwargs: Any + ) -> None: """ :keyword ip_address: IP Address. Required. :paramtype ip_address: str @@ -1694,7 +1706,7 @@ class Operation(_serialization.Model): "action_type": {"key": "actionType", "type": "str"}, } - def __init__(self, *, display: Optional["_models.OperationDisplay"] = None, **kwargs): + def __init__(self, *, display: Optional["_models.OperationDisplay"] = None, **kwargs: Any) -> None: """ :keyword display: Localized display information for this particular operation. :paramtype display: ~azure.mgmt.orbital.models.OperationDisplay @@ -1740,7 +1752,7 @@ class OperationDisplay(_serialization.Model): "description": {"key": "description", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.provider = None @@ -1750,7 +1762,8 @@ def __init__(self, **kwargs): class OperationListResult(_serialization.Model): - """A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. + """A list of REST API operations supported by an Azure Resource Provider. It contains an URL link + to get the next set of results. Variables are only populated by the server, and will be ignored when sending a request. @@ -1770,7 +1783,7 @@ class OperationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -1826,8 +1839,8 @@ def __init__( *, properties: Optional[JSON] = None, error: Optional["_models.OperationResultErrorProperties"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword properties: Operation result properties. :paramtype properties: JSON @@ -1866,7 +1879,7 @@ class OperationResultErrorProperties(_serialization.Model): "message": {"key": "message", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -1874,7 +1887,8 @@ def __init__(self, **kwargs): class ResourceIdListResult(_serialization.Model): - """Response for an API service call that lists the resource IDs of resources associated with another resource. + """Response for an API service call that lists the resource IDs of resources associated with + another resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -1893,7 +1907,7 @@ class ResourceIdListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.ResourceIdListResultValueItem"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.ResourceIdListResultValueItem"]] = None, **kwargs: Any) -> None: """ :keyword value: A list of Azure Resource IDs. :paramtype value: list[~azure.mgmt.orbital.models.ResourceIdListResultValueItem] @@ -1914,7 +1928,7 @@ class ResourceIdListResultValueItem(_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 Azure Resource ID. :paramtype id: str @@ -2000,8 +2014,8 @@ def __init__( tle_line1: Optional[str] = None, tle_line2: Optional[str] = None, links: Optional[List["_models.SpacecraftLink"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -2034,7 +2048,8 @@ def __init__( class SpacecraftLink(_serialization.Model): - """List of authorized spacecraft links per ground station and the expiration date of the authorization. + """List of authorized spacecraft links per ground station and the expiration date of the + authorization. Variables are only populated by the server, and will be ignored when sending a request. @@ -2082,8 +2097,8 @@ def __init__( bandwidth_m_hz: float, direction: Union[str, "_models.Direction"], polarization: Union[str, "_models.Polarization"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Link name. Required. :paramtype name: str @@ -2127,7 +2142,7 @@ class SpacecraftListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.Spacecraft"]] = None, **kwargs): + def __init__(self, *, value: Optional[List["_models.Spacecraft"]] = None, **kwargs: Any) -> None: """ :keyword value: A list of spacecraft resources in a resource group. :paramtype value: list[~azure.mgmt.orbital.models.Spacecraft] @@ -2174,8 +2189,8 @@ def __init__( last_modified_by: Optional[str] = None, last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, last_modified_at: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword created_by: The identity that created the resource. :paramtype created_by: str @@ -2212,7 +2227,7 @@ class TagsObject(_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]