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
3 changes: 1 addition & 2 deletions azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DeliveryRule(Model):

All required parameters must be populated in order to send to Azure.

:param name: Required. Name of the rule
:param name: Name of the rule
:type name: str
:param order: Required. The order in which the rules are applied for the
endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will
Expand All @@ -34,7 +34,6 @@ class DeliveryRule(Model):
"""

_validation = {
'name': {'required': True},
'order': {'required': True},
'actions': {'required': True},
}
Expand Down
5 changes: 2 additions & 3 deletions azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DeliveryRule(Model):

All required parameters must be populated in order to send to Azure.

:param name: Required. Name of the rule
:param name: Name of the rule
:type name: str
:param order: Required. The order in which the rules are applied for the
endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will
Expand All @@ -34,7 +34,6 @@ class DeliveryRule(Model):
"""

_validation = {
'name': {'required': True},
'order': {'required': True},
'actions': {'required': True},
}
Expand All @@ -46,7 +45,7 @@ class DeliveryRule(Model):
'actions': {'key': 'actions', 'type': '[DeliveryRuleAction]'},
}

def __init__(self, *, name: str, order: int, actions, conditions=None, **kwargs) -> None:
def __init__(self, *, order: int, actions, name: str=None, conditions=None, **kwargs) -> None:
super(DeliveryRule, self).__init__(**kwargs)
self.name = name
self.order = order
Expand Down