Skip to content

Commit b0c2601

Browse files
author
SDKAuto
committed
CodeGen from PR 11826 in Azure/azure-rest-api-specs
Fix errors in various of readme files encountered in the recent go SDK release (Azure#11826) * Fix an issue on windows * Fix cdn * Fix cognitiveservices/customVision * Fix cognitiveservices/personalizer * Fix cognitiveservices/translatorText * Fix data plane digitaltwins * Remove problematic tag from release - no impact on sdk, this has never been released * amend Fix cognitiveservices/translatorText * Fix imds * Fix migrate readme that are mistakenly damaged in Azure#10305 * add one api-version back * Fix digtaltwins data plane again * Fix hybridnetwork * Fix streamanlytics * Revert some changes of digitaltwins * Revert imds * Fix migrate * Fix migrate again
1 parent e1f2009 commit b0c2601

File tree

2 files changed

+81
-119
lines changed

2 files changed

+81
-119
lines changed

sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py

Lines changed: 33 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -512,26 +512,24 @@ class CookiesMatchConditionParameters(Model):
512512
:ivar odatatype: Required. Default value:
513513
"#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters" .
514514
:vartype odatatype: str
515-
:param selector: Required. Name of Cookies to be matched
515+
:param selector: Name of Cookies to be matched
516516
:type selector: str
517517
:param operator: Required. Describes operator to be matched. Possible
518518
values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
519519
'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
520520
:type operator: str or ~azure.mgmt.cdn.models.CookiesOperator
521521
:param negate_condition: Describes if this is negate condition or not
522522
:type negate_condition: bool
523-
:param match_values: Required. The match value for the condition of the
524-
delivery rule
523+
:param match_values: The match value for the condition of the delivery
524+
rule
525525
:type match_values: list[str]
526526
:param transforms: List of transforms
527527
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
528528
"""
529529

530530
_validation = {
531531
'odatatype': {'required': True, 'constant': True},
532-
'selector': {'required': True},
533532
'operator': {'required': True},
534-
'match_values': {'required': True},
535533
}
536534

537535
_attribute_map = {
@@ -2043,15 +2041,14 @@ class HttpVersionMatchConditionParameters(Model):
20432041
:vartype operator: str
20442042
:param negate_condition: Describes if this is negate condition or not
20452043
:type negate_condition: bool
2046-
:param match_values: Required. The match value for the condition of the
2047-
delivery rule
2044+
:param match_values: The match value for the condition of the delivery
2045+
rule
20482046
:type match_values: list[str]
20492047
"""
20502048

20512049
_validation = {
20522050
'odatatype': {'required': True, 'constant': True},
20532051
'operator': {'required': True, 'constant': True},
2054-
'match_values': {'required': True},
20552052
}
20562053

20572054
_attribute_map = {
@@ -2111,8 +2108,8 @@ class IsDeviceMatchConditionParameters(Model):
21112108
:vartype operator: str
21122109
:param negate_condition: Describes if this is negate condition or not
21132110
:type negate_condition: bool
2114-
:param match_values: Required. The match value for the condition of the
2115-
delivery rule
2111+
:param match_values: The match value for the condition of the delivery
2112+
rule
21162113
:type match_values: list[str]
21172114
:param transforms: List of transforms
21182115
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
@@ -2121,7 +2118,6 @@ class IsDeviceMatchConditionParameters(Model):
21212118
_validation = {
21222119
'odatatype': {'required': True, 'constant': True},
21232120
'operator': {'required': True, 'constant': True},
2124-
'match_values': {'required': True},
21252121
}
21262122

21272123
_attribute_map = {
@@ -2167,8 +2163,7 @@ class KeyVaultCertificateSourceParameters(Model):
21672163
:param secret_name: Required. The name of Key Vault Secret (representing
21682164
the full certificate PFX) in Key Vault.
21692165
:type secret_name: str
2170-
:param secret_version: Required. The version(GUID) of Key Vault Secret in
2171-
Key Vault.
2166+
:param secret_version: The version(GUID) of Key Vault Secret in Key Vault.
21722167
:type secret_version: str
21732168
:ivar update_rule: Required. Describes the action that shall be taken when
21742169
the certificate is updated in Key Vault. Default value: "NoAction" .
@@ -2184,7 +2179,6 @@ class KeyVaultCertificateSourceParameters(Model):
21842179
'resource_group_name': {'required': True},
21852180
'vault_name': {'required': True},
21862181
'secret_name': {'required': True},
2187-
'secret_version': {'required': True},
21882182
'update_rule': {'required': True, 'constant': True},
21892183
'delete_rule': {'required': True, 'constant': True},
21902184
}
@@ -2995,26 +2989,24 @@ class PostArgsMatchConditionParameters(Model):
29952989
:ivar odatatype: Required. Default value:
29962990
"#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters" .
29972991
:vartype odatatype: str
2998-
:param selector: Required. Name of PostArg to be matched
2992+
:param selector: Name of PostArg to be matched
29992993
:type selector: str
30002994
:param operator: Required. Describes operator to be matched. Possible
30012995
values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
30022996
'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
30032997
:type operator: str or ~azure.mgmt.cdn.models.PostArgsOperator
30042998
:param negate_condition: Describes if this is negate condition or not
30052999
:type negate_condition: bool
3006-
:param match_values: Required. The match value for the condition of the
3007-
delivery rule
3000+
:param match_values: The match value for the condition of the delivery
3001+
rule
30083002
:type match_values: list[str]
30093003
:param transforms: List of transforms
30103004
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
30113005
"""
30123006

30133007
_validation = {
30143008
'odatatype': {'required': True, 'constant': True},
3015-
'selector': {'required': True},
30163009
'operator': {'required': True},
3017-
'match_values': {'required': True},
30183010
}
30193011

30203012
_attribute_map = {
@@ -3151,8 +3143,8 @@ class QueryStringMatchConditionParameters(Model):
31513143
:type operator: str or ~azure.mgmt.cdn.models.QueryStringOperator
31523144
:param negate_condition: Describes if this is negate condition or not
31533145
:type negate_condition: bool
3154-
:param match_values: Required. The match value for the condition of the
3155-
delivery rule
3146+
:param match_values: The match value for the condition of the delivery
3147+
rule
31563148
:type match_values: list[str]
31573149
:param transforms: List of transforms
31583150
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
@@ -3161,7 +3153,6 @@ class QueryStringMatchConditionParameters(Model):
31613153
_validation = {
31623154
'odatatype': {'required': True, 'constant': True},
31633155
'operator': {'required': True},
3164-
'match_values': {'required': True},
31653156
}
31663157

31673158
_attribute_map = {
@@ -3266,9 +3257,9 @@ class RemoteAddressMatchConditionParameters(Model):
32663257
:type operator: str or ~azure.mgmt.cdn.models.RemoteAddressOperator
32673258
:param negate_condition: Describes if this is negate condition or not
32683259
:type negate_condition: bool
3269-
:param match_values: Required. Match values to match against. The operator
3270-
will apply to each value in here with OR semantics. If any of them match
3271-
the variable with the given operator this match condition is considered a
3260+
:param match_values: Match values to match against. The operator will
3261+
apply to each value in here with OR semantics. If any of them match the
3262+
variable with the given operator this match condition is considered a
32723263
match.
32733264
:type match_values: list[str]
32743265
:param transforms: List of transforms
@@ -3278,7 +3269,6 @@ class RemoteAddressMatchConditionParameters(Model):
32783269
_validation = {
32793270
'odatatype': {'required': True, 'constant': True},
32803271
'operator': {'required': True},
3281-
'match_values': {'required': True},
32823272
}
32833273

32843274
_attribute_map = {
@@ -3316,8 +3306,8 @@ class RequestBodyMatchConditionParameters(Model):
33163306
:type operator: str or ~azure.mgmt.cdn.models.RequestBodyOperator
33173307
:param negate_condition: Describes if this is negate condition or not
33183308
:type negate_condition: bool
3319-
:param match_values: Required. The match value for the condition of the
3320-
delivery rule
3309+
:param match_values: The match value for the condition of the delivery
3310+
rule
33213311
:type match_values: list[str]
33223312
:param transforms: List of transforms
33233313
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
@@ -3326,7 +3316,6 @@ class RequestBodyMatchConditionParameters(Model):
33263316
_validation = {
33273317
'odatatype': {'required': True, 'constant': True},
33283318
'operator': {'required': True},
3329-
'match_values': {'required': True},
33303319
}
33313320

33323321
_attribute_map = {
@@ -3359,26 +3348,24 @@ class RequestHeaderMatchConditionParameters(Model):
33593348
"#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters"
33603349
.
33613350
:vartype odatatype: str
3362-
:param selector: Required. Name of Header to be matched
3351+
:param selector: Name of Header to be matched
33633352
:type selector: str
33643353
:param operator: Required. Describes operator to be matched. Possible
33653354
values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith',
33663355
'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
33673356
:type operator: str or ~azure.mgmt.cdn.models.RequestHeaderOperator
33683357
:param negate_condition: Describes if this is negate condition or not
33693358
:type negate_condition: bool
3370-
:param match_values: Required. The match value for the condition of the
3371-
delivery rule
3359+
:param match_values: The match value for the condition of the delivery
3360+
rule
33723361
:type match_values: list[str]
33733362
:param transforms: List of transforms
33743363
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
33753364
"""
33763365

33773366
_validation = {
33783367
'odatatype': {'required': True, 'constant': True},
3379-
'selector': {'required': True},
33803368
'operator': {'required': True},
3381-
'match_values': {'required': True},
33823369
}
33833370

33843371
_attribute_map = {
@@ -3418,15 +3405,14 @@ class RequestMethodMatchConditionParameters(Model):
34183405
:vartype operator: str
34193406
:param negate_condition: Describes if this is negate condition or not
34203407
:type negate_condition: bool
3421-
:param match_values: Required. The match value for the condition of the
3422-
delivery rule
3408+
:param match_values: The match value for the condition of the delivery
3409+
rule
34233410
:type match_values: list[str]
34243411
"""
34253412

34263413
_validation = {
34273414
'odatatype': {'required': True, 'constant': True},
34283415
'operator': {'required': True, 'constant': True},
3429-
'match_values': {'required': True},
34303416
}
34313417

34323418
_attribute_map = {
@@ -3463,15 +3449,14 @@ class RequestSchemeMatchConditionParameters(Model):
34633449
:vartype operator: str
34643450
:param negate_condition: Describes if this is negate condition or not
34653451
:type negate_condition: bool
3466-
:param match_values: Required. The match value for the condition of the
3467-
delivery rule
3452+
:param match_values: The match value for the condition of the delivery
3453+
rule
34683454
:type match_values: list[str]
34693455
"""
34703456

34713457
_validation = {
34723458
'odatatype': {'required': True, 'constant': True},
34733459
'operator': {'required': True, 'constant': True},
3474-
'match_values': {'required': True},
34753460
}
34763461

34773462
_attribute_map = {
@@ -3508,8 +3493,8 @@ class RequestUriMatchConditionParameters(Model):
35083493
:type operator: str or ~azure.mgmt.cdn.models.RequestUriOperator
35093494
:param negate_condition: Describes if this is negate condition or not
35103495
:type negate_condition: bool
3511-
:param match_values: Required. The match value for the condition of the
3512-
delivery rule
3496+
:param match_values: The match value for the condition of the delivery
3497+
rule
35133498
:type match_values: list[str]
35143499
:param transforms: List of transforms
35153500
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
@@ -3518,7 +3503,6 @@ class RequestUriMatchConditionParameters(Model):
35183503
_validation = {
35193504
'odatatype': {'required': True, 'constant': True},
35203505
'operator': {'required': True},
3521-
'match_values': {'required': True},
35223506
}
35233507

35243508
_attribute_map = {
@@ -3714,8 +3698,8 @@ class UrlFileExtensionMatchConditionParameters(Model):
37143698
:type operator: str or ~azure.mgmt.cdn.models.UrlFileExtensionOperator
37153699
:param negate_condition: Describes if this is negate condition or not
37163700
:type negate_condition: bool
3717-
:param match_values: Required. The match value for the condition of the
3718-
delivery rule
3701+
:param match_values: The match value for the condition of the delivery
3702+
rule
37193703
:type match_values: list[str]
37203704
:param transforms: List of transforms
37213705
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
@@ -3724,7 +3708,6 @@ class UrlFileExtensionMatchConditionParameters(Model):
37243708
_validation = {
37253709
'odatatype': {'required': True, 'constant': True},
37263710
'operator': {'required': True},
3727-
'match_values': {'required': True},
37283711
}
37293712

37303713
_attribute_map = {
@@ -3762,8 +3745,8 @@ class UrlFileNameMatchConditionParameters(Model):
37623745
:type operator: str or ~azure.mgmt.cdn.models.UrlFileNameOperator
37633746
:param negate_condition: Describes if this is negate condition or not
37643747
:type negate_condition: bool
3765-
:param match_values: Required. The match value for the condition of the
3766-
delivery rule
3748+
:param match_values: The match value for the condition of the delivery
3749+
rule
37673750
:type match_values: list[str]
37683751
:param transforms: List of transforms
37693752
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
@@ -3772,7 +3755,6 @@ class UrlFileNameMatchConditionParameters(Model):
37723755
_validation = {
37733756
'odatatype': {'required': True, 'constant': True},
37743757
'operator': {'required': True},
3775-
'match_values': {'required': True},
37763758
}
37773759

37783760
_attribute_map = {
@@ -3812,8 +3794,8 @@ class UrlPathMatchConditionParameters(Model):
38123794
:type operator: str or ~azure.mgmt.cdn.models.UrlPathOperator
38133795
:param negate_condition: Describes if this is negate condition or not
38143796
:type negate_condition: bool
3815-
:param match_values: Required. The match value for the condition of the
3816-
delivery rule
3797+
:param match_values: The match value for the condition of the delivery
3798+
rule
38173799
:type match_values: list[str]
38183800
:param transforms: List of transforms
38193801
:type transforms: list[str or ~azure.mgmt.cdn.models.Transform]
@@ -3822,7 +3804,6 @@ class UrlPathMatchConditionParameters(Model):
38223804
_validation = {
38233805
'odatatype': {'required': True, 'constant': True},
38243806
'operator': {'required': True},
3825-
'match_values': {'required': True},
38263807
}
38273808

38283809
_attribute_map = {

0 commit comments

Comments
 (0)