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
1 change: 1 addition & 0 deletions src/containerapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release History
0.3.21
++++++
* Fix the PermissionError caused for the Temporary files while running `az containerapp up` command on Windows
* Fix the empty IP Restrictions object caused running `az containerapp update` command on Windows with a pre existing .yaml file

0.3.20
++++++
Expand Down
3 changes: 2 additions & 1 deletion src/containerapp/azext_containerapp/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@
"transport": None, # 'auto', 'http', 'http2', 'tcp'
"exposedPort": None,
"traffic": None, # TrafficWeight
"customDomains": None # [CustomDomain]
"customDomains": None, # [CustomDomain]
"ipSecurityRestrictions": None # [IPSecurityRestrictions]
}

RegistryCredentials = {
Expand Down
31 changes: 31 additions & 0 deletions src/containerapp/azext_containerapp/_sdk_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,35 @@ def __init__(self, **kwargs):
self.certificate_id = kwargs.get('certificate_id', None)


class IPSecurityRestrictions(Model):
"""IP Restrictions of a Container App.

:param name: ipAddressRange
:type name: str
:param name: action
:type name: str
:param name: name
:type name: str
:param name: description
:type name: str

"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'ipAddressRange': {'key': 'ipAddressRange', 'type': 'str'},
'action': {'key': 'action', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, **kwargs):
super(IPSecurityRestrictions, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.ipAddressRange = kwargs.get('ipAddressRange', None)
self.action = kwargs.get('action', None)
self.description = kwargs.get('description', None)


class CustomHostnameAnalysisResult(ProxyResource):
"""Custom domain analysis.

Expand Down Expand Up @@ -2071,6 +2100,7 @@ class Ingress(Model):
'traffic': {'key': 'traffic', 'type': '[TrafficWeight]'},
'custom_domains': {'key': 'customDomains', 'type': '[CustomDomain]'},
'allow_insecure': {'key': 'allowInsecure', 'type': 'bool'},
'ipSecurityRestrictions': {'key': 'ipSecurityRestrictions', 'type': '[IPSecurityRestrictions]'},
}

def __init__(self, **kwargs):
Expand All @@ -2082,6 +2112,7 @@ def __init__(self, **kwargs):
self.traffic = kwargs.get('traffic', None)
self.custom_domains = kwargs.get('custom_domains', None)
self.allow_insecure = kwargs.get('allow_insecure', None)
self.ipSecurityRestrictions = kwargs.get('ipSecurityRestrictions', None)


class LegacyMicrosoftAccount(Model):
Expand Down
2 changes: 1 addition & 1 deletion src/containerapp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.

VERSION = '0.3.20'
VERSION = '0.3.21'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down