Skip to content

Commit bc8ee32

Browse files
Add Tagging Support for Opportunity resources
1 parent de7007c commit bc8ee32

20 files changed

+1711
-1678
lines changed

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

Lines changed: 383 additions & 379 deletions
Large diffs are not rendered by default.

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

Lines changed: 92 additions & 160 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

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

Lines changed: 899 additions & 892 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version" : 2,
3+
"testCases" : [ {
4+
"id" : "ListOpportunitiesError",
5+
"operationName" : "ListOpportunities",
6+
"input" : {
7+
"Catalog" : null
8+
},
9+
"expectation" : {
10+
"failure" : {
11+
"errorId" : "ValidationException"
12+
}
13+
},
14+
"config" : {
15+
"region" : "us-east-1",
16+
"useFips" : false,
17+
"useDualstack" : false,
18+
"useAccountIdRouting" : true
19+
}
20+
} ]
21+
}

sdk/code-analysis/ServiceAnalysis/PartnerCentralSelling/Generated/PropertyValueRules.xml

Lines changed: 195 additions & 191 deletions
Large diffs are not rendered by default.

sdk/src/Services/PartnerCentralSelling/Generated/Model/CreateOpportunityRequest.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public partial class CreateOpportunityRequest : AmazonPartnerCentralSellingReque
7878
private List<string> _primaryNeedsFromAws = AWSConfigs.InitializeCollections ? new List<string>() : null;
7979
private Project _project;
8080
private SoftwareRevenue _softwareRevenue;
81+
private List<Tag> _tags = AWSConfigs.InitializeCollections ? new List<Tag>() : null;
8182

8283
/// <summary>
8384
/// Gets and sets the property Catalog.
@@ -221,7 +222,7 @@ internal bool IsSetNationalSecurity()
221222
/// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous
222223
/// SDK behavior set the AWSConfigs.InitializeCollections static property to true.
223224
/// </summary>
224-
[AWSProperty(Min=0, Max=1)]
225+
[AWSProperty(Min=0, Max=2)]
225226
public List<Contact> OpportunityTeam
226227
{
227228
get { return this._opportunityTeam; }
@@ -431,5 +432,29 @@ internal bool IsSetSoftwareRevenue()
431432
return this._softwareRevenue != null;
432433
}
433434

435+
/// <summary>
436+
/// Gets and sets the property Tags.
437+
/// <para>
438+
/// A map of the key-value pairs of the tag or tags to assign.
439+
/// </para>
440+
/// <para />
441+
/// Starting with version 4 of the SDK this property will default to null. If no data for this property is returned
442+
/// from the service the property will also be null. This was changed to improve performance and allow the SDK and caller
443+
/// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous
444+
/// SDK behavior set the AWSConfigs.InitializeCollections static property to true.
445+
/// </summary>
446+
[AWSProperty(Min=1, Max=200)]
447+
public List<Tag> Tags
448+
{
449+
get { return this._tags; }
450+
set { this._tags = value; }
451+
}
452+
453+
// Check to see if Tags property is set
454+
internal bool IsSetTags()
455+
{
456+
return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections);
457+
}
458+
434459
}
435460
}

sdk/src/Services/PartnerCentralSelling/Generated/Model/ExpectedCustomerSpend.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public partial class ExpectedCustomerSpend
4949
/// opportunity. This helps in forecasting financial returns.
5050
/// </para>
5151
/// </summary>
52-
[AWSProperty(Required=true)]
52+
[AWSProperty(Required=true, Sensitive=true)]
5353
public string Amount
5454
{
5555
get { return this._amount; }
@@ -104,9 +104,9 @@ internal bool IsSetEstimationUrl()
104104
/// <summary>
105105
/// Gets and sets the property Frequency.
106106
/// <para>
107-
/// Indicates how frequently the customer is expected to spend the projected amount. This
108-
/// can include values such as <c>Monthly</c>, <c>Quarterly</c>, or <c>Annually</c>. The
109-
/// default value is <c>Monthly</c>, representing recurring monthly spend.
107+
/// Indicates how frequently the customer is expected to spend the projected amount. Only
108+
/// the value <c>Monthly</c> is allowed for the <c>Frequency</c> field, representing recurring
109+
/// monthly spend.
110110
/// </para>
111111
/// </summary>
112112
[AWSProperty(Required=true)]
@@ -127,6 +127,8 @@ internal bool IsSetFrequency()
127127
/// <para>
128128
/// Specifies the name of the partner company that is expected to generate revenue from
129129
/// the opportunity. This field helps track the partner’s involvement in the opportunity.
130+
/// This field only accepts the value <c>AWS</c>. If any other value is provided, the
131+
/// system will automatically set it to <c>AWS</c>.
130132
/// </para>
131133
/// </summary>
132134
[AWSProperty(Required=true, Min=1, Max=80)]

0 commit comments

Comments
 (0)