diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json index 06ea333b3f3a..4da4ca550823 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json @@ -1,11 +1,11 @@ { - "commit": "a89c3854f2d1cca8c996e00c97af3179ecb9dd72", + "commit": "36cc9cd2d1365290f63972a04a5f4c140f3ee14c", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.9.2", + "autorest": "3.9.7", "use": [ - "@autorest/python@6.6.0", - "@autorest/modelerfour@4.24.3" + "@autorest/python@6.7.1", + "@autorest/modelerfour@4.26.2" ], - "autorest_command": "autorest specification/managednetworkfabric/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.6.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", + "autorest_command": "autorest specification/managednetworkfabric/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.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False", "readme": "specification/managednetworkfabric/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_serialization.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_serialization.py index 842ae727fbbc..4bae2292227b 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_serialization.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_serialization.py @@ -662,8 +662,9 @@ def _serialize(self, target_obj, data_type=None, **kwargs): _serialized.update(_new_attr) # type: ignore _new_attr = _new_attr[k] # type: ignore _serialized = _serialized[k] - except ValueError: - continue + except ValueError as err: + if isinstance(err, SerializationError): + raise except (AttributeError, KeyError, TypeError) as err: msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj)) @@ -741,6 +742,8 @@ def query(self, name, data, data_type, **kwargs): :param data: The data to be serialized. :param str data_type: The type to be serialized from. + :keyword bool skip_quote: Whether to skip quote the serialized result. + Defaults to False. :rtype: str :raises: TypeError if serialization fails. :raises: ValueError if data is None @@ -749,10 +752,8 @@ def query(self, name, data, data_type, **kwargs): # Treat the list aside, since we don't want to encode the div separator if data_type.startswith("["): internal_data_type = data_type[1:-1] - data = [self.serialize_data(d, internal_data_type, **kwargs) if d is not None else "" for d in data] - if not kwargs.get("skip_quote", False): - data = [quote(str(d), safe="") for d in data] - return str(self.serialize_iter(data, internal_data_type, **kwargs)) + do_quote = not kwargs.get("skip_quote", False) + return str(self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs)) # Not a list, regular serialization output = self.serialize_data(data, data_type, **kwargs) @@ -891,6 +892,8 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs): not be None or empty. :param str div: If set, this str will be used to combine the elements in the iterable into a combined string. Default is 'None'. + :keyword bool do_quote: Whether to quote the serialized result of each iterable element. + Defaults to False. :rtype: list, str """ if isinstance(data, str): @@ -903,9 +906,14 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs): for d in data: try: serialized.append(self.serialize_data(d, iter_type, **kwargs)) - except ValueError: + except ValueError as err: + if isinstance(err, SerializationError): + raise serialized.append(None) + if kwargs.get("do_quote", False): + serialized = ["" if s is None else quote(str(s), safe="") for s in serialized] + if div: serialized = ["" if s is None else str(s) for s in serialized] serialized = div.join(serialized) @@ -950,7 +958,9 @@ def serialize_dict(self, attr, dict_type, **kwargs): for key, value in attr.items(): try: serialized[self.serialize_unicode(key)] = self.serialize_data(value, dict_type, **kwargs) - except ValueError: + except ValueError as err: + if isinstance(err, SerializationError): + raise serialized[self.serialize_unicode(key)] = None if "xml" in serialization_ctxt: diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_vendor.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_vendor.py index bd0df84f5319..0dafe0e287ff 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_vendor.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_vendor.py @@ -5,8 +5,6 @@ # 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 @@ -16,15 +14,3 @@ def _convert_request(request, files=None): if files: request.set_formdata_body(files) return request - - -def _format_url_section(template, **kwargs): - components = template.split("/") - while components: - try: - return template.format(**kwargs) - except KeyError as key: - # 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/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_version.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_version.py index c47f66669f1b..e5754a47ce68 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_version.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/aio/operations/_network_fabrics_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/aio/operations/_network_fabrics_operations.py index 0db6fdcd4d72..59a6b2e2eaaa 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/aio/operations/_network_fabrics_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/aio/operations/_network_fabrics_operations.py @@ -1175,7 +1175,11 @@ def get_long_running_output(pipeline_response): } async def _upgrade_initial( - self, resource_group_name: str, network_fabric_name: str, body: Union[_models.UpdateVersion, IO], **kwargs: Any + self, + resource_group_name: str, + network_fabric_name: str, + body: Union[_models.UpgradeNetworkFabricProperties, IO], + **kwargs: Any ) -> _models.CommonPostActionResponseForStateUpdate: error_map = { 401: ClientAuthenticationError, @@ -1198,7 +1202,7 @@ async def _upgrade_initial( if isinstance(body, (IOBase, bytes)): _content = body else: - _json = self._serialize.body(body, "UpdateVersion") + _json = self._serialize.body(body, "UpgradeNetworkFabricProperties") request = build_upgrade_request( resource_group_name=resource_group_name, @@ -1250,7 +1254,7 @@ async def begin_upgrade( self, resource_group_name: str, network_fabric_name: str, - body: _models.UpdateVersion, + body: _models.UpgradeNetworkFabricProperties, *, content_type: str = "application/json", **kwargs: Any @@ -1265,7 +1269,7 @@ async def begin_upgrade( :param network_fabric_name: Name of the Network Fabric. Required. :type network_fabric_name: str :param body: Network Fabric properties to update. Required. - :type body: ~azure.mgmt.managednetworkfabric.models.UpdateVersion + :type body: ~azure.mgmt.managednetworkfabric.models.UpgradeNetworkFabricProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1325,7 +1329,11 @@ async def begin_upgrade( @distributed_trace_async async def begin_upgrade( - self, resource_group_name: str, network_fabric_name: str, body: Union[_models.UpdateVersion, IO], **kwargs: Any + self, + resource_group_name: str, + network_fabric_name: str, + body: Union[_models.UpgradeNetworkFabricProperties, IO], + **kwargs: Any ) -> AsyncLROPoller[_models.CommonPostActionResponseForStateUpdate]: """Implements the operation to the underlying resources. @@ -1336,9 +1344,9 @@ async def begin_upgrade( :type resource_group_name: str :param network_fabric_name: Name of the Network Fabric. Required. :type network_fabric_name: str - :param body: Network Fabric properties to update. Is either a UpdateVersion type or a IO type. - Required. - :type body: ~azure.mgmt.managednetworkfabric.models.UpdateVersion or IO + :param body: Network Fabric properties to update. Is either a UpgradeNetworkFabricProperties + type or a IO type. Required. + :type body: ~azure.mgmt.managednetworkfabric.models.UpgradeNetworkFabricProperties or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. :paramtype content_type: str diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/__init__.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/__init__.py index b0f438aaf4e0..d037e8057561 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/__init__.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/__init__.py @@ -213,6 +213,7 @@ from ._models_py3 import UpdateAdministrativeState from ._models_py3 import UpdateDeviceAdministrativeState from ._models_py3 import UpdateVersion +from ._models_py3 import UpgradeNetworkFabricProperties from ._models_py3 import ValidateConfigurationProperties from ._models_py3 import ValidateConfigurationResponse from ._models_py3 import VlanGroupProperties @@ -251,6 +252,7 @@ from ._managed_network_fabric_mgmt_client_enums import Layer4Protocol from ._managed_network_fabric_mgmt_client_enums import NetworkDeviceRole from ._managed_network_fabric_mgmt_client_enums import NetworkDeviceRoleName +from ._managed_network_fabric_mgmt_client_enums import NetworkFabricUpgradeAction from ._managed_network_fabric_mgmt_client_enums import NetworkRackType from ._managed_network_fabric_mgmt_client_enums import NfcSku from ._managed_network_fabric_mgmt_client_enums import NniType @@ -482,6 +484,7 @@ "UpdateAdministrativeState", "UpdateDeviceAdministrativeState", "UpdateVersion", + "UpgradeNetworkFabricProperties", "ValidateConfigurationProperties", "ValidateConfigurationResponse", "VlanGroupProperties", @@ -519,6 +522,7 @@ "Layer4Protocol", "NetworkDeviceRole", "NetworkDeviceRoleName", + "NetworkFabricUpgradeAction", "NetworkRackType", "NfcSku", "NniType", diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_managed_network_fabric_mgmt_client_enums.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_managed_network_fabric_mgmt_client_enums.py index 4be5782fc50a..206ca8c40560 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_managed_network_fabric_mgmt_client_enums.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_managed_network_fabric_mgmt_client_enums.py @@ -99,6 +99,8 @@ class ConfigurationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): DEPROVISIONED = "Deprovisioned" ERROR_DEPROVISIONING = "ErrorDeprovisioning" DEFERRED_CONTROL = "DeferredControl" + PROVISIONING = "Provisioning" + PENDING_COMMIT = "PendingCommit" class ConfigurationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -148,7 +150,7 @@ class Encapsulation(str, Enum, metaclass=CaseInsensitiveEnumMeta): class EncapsulationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Encapsulation Type.""" + """Encapsulation Type that needs to be matched.""" NONE = "None" GT_PV1 = "GTPv1" @@ -240,6 +242,13 @@ class NetworkDeviceRoleName(str, Enum, metaclass=CaseInsensitiveEnumMeta): MANAGEMENT = "Management" +class NetworkFabricUpgradeAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Action to be performed while upgrading the fabric.""" + + START = "Start" + COMPLETE = "Complete" + + class NetworkRackType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Network Rack SKU name.""" @@ -304,7 +313,7 @@ class PortType(str, Enum, metaclass=CaseInsensitiveEnumMeta): class PrefixType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """IP Prefix Type.""" + """IP Prefix Type that needs to be matched.""" PREFIX = "Prefix" LONGEST_PREFIX = "LongestPrefix" @@ -363,7 +372,7 @@ class RoutePolicyConditionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): class SourceDestinationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """IP Address type.""" + """IP Address type that needs to be matched.""" SOURCE_IP = "SourceIP" DESTINATION_IP = "DestinationIP" diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_models_py3.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_models_py3.py index 419cf6c9b052..47440245f295 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_models_py3.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/models/_models_py3.py @@ -141,6 +141,9 @@ class AccessControlList(TrackedResource): # pylint: disable=too-many-instance-a :vartype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :ivar acls_url: Access Control List file URL. :vartype acls_url: str + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar match_configurations: List of match configurations. :vartype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -151,7 +154,7 @@ class AccessControlList(TrackedResource): # pylint: disable=too-many-instance-a :vartype last_synced_time: ~datetime.datetime :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -187,6 +190,7 @@ class AccessControlList(TrackedResource): # pylint: disable=too-many-instance-a "annotation": {"key": "properties.annotation", "type": "str"}, "configuration_type": {"key": "properties.configurationType", "type": "str"}, "acls_url": {"key": "properties.aclsUrl", "type": "str"}, + "default_action": {"key": "properties.defaultAction", "type": "str"}, "match_configurations": { "key": "properties.matchConfigurations", "type": "[AccessControlListMatchConfiguration]", @@ -209,6 +213,7 @@ def __init__( annotation: Optional[str] = None, configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, acls_url: Optional[str] = None, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, match_configurations: Optional[List["_models.AccessControlListMatchConfiguration"]] = None, dynamic_match_configurations: Optional[List["_models.CommonDynamicMatchConfiguration"]] = None, **kwargs: Any @@ -225,6 +230,9 @@ def __init__( :paramtype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :keyword acls_url: Access Control List file URL. :paramtype acls_url: str + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword match_configurations: List of match configurations. :paramtype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -236,6 +244,7 @@ def __init__( self.annotation = annotation self.configuration_type = configuration_type self.acls_url = acls_url + self.default_action = default_action self.match_configurations = match_configurations self.dynamic_match_configurations = dynamic_match_configurations self.last_synced_time = None @@ -334,15 +343,15 @@ class AccessControlListMatchCondition(CommonMatchConditions): :vartype vlan_match_condition: ~azure.mgmt.managednetworkfabric.models.VlanMatchCondition :ivar ip_condition: IP condition that needs to be matched. :vartype ip_condition: ~azure.mgmt.managednetworkfabric.models.IpMatchCondition - :ivar ether_types: List of ether type values that needs to be matched. + :ivar ether_types: List of ether type values that need to be matched. :vartype ether_types: list[str] - :ivar fragments: List of IP fragment packets that needs to be matched. + :ivar fragments: List of IP fragment packets that need to be matched. :vartype fragments: list[str] - :ivar ip_lengths: List of IP Lengths that needs to be matched. + :ivar ip_lengths: List of IP Lengths that need to be matched. :vartype ip_lengths: list[str] - :ivar ttl_values: List of TTL [Time To Live] values that needs to be matched. + :ivar ttl_values: List of TTL [Time To Live] values that need to be matched. :vartype ttl_values: list[str] - :ivar dscp_markings: List of DSCP Markings that needs to be matched. + :ivar dscp_markings: List of DSCP Markings that need to be matched. :vartype dscp_markings: list[str] :ivar port_condition: Defines the port condition that needs to be matched. :vartype port_condition: ~azure.mgmt.managednetworkfabric.models.AccessControlListPortCondition @@ -390,15 +399,15 @@ def __init__( :paramtype vlan_match_condition: ~azure.mgmt.managednetworkfabric.models.VlanMatchCondition :keyword ip_condition: IP condition that needs to be matched. :paramtype ip_condition: ~azure.mgmt.managednetworkfabric.models.IpMatchCondition - :keyword ether_types: List of ether type values that needs to be matched. + :keyword ether_types: List of ether type values that need to be matched. :paramtype ether_types: list[str] - :keyword fragments: List of IP fragment packets that needs to be matched. + :keyword fragments: List of IP fragment packets that need to be matched. :paramtype fragments: list[str] - :keyword ip_lengths: List of IP Lengths that needs to be matched. + :keyword ip_lengths: List of IP Lengths that need to be matched. :paramtype ip_lengths: list[str] - :keyword ttl_values: List of TTL [Time To Live] values that needs to be matched. + :keyword ttl_values: List of TTL [Time To Live] values that need to be matched. :paramtype ttl_values: list[str] - :keyword dscp_markings: List of DSCP Markings that needs to be matched. + :keyword dscp_markings: List of DSCP Markings that need to be matched. :paramtype dscp_markings: list[str] :keyword port_condition: Defines the port condition that needs to be matched. :paramtype port_condition: @@ -511,6 +520,9 @@ class AccessControlListPatch(TagsUpdate): :vartype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :ivar acls_url: Access Control List file URL. :vartype acls_url: str + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar match_configurations: List of match configurations. :vartype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -531,6 +543,7 @@ class AccessControlListPatch(TagsUpdate): "tags": {"key": "tags", "type": "{str}"}, "configuration_type": {"key": "properties.configurationType", "type": "str"}, "acls_url": {"key": "properties.aclsUrl", "type": "str"}, + "default_action": {"key": "properties.defaultAction", "type": "str"}, "match_configurations": { "key": "properties.matchConfigurations", "type": "[AccessControlListMatchConfiguration]", @@ -548,6 +561,7 @@ def __init__( tags: Optional[Dict[str, str]] = None, configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, acls_url: Optional[str] = None, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, match_configurations: Optional[List["_models.AccessControlListMatchConfiguration"]] = None, dynamic_match_configurations: Optional[List["_models.CommonDynamicMatchConfiguration"]] = None, annotation: Optional[str] = None, @@ -561,6 +575,9 @@ def __init__( :paramtype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :keyword acls_url: Access Control List file URL. :paramtype acls_url: str + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword match_configurations: List of match configurations. :paramtype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -573,6 +590,7 @@ def __init__( super().__init__(tags=tags, **kwargs) self.configuration_type = configuration_type self.acls_url = acls_url + self.default_action = default_action self.match_configurations = match_configurations self.dynamic_match_configurations = dynamic_match_configurations self.annotation = annotation @@ -586,6 +604,9 @@ class AccessControlListPatchableProperties(_serialization.Model): :vartype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :ivar acls_url: Access Control List file URL. :vartype acls_url: str + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar match_configurations: List of match configurations. :vartype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -603,6 +624,7 @@ class AccessControlListPatchableProperties(_serialization.Model): _attribute_map = { "configuration_type": {"key": "configurationType", "type": "str"}, "acls_url": {"key": "aclsUrl", "type": "str"}, + "default_action": {"key": "defaultAction", "type": "str"}, "match_configurations": {"key": "matchConfigurations", "type": "[AccessControlListMatchConfiguration]"}, "dynamic_match_configurations": { "key": "dynamicMatchConfigurations", @@ -615,6 +637,7 @@ def __init__( *, configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, acls_url: Optional[str] = None, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, match_configurations: Optional[List["_models.AccessControlListMatchConfiguration"]] = None, dynamic_match_configurations: Optional[List["_models.CommonDynamicMatchConfiguration"]] = None, **kwargs: Any @@ -625,6 +648,9 @@ def __init__( :paramtype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :keyword acls_url: Access Control List file URL. :paramtype acls_url: str + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword match_configurations: List of match configurations. :paramtype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -635,6 +661,7 @@ def __init__( super().__init__(**kwargs) self.configuration_type = configuration_type self.acls_url = acls_url + self.default_action = default_action self.match_configurations = match_configurations self.dynamic_match_configurations = dynamic_match_configurations @@ -669,6 +696,9 @@ class AccessControlListPatchProperties(AccessControlListPatchableProperties, Ann :vartype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :ivar acls_url: Access Control List file URL. :vartype acls_url: str + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar match_configurations: List of match configurations. :vartype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -687,6 +717,7 @@ class AccessControlListPatchProperties(AccessControlListPatchableProperties, Ann "annotation": {"key": "annotation", "type": "str"}, "configuration_type": {"key": "configurationType", "type": "str"}, "acls_url": {"key": "aclsUrl", "type": "str"}, + "default_action": {"key": "defaultAction", "type": "str"}, "match_configurations": {"key": "matchConfigurations", "type": "[AccessControlListMatchConfiguration]"}, "dynamic_match_configurations": { "key": "dynamicMatchConfigurations", @@ -700,6 +731,7 @@ def __init__( annotation: Optional[str] = None, configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, acls_url: Optional[str] = None, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, match_configurations: Optional[List["_models.AccessControlListMatchConfiguration"]] = None, dynamic_match_configurations: Optional[List["_models.CommonDynamicMatchConfiguration"]] = None, **kwargs: Any @@ -712,6 +744,9 @@ def __init__( :paramtype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :keyword acls_url: Access Control List file URL. :paramtype acls_url: str + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword match_configurations: List of match configurations. :paramtype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -722,6 +757,7 @@ def __init__( super().__init__( configuration_type=configuration_type, acls_url=acls_url, + default_action=default_action, match_configurations=match_configurations, dynamic_match_configurations=dynamic_match_configurations, annotation=annotation, @@ -730,6 +766,7 @@ def __init__( self.annotation = annotation self.configuration_type = configuration_type self.acls_url = acls_url + self.default_action = default_action self.match_configurations = match_configurations self.dynamic_match_configurations = dynamic_match_configurations @@ -747,7 +784,7 @@ class PortCondition(_serialization.Model): :vartype layer4_protocol: str or ~azure.mgmt.managednetworkfabric.models.Layer4Protocol :ivar ports: List of the Ports that need to be matched. :vartype ports: list[str] - :ivar port_group_names: List of the port Group Names that to be matched. + :ivar port_group_names: List of the port Group Names that need to be matched. :vartype port_group_names: list[str] """ @@ -782,7 +819,7 @@ def __init__( :paramtype layer4_protocol: str or ~azure.mgmt.managednetworkfabric.models.Layer4Protocol :keyword ports: List of the Ports that need to be matched. :paramtype ports: list[str] - :keyword port_group_names: List of the port Group Names that to be matched. + :keyword port_group_names: List of the port Group Names that need to be matched. :paramtype port_group_names: list[str] """ super().__init__(**kwargs) @@ -805,9 +842,11 @@ class AccessControlListPortCondition(PortCondition): :vartype layer4_protocol: str or ~azure.mgmt.managednetworkfabric.models.Layer4Protocol :ivar ports: List of the Ports that need to be matched. :vartype ports: list[str] - :ivar port_group_names: List of the port Group Names that to be matched. + :ivar port_group_names: List of the port Group Names that need to be matched. :vartype port_group_names: list[str] - :ivar flags: List of protocol flags that needs to be matched. + :ivar flags: List of protocol flags that need to be matched. Example: established | initial | + :code:``. List of eligible TCP Flags are ack, fin, not-ack, not-fin, + not-psh, not-rst, not-syn, not-urg, psh, rst, syn, urg. :vartype flags: list[str] """ @@ -844,9 +883,11 @@ def __init__( :paramtype layer4_protocol: str or ~azure.mgmt.managednetworkfabric.models.Layer4Protocol :keyword ports: List of the Ports that need to be matched. :paramtype ports: list[str] - :keyword port_group_names: List of the port Group Names that to be matched. + :keyword port_group_names: List of the port Group Names that need to be matched. :paramtype port_group_names: list[str] - :keyword flags: List of protocol flags that needs to be matched. + :keyword flags: List of protocol flags that need to be matched. Example: established | initial + | :code:``. List of eligible TCP Flags are ack, fin, not-ack, not-fin, + not-psh, not-rst, not-syn, not-urg, psh, rst, syn, urg. :paramtype flags: list[str] """ super().__init__( @@ -869,6 +910,9 @@ class AccessControlListProperties(AnnotationResource, AccessControlListPatchable :vartype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :ivar acls_url: Access Control List file URL. :vartype acls_url: str + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar match_configurations: List of match configurations. :vartype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -881,7 +925,7 @@ class AccessControlListProperties(AnnotationResource, AccessControlListPatchable :vartype last_synced_time: ~datetime.datetime :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -905,6 +949,7 @@ class AccessControlListProperties(AnnotationResource, AccessControlListPatchable _attribute_map = { "configuration_type": {"key": "configurationType", "type": "str"}, "acls_url": {"key": "aclsUrl", "type": "str"}, + "default_action": {"key": "defaultAction", "type": "str"}, "match_configurations": {"key": "matchConfigurations", "type": "[AccessControlListMatchConfiguration]"}, "dynamic_match_configurations": { "key": "dynamicMatchConfigurations", @@ -922,6 +967,7 @@ def __init__( *, configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, acls_url: Optional[str] = None, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, match_configurations: Optional[List["_models.AccessControlListMatchConfiguration"]] = None, dynamic_match_configurations: Optional[List["_models.CommonDynamicMatchConfiguration"]] = None, annotation: Optional[str] = None, @@ -933,6 +979,9 @@ def __init__( :paramtype configuration_type: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationType :keyword acls_url: Access Control List file URL. :paramtype acls_url: str + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword match_configurations: List of match configurations. :paramtype match_configurations: list[~azure.mgmt.managednetworkfabric.models.AccessControlListMatchConfiguration] @@ -946,12 +995,14 @@ def __init__( annotation=annotation, configuration_type=configuration_type, acls_url=acls_url, + default_action=default_action, match_configurations=match_configurations, dynamic_match_configurations=dynamic_match_configurations, **kwargs ) self.configuration_type = configuration_type self.acls_url = acls_url + self.default_action = default_action self.match_configurations = match_configurations self.dynamic_match_configurations = dynamic_match_configurations self.last_synced_time = None @@ -1414,7 +1465,7 @@ class CommonDynamicMatchConfiguration(_serialization.Model): :vartype ip_groups: list[~azure.mgmt.managednetworkfabric.models.IpGroupProperties] :ivar vlan_groups: List of vlan groups. :vartype vlan_groups: list[~azure.mgmt.managednetworkfabric.models.VlanGroupProperties] - :ivar port_groups: List of the port group. + :ivar port_groups: List of the port groups. :vartype port_groups: list[~azure.mgmt.managednetworkfabric.models.PortGroupProperties] """ @@ -1443,7 +1494,7 @@ def __init__( :paramtype ip_groups: list[~azure.mgmt.managednetworkfabric.models.IpGroupProperties] :keyword vlan_groups: List of vlan groups. :paramtype vlan_groups: list[~azure.mgmt.managednetworkfabric.models.VlanGroupProperties] - :keyword port_groups: List of the port group. + :keyword port_groups: List of the port groups. :paramtype port_groups: list[~azure.mgmt.managednetworkfabric.models.PortGroupProperties] """ super().__init__(**kwargs) @@ -1482,7 +1533,7 @@ class CommonPostActionResponseForDeviceUpdate(ErrorResponse): :vartype error: ~azure.mgmt.managednetworkfabric.models.ErrorDetail :ivar configuration_state: Gets the configuration state. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar successful_devices: List of ARM Resource IDs for which the given action applied successfully. @@ -1534,7 +1585,7 @@ class CommonPostActionResponseForStateUpdate(ErrorResponse): :vartype error: ~azure.mgmt.managednetworkfabric.models.ErrorDetail :ivar configuration_state: Gets the configuration state. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState """ @@ -2087,7 +2138,7 @@ class ExternalNetwork(ProxyResource): # pylint: disable=too-many-instance-attri ~azure.mgmt.managednetworkfabric.models.ExternalNetworkPropertiesOptionAProperties :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -2669,7 +2720,7 @@ class ExternalNetworkProperties( ~azure.mgmt.managednetworkfabric.models.ExternalNetworkPropertiesOptionAProperties :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -3024,7 +3075,7 @@ class InternalNetwork(ProxyResource): # pylint: disable=too-many-instance-attri ~azure.mgmt.managednetworkfabric.models.InternalNetworkPropertiesStaticRouteConfiguration :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -3586,7 +3637,7 @@ class InternalNetworkProperties( ~azure.mgmt.managednetworkfabric.models.InternalNetworkPropertiesStaticRouteConfiguration :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -4460,7 +4511,7 @@ class IpCommunity(TrackedResource): # pylint: disable=too-many-instance-attribu :vartype ip_community_rules: list[~azure.mgmt.managednetworkfabric.models.IpCommunityRule] :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -4605,7 +4656,7 @@ class IpCommunityProperties(AnnotationResource, IpCommunityPatchableProperties): :vartype annotation: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -4745,7 +4796,7 @@ class IpExtendedCommunity(TrackedResource): # pylint: disable=too-many-instance list[~azure.mgmt.managednetworkfabric.models.IpExtendedCommunityRule] :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -4990,7 +5041,7 @@ class IpExtendedCommunityProperties(AnnotationResource, IpExtendedCommunityPatch :vartype annotation: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -5146,11 +5197,13 @@ def __init__( class IpMatchCondition(_serialization.Model): """Defines the condition that can be filtered using the selected IPs. - :ivar type: IP Address type. Known values are: "SourceIP" and "DestinationIP". + :ivar type: IP Address type that needs to be matched. Known values are: "SourceIP" and + "DestinationIP". :vartype type: str or ~azure.mgmt.managednetworkfabric.models.SourceDestinationType - :ivar prefix_type: IP Prefix Type. Known values are: "Prefix" and "LongestPrefix". + :ivar prefix_type: IP Prefix Type that needs to be matched. Known values are: "Prefix" and + "LongestPrefix". :vartype prefix_type: str or ~azure.mgmt.managednetworkfabric.models.PrefixType - :ivar ip_prefix_values: The list of IP Prefixes. + :ivar ip_prefix_values: The list of IP Prefixes that need to be matched. :vartype ip_prefix_values: list[str] :ivar ip_group_names: The List of IP Group Names that need to be matched. :vartype ip_group_names: list[str] @@ -5178,11 +5231,13 @@ def __init__( **kwargs: Any ) -> None: """ - :keyword type: IP Address type. Known values are: "SourceIP" and "DestinationIP". + :keyword type: IP Address type that needs to be matched. Known values are: "SourceIP" and + "DestinationIP". :paramtype type: str or ~azure.mgmt.managednetworkfabric.models.SourceDestinationType - :keyword prefix_type: IP Prefix Type. Known values are: "Prefix" and "LongestPrefix". + :keyword prefix_type: IP Prefix Type that needs to be matched. Known values are: "Prefix" and + "LongestPrefix". :paramtype prefix_type: str or ~azure.mgmt.managednetworkfabric.models.PrefixType - :keyword ip_prefix_values: The list of IP Prefixes. + :keyword ip_prefix_values: The list of IP Prefixes that need to be matched. :paramtype ip_prefix_values: list[str] :keyword ip_group_names: The List of IP Group Names that need to be matched. :paramtype ip_group_names: list[str] @@ -5222,7 +5277,7 @@ class IpPrefix(TrackedResource): # pylint: disable=too-many-instance-attributes :vartype ip_prefix_rules: list[~azure.mgmt.managednetworkfabric.models.IpPrefixRule] :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -5414,7 +5469,7 @@ class IpPrefixProperties(AnnotationResource, IpPrefixPatchableProperties): :vartype annotation: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -5599,7 +5654,7 @@ class L2IsolationDomain(TrackedResource): # pylint: disable=too-many-instance-a :vartype mtu: int :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -5758,7 +5813,7 @@ class L2IsolationDomainProperties(AnnotationResource): :vartype mtu: int :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -5916,7 +5971,7 @@ class L3IsolationDomain(TrackedResource): # pylint: disable=too-many-instance-a :vartype network_fabric_id: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -6246,7 +6301,7 @@ class L3IsolationDomainProperties(AnnotationResource, L3IsolationDomainPatchable :vartype network_fabric_id: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -6555,7 +6610,7 @@ class NeighborAddress(_serialization.Model): :vartype address: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState """ @@ -6914,7 +6969,7 @@ class NetworkDevice(TrackedResource): # pylint: disable=too-many-instance-attri :vartype management_ipv6_address: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -7165,7 +7220,7 @@ class NetworkDeviceProperties( :vartype management_ipv6_address: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -7451,7 +7506,7 @@ class NetworkFabric(TrackedResource): # pylint: disable=too-many-instance-attri :vartype l3_isolation_domains: list[str] :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on @@ -7471,7 +7526,7 @@ class NetworkFabric(TrackedResource): # pylint: disable=too-many-instance-attri "system_data": {"readonly": True}, "location": {"required": True}, "network_fabric_sku": {"required": True, "min_length": 1}, - "fabric_version": {"readonly": True}, + "fabric_version": {"min_length": 1}, "router_ids": {"readonly": True}, "network_fabric_controller_id": {"required": True}, "rack_count": {"maximum": 8, "minimum": 1}, @@ -7535,6 +7590,7 @@ def __init__( # pylint: disable=too-many-locals management_network_configuration: "_models.ManagementNetworkConfigurationProperties", tags: Optional[Dict[str, str]] = None, annotation: Optional[str] = None, + fabric_version: Optional[str] = None, rack_count: Optional[int] = None, ipv6_prefix: Optional[str] = None, **kwargs: Any @@ -7550,6 +7606,8 @@ def __init__( # pylint: disable=too-many-locals Once the user chooses a particular SKU, only supported racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. Required. :paramtype network_fabric_sku: str + :keyword fabric_version: The version of Network Fabric. + :paramtype fabric_version: str :keyword network_fabric_controller_id: Azure resource ID for the NetworkFabricController the NetworkFabric belongs. Required. :paramtype network_fabric_controller_id: str @@ -7575,7 +7633,7 @@ def __init__( # pylint: disable=too-many-locals super().__init__(tags=tags, location=location, **kwargs) self.annotation = annotation self.network_fabric_sku = network_fabric_sku - self.fabric_version = None + self.fabric_version = fabric_version self.router_ids = None self.network_fabric_controller_id = network_fabric_controller_id self.rack_count = rack_count @@ -8556,7 +8614,7 @@ class NetworkFabricProperties(AnnotationResource): # pylint: disable=too-many-i :vartype l3_isolation_domains: list[str] :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on @@ -8571,7 +8629,7 @@ class NetworkFabricProperties(AnnotationResource): # pylint: disable=too-many-i _validation = { "network_fabric_sku": {"required": True, "min_length": 1}, - "fabric_version": {"readonly": True}, + "fabric_version": {"min_length": 1}, "router_ids": {"readonly": True}, "network_fabric_controller_id": {"required": True}, "rack_count": {"maximum": 8, "minimum": 1}, @@ -8624,6 +8682,7 @@ def __init__( terminal_server_configuration: "_models.TerminalServerConfiguration", management_network_configuration: "_models.ManagementNetworkConfigurationProperties", annotation: Optional[str] = None, + fabric_version: Optional[str] = None, rack_count: Optional[int] = None, ipv6_prefix: Optional[str] = None, **kwargs: Any @@ -8635,6 +8694,8 @@ def __init__( Once the user chooses a particular SKU, only supported racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. Required. :paramtype network_fabric_sku: str + :keyword fabric_version: The version of Network Fabric. + :paramtype fabric_version: str :keyword network_fabric_controller_id: Azure resource ID for the NetworkFabricController the NetworkFabric belongs. Required. :paramtype network_fabric_controller_id: str @@ -8659,7 +8720,7 @@ def __init__( """ super().__init__(annotation=annotation, **kwargs) self.network_fabric_sku = network_fabric_sku - self.fabric_version = None + self.fabric_version = fabric_version self.router_ids = None self.network_fabric_controller_id = network_fabric_controller_id self.rack_count = rack_count @@ -9382,7 +9443,8 @@ class NetworkTap(TrackedResource): # pylint: disable=too-many-instance-attribut :vartype polling_type: str or ~azure.mgmt.managednetworkfabric.models.PollingType :ivar configuration_state: Gets the configurations state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", - "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", + and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on @@ -9636,7 +9698,8 @@ class NetworkTapProperties(AnnotationResource): :vartype polling_type: str or ~azure.mgmt.managednetworkfabric.models.PollingType :ivar configuration_state: Gets the configurations state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", - "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", + and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on @@ -9810,7 +9873,7 @@ class NetworkTapRule(TrackedResource): # pylint: disable=too-many-instance-attr :vartype last_synced_time: ~datetime.datetime :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -9989,7 +10052,8 @@ class NetworkTapRuleMatchCondition(CommonMatchConditions): :vartype vlan_match_condition: ~azure.mgmt.managednetworkfabric.models.VlanMatchCondition :ivar ip_condition: IP condition that needs to be matched. :vartype ip_condition: ~azure.mgmt.managednetworkfabric.models.IpMatchCondition - :ivar encapsulation_type: Encapsulation Type. Known values are: "None" and "GTPv1". + :ivar encapsulation_type: Encapsulation Type that needs to be matched. Known values are: "None" + and "GTPv1". :vartype encapsulation_type: str or ~azure.mgmt.managednetworkfabric.models.EncapsulationType :ivar port_condition: Defines the port condition that needs to be matched. :vartype port_condition: ~azure.mgmt.managednetworkfabric.models.PortCondition @@ -10024,7 +10088,8 @@ def __init__( :paramtype vlan_match_condition: ~azure.mgmt.managednetworkfabric.models.VlanMatchCondition :keyword ip_condition: IP condition that needs to be matched. :paramtype ip_condition: ~azure.mgmt.managednetworkfabric.models.IpMatchCondition - :keyword encapsulation_type: Encapsulation Type. Known values are: "None" and "GTPv1". + :keyword encapsulation_type: Encapsulation Type that needs to be matched. Known values are: + "None" and "GTPv1". :paramtype encapsulation_type: str or ~azure.mgmt.managednetworkfabric.models.EncapsulationType :keyword port_condition: Defines the port condition that needs to be matched. :paramtype port_condition: ~azure.mgmt.managednetworkfabric.models.PortCondition @@ -10342,7 +10407,7 @@ class NetworkTapRuleProperties( :vartype last_synced_time: ~datetime.datetime :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -10534,7 +10599,7 @@ class NetworkToNetworkInterconnect(ProxyResource): # pylint: disable=too-many-i :vartype ingress_acl_id: str :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -11192,7 +11257,7 @@ class PortGroupProperties(_serialization.Model): :ivar name: The name of the port group. :vartype name: str - :ivar ports: List of the ports that needs to be matched. + :ivar ports: List of the ports that need to be matched. :vartype ports: list[str] """ @@ -11210,7 +11275,7 @@ def __init__(self, *, name: Optional[str] = None, ports: Optional[List[str]] = N """ :keyword name: The name of the port group. :paramtype name: str - :keyword ports: List of the ports that needs to be matched. + :keyword ports: List of the ports that need to be matched. :paramtype ports: list[str] """ super().__init__(**kwargs) @@ -11294,6 +11359,9 @@ class RoutePolicy(TrackedResource): # pylint: disable=too-many-instance-attribu :vartype location: str :ivar annotation: Switch configuration description. :vartype annotation: str + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar statements: Route Policy statements. :vartype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] @@ -11304,7 +11372,7 @@ class RoutePolicy(TrackedResource): # pylint: disable=too-many-instance-attribu :vartype address_family_type: str or ~azure.mgmt.managednetworkfabric.models.AddressFamilyType :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -11335,6 +11403,7 @@ class RoutePolicy(TrackedResource): # pylint: disable=too-many-instance-attribu "tags": {"key": "tags", "type": "{str}"}, "location": {"key": "location", "type": "str"}, "annotation": {"key": "properties.annotation", "type": "str"}, + "default_action": {"key": "properties.defaultAction", "type": "str"}, "statements": {"key": "properties.statements", "type": "[RoutePolicyStatementProperties]"}, "network_fabric_id": {"key": "properties.networkFabricId", "type": "str"}, "address_family_type": {"key": "properties.addressFamilyType", "type": "str"}, @@ -11350,6 +11419,7 @@ def __init__( network_fabric_id: str, tags: Optional[Dict[str, str]] = None, annotation: Optional[str] = None, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, statements: Optional[List["_models.RoutePolicyStatementProperties"]] = None, address_family_type: Union[str, "_models.AddressFamilyType"] = "IPv4", **kwargs: Any @@ -11361,6 +11431,9 @@ def __init__( :paramtype location: str :keyword annotation: Switch configuration description. :paramtype annotation: str + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword statements: Route Policy statements. :paramtype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] @@ -11373,6 +11446,7 @@ def __init__( """ super().__init__(tags=tags, location=location, **kwargs) self.annotation = annotation + self.default_action = default_action self.statements = statements self.network_fabric_id = network_fabric_id self.address_family_type = address_family_type @@ -11386,6 +11460,9 @@ class RoutePolicyPatch(TagsUpdate): :ivar tags: Resource tags. :vartype tags: dict[str, str] + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar statements: Route Policy statements. :vartype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] @@ -11393,6 +11470,7 @@ class RoutePolicyPatch(TagsUpdate): _attribute_map = { "tags": {"key": "tags", "type": "{str}"}, + "default_action": {"key": "properties.defaultAction", "type": "str"}, "statements": {"key": "properties.statements", "type": "[RoutePolicyStatementProperties]"}, } @@ -11400,41 +11478,58 @@ def __init__( self, *, tags: Optional[Dict[str, str]] = None, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, statements: Optional[List["_models.RoutePolicyStatementProperties"]] = None, **kwargs: Any ) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword statements: Route Policy statements. :paramtype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] """ super().__init__(tags=tags, **kwargs) + self.default_action = default_action self.statements = statements class RoutePolicyPatchableProperties(_serialization.Model): """Route Policy patchable properties. + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar statements: Route Policy statements. :vartype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] """ _attribute_map = { + "default_action": {"key": "defaultAction", "type": "str"}, "statements": {"key": "statements", "type": "[RoutePolicyStatementProperties]"}, } def __init__( - self, *, statements: Optional[List["_models.RoutePolicyStatementProperties"]] = None, **kwargs: Any + self, + *, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, + statements: Optional[List["_models.RoutePolicyStatementProperties"]] = None, + **kwargs: Any ) -> None: """ + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword statements: Route Policy statements. :paramtype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] """ super().__init__(**kwargs) + self.default_action = default_action self.statements = statements @@ -11445,6 +11540,9 @@ class RoutePolicyProperties(AnnotationResource, RoutePolicyPatchableProperties): All required parameters must be populated in order to send to Azure. + :ivar default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :vartype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :ivar statements: Route Policy statements. :vartype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] @@ -11457,7 +11555,7 @@ class RoutePolicyProperties(AnnotationResource, RoutePolicyPatchableProperties): :vartype address_family_type: str or ~azure.mgmt.managednetworkfabric.models.AddressFamilyType :ivar configuration_state: Configuration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". @@ -11476,6 +11574,7 @@ class RoutePolicyProperties(AnnotationResource, RoutePolicyPatchableProperties): } _attribute_map = { + "default_action": {"key": "defaultAction", "type": "str"}, "statements": {"key": "statements", "type": "[RoutePolicyStatementProperties]"}, "annotation": {"key": "annotation", "type": "str"}, "network_fabric_id": {"key": "networkFabricId", "type": "str"}, @@ -11489,12 +11588,16 @@ def __init__( self, *, network_fabric_id: str, + default_action: Optional[Union[str, "_models.CommunityActionTypes"]] = None, statements: Optional[List["_models.RoutePolicyStatementProperties"]] = None, annotation: Optional[str] = None, address_family_type: Union[str, "_models.AddressFamilyType"] = "IPv4", **kwargs: Any ) -> None: """ + :keyword default_action: Default action that needs to be applied when no condition is matched. + Example: Permit | Deny. Known values are: "Permit" and "Deny". + :paramtype default_action: str or ~azure.mgmt.managednetworkfabric.models.CommunityActionTypes :keyword statements: Route Policy statements. :paramtype statements: list[~azure.mgmt.managednetworkfabric.models.RoutePolicyStatementProperties] @@ -11507,7 +11610,8 @@ def __init__( :paramtype address_family_type: str or ~azure.mgmt.managednetworkfabric.models.AddressFamilyType """ - super().__init__(annotation=annotation, statements=statements, **kwargs) + super().__init__(annotation=annotation, default_action=default_action, statements=statements, **kwargs) + self.default_action = default_action self.statements = statements self.network_fabric_id = network_fabric_id self.address_family_type = address_family_type @@ -12112,6 +12216,39 @@ def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: self.version = version +class UpgradeNetworkFabricProperties(UpdateVersion): + """UpgradeNetworkFabricProperties. + + :ivar version: Specify the version. + :vartype version: str + :ivar action: Action to be performed while upgrading the fabric. Known values are: "Start" and + "Complete". + :vartype action: str or ~azure.mgmt.managednetworkfabric.models.NetworkFabricUpgradeAction + """ + + _attribute_map = { + "version": {"key": "version", "type": "str"}, + "action": {"key": "action", "type": "str"}, + } + + def __init__( + self, + *, + version: Optional[str] = None, + action: Optional[Union[str, "_models.NetworkFabricUpgradeAction"]] = None, + **kwargs: Any + ) -> None: + """ + :keyword version: Specify the version. + :paramtype version: str + :keyword action: Action to be performed while upgrading the fabric. Known values are: "Start" + and "Complete". + :paramtype action: str or ~azure.mgmt.managednetworkfabric.models.NetworkFabricUpgradeAction + """ + super().__init__(version=version, **kwargs) + self.action = action + + class ValidateConfigurationProperties(_serialization.Model): """Validation configuration properties. @@ -12145,7 +12282,7 @@ class ValidateConfigurationResponse(ErrorResponse): :vartype error: ~azure.mgmt.managednetworkfabric.models.ErrorDetail :ivar configuration_state: Gets the configuration state. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", - "Deprovisioned", "ErrorDeprovisioning", and "DeferredControl". + "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", and "PendingCommit". :vartype configuration_state: str or ~azure.mgmt.managednetworkfabric.models.ConfigurationState :ivar url: URL for the details of the response. :vartype url: str @@ -12207,13 +12344,13 @@ def __init__(self, *, name: Optional[str] = None, vlans: Optional[List[str]] = N class VlanMatchCondition(_serialization.Model): - """The vlan match conditions that needs to be matched. + """The vlan match conditions that need to be matched. - :ivar vlans: List of vlans that needs to be matched. + :ivar vlans: List of vlans that need to be matched. :vartype vlans: list[str] - :ivar inner_vlans: List of inner vlans that needs to be matched. + :ivar inner_vlans: List of inner vlans that need to be matched. :vartype inner_vlans: list[str] - :ivar vlan_group_names: List of vlan group names that to be matched. + :ivar vlan_group_names: List of vlan group names that need to be matched. :vartype vlan_group_names: list[str] """ @@ -12238,11 +12375,11 @@ def __init__( **kwargs: Any ) -> None: """ - :keyword vlans: List of vlans that needs to be matched. + :keyword vlans: List of vlans that need to be matched. :paramtype vlans: list[str] - :keyword inner_vlans: List of inner vlans that needs to be matched. + :keyword inner_vlans: List of inner vlans that need to be matched. :paramtype inner_vlans: list[str] - :keyword vlan_group_names: List of vlan group names that to be matched. + :keyword vlan_group_names: List of vlan group names that need to be matched. :paramtype vlan_group_names: list[str] """ super().__init__(**kwargs) diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_access_control_lists_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_access_control_lists_operations.py index 484a1c843ed5..e0e8148fdb34 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_access_control_lists_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_access_control_lists_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "accessControlListName": _SERIALIZER.url("access_control_list_name", access_control_list_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "accessControlListName": _SERIALIZER.url("access_control_list_name", access_control_list_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "accessControlListName": _SERIALIZER.url("access_control_list_name", access_control_list_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "accessControlListName": _SERIALIZER.url("access_control_list_name", access_control_list_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -256,7 +256,7 @@ def build_update_administrative_state_request( "accessControlListName": _SERIALIZER.url("access_control_list_name", access_control_list_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -291,7 +291,7 @@ def build_resync_request( "accessControlListName": _SERIALIZER.url("access_control_list_name", access_control_list_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -324,7 +324,7 @@ def build_validate_configuration_request( "accessControlListName": _SERIALIZER.url("access_control_list_name", access_control_list_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_external_networks_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_external_networks_operations.py index 1a9c527b18aa..28acb8912054 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_external_networks_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_external_networks_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -67,7 +67,7 @@ def build_create_request( "externalNetworkName": _SERIALIZER.url("external_network_name", external_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -107,7 +107,7 @@ def build_get_request( "externalNetworkName": _SERIALIZER.url("external_network_name", external_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -146,7 +146,7 @@ def build_update_request( "externalNetworkName": _SERIALIZER.url("external_network_name", external_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -186,7 +186,7 @@ def build_delete_request( "externalNetworkName": _SERIALIZER.url("external_network_name", external_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -219,7 +219,7 @@ def build_list_by_l3_isolation_domain_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -258,7 +258,7 @@ def build_update_administrative_state_request( "externalNetworkName": _SERIALIZER.url("external_network_name", external_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -299,7 +299,7 @@ def build_update_static_route_bfd_administrative_state_request( "externalNetworkName": _SERIALIZER.url("external_network_name", external_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internal_networks_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internal_networks_operations.py index 43541bac41e9..b41a303c3816 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internal_networks_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internal_networks_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -67,7 +67,7 @@ def build_create_request( "internalNetworkName": _SERIALIZER.url("internal_network_name", internal_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -107,7 +107,7 @@ def build_get_request( "internalNetworkName": _SERIALIZER.url("internal_network_name", internal_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -146,7 +146,7 @@ def build_update_request( "internalNetworkName": _SERIALIZER.url("internal_network_name", internal_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -186,7 +186,7 @@ def build_delete_request( "internalNetworkName": _SERIALIZER.url("internal_network_name", internal_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -219,7 +219,7 @@ def build_list_by_l3_isolation_domain_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -258,7 +258,7 @@ def build_update_administrative_state_request( "internalNetworkName": _SERIALIZER.url("internal_network_name", internal_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -299,7 +299,7 @@ def build_update_bgp_administrative_state_request( "internalNetworkName": _SERIALIZER.url("internal_network_name", internal_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -340,7 +340,7 @@ def build_update_static_route_bfd_administrative_state_request( "internalNetworkName": _SERIALIZER.url("internal_network_name", internal_network_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateway_rules_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateway_rules_operations.py index ccb544cbc307..93994a286c47 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateway_rules_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateway_rules_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "internetGatewayRuleName": _SERIALIZER.url("internet_gateway_rule_name", internet_gateway_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "internetGatewayRuleName": _SERIALIZER.url("internet_gateway_rule_name", internet_gateway_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "internetGatewayRuleName": _SERIALIZER.url("internet_gateway_rule_name", internet_gateway_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "internetGatewayRuleName": _SERIALIZER.url("internet_gateway_rule_name", internet_gateway_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateways_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateways_operations.py index 634f76770cf5..9e3cec97945a 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateways_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_internet_gateways_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "internetGatewayName": _SERIALIZER.url("internet_gateway_name", internet_gateway_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "internetGatewayName": _SERIALIZER.url("internet_gateway_name", internet_gateway_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "internetGatewayName": _SERIALIZER.url("internet_gateway_name", internet_gateway_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "internetGatewayName": _SERIALIZER.url("internet_gateway_name", internet_gateway_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_communities_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_communities_operations.py index 861d85bba59d..8cfaf4e11742 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_communities_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_communities_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "ipCommunityName": _SERIALIZER.url("ip_community_name", ip_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "ipCommunityName": _SERIALIZER.url("ip_community_name", ip_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "ipCommunityName": _SERIALIZER.url("ip_community_name", ip_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "ipCommunityName": _SERIALIZER.url("ip_community_name", ip_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_extended_communities_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_extended_communities_operations.py index 9315e7414a1d..553f9e942072 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_extended_communities_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_extended_communities_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "ipExtendedCommunityName": _SERIALIZER.url("ip_extended_community_name", ip_extended_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "ipExtendedCommunityName": _SERIALIZER.url("ip_extended_community_name", ip_extended_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "ipExtendedCommunityName": _SERIALIZER.url("ip_extended_community_name", ip_extended_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "ipExtendedCommunityName": _SERIALIZER.url("ip_extended_community_name", ip_extended_community_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_prefixes_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_prefixes_operations.py index 86cd6027d893..804139ec56f3 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_prefixes_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_ip_prefixes_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "ipPrefixName": _SERIALIZER.url("ip_prefix_name", ip_prefix_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "ipPrefixName": _SERIALIZER.url("ip_prefix_name", ip_prefix_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "ipPrefixName": _SERIALIZER.url("ip_prefix_name", ip_prefix_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "ipPrefixName": _SERIALIZER.url("ip_prefix_name", ip_prefix_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l2_isolation_domains_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l2_isolation_domains_operations.py index d0a8ace42926..3b2cfd0a8fcf 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l2_isolation_domains_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l2_isolation_domains_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "l2IsolationDomainName": _SERIALIZER.url("l2_isolation_domain_name", l2_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "l2IsolationDomainName": _SERIALIZER.url("l2_isolation_domain_name", l2_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "l2IsolationDomainName": _SERIALIZER.url("l2_isolation_domain_name", l2_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "l2IsolationDomainName": _SERIALIZER.url("l2_isolation_domain_name", l2_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -200,7 +200,7 @@ def build_update_administrative_state_request( "l2IsolationDomainName": _SERIALIZER.url("l2_isolation_domain_name", l2_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -235,7 +235,7 @@ def build_validate_configuration_request( "l2IsolationDomainName": _SERIALIZER.url("l2_isolation_domain_name", l2_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -268,7 +268,7 @@ def build_commit_configuration_request( "l2IsolationDomainName": _SERIALIZER.url("l2_isolation_domain_name", l2_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -298,7 +298,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -324,7 +324,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l3_isolation_domains_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l3_isolation_domains_operations.py index e4f0871b7a9c..bbc324df9ae6 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l3_isolation_domains_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_l3_isolation_domains_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -256,7 +256,7 @@ def build_update_administrative_state_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -291,7 +291,7 @@ def build_validate_configuration_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -324,7 +324,7 @@ def build_commit_configuration_request( "l3IsolationDomainName": _SERIALIZER.url("l3_isolation_domain_name", l3_isolation_domain_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_neighbor_groups_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_neighbor_groups_operations.py index cf0d66ab43d0..0e73efb46ee9 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_neighbor_groups_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_neighbor_groups_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "neighborGroupName": _SERIALIZER.url("neighbor_group_name", neighbor_group_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "neighborGroupName": _SERIALIZER.url("neighbor_group_name", neighbor_group_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "neighborGroupName": _SERIALIZER.url("neighbor_group_name", neighbor_group_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "neighborGroupName": _SERIALIZER.url("neighbor_group_name", neighbor_group_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_device_skus_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_device_skus_operations.py index 9d35c32dab2b..c318d9406f24 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_device_skus_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_device_skus_operations.py @@ -27,7 +27,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -53,7 +53,7 @@ def build_get_request(network_device_sku_name: str, subscription_id: str, **kwar "networkDeviceSkuName": _SERIALIZER.url("network_device_sku_name", network_device_sku_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -79,7 +79,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_devices_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_devices_operations.py index 3b02b693a5aa..7f597af01145 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_devices_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_devices_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -256,7 +256,7 @@ def build_reboot_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -291,7 +291,7 @@ def build_refresh_configuration_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -325,7 +325,7 @@ def build_update_administrative_state_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -361,7 +361,7 @@ def build_upgrade_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_controllers_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_controllers_operations.py index 9dc83e2ddb5c..e0ec05a674d9 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_controllers_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_controllers_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -64,7 +64,7 @@ def build_create_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -101,7 +101,7 @@ def build_get_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -137,7 +137,7 @@ def build_update_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -174,7 +174,7 @@ def build_delete_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -204,7 +204,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -231,7 +231,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_skus_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_skus_operations.py index f9e7f7608457..55f3907ce689 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_skus_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabric_skus_operations.py @@ -27,7 +27,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -53,7 +53,7 @@ def build_get_request(network_fabric_sku_name: str, subscription_id: str, **kwar "networkFabricSkuName": _SERIALIZER.url("network_fabric_sku_name", network_fabric_sku_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -79,7 +79,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabrics_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabrics_operations.py index dcb69c5aafc3..fe240300996d 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabrics_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_fabrics_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -255,7 +255,7 @@ def build_provision_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -288,7 +288,7 @@ def build_deprovision_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -322,7 +322,7 @@ def build_upgrade_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -357,7 +357,7 @@ def build_refresh_configuration_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -391,7 +391,7 @@ def build_update_workload_management_bfd_configuration_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -427,7 +427,7 @@ def build_update_infra_management_bfd_configuration_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -463,7 +463,7 @@ def build_validate_configuration_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -498,7 +498,7 @@ def build_get_topology_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -531,7 +531,7 @@ def build_commit_configuration_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -1653,7 +1653,11 @@ def get_long_running_output(pipeline_response): } def _upgrade_initial( - self, resource_group_name: str, network_fabric_name: str, body: Union[_models.UpdateVersion, IO], **kwargs: Any + self, + resource_group_name: str, + network_fabric_name: str, + body: Union[_models.UpgradeNetworkFabricProperties, IO], + **kwargs: Any ) -> _models.CommonPostActionResponseForStateUpdate: error_map = { 401: ClientAuthenticationError, @@ -1676,7 +1680,7 @@ def _upgrade_initial( if isinstance(body, (IOBase, bytes)): _content = body else: - _json = self._serialize.body(body, "UpdateVersion") + _json = self._serialize.body(body, "UpgradeNetworkFabricProperties") request = build_upgrade_request( resource_group_name=resource_group_name, @@ -1728,7 +1732,7 @@ def begin_upgrade( self, resource_group_name: str, network_fabric_name: str, - body: _models.UpdateVersion, + body: _models.UpgradeNetworkFabricProperties, *, content_type: str = "application/json", **kwargs: Any @@ -1743,7 +1747,7 @@ def begin_upgrade( :param network_fabric_name: Name of the Network Fabric. Required. :type network_fabric_name: str :param body: Network Fabric properties to update. Required. - :type body: ~azure.mgmt.managednetworkfabric.models.UpdateVersion + :type body: ~azure.mgmt.managednetworkfabric.models.UpgradeNetworkFabricProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1803,7 +1807,11 @@ def begin_upgrade( @distributed_trace def begin_upgrade( - self, resource_group_name: str, network_fabric_name: str, body: Union[_models.UpdateVersion, IO], **kwargs: Any + self, + resource_group_name: str, + network_fabric_name: str, + body: Union[_models.UpgradeNetworkFabricProperties, IO], + **kwargs: Any ) -> LROPoller[_models.CommonPostActionResponseForStateUpdate]: """Implements the operation to the underlying resources. @@ -1814,9 +1822,9 @@ def begin_upgrade( :type resource_group_name: str :param network_fabric_name: Name of the Network Fabric. Required. :type network_fabric_name: str - :param body: Network Fabric properties to update. Is either a UpdateVersion type or a IO type. - Required. - :type body: ~azure.mgmt.managednetworkfabric.models.UpdateVersion or IO + :param body: Network Fabric properties to update. Is either a UpgradeNetworkFabricProperties + type or a IO type. Required. + :type body: ~azure.mgmt.managednetworkfabric.models.UpgradeNetworkFabricProperties or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. :paramtype content_type: str diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_interfaces_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_interfaces_operations.py index 2f6ab49415f0..17eb83f74830 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_interfaces_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_interfaces_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -63,7 +63,7 @@ def build_create_request( "networkInterfaceName": _SERIALIZER.url("network_interface_name", network_interface_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -99,7 +99,7 @@ def build_get_request( "networkInterfaceName": _SERIALIZER.url("network_interface_name", network_interface_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -134,7 +134,7 @@ def build_update_request( "networkInterfaceName": _SERIALIZER.url("network_interface_name", network_interface_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -170,7 +170,7 @@ def build_delete_request( "networkInterfaceName": _SERIALIZER.url("network_interface_name", network_interface_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -203,7 +203,7 @@ def build_list_by_network_device_request( "networkDeviceName": _SERIALIZER.url("network_device_name", network_device_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -238,7 +238,7 @@ def build_update_administrative_state_request( "networkInterfaceName": _SERIALIZER.url("network_interface_name", network_interface_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_packet_brokers_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_packet_brokers_operations.py index 96495cb34a3c..47e8a56bc795 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_packet_brokers_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_packet_brokers_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "networkPacketBrokerName": _SERIALIZER.url("network_packet_broker_name", network_packet_broker_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "networkPacketBrokerName": _SERIALIZER.url("network_packet_broker_name", network_packet_broker_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "networkPacketBrokerName": _SERIALIZER.url("network_packet_broker_name", network_packet_broker_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "networkPacketBrokerName": _SERIALIZER.url("network_packet_broker_name", network_packet_broker_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_racks_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_racks_operations.py index 3909e6bfeb5a..c2b2181ab9bd 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_racks_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_racks_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "networkRackName": _SERIALIZER.url("network_rack_name", network_rack_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "networkRackName": _SERIALIZER.url("network_rack_name", network_rack_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "networkRackName": _SERIALIZER.url("network_rack_name", network_rack_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "networkRackName": _SERIALIZER.url("network_rack_name", network_rack_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_tap_rules_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_tap_rules_operations.py index 76e9a4dc24d8..a457d9f16762 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_tap_rules_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_tap_rules_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "networkTapRuleName": _SERIALIZER.url("network_tap_rule_name", network_tap_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "networkTapRuleName": _SERIALIZER.url("network_tap_rule_name", network_tap_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "networkTapRuleName": _SERIALIZER.url("network_tap_rule_name", network_tap_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "networkTapRuleName": _SERIALIZER.url("network_tap_rule_name", network_tap_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -256,7 +256,7 @@ def build_update_administrative_state_request( "networkTapRuleName": _SERIALIZER.url("network_tap_rule_name", network_tap_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -291,7 +291,7 @@ def build_resync_request( "networkTapRuleName": _SERIALIZER.url("network_tap_rule_name", network_tap_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -324,7 +324,7 @@ def build_validate_configuration_request( "networkTapRuleName": _SERIALIZER.url("network_tap_rule_name", network_tap_rule_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_taps_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_taps_operations.py index b1c6c9d14e9a..5ff3e04d06a3 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_taps_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_taps_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "networkTapName": _SERIALIZER.url("network_tap_name", network_tap_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "networkTapName": _SERIALIZER.url("network_tap_name", network_tap_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "networkTapName": _SERIALIZER.url("network_tap_name", network_tap_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "networkTapName": _SERIALIZER.url("network_tap_name", network_tap_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -256,7 +256,7 @@ def build_update_administrative_state_request( "networkTapName": _SERIALIZER.url("network_tap_name", network_tap_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -291,7 +291,7 @@ def build_resync_request( "networkTapName": _SERIALIZER.url("network_tap_name", network_tap_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_to_network_interconnects_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_to_network_interconnects_operations.py index 85d7e2cd28b3..be851ed0eac3 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_to_network_interconnects_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_network_to_network_interconnects_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -69,7 +69,7 @@ def build_create_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -111,7 +111,7 @@ def build_get_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -152,7 +152,7 @@ def build_update_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -194,7 +194,7 @@ def build_delete_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -227,7 +227,7 @@ def build_list_by_network_fabric_request( "networkFabricName": _SERIALIZER.url("network_fabric_name", network_fabric_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -268,7 +268,7 @@ def build_update_npb_static_route_bfd_administrative_state_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -311,7 +311,7 @@ def build_update_administrative_state_request( ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_route_policies_operations.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_route_policies_operations.py index 458941162970..eb02b2cfb9c7 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_route_policies_operations.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/azure/mgmt/managednetworkfabric/operations/_route_policies_operations.py @@ -30,7 +30,7 @@ from .. import models as _models from .._serialization import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _convert_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +62,7 @@ def build_create_request( "routePolicyName": _SERIALIZER.url("route_policy_name", route_policy_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -97,7 +97,7 @@ def build_get_request( "routePolicyName": _SERIALIZER.url("route_policy_name", route_policy_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -131,7 +131,7 @@ def build_update_request( "routePolicyName": _SERIALIZER.url("route_policy_name", route_policy_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -166,7 +166,7 @@ def build_delete_request( "routePolicyName": _SERIALIZER.url("route_policy_name", route_policy_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -196,7 +196,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ ), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -222,7 +222,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -256,7 +256,7 @@ def build_update_administrative_state_request( "routePolicyName": _SERIALIZER.url("route_policy_name", route_policy_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -291,7 +291,7 @@ def build_validate_configuration_request( "routePolicyName": _SERIALIZER.url("route_policy_name", route_policy_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -324,7 +324,7 @@ def build_commit_configuration_request( "routePolicyName": _SERIALIZER.url("route_policy_name", route_policy_name, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_create_maximum_set_gen.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_create_maximum_set_gen.py index 832e9d60d304..381d25024312 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_create_maximum_set_gen.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_create_maximum_set_gen.py @@ -38,6 +38,7 @@ def main(): "aclsUrl": "https://ACL-Storage-URL", "annotation": "annotation", "configurationType": "File", + "defaultAction": "Permit", "dynamicMatchConfigurations": [ { "ipGroups": [ diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_update_maximum_set_gen.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_update_maximum_set_gen.py index 2cf5918920a3..41163c056be6 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_update_maximum_set_gen.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/access_control_lists_update_maximum_set_gen.py @@ -37,6 +37,7 @@ def main(): "aclsUrl": "https://microsoft.com/a", "annotation": "annotation", "configurationType": "File", + "defaultAction": "Permit", "dynamicMatchConfigurations": [ { "ipGroups": [ diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_create_maximum_set_gen.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_create_maximum_set_gen.py index 1c38e1e37dfa..5d0eba077b41 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_create_maximum_set_gen.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_create_maximum_set_gen.py @@ -37,6 +37,7 @@ def main(): "properties": { "annotation": "annotation", "fabricASN": 29249, + "fabricVersion": "1.x.x", "ipv4Prefix": "10.18.0.0/19", "ipv6Prefix": "3FFE:FFFF:0:CD40::/59", "managementNetworkConfiguration": { diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_upgrade_maximum_set_gen.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_upgrade_maximum_set_gen.py index ca1b5f37ef4a..2f14fb463390 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_upgrade_maximum_set_gen.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/network_fabrics_upgrade_maximum_set_gen.py @@ -32,7 +32,7 @@ def main(): response = client.network_fabrics.begin_upgrade( resource_group_name="example-rg", network_fabric_name="example-fabric", - body={"version": "version1"}, + body={"action": "Start", "version": "3.x.x"}, ).result() print(response) diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_create_maximum_set_gen.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_create_maximum_set_gen.py index dec316882edf..893e302444c6 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_create_maximum_set_gen.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_create_maximum_set_gen.py @@ -37,6 +37,7 @@ def main(): "properties": { "addressFamilyType": "IPv4", "annotation": "annotation", + "defaultAction": "Deny", "networkFabricId": "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabrics/example-fabric", "statements": [ { diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_update_maximum_set_gen.py b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_update_maximum_set_gen.py index 628956f07c86..2baee6550259 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_update_maximum_set_gen.py +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/route_policies_update_maximum_set_gen.py @@ -34,6 +34,7 @@ def main(): route_policy_name="example-routePolicy", body={ "properties": { + "defaultAction": "Deny", "statements": [ { "action": { @@ -87,7 +88,7 @@ def main(): }, "sequenceNumber": 7, } - ] + ], }, "tags": {"keyID": "keyValue"}, },