Skip to content

Commit 9611cba

Browse files
committed
Datetime handling generated changes.
1 parent cb4f74d commit 9611cba

File tree

89 files changed

+689
-3595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+689
-3595
lines changed

sdk/src/Services/AutoScaling/Generated/Model/DescribeScheduledActionsRequest.cs

Lines changed: 16 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ namespace Amazon.AutoScaling.Model
4444
public partial class DescribeScheduledActionsRequest : AmazonAutoScalingRequest
4545
{
4646
private string _autoScalingGroupName;
47-
private DateTime? _endTimeUtc;
47+
private DateTime? _endTime;
4848
private int? _maxRecords;
4949
private string _nextToken;
5050
private List<string> _scheduledActionNames = AWSConfigs.InitializeCollections ? new List<string>() : null;
51-
private DateTime? _startTimeUtc;
51+
private DateTime? _startTime;
5252

5353
/// <summary>
5454
/// Gets and sets the property AutoScalingGroupName.
@@ -70,22 +70,22 @@ internal bool IsSetAutoScalingGroupName()
7070
}
7171

7272
/// <summary>
73-
/// Gets and sets the property EndTimeUtc.
73+
/// Gets and sets the property EndTime.
7474
/// <para>
7575
/// The latest scheduled start time to return. If scheduled action names are provided,
7676
/// this property is ignored.
7777
/// </para>
7878
/// </summary>
79-
public DateTime? EndTimeUtc
79+
public DateTime? EndTime
8080
{
81-
get { return this._endTimeUtc; }
82-
set { this._endTime = this._endTimeUtc = value; }
81+
get { return this._endTime; }
82+
set { this._endTime = value; }
8383
}
8484

85-
// Check to see if EndTimeUtc property is set
86-
internal bool IsSetEndTimeUtc()
85+
// Check to see if EndTime property is set
86+
internal bool IsSetEndTime()
8787
{
88-
return this._endTimeUtc.HasValue;
88+
return this._endTime.HasValue;
8989
}
9090

9191
/// <summary>
@@ -151,102 +151,23 @@ internal bool IsSetScheduledActionNames()
151151
}
152152

153153
/// <summary>
154-
/// Gets and sets the property StartTimeUtc.
154+
/// Gets and sets the property StartTime.
155155
/// <para>
156156
/// The earliest scheduled start time to return. If scheduled action names are provided,
157157
/// this property is ignored.
158158
/// </para>
159159
/// </summary>
160-
public DateTime? StartTimeUtc
160+
public DateTime? StartTime
161161
{
162-
get { return this._startTimeUtc; }
163-
set { this._startTime = this._startTimeUtc = value; }
162+
get { return this._startTime; }
163+
set { this._startTime = value; }
164164
}
165165

166-
// Check to see if StartTimeUtc property is set
167-
internal bool IsSetStartTimeUtc()
166+
// Check to see if StartTime property is set
167+
internal bool IsSetStartTime()
168168
{
169-
return this._startTimeUtc.HasValue;
169+
return this._startTime.HasValue;
170170
}
171171

172-
#region Backwards compatible properties
173-
private DateTime? _endTime;
174-
private DateTime? _startTime;
175-
176-
/// <summary>
177-
/// Gets and sets the property EndTimeUtc.
178-
/// <para>
179-
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
180-
/// being marshalled correctly. Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc
181-
/// results in both EndTime and EndTimeUtc being assigned, the latest assignment to either
182-
/// one of the two property is reflected in the value of both. EndTime is provided for
183-
/// backwards compatibility only and assigning a non-Utc DateTime to it results in the
184-
/// wrong timestamp being passed to the service.
185-
/// </para>
186-
///
187-
/// <para>
188-
/// The latest scheduled start time to return. If scheduled action names are provided,
189-
/// this property is ignored.
190-
/// </para>
191-
/// </summary>
192-
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
193-
"Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc results in both EndTime and " +
194-
"EndTimeUtc being assigned, the latest assignment to either one of the two property is " +
195-
"reflected in the value of both. EndTime is provided for backwards compatibility only and " +
196-
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
197-
public DateTime? EndTime
198-
{
199-
get { return this._endTime.GetValueOrDefault(); }
200-
set
201-
{
202-
this._endTime = value;
203-
if (value != null)
204-
{
205-
this._endTimeUtc = new DateTime(value.Value.Ticks, DateTimeKind.Utc);
206-
}
207-
else
208-
{
209-
this._endTimeUtc = null;
210-
}
211-
}
212-
}
213-
/// <summary>
214-
/// Gets and sets the property StartTimeUtc.
215-
/// <para>
216-
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
217-
/// being marshalled correctly. Use StartTimeUtc instead. Setting either StartTime or
218-
/// StartTimeUtc results in both StartTime and StartTimeUtc being assigned, the latest
219-
/// assignment to either one of the two property is reflected in the value of both. StartTime
220-
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
221-
/// results in the wrong timestamp being passed to the service.
222-
/// </para>
223-
///
224-
/// <para>
225-
/// The earliest scheduled start time to return. If scheduled action names are provided,
226-
/// this property is ignored.
227-
/// </para>
228-
/// </summary>
229-
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
230-
"Use StartTimeUtc instead. Setting either StartTime or StartTimeUtc results in both StartTime and " +
231-
"StartTimeUtc being assigned, the latest assignment to either one of the two property is " +
232-
"reflected in the value of both. StartTime is provided for backwards compatibility only and " +
233-
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
234-
public DateTime? StartTime
235-
{
236-
get { return this._startTime.GetValueOrDefault(); }
237-
set
238-
{
239-
this._startTime = value;
240-
if (value != null)
241-
{
242-
this._startTimeUtc = new DateTime(value.Value.Ticks, DateTimeKind.Utc);
243-
}
244-
else
245-
{
246-
this._startTimeUtc = null;
247-
}
248-
}
249-
}
250-
#endregion
251172
}
252173
}

sdk/src/Services/AutoScaling/Generated/Model/Internal/MarshallTransformations/BatchPutScheduledUpdateGroupActionRequestMarshaller.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public IRequest Marshall(BatchPutScheduledUpdateGroupActionRequest publicRequest
7676
{
7777
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "DesiredCapacity", StringUtils.FromInt(publicRequestlistValue.DesiredCapacity));
7878
}
79-
if(publicRequestlistValue.IsSetEndTimeUtc())
79+
if(publicRequestlistValue.IsSetEndTime())
8080
{
81-
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "EndTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequestlistValue.EndTimeUtc));
81+
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "EndTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequestlistValue.EndTime));
8282
}
8383
if(publicRequestlistValue.IsSetMaxSize())
8484
{
@@ -96,9 +96,9 @@ public IRequest Marshall(BatchPutScheduledUpdateGroupActionRequest publicRequest
9696
{
9797
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ScheduledActionName", StringUtils.FromString(publicRequestlistValue.ScheduledActionName));
9898
}
99-
if(publicRequestlistValue.IsSetStartTimeUtc())
99+
if(publicRequestlistValue.IsSetStartTime())
100100
{
101-
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StartTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequestlistValue.StartTimeUtc));
101+
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StartTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequestlistValue.StartTime));
102102
}
103103
if(publicRequestlistValue.IsSetTimeZone())
104104
{

sdk/src/Services/AutoScaling/Generated/Model/Internal/MarshallTransformations/DescribeScheduledActionsRequestMarshaller.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public IRequest Marshall(DescribeScheduledActionsRequest publicRequest)
6363
{
6464
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
6565
}
66-
if(publicRequest.IsSetEndTimeUtc())
66+
if(publicRequest.IsSetEndTime())
6767
{
68-
request.Parameters.Add("EndTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.EndTimeUtc));
68+
request.Parameters.Add("EndTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.EndTime));
6969
}
7070
if(publicRequest.IsSetMaxRecords())
7171
{
@@ -89,9 +89,9 @@ public IRequest Marshall(DescribeScheduledActionsRequest publicRequest)
8989
}
9090
}
9191
}
92-
if(publicRequest.IsSetStartTimeUtc())
92+
if(publicRequest.IsSetStartTime())
9393
{
94-
request.Parameters.Add("StartTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.StartTimeUtc));
94+
request.Parameters.Add("StartTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.StartTime));
9595
}
9696
}
9797
return request;

sdk/src/Services/AutoScaling/Generated/Model/Internal/MarshallTransformations/PutScheduledUpdateGroupActionRequestMarshaller.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ public IRequest Marshall(PutScheduledUpdateGroupActionRequest publicRequest)
6767
{
6868
request.Parameters.Add("DesiredCapacity", StringUtils.FromInt(publicRequest.DesiredCapacity));
6969
}
70-
if(publicRequest.IsSetEndTimeUtc())
70+
if(publicRequest.IsSetEndTime())
7171
{
72-
request.Parameters.Add("EndTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.EndTimeUtc));
72+
request.Parameters.Add("EndTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.EndTime));
7373
}
7474
if(publicRequest.IsSetMaxSize())
7575
{
@@ -87,13 +87,13 @@ public IRequest Marshall(PutScheduledUpdateGroupActionRequest publicRequest)
8787
{
8888
request.Parameters.Add("ScheduledActionName", StringUtils.FromString(publicRequest.ScheduledActionName));
8989
}
90-
if(publicRequest.IsSetStartTimeUtc())
90+
if(publicRequest.IsSetStartTime())
9191
{
92-
request.Parameters.Add("StartTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.StartTimeUtc));
92+
request.Parameters.Add("StartTime", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.StartTime));
9393
}
94-
if(publicRequest.IsSetTimeUtc())
94+
if(publicRequest.IsSetTime())
9595
{
96-
request.Parameters.Add("Time", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.TimeUtc));
96+
request.Parameters.Add("Time", StringUtils.FromDateTimeToISO8601WithOptionalMs(publicRequest.Time));
9797
}
9898
if(publicRequest.IsSetTimeZone())
9999
{

0 commit comments

Comments
 (0)