Skip to content

Commit 4b97af1

Browse files
Modified validation to allow expectedCustomerSpend array with zero elements in Partner Opportunity operations.
1 parent 9808c11 commit 4b97af1

20 files changed

+68
-70
lines changed

generator/ServiceModels/partnercentral-selling/partnercentral-selling-2022-07-26.api.json

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
"input":{"shape":"AcceptEngagementInvitationRequest"},
2525
"errors":[
26-
{"shape":"ThrottlingException"},
2726
{"shape":"ConflictException"},
27+
{"shape":"ThrottlingException"},
2828
{"shape":"AccessDeniedException"},
2929
{"shape":"InternalServerException"},
3030
{"shape":"ValidationException"},
@@ -70,8 +70,8 @@
7070
"input":{"shape":"CreateEngagementRequest"},
7171
"output":{"shape":"CreateEngagementResponse"},
7272
"errors":[
73-
{"shape":"ThrottlingException"},
7473
{"shape":"ConflictException"},
74+
{"shape":"ThrottlingException"},
7575
{"shape":"AccessDeniedException"},
7676
{"shape":"ValidationException"},
7777
{"shape":"ServiceQuotaExceededException"},
@@ -88,8 +88,8 @@
8888
"input":{"shape":"CreateEngagementInvitationRequest"},
8989
"output":{"shape":"CreateEngagementInvitationResponse"},
9090
"errors":[
91-
{"shape":"ThrottlingException"},
9291
{"shape":"ConflictException"},
92+
{"shape":"ThrottlingException"},
9393
{"shape":"AccessDeniedException"},
9494
{"shape":"ValidationException"},
9595
{"shape":"ServiceQuotaExceededException"},
@@ -106,8 +106,8 @@
106106
"input":{"shape":"CreateOpportunityRequest"},
107107
"output":{"shape":"CreateOpportunityResponse"},
108108
"errors":[
109-
{"shape":"ThrottlingException"},
110109
{"shape":"ConflictException"},
110+
{"shape":"ThrottlingException"},
111111
{"shape":"AccessDeniedException"},
112112
{"shape":"InternalServerException"},
113113
{"shape":"ValidationException"},
@@ -124,8 +124,8 @@
124124
"input":{"shape":"CreateResourceSnapshotRequest"},
125125
"output":{"shape":"CreateResourceSnapshotResponse"},
126126
"errors":[
127-
{"shape":"ThrottlingException"},
128127
{"shape":"ConflictException"},
128+
{"shape":"ThrottlingException"},
129129
{"shape":"AccessDeniedException"},
130130
{"shape":"ValidationException"},
131131
{"shape":"ServiceQuotaExceededException"},
@@ -142,8 +142,8 @@
142142
"input":{"shape":"CreateResourceSnapshotJobRequest"},
143143
"output":{"shape":"CreateResourceSnapshotJobResponse"},
144144
"errors":[
145-
{"shape":"ThrottlingException"},
146145
{"shape":"ConflictException"},
146+
{"shape":"ThrottlingException"},
147147
{"shape":"AccessDeniedException"},
148148
{"shape":"ValidationException"},
149149
{"shape":"ServiceQuotaExceededException"},
@@ -159,8 +159,8 @@
159159
},
160160
"input":{"shape":"DeleteResourceSnapshotJobRequest"},
161161
"errors":[
162-
{"shape":"ThrottlingException"},
163162
{"shape":"ConflictException"},
163+
{"shape":"ThrottlingException"},
164164
{"shape":"AccessDeniedException"},
165165
{"shape":"ValidationException"},
166166
{"shape":"ResourceNotFoundException"}
@@ -482,8 +482,8 @@
482482
},
483483
"input":{"shape":"RejectEngagementInvitationRequest"},
484484
"errors":[
485-
{"shape":"ThrottlingException"},
486485
{"shape":"ConflictException"},
486+
{"shape":"ThrottlingException"},
487487
{"shape":"AccessDeniedException"},
488488
{"shape":"InternalServerException"},
489489
{"shape":"ValidationException"},
@@ -499,8 +499,8 @@
499499
"input":{"shape":"StartEngagementByAcceptingInvitationTaskRequest"},
500500
"output":{"shape":"StartEngagementByAcceptingInvitationTaskResponse"},
501501
"errors":[
502-
{"shape":"ThrottlingException"},
503502
{"shape":"ConflictException"},
503+
{"shape":"ThrottlingException"},
504504
{"shape":"AccessDeniedException"},
505505
{"shape":"InternalServerException"},
506506
{"shape":"ValidationException"},
@@ -517,8 +517,8 @@
517517
"input":{"shape":"StartEngagementFromOpportunityTaskRequest"},
518518
"output":{"shape":"StartEngagementFromOpportunityTaskResponse"},
519519
"errors":[
520-
{"shape":"ThrottlingException"},
521520
{"shape":"ConflictException"},
521+
{"shape":"ThrottlingException"},
522522
{"shape":"AccessDeniedException"},
523523
{"shape":"InternalServerException"},
524524
{"shape":"ValidationException"},
@@ -580,8 +580,8 @@
580580
"input":{"shape":"TagResourceRequest"},
581581
"output":{"shape":"TagResourceResponse"},
582582
"errors":[
583-
{"shape":"ThrottlingException"},
584583
{"shape":"ConflictException"},
584+
{"shape":"ThrottlingException"},
585585
{"shape":"AccessDeniedException"},
586586
{"shape":"InternalServerException"},
587587
{"shape":"ValidationException"},
@@ -598,8 +598,8 @@
598598
"input":{"shape":"UntagResourceRequest"},
599599
"output":{"shape":"UntagResourceResponse"},
600600
"errors":[
601-
{"shape":"ThrottlingException"},
602601
{"shape":"ConflictException"},
602+
{"shape":"ThrottlingException"},
603603
{"shape":"AccessDeniedException"},
604604
{"shape":"InternalServerException"},
605605
{"shape":"ValidationException"},
@@ -616,8 +616,8 @@
616616
"input":{"shape":"UpdateOpportunityRequest"},
617617
"output":{"shape":"UpdateOpportunityResponse"},
618618
"errors":[
619-
{"shape":"ThrottlingException"},
620619
{"shape":"ConflictException"},
620+
{"shape":"ThrottlingException"},
621621
{"shape":"AccessDeniedException"},
622622
{"shape":"InternalServerException"},
623623
{"shape":"ValidationException"},
@@ -755,7 +755,7 @@
755755
"type":"string",
756756
"max":80,
757757
"min":0,
758-
"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{Z}]+$"
758+
"sensitive":true
759759
},
760760
"ApnPrograms":{
761761
"type":"list",
@@ -1090,7 +1090,7 @@
10901090
"type":"string",
10911091
"max":120,
10921092
"min":1,
1093-
"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{Z}]+$"
1093+
"sensitive":true
10941094
},
10951095
"CompanyWebsiteUrl":{
10961096
"type":"string",
@@ -2265,7 +2265,8 @@
22652265
"ExpectedCustomerSpendList":{
22662266
"type":"list",
22672267
"member":{"shape":"ExpectedCustomerSpend"},
2268-
"min":1
2268+
"max":10,
2269+
"min":0
22692270
},
22702271
"ExpectedCustomerSpendTargetCompanyString":{
22712272
"type":"string",
@@ -2550,7 +2551,8 @@
25502551
"InvitationMessage":{
25512552
"type":"string",
25522553
"max":255,
2553-
"min":1
2554+
"min":1,
2555+
"sensitive":true
25542556
},
25552557
"InvitationStatus":{
25562558
"type":"string",
@@ -3035,7 +3037,8 @@
30353037
"MemberCompanyName":{
30363038
"type":"string",
30373039
"max":120,
3038-
"min":1
3040+
"min":1,
3041+
"sensitive":true
30393042
},
30403043
"MemberPageSize":{
30413044
"type":"integer",

generator/ServiceModels/partnercentral-selling/partnercentral-selling-2022-07-26.docs.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@
897897
"EngagementSort": {
898898
"base": "<p>Specifies the sorting parameters for listing Engagements.</p>",
899899
"refs": {
900-
"ListEngagementsRequest$Sort": "<p> An object that specifies the sort order of the results. </p>"
900+
"ListEngagementsRequest$Sort": null
901901
}
902902
},
903903
"EngagementSortName": {
@@ -2164,11 +2164,11 @@
21642164
"TagList": {
21652165
"base": null,
21662166
"refs": {
2167-
"CreateResourceSnapshotJobRequest$Tags": "<p>A list of objects specifying each tag name and value.</p>",
2167+
"CreateResourceSnapshotJobRequest$Tags": "<p>A map of the key-value pairs of the tag or tags to assign.</p>",
21682168
"ListTagsForResourceResponse$Tags": "<p>A map of the key-value pairs for the tag or tags assigned to the specified resource.</p>",
2169-
"StartEngagementByAcceptingInvitationTaskRequest$Tags": "<p>A list of objects specifying each tag name and value.</p>",
2170-
"StartEngagementFromOpportunityTaskRequest$Tags": "<p>A list of objects specifying each tag name and value.</p>",
2171-
"TagResourceRequest$Tags": "<p>A map of the key-value pairs of the tag or tags to assign to the resource.</p>"
2169+
"StartEngagementByAcceptingInvitationTaskRequest$Tags": "<p>A map of the key-value pairs of the tag or tags to assign.</p>",
2170+
"StartEngagementFromOpportunityTaskRequest$Tags": "<p>A map of the key-value pairs of the tag or tags to assign.</p>",
2171+
"TagResourceRequest$Tags": "<p>A map of the key-value pairs of the tag or tags to assign.</p>"
21722172
}
21732173
},
21742174
"TagResourceRequest": {

0 commit comments

Comments
 (0)