Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR azure-mgmt-cdn] Fix CDN matchValues and selector fields to be optional #14105

Closed
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
81 changes: 32 additions & 49 deletions sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,26 +512,24 @@ class CookiesMatchConditionParameters(Model):
:ivar odatatype: Required. Default value:
"#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters" .
:vartype odatatype: str
:param selector: Required. Name of Cookies to be matched
:param selector: Name of Cookies to be matched
:type selector: str
:param operator: Required. Describes operator to be matched. Possible
values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
:type operator: str or ~azure.mgmt.cdn.models.CookiesOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
"""

_validation = {
'odatatype': {'required': True, 'constant': True},
'selector': {'required': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -2043,15 +2041,14 @@ class HttpVersionMatchConditionParameters(Model):
:vartype operator: str
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
"""

_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True, 'constant': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -2111,8 +2108,8 @@ class IsDeviceMatchConditionParameters(Model):
:vartype operator: str
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
Expand All @@ -2121,7 +2118,6 @@ class IsDeviceMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True, 'constant': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -2995,26 +2991,24 @@ class PostArgsMatchConditionParameters(Model):
:ivar odatatype: Required. Default value:
"#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters" .
:vartype odatatype: str
:param selector: Required. Name of PostArg to be matched
:param selector: Name of PostArg to be matched
:type selector: str
:param operator: Required. Describes operator to be matched. Possible
values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
:type operator: str or ~azure.mgmt.cdn.models.PostArgsOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
"""

_validation = {
'odatatype': {'required': True, 'constant': True},
'selector': {'required': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3151,8 +3145,8 @@ class QueryStringMatchConditionParameters(Model):
:type operator: str or ~azure.mgmt.cdn.models.QueryStringOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
Expand All @@ -3161,7 +3155,6 @@ class QueryStringMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3266,9 +3259,9 @@ class RemoteAddressMatchConditionParameters(Model):
:type operator: str or ~azure.mgmt.cdn.models.RemoteAddressOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. Match values to match against. The operator
will apply to each value in here with OR semantics. If any of them match
the variable with the given operator this match condition is considered a
:param match_values: Match values to match against. The operator will
apply to each value in here with OR semantics. If any of them match the
variable with the given operator this match condition is considered a
match.
:type match_values: list[str]
:param transforms: List of transforms
Expand All @@ -3278,7 +3271,6 @@ class RemoteAddressMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3316,8 +3308,8 @@ class RequestBodyMatchConditionParameters(Model):
:type operator: str or ~azure.mgmt.cdn.models.RequestBodyOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
Expand All @@ -3326,7 +3318,6 @@ class RequestBodyMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3359,26 +3350,24 @@ class RequestHeaderMatchConditionParameters(Model):
"#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters"
.
:vartype odatatype: str
:param selector: Required. Name of Header to be matched
:param selector: Name of Header to be matched
:type selector: str
:param operator: Required. Describes operator to be matched. Possible
values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
:type operator: str or ~azure.mgmt.cdn.models.RequestHeaderOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
"""

_validation = {
'odatatype': {'required': True, 'constant': True},
'selector': {'required': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3418,15 +3407,14 @@ class RequestMethodMatchConditionParameters(Model):
:vartype operator: str
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
"""

_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True, 'constant': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3463,15 +3451,14 @@ class RequestSchemeMatchConditionParameters(Model):
:vartype operator: str
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
"""

_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True, 'constant': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3508,8 +3495,8 @@ class RequestUriMatchConditionParameters(Model):
:type operator: str or ~azure.mgmt.cdn.models.RequestUriOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
Expand All @@ -3518,7 +3505,6 @@ class RequestUriMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3714,8 +3700,8 @@ class UrlFileExtensionMatchConditionParameters(Model):
:type operator: str or ~azure.mgmt.cdn.models.UrlFileExtensionOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
Expand All @@ -3724,7 +3710,6 @@ class UrlFileExtensionMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3762,8 +3747,8 @@ class UrlFileNameMatchConditionParameters(Model):
:type operator: str or ~azure.mgmt.cdn.models.UrlFileNameOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
Expand All @@ -3772,7 +3757,6 @@ class UrlFileNameMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down Expand Up @@ -3812,8 +3796,8 @@ class UrlPathMatchConditionParameters(Model):
:type operator: str or ~azure.mgmt.cdn.models.UrlPathOperator
:param negate_condition: Describes if this is negate condition or not
:type negate_condition: bool
:param match_values: Required. The match value for the condition of the
delivery rule
:param match_values: The match value for the condition of the delivery
rule
:type match_values: list[str]
:param transforms: List of transforms
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
Expand All @@ -3822,7 +3806,6 @@ class UrlPathMatchConditionParameters(Model):
_validation = {
'odatatype': {'required': True, 'constant': True},
'operator': {'required': True},
'match_values': {'required': True},
}

_attribute_map = {
Expand Down
Loading