@@ -707,6 +707,34 @@ def __init__(
707
707
self .user_event_pattern = user_event_pattern
708
708
709
709
710
+ class IPRule (_serialization .Model ):
711
+ """An IP rule.
712
+
713
+ :ivar value: An IP or CIDR or ServiceTag.
714
+ :vartype value: str
715
+ :ivar action: Azure Networking ACL Action. Known values are: "Allow" and "Deny".
716
+ :vartype action: str or ~azure.mgmt.webpubsub.models.ACLAction
717
+ """
718
+
719
+ _attribute_map = {
720
+ "value" : {"key" : "value" , "type" : "str" },
721
+ "action" : {"key" : "action" , "type" : "str" },
722
+ }
723
+
724
+ def __init__ (
725
+ self , * , value : Optional [str ] = None , action : Optional [Union [str , "_models.ACLAction" ]] = None , ** kwargs : Any
726
+ ) -> None :
727
+ """
728
+ :keyword value: An IP or CIDR or ServiceTag.
729
+ :paramtype value: str
730
+ :keyword action: Azure Networking ACL Action. Known values are: "Allow" and "Deny".
731
+ :paramtype action: str or ~azure.mgmt.webpubsub.models.ACLAction
732
+ """
733
+ super ().__init__ (** kwargs )
734
+ self .value = value
735
+ self .action = action
736
+
737
+
710
738
class LiveTraceCategory (_serialization .Model ):
711
739
"""Live trace category configuration of a Microsoft.SignalRService resource.
712
740
@@ -1669,6 +1697,14 @@ class Replica(TrackedResource):
1669
1697
:ivar provisioning_state: Provisioning state of the resource. Known values are: "Unknown",
1670
1698
"Succeeded", "Failed", "Canceled", "Running", "Creating", "Updating", "Deleting", and "Moving".
1671
1699
:vartype provisioning_state: str or ~azure.mgmt.webpubsub.models.ProvisioningState
1700
+ :ivar region_endpoint_enabled: Enable or disable the regional endpoint. Default to "Enabled".
1701
+ When it's Disabled, new connections will not be routed to this endpoint, however existing
1702
+ connections will not be affected.
1703
+ :vartype region_endpoint_enabled: str
1704
+ :ivar resource_stopped: Stop or start the resource. Default to "false".
1705
+ When it's true, the data plane of the resource is shutdown.
1706
+ When it's false, the data plane of the resource is started.
1707
+ :vartype resource_stopped: str
1672
1708
"""
1673
1709
1674
1710
_validation = {
@@ -1689,6 +1725,8 @@ class Replica(TrackedResource):
1689
1725
"location" : {"key" : "location" , "type" : "str" },
1690
1726
"sku" : {"key" : "sku" , "type" : "ResourceSku" },
1691
1727
"provisioning_state" : {"key" : "properties.provisioningState" , "type" : "str" },
1728
+ "region_endpoint_enabled" : {"key" : "properties.regionEndpointEnabled" , "type" : "str" },
1729
+ "resource_stopped" : {"key" : "properties.resourceStopped" , "type" : "str" },
1692
1730
}
1693
1731
1694
1732
def __init__ (
@@ -1697,6 +1735,8 @@ def __init__(
1697
1735
location : str ,
1698
1736
tags : Optional [Dict [str , str ]] = None ,
1699
1737
sku : Optional ["_models.ResourceSku" ] = None ,
1738
+ region_endpoint_enabled : str = "Enabled" ,
1739
+ resource_stopped : str = "false" ,
1700
1740
** kwargs : Any
1701
1741
) -> None :
1702
1742
"""
@@ -1706,10 +1746,21 @@ def __init__(
1706
1746
:paramtype location: str
1707
1747
:keyword sku: The billing information of the resource.
1708
1748
:paramtype sku: ~azure.mgmt.webpubsub.models.ResourceSku
1749
+ :keyword region_endpoint_enabled: Enable or disable the regional endpoint. Default to
1750
+ "Enabled".
1751
+ When it's Disabled, new connections will not be routed to this endpoint, however existing
1752
+ connections will not be affected.
1753
+ :paramtype region_endpoint_enabled: str
1754
+ :keyword resource_stopped: Stop or start the resource. Default to "false".
1755
+ When it's true, the data plane of the resource is shutdown.
1756
+ When it's false, the data plane of the resource is started.
1757
+ :paramtype resource_stopped: str
1709
1758
"""
1710
1759
super ().__init__ (tags = tags , location = location , ** kwargs )
1711
1760
self .sku = sku
1712
1761
self .provisioning_state = None
1762
+ self .region_endpoint_enabled = region_endpoint_enabled
1763
+ self .resource_stopped = resource_stopped
1713
1764
1714
1765
1715
1766
class ReplicaList (_serialization .Model ):
@@ -2655,12 +2706,19 @@ class WebPubSubNetworkACLs(_serialization.Model):
2655
2706
:vartype public_network: ~azure.mgmt.webpubsub.models.NetworkACL
2656
2707
:ivar private_endpoints: ACLs for requests from private endpoints.
2657
2708
:vartype private_endpoints: list[~azure.mgmt.webpubsub.models.PrivateEndpointACL]
2709
+ :ivar ip_rules: IP rules for filtering public traffic.
2710
+ :vartype ip_rules: list[~azure.mgmt.webpubsub.models.IPRule]
2658
2711
"""
2659
2712
2713
+ _validation = {
2714
+ "ip_rules" : {"max_items" : 30 , "min_items" : 0 },
2715
+ }
2716
+
2660
2717
_attribute_map = {
2661
2718
"default_action" : {"key" : "defaultAction" , "type" : "str" },
2662
2719
"public_network" : {"key" : "publicNetwork" , "type" : "NetworkACL" },
2663
2720
"private_endpoints" : {"key" : "privateEndpoints" , "type" : "[PrivateEndpointACL]" },
2721
+ "ip_rules" : {"key" : "ipRules" , "type" : "[IPRule]" },
2664
2722
}
2665
2723
2666
2724
def __init__ (
@@ -2669,6 +2727,7 @@ def __init__(
2669
2727
default_action : Optional [Union [str , "_models.ACLAction" ]] = None ,
2670
2728
public_network : Optional ["_models.NetworkACL" ] = None ,
2671
2729
private_endpoints : Optional [List ["_models.PrivateEndpointACL" ]] = None ,
2730
+ ip_rules : Optional [List ["_models.IPRule" ]] = None ,
2672
2731
** kwargs : Any
2673
2732
) -> None :
2674
2733
"""
@@ -2678,11 +2737,14 @@ def __init__(
2678
2737
:paramtype public_network: ~azure.mgmt.webpubsub.models.NetworkACL
2679
2738
:keyword private_endpoints: ACLs for requests from private endpoints.
2680
2739
:paramtype private_endpoints: list[~azure.mgmt.webpubsub.models.PrivateEndpointACL]
2740
+ :keyword ip_rules: IP rules for filtering public traffic.
2741
+ :paramtype ip_rules: list[~azure.mgmt.webpubsub.models.IPRule]
2681
2742
"""
2682
2743
super ().__init__ (** kwargs )
2683
2744
self .default_action = default_action
2684
2745
self .public_network = public_network
2685
2746
self .private_endpoints = private_endpoints
2747
+ self .ip_rules = ip_rules
2686
2748
2687
2749
2688
2750
class WebPubSubResource (TrackedResource ): # pylint: disable=too-many-instance-attributes
@@ -2760,6 +2822,16 @@ class WebPubSubResource(TrackedResource): # pylint: disable=too-many-instance-a
2760
2822
Enable or disable aad auth
2761
2823
When set as true, connection with AuthType=aad won't work.
2762
2824
:vartype disable_aad_auth: bool
2825
+ :ivar region_endpoint_enabled: Enable or disable the regional endpoint. Default to "Enabled".
2826
+ When it's Disabled, new connections will not be routed to this endpoint, however existing
2827
+ connections will not be affected.
2828
+ This property is replica specific. Disable the regional endpoint without replica is not
2829
+ allowed.
2830
+ :vartype region_endpoint_enabled: str
2831
+ :ivar resource_stopped: Stop or start the resource. Default to "false".
2832
+ When it's true, the data plane of the resource is shutdown.
2833
+ When it's false, the data plane of the resource is started.
2834
+ :vartype resource_stopped: str
2763
2835
"""
2764
2836
2765
2837
_validation = {
@@ -2814,6 +2886,8 @@ class WebPubSubResource(TrackedResource): # pylint: disable=too-many-instance-a
2814
2886
"public_network_access" : {"key" : "properties.publicNetworkAccess" , "type" : "str" },
2815
2887
"disable_local_auth" : {"key" : "properties.disableLocalAuth" , "type" : "bool" },
2816
2888
"disable_aad_auth" : {"key" : "properties.disableAadAuth" , "type" : "bool" },
2889
+ "region_endpoint_enabled" : {"key" : "properties.regionEndpointEnabled" , "type" : "str" },
2890
+ "resource_stopped" : {"key" : "properties.resourceStopped" , "type" : "str" },
2817
2891
}
2818
2892
2819
2893
def __init__ ( # pylint: disable=too-many-locals
@@ -2831,6 +2905,8 @@ def __init__( # pylint: disable=too-many-locals
2831
2905
public_network_access : str = "Enabled" ,
2832
2906
disable_local_auth : bool = False ,
2833
2907
disable_aad_auth : bool = False ,
2908
+ region_endpoint_enabled : str = "Enabled" ,
2909
+ resource_stopped : str = "false" ,
2834
2910
** kwargs : Any
2835
2911
) -> None :
2836
2912
"""
@@ -2867,6 +2943,17 @@ def __init__( # pylint: disable=too-many-locals
2867
2943
Enable or disable aad auth
2868
2944
When set as true, connection with AuthType=aad won't work.
2869
2945
:paramtype disable_aad_auth: bool
2946
+ :keyword region_endpoint_enabled: Enable or disable the regional endpoint. Default to
2947
+ "Enabled".
2948
+ When it's Disabled, new connections will not be routed to this endpoint, however existing
2949
+ connections will not be affected.
2950
+ This property is replica specific. Disable the regional endpoint without replica is not
2951
+ allowed.
2952
+ :paramtype region_endpoint_enabled: str
2953
+ :keyword resource_stopped: Stop or start the resource. Default to "false".
2954
+ When it's true, the data plane of the resource is shutdown.
2955
+ When it's false, the data plane of the resource is started.
2956
+ :paramtype resource_stopped: str
2870
2957
"""
2871
2958
super ().__init__ (tags = tags , location = location , ** kwargs )
2872
2959
self .sku = sku
@@ -2888,6 +2975,8 @@ def __init__( # pylint: disable=too-many-locals
2888
2975
self .public_network_access = public_network_access
2889
2976
self .disable_local_auth = disable_local_auth
2890
2977
self .disable_aad_auth = disable_aad_auth
2978
+ self .region_endpoint_enabled = region_endpoint_enabled
2979
+ self .resource_stopped = resource_stopped
2891
2980
2892
2981
2893
2982
class WebPubSubResourceList (_serialization .Model ):
0 commit comments