Skip to content

Commit 5c207c1

Browse files
Added FOC date as an attribute of PhoneNumberOrder, added AccessDeniedException as a possible return type of ValidateE911Address
1 parent 4cf8ac2 commit 5c207c1

12 files changed

+63
-1
lines changed

generator/ServiceModels/chime-sdk-voice/chime-sdk-voice-2022-08-03.api.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,7 @@
18571857
{"shape":"ForbiddenException"},
18581858
{"shape":"BadRequestException"},
18591859
{"shape":"ThrottledClientException"},
1860+
{"shape":"AccessDeniedException"},
18601861
{"shape":"ServiceUnavailableException"},
18611862
{"shape":"ServiceFailureException"}
18621863
]
@@ -3556,7 +3557,8 @@
35563557
"OrderType":{"shape":"PhoneNumberOrderType"},
35573558
"OrderedPhoneNumbers":{"shape":"OrderedPhoneNumberList"},
35583559
"CreatedTimestamp":{"shape":"Iso8601Timestamp"},
3559-
"UpdatedTimestamp":{"shape":"Iso8601Timestamp"}
3560+
"UpdatedTimestamp":{"shape":"Iso8601Timestamp"},
3561+
"FocDate":{"shape":"Iso8601Timestamp"}
35603562
}
35613563
},
35623564
"PhoneNumberOrderList":{

generator/ServiceModels/chime-sdk-voice/chime-sdk-voice-2022-08-03.docs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@
882882
"PhoneNumberAssociation$AssociatedTimestamp": "<p>The timestamp of the phone number association, in ISO 8601 format.</p>",
883883
"PhoneNumberOrder$CreatedTimestamp": "<p>The phone number order creation time stamp, in ISO 8601 format.</p>",
884884
"PhoneNumberOrder$UpdatedTimestamp": "<p>The updated phone number order time stamp, in ISO 8601 format.</p>",
885+
"PhoneNumberOrder$FocDate": "<p>The Firm Order Commitment (FOC) date for phone number porting orders. This field is null if a phone number order is not a porting order.</p>",
885886
"ProxySession$CreatedTimestamp": "<p>The created time stamp, in ISO 8601 format.</p>",
886887
"ProxySession$UpdatedTimestamp": "<p>The updated time stamp, in ISO 8601 format.</p>",
887888
"ProxySession$EndedTimestamp": "<p>The ended time stamp, in ISO 8601 format.</p>",

generator/ServiceModels/chime-sdk-voice/chime-sdk-voice-2022-08-03.normal.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,7 @@
19521952
{"shape":"ForbiddenException"},
19531953
{"shape":"BadRequestException"},
19541954
{"shape":"ThrottledClientException"},
1955+
{"shape":"AccessDeniedException"},
19551956
{"shape":"ServiceUnavailableException"},
19561957
{"shape":"ServiceFailureException"}
19571958
],
@@ -4314,6 +4315,10 @@
43144315
"UpdatedTimestamp":{
43154316
"shape":"Iso8601Timestamp",
43164317
"documentation":"<p>The updated phone number order time stamp, in ISO 8601 format.</p>"
4318+
},
4319+
"FocDate":{
4320+
"shape":"Iso8601Timestamp",
4321+
"documentation":"<p>The Firm Order Commitment (FOC) date for phone number porting orders. This field is null if a phone number order is not a porting order.</p>"
43174322
}
43184323
},
43194324
"documentation":"<p>The details of an Amazon Chime SDK phone number order.</p>"

sdk/src/Services/ChimeSDKVoice/Generated/Model/Internal/MarshallTransformations/PhoneNumberOrderUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ public PhoneNumberOrder Unmarshall(JsonUnmarshallerContext context)
7272
unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context);
7373
continue;
7474
}
75+
if (context.TestExpression("FocDate", targetDepth))
76+
{
77+
var unmarshaller = DateTimeUnmarshaller.Instance;
78+
unmarshalledObject.FocDate = unmarshaller.Unmarshall(context);
79+
continue;
80+
}
7581
if (context.TestExpression("OrderedPhoneNumbers", targetDepth))
7682
{
7783
var unmarshaller = new ListUnmarshaller<OrderedPhoneNumber, OrderedPhoneNumberUnmarshaller>(OrderedPhoneNumberUnmarshaller.Instance);

sdk/src/Services/ChimeSDKVoice/Generated/Model/Internal/MarshallTransformations/ValidateE911AddressResponseUnmarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
9999
using (var streamCopy = new MemoryStream(responseBodyBytes))
100100
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
101101
{
102+
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
103+
{
104+
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
105+
}
102106
if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException"))
103107
{
104108
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);

sdk/src/Services/ChimeSDKVoice/Generated/Model/PhoneNumberOrder.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace Amazon.ChimeSDKVoice.Model
3535
public partial class PhoneNumberOrder
3636
{
3737
private DateTime? _createdTimestamp;
38+
private DateTime? _focDate;
3839
private List<OrderedPhoneNumber> _orderedPhoneNumbers = AWSConfigs.InitializeCollections ? new List<OrderedPhoneNumber>() : null;
3940
private PhoneNumberOrderType _orderType;
4041
private string _phoneNumberOrderId;
@@ -60,6 +61,25 @@ internal bool IsSetCreatedTimestamp()
6061
return this._createdTimestamp.HasValue;
6162
}
6263

64+
/// <summary>
65+
/// Gets and sets the property FocDate.
66+
/// <para>
67+
/// The Firm Order Commitment (FOC) date for phone number porting orders. This field is
68+
/// null if a phone number order is not a porting order.
69+
/// </para>
70+
/// </summary>
71+
public DateTime FocDate
72+
{
73+
get { return this._focDate.GetValueOrDefault(); }
74+
set { this._focDate = value; }
75+
}
76+
77+
// Check to see if FocDate property is set
78+
internal bool IsSetFocDate()
79+
{
80+
return this._focDate.HasValue;
81+
}
82+
6383
/// <summary>
6484
/// Gets and sets the property OrderedPhoneNumbers.
6585
/// <para>

sdk/src/Services/ChimeSDKVoice/Generated/_bcl35/AmazonChimeSDKVoiceClient.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7732,6 +7732,9 @@ public virtual UpdateVoiceProfileDomainResponse EndUpdateVoiceProfileDomain(IAsy
77327732
/// <param name="request">Container for the necessary parameters to execute the ValidateE911Address service method.</param>
77337733
///
77347734
/// <returns>The response from the ValidateE911Address service method, as returned by ChimeSDKVoice.</returns>
7735+
/// <exception cref="Amazon.ChimeSDKVoice.Model.AccessDeniedException">
7736+
/// You don't have the permissions needed to run this action.
7737+
/// </exception>
77357738
/// <exception cref="Amazon.ChimeSDKVoice.Model.BadRequestException">
77367739
/// The input parameters don't match the service's restrictions.
77377740
/// </exception>

sdk/src/Services/ChimeSDKVoice/Generated/_bcl35/IAmazonChimeSDKVoice.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6184,6 +6184,9 @@ public partial interface IAmazonChimeSDKVoice : IAmazonService, IDisposable
61846184
/// <param name="request">Container for the necessary parameters to execute the ValidateE911Address service method.</param>
61856185
///
61866186
/// <returns>The response from the ValidateE911Address service method, as returned by ChimeSDKVoice.</returns>
6187+
/// <exception cref="Amazon.ChimeSDKVoice.Model.AccessDeniedException">
6188+
/// You don't have the permissions needed to run this action.
6189+
/// </exception>
61876190
/// <exception cref="Amazon.ChimeSDKVoice.Model.BadRequestException">
61886191
/// The input parameters don't match the service's restrictions.
61896192
/// </exception>

sdk/src/Services/ChimeSDKVoice/Generated/_bcl45/AmazonChimeSDKVoiceClient.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8814,6 +8814,9 @@ public virtual UpdateVoiceProfileDomainResponse UpdateVoiceProfileDomain(UpdateV
88148814
/// <param name="request">Container for the necessary parameters to execute the ValidateE911Address service method.</param>
88158815
///
88168816
/// <returns>The response from the ValidateE911Address service method, as returned by ChimeSDKVoice.</returns>
8817+
/// <exception cref="Amazon.ChimeSDKVoice.Model.AccessDeniedException">
8818+
/// You don't have the permissions needed to run this action.
8819+
/// </exception>
88178820
/// <exception cref="Amazon.ChimeSDKVoice.Model.BadRequestException">
88188821
/// The input parameters don't match the service's restrictions.
88198822
/// </exception>
@@ -8858,6 +8861,9 @@ public virtual ValidateE911AddressResponse ValidateE911Address(ValidateE911Addre
88588861
/// </param>
88598862
///
88608863
/// <returns>The response from the ValidateE911Address service method, as returned by ChimeSDKVoice.</returns>
8864+
/// <exception cref="Amazon.ChimeSDKVoice.Model.AccessDeniedException">
8865+
/// You don't have the permissions needed to run this action.
8866+
/// </exception>
88618867
/// <exception cref="Amazon.ChimeSDKVoice.Model.BadRequestException">
88628868
/// The input parameters don't match the service's restrictions.
88638869
/// </exception>

sdk/src/Services/ChimeSDKVoice/Generated/_bcl45/IAmazonChimeSDKVoice.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7358,6 +7358,9 @@ public partial interface IAmazonChimeSDKVoice : IAmazonService, IDisposable
73587358
/// <param name="request">Container for the necessary parameters to execute the ValidateE911Address service method.</param>
73597359
///
73607360
/// <returns>The response from the ValidateE911Address service method, as returned by ChimeSDKVoice.</returns>
7361+
/// <exception cref="Amazon.ChimeSDKVoice.Model.AccessDeniedException">
7362+
/// You don't have the permissions needed to run this action.
7363+
/// </exception>
73617364
/// <exception cref="Amazon.ChimeSDKVoice.Model.BadRequestException">
73627365
/// The input parameters don't match the service's restrictions.
73637366
/// </exception>
@@ -7396,6 +7399,9 @@ public partial interface IAmazonChimeSDKVoice : IAmazonService, IDisposable
73967399
/// </param>
73977400
///
73987401
/// <returns>The response from the ValidateE911Address service method, as returned by ChimeSDKVoice.</returns>
7402+
/// <exception cref="Amazon.ChimeSDKVoice.Model.AccessDeniedException">
7403+
/// You don't have the permissions needed to run this action.
7404+
/// </exception>
73997405
/// <exception cref="Amazon.ChimeSDKVoice.Model.BadRequestException">
74007406
/// The input parameters don't match the service's restrictions.
74017407
/// </exception>

0 commit comments

Comments
 (0)