Skip to content

Commit ad6d7d0

Browse files
CopilotJackTelford
andcommitted
Complete model cleaning: extract CreateAdminTimeOffRequest.Status enum and fix List to IEnumerable
Co-authored-by: JackTelford <142545189+JackTelford@users.noreply.github.com>
1 parent 1f97ab8 commit ad6d7d0

3 files changed

Lines changed: 32 additions & 31 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace PureCloud.Client.Models;
4+
5+
/// <summary>
6+
/// The status of this time off request
7+
/// </summary>
8+
public enum CreateAdminTimeOffRequestStatus
9+
{
10+
/// <summary>
11+
/// Your SDK version is out of date and an unknown enum value was encountered.
12+
/// Please upgrade the SDK using the command "Upgrade-Package PureCloudApiSdk"
13+
/// in the Package Manager Console
14+
/// </summary>
15+
[EnumMember(Value = "OUTDATED_SDK_VERSION")]
16+
OutdatedSdkVersion,
17+
18+
/// <summary>
19+
/// Enum Pending for "PENDING"
20+
/// </summary>
21+
[EnumMember(Value = "PENDING")]
22+
Pending,
23+
24+
/// <summary>
25+
/// Enum Approved for "APPROVED"
26+
/// </summary>
27+
[EnumMember(Value = "APPROVED")]
28+
Approved
29+
}

src/PureCloud.Client/Models/CreateAdminTimeOffRequest.cs

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Runtime.Serialization;
2-
31
namespace PureCloud.Client.Models;
42

53
/// <summary>
@@ -11,40 +9,13 @@ public sealed class CreateAdminTimeOffRequest
119
/// The status of this time off request
1210
/// </summary>
1311
/// <value>The status of this time off request</value>
14-
public enum StatusEnum
15-
{
16-
/// <summary>
17-
/// Your SDK version is out of date and an unknown enum value was encountered.
18-
/// Please upgrade the SDK using the command "Upgrade-Package PureCloudApiSdk"
19-
/// in the Package Manager Console
20-
/// </summary>
21-
[EnumMember(Value = "OUTDATED_SDK_VERSION")]
22-
OutdatedSdkVersion,
23-
24-
/// <summary>
25-
/// Enum Pending for "PENDING"
26-
/// </summary>
27-
[EnumMember(Value = "PENDING")]
28-
Pending,
29-
30-
/// <summary>
31-
/// Enum Approved for "APPROVED"
32-
/// </summary>
33-
[EnumMember(Value = "APPROVED")]
34-
Approved
35-
}
36-
37-
/// <summary>
38-
/// The status of this time off request
39-
/// </summary>
40-
/// <value>The status of this time off request</value>
41-
public StatusEnum? Status { get; set; }
12+
public CreateAdminTimeOffRequestStatus? Status { get; set; }
4213

4314
/// <summary>
4415
/// A set of IDs for users to associate with this time off request
4516
/// </summary>
4617
/// <value>A set of IDs for users to associate with this time off request</value>
47-
public List<UserReference> Users { get; set; }
18+
public IEnumerable<UserReference> Users { get; set; }
4819

4920
/// <summary>
5021
/// The ID of the activity code associated with this time off request

src/PureCloud.Client/PureCloud.Client.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,7 @@
15181518
<Compile Include="Models\CreateActivityCodeRequest.cs" />
15191519
<Compile Include="Models\SecondaryPresence.cs" />
15201520
<Compile Include="Models\CreateAdminTimeOffRequest.cs" />
1521+
<Compile Include="Models\CreateAdminTimeOffRequest.Status.cs" />
15211522
<Compile Include="Models\CreateBenefitAssessmentRequest.cs" />
15221523
<Compile Include="Models\CreateCoachingAppointmentRequest.cs" />
15231524
<Compile Include="Models\CreateGeneralProgramTestPhraseDetectedPhrase.cs" />

0 commit comments

Comments
 (0)