Skip to content

Commit

Permalink
feat!: Generated code from oai-rc making lib MVR Ready
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Feb 23, 2024
1 parent a2366c1 commit 8595072
Show file tree
Hide file tree
Showing 87 changed files with 9,756 additions and 771 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,14 @@ public static string ToJson(object model)
[JsonProperty("connect_app_sid")]
public string ConnectAppSid { get; private set; }

///<summary> The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. </summary>
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }

///<summary> The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. </summary>
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }

///<summary> The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`. </summary>
[JsonProperty("permissions")]
public List<AuthorizedConnectAppResource.PermissionEnum> Permissions { get; private set; }
Expand Down
34 changes: 0 additions & 34 deletions src/Twilio/Rest/Api/V2010/Account/CallOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,21 +388,9 @@ public class ReadCallOptions : ReadOptions<CallResource>
///<summary> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </summary>
public DateTime? StartTime { get; set; }

///<summary> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </summary>
public DateTime? StartTimeBefore { get; set; }

///<summary> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </summary>
public DateTime? StartTimeAfter { get; set; }

///<summary> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </summary>
public DateTime? EndTime { get; set; }

///<summary> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </summary>
public DateTime? EndTimeBefore { get; set; }

///<summary> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </summary>
public DateTime? EndTimeAfter { get; set; }




Expand Down Expand Up @@ -432,32 +420,10 @@ public List<KeyValuePair<string, string>> GetParams()
{
p.Add(new KeyValuePair<string, string>("StartTime", Serializers.DateTimeIso8601(StartTime)));
}
else
{
if (StartTimeBefore != null)
{
p.Add(new KeyValuePair<string, string>("StartTime<", Serializers.DateTimeIso8601(StartTimeBefore)));
}
if (StartTimeAfter != null)
{
p.Add(new KeyValuePair<string, string>("StartTime>", Serializers.DateTimeIso8601(StartTimeAfter)));
}
}
if (EndTime != null)
{
p.Add(new KeyValuePair<string, string>("EndTime", Serializers.DateTimeIso8601(EndTime)));
}
else
{
if (EndTimeBefore != null)
{
p.Add(new KeyValuePair<string, string>("EndTime<", Serializers.DateTimeIso8601(EndTimeBefore)));
}
if (EndTimeAfter != null)
{
p.Add(new KeyValuePair<string, string>("EndTime>", Serializers.DateTimeIso8601(EndTimeAfter)));
}
}
if (PageSize != null)
{
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
Expand Down
20 changes: 2 additions & 18 deletions src/Twilio/Rest/Api/V2010/Account/CallResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,8 @@ public static async System.Threading.Tasks.Task<ResourceSet<CallResource>> ReadA
/// <param name="from"> Only include calls from this phone number, SIP address, Client identifier or SIM SID. </param>
/// <param name="parentCallSid"> Only include calls spawned by calls with this SID. </param>
/// <param name="status"> The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. </param>
/// <param name="startTimeBefore"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
/// <param name="startTime"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
/// <param name="startTimeAfter"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
/// <param name="endTimeBefore"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
/// <param name="endTime"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
/// <param name="endTimeAfter"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
Expand All @@ -480,17 +476,13 @@ public static ResourceSet<CallResource> Read(
Types.PhoneNumber from = null,
string parentCallSid = null,
CallResource.StatusEnum status = null,
DateTime? startTimeBefore = null,
DateTime? startTime = null,
DateTime? startTimeAfter = null,
DateTime? endTimeBefore = null,
DateTime? endTime = null,
DateTime? endTimeAfter = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTimeBefore = startTimeBefore, StartTime = startTime, StartTimeAfter = startTimeAfter, EndTimeBefore = endTimeBefore, EndTime = endTime, EndTimeAfter = endTimeAfter, PageSize = pageSize, Limit = limit};
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTime = startTime, EndTime = endTime, PageSize = pageSize, Limit = limit};
return Read(options, client);
}

Expand All @@ -501,12 +493,8 @@ public static ResourceSet<CallResource> Read(
/// <param name="from"> Only include calls from this phone number, SIP address, Client identifier or SIM SID. </param>
/// <param name="parentCallSid"> Only include calls spawned by calls with this SID. </param>
/// <param name="status"> The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. </param>
/// <param name="startTimeBefore"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
/// <param name="startTime"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
/// <param name="startTimeAfter"> Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. </param>
/// <param name="endTimeBefore"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
/// <param name="endTime"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
/// <param name="endTimeAfter"> Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
Expand All @@ -517,17 +505,13 @@ public static async System.Threading.Tasks.Task<ResourceSet<CallResource>> ReadA
Types.PhoneNumber from = null,
string parentCallSid = null,
CallResource.StatusEnum status = null,
DateTime? startTimeBefore = null,
DateTime? startTime = null,
DateTime? startTimeAfter = null,
DateTime? endTimeBefore = null,
DateTime? endTime = null,
DateTime? endTimeAfter = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTimeBefore = startTimeBefore, StartTime = startTime, StartTimeAfter = startTimeAfter, EndTimeBefore = endTimeBefore, EndTime = endTime, EndTimeAfter = endTimeAfter, PageSize = pageSize, Limit = limit};
var options = new ReadCallOptions(){ PathAccountSid = pathAccountSid, To = to, From = from, ParentCallSid = parentCallSid, Status = status, StartTime = startTime, EndTime = endTime, PageSize = pageSize, Limit = limit};
return await ReadAsync(options, client);
}
#endif
Expand Down
34 changes: 0 additions & 34 deletions src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,9 @@ public class ReadConferenceOptions : ReadOptions<ConferenceResource>
///<summary> The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. </summary>
public DateTime? DateCreated { get; set; }

///<summary> The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. </summary>
public DateTime? DateCreatedBefore { get; set; }

///<summary> The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. </summary>
public DateTime? DateCreatedAfter { get; set; }

///<summary> The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. </summary>
public DateTime? DateUpdated { get; set; }

///<summary> The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. </summary>
public DateTime? DateUpdatedBefore { get; set; }

///<summary> The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. </summary>
public DateTime? DateUpdatedAfter { get; set; }

///<summary> The string that identifies the Conference resources to read. </summary>
public string FriendlyName { get; set; }

Expand All @@ -100,32 +88,10 @@ public List<KeyValuePair<string, string>> GetParams()
{
p.Add(new KeyValuePair<string, string>("DateCreated", DateCreated.Value.ToString("yyyy-MM-dd")));
}
else
{
if (DateCreatedBefore != null)
{
p.Add(new KeyValuePair<string, string>("DateCreated<", DateCreatedBefore.Value.ToString("yyyy-MM-dd")));
}
if (DateCreatedAfter != null)
{
p.Add(new KeyValuePair<string, string>("DateCreated>", DateCreatedAfter.Value.ToString("yyyy-MM-dd")));
}
}
if (DateUpdated != null)
{
p.Add(new KeyValuePair<string, string>("DateUpdated", DateUpdated.Value.ToString("yyyy-MM-dd")));
}
else
{
if (DateUpdatedBefore != null)
{
p.Add(new KeyValuePair<string, string>("DateUpdated<", DateUpdatedBefore.Value.ToString("yyyy-MM-dd")));
}
if (DateUpdatedAfter != null)
{
p.Add(new KeyValuePair<string, string>("DateUpdated>", DateUpdatedAfter.Value.ToString("yyyy-MM-dd")));
}
}
if (FriendlyName != null)
{
p.Add(new KeyValuePair<string, string>("FriendlyName", FriendlyName));
Expand Down
Loading

0 comments on commit 8595072

Please sign in to comment.