diff --git a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json index 06ea333b3f3a..965b88e91ebd 100644 --- a/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json +++ b/sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/_meta.json @@ -1,11 +1,11 @@ { - "commit": "a89c3854f2d1cca8c996e00c97af3179ecb9dd72", + "commit": "e4ba122fc4844745a4716ccf0b760de4e1ac5dea", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.9.2", + "autorest": "3.9.6", "use": [ "@autorest/python@6.6.0", - "@autorest/modelerfour@4.24.3" + "@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.6.0 --use=@autorest/modelerfour@4.26.2 --version=3.9.6 --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/_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/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..43a57c209ba4 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 @@ -148,7 +148,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" @@ -304,7 +304,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 +363,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..d23c22edaaad 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] @@ -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,9 @@ 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. :vartype flags: list[str] """ @@ -844,9 +881,9 @@ 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. :paramtype flags: list[str] """ super().__init__( @@ -869,6 +906,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] @@ -905,6 +945,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 +963,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 +975,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 +991,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 +1461,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 +1490,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) @@ -5146,11 +5193,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 +5227,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] @@ -9989,7 +10040,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 +10076,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 @@ -11192,7 +11245,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 +11263,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 +11347,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] @@ -11335,6 +11391,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 +11407,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 +11419,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 +11434,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 +11448,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 +11458,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 +11466,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 +11528,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] @@ -11476,6 +11562,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 +11576,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 +11598,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 @@ -12207,13 +12299,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 +12330,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/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/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"}, },