Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class OutboundRule(SubResource):
:param allocated_outbound_ports: The number of outbound ports to be used
for NAT.
:type allocated_outbound_ports: int
:param frontend_ip_configurations: The Frontend IP addresses of the load
balancer.
:param frontend_ip_configurations: Required. The Frontend IP addresses of
the load balancer.
:type frontend_ip_configurations:
list[~azure.mgmt.network.v2018_07_01.models.SubResource]
:param backend_address_pool: Required. A reference to a pool of DIPs.
Expand All @@ -33,8 +33,8 @@ class OutboundRule(SubResource):
:param provisioning_state: Gets the provisioning state of the PublicIP
resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
:type provisioning_state: str
:param protocol: Protocol - TCP, UDP or All. Possible values include:
'Tcp', 'Udp', 'All'
:param protocol: Required. Protocol - TCP, UDP or All. Possible values
include: 'Tcp', 'Udp', 'All'
:type protocol: str or ~azure.mgmt.network.v2018_07_01.models.enum
:param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle
timeout or unexpected connection termination. This element is only used
Expand All @@ -51,7 +51,9 @@ class OutboundRule(SubResource):
"""

_validation = {
'frontend_ip_configurations': {'required': True},
'backend_address_pool': {'required': True},
'protocol': {'required': True},
}

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class OutboundRule(SubResource):
:param allocated_outbound_ports: The number of outbound ports to be used
for NAT.
:type allocated_outbound_ports: int
:param frontend_ip_configurations: The Frontend IP addresses of the load
balancer.
:param frontend_ip_configurations: Required. The Frontend IP addresses of
the load balancer.
:type frontend_ip_configurations:
list[~azure.mgmt.network.v2018_07_01.models.SubResource]
:param backend_address_pool: Required. A reference to a pool of DIPs.
Expand All @@ -33,8 +33,8 @@ class OutboundRule(SubResource):
:param provisioning_state: Gets the provisioning state of the PublicIP
resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
:type provisioning_state: str
:param protocol: Protocol - TCP, UDP or All. Possible values include:
'Tcp', 'Udp', 'All'
:param protocol: Required. Protocol - TCP, UDP or All. Possible values
include: 'Tcp', 'Udp', 'All'
:type protocol: str or ~azure.mgmt.network.v2018_07_01.models.enum
:param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle
timeout or unexpected connection termination. This element is only used
Expand All @@ -51,7 +51,9 @@ class OutboundRule(SubResource):
"""

_validation = {
'frontend_ip_configurations': {'required': True},
'backend_address_pool': {'required': True},
'protocol': {'required': True},
}

_attribute_map = {
Expand All @@ -67,7 +69,7 @@ class OutboundRule(SubResource):
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, backend_address_pool, id: str=None, allocated_outbound_ports: int=None, frontend_ip_configurations=None, provisioning_state: str=None, protocol=None, enable_tcp_reset: bool=None, idle_timeout_in_minutes: int=None, name: str=None, etag: str=None, **kwargs) -> None:
def __init__(self, *, frontend_ip_configurations, backend_address_pool, protocol, id: str=None, allocated_outbound_ports: int=None, provisioning_state: str=None, enable_tcp_reset: bool=None, idle_timeout_in_minutes: int=None, name: str=None, etag: str=None, **kwargs) -> None:
super(OutboundRule, self).__init__(id=id, **kwargs)
self.allocated_outbound_ports = allocated_outbound_ports
self.frontend_ip_configurations = frontend_ip_configurations
Expand Down