diff --git a/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule.py b/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule.py index b51ecd9710de..52fe9f00905b 100644 --- a/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule.py +++ b/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule.py @@ -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 @@ -34,7 +34,6 @@ class DeliveryRule(Model): """ _validation = { - 'name': {'required': True}, 'order': {'required': True}, 'actions': {'required': True}, } diff --git a/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule_py3.py b/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule_py3.py index 25aff003d3da..04a68bf60e00 100644 --- a/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule_py3.py +++ b/azure-mgmt-cdn/azure/mgmt/cdn/models/delivery_rule_py3.py @@ -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 @@ -34,7 +34,6 @@ class DeliveryRule(Model): """ _validation = { - 'name': {'required': True}, 'order': {'required': True}, 'actions': {'required': True}, } @@ -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