Skip to content

Commit

Permalink
ci: Generate code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Dec 20, 2024
1 parent 71e477c commit a61b59b
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 56 deletions.
64 changes: 64 additions & 0 deletions output/csharp/src/Seam/Model/AcsAccessGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public AcsAccessGroup(
string externalTypeDisplayName = default,
bool isManaged = default,
string name = default,
List<AcsAccessGroupWarnings> warnings = default,
string workspaceId = default
)
{
Expand All @@ -37,6 +38,7 @@ public AcsAccessGroup(
ExternalTypeDisplayName = externalTypeDisplayName;
IsManaged = isManaged;
Name = name;
Warnings = warnings;
WorkspaceId = workspaceId;
}

Expand All @@ -57,6 +59,9 @@ public enum AccessGroupTypeEnum

[EnumMember(Value = "salto_space_group")]
SaltoSpaceGroup = 4,

[EnumMember(Value = "dormakaba_community_access_group")]
DormakabaCommunityAccessGroup = 5,
}

[JsonConverter(typeof(StringEnumConverter))]
Expand All @@ -76,6 +81,9 @@ public enum ExternalTypeEnum

[EnumMember(Value = "salto_space_group")]
SaltoSpaceGroup = 4,

[EnumMember(Value = "dormakaba_community_access_group")]
DormakabaCommunityAccessGroup = 5,
}

[DataMember(Name = "access_group_type", IsRequired = true, EmitDefaultValue = false)]
Expand Down Expand Up @@ -116,6 +124,9 @@ public enum ExternalTypeEnum
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)]
public string Name { get; set; }

[DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = false)]
public List<AcsAccessGroupWarnings> Warnings { get; set; }

[DataMember(Name = "workspace_id", IsRequired = true, EmitDefaultValue = false)]
public string WorkspaceId { get; set; }

Expand All @@ -138,4 +149,57 @@ public override string ToString()
return stringWriter.ToString();
}
}

[DataContract(Name = "seamModel_acsAccessGroupWarnings_model")]
public class AcsAccessGroupWarnings
{
[JsonConstructorAttribute]
protected AcsAccessGroupWarnings() { }

public AcsAccessGroupWarnings(
string createdAt = default,
string message = default,
AcsAccessGroupWarnings.WarningCodeEnum warningCode = default
)
{
CreatedAt = createdAt;
Message = message;
WarningCode = warningCode;
}

[JsonConverter(typeof(StringEnumConverter))]
public enum WarningCodeEnum
{
[EnumMember(Value = "unknown_issue_with_acs_access_group")]
UnknownIssueWithAcsAccessGroup = 0,
}

[DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)]
public string CreatedAt { get; set; }

[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
public string Message { get; set; }

[DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
public AcsAccessGroupWarnings.WarningCodeEnum WarningCode { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}
}
16 changes: 1 addition & 15 deletions output/csharp/src/Seam/Model/AcsEntrance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,11 @@ protected AcsEntranceDormakabaCommunityMetadata() { }

public AcsEntranceDormakabaCommunityMetadata(
string accessPointName = default,
float? commonAreaNumber = default,
List<string>? innerAccessPointsNames = default,
List<string>? leaseIds = default
float? commonAreaNumber = default
)
{
AccessPointName = accessPointName;
CommonAreaNumber = commonAreaNumber;
InnerAccessPointsNames = innerAccessPointsNames;
LeaseIds = leaseIds;
}

[DataMember(Name = "access_point_name", IsRequired = true, EmitDefaultValue = false)]
Expand All @@ -198,16 +194,6 @@ public AcsEntranceDormakabaCommunityMetadata(
[DataMember(Name = "common_area_number", IsRequired = false, EmitDefaultValue = false)]
public float? CommonAreaNumber { get; set; }

[DataMember(
Name = "inner_access_points_names",
IsRequired = false,
EmitDefaultValue = false
)]
public List<string>? InnerAccessPointsNames { get; set; }

[DataMember(Name = "lease_ids", IsRequired = false, EmitDefaultValue = false)]
public List<string>? LeaseIds { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
Expand Down
42 changes: 2 additions & 40 deletions output/csharp/src/Seam/Model/ConnectedAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ConnectedAccount(
object? customMetadata = default,
List<ConnectedAccountErrors> errors = default,
ConnectedAccountUserIdentifier? userIdentifier = default,
List<ConnectedAccountWarnings> warnings = default
List<JObject> warnings = default
)
{
AccountType = accountType;
Expand Down Expand Up @@ -69,7 +69,7 @@ public ConnectedAccount(
public ConnectedAccountUserIdentifier? UserIdentifier { get; set; }

[DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = false)]
public List<ConnectedAccountWarnings> Warnings { get; set; }
public List<JObject> Warnings { get; set; }

public override string ToString()
{
Expand Down Expand Up @@ -196,42 +196,4 @@ public override string ToString()
return stringWriter.ToString();
}
}

[DataContract(Name = "seamModel_connectedAccountWarnings_model")]
public class ConnectedAccountWarnings
{
[JsonConstructorAttribute]
protected ConnectedAccountWarnings() { }

public ConnectedAccountWarnings(string message = default, string warningCode = default)
{
Message = message;
WarningCode = warningCode;
}

[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
public string Message { get; set; }

[DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
public string WarningCode { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}
}
2 changes: 1 addition & 1 deletion output/csharp/src/Seam/Seam.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PackageId>Seam</PackageId>

<PackageVersion>0.15.0</PackageVersion>
<PackageVersion>0.16.0</PackageVersion>

<Authors>Seam</Authors>

Expand Down

0 comments on commit a61b59b

Please sign in to comment.