-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Per Kops
committed
Dec 13, 2024
1 parent
1e59aaf
commit 242b90d
Showing
558 changed files
with
21,475 additions
and
4,683 deletions.
There are no files selected for viewing
15,326 changes: 10,857 additions & 4,469 deletions
15,326
test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/Monta/Monta.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
....ApiClient.Generated/Contracts/ChargePointStatistics/ChargePointStatisticsDto.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
//------------------------------------------------------------------------------ | ||
// This code was auto-generated by ApiGenerator x.x.x.x. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
//------------------------------------------------------------------------------ | ||
namespace Monta.ApiClient.Generated.Contracts.ChargePointStatistics; | ||
|
||
/// <summary> | ||
/// ChargePointStatisticsDto. | ||
/// </summary> | ||
[GeneratedCode("ApiGenerator", "x.x.x.x")] | ||
public class ChargePointStatisticsDto | ||
{ | ||
/// <summary> | ||
/// Start date of the statistics period. | ||
/// </summary> | ||
[Required] | ||
public DateTimeOffset FromDate { get; set; } | ||
|
||
/// <summary> | ||
/// End date of the statistics period. | ||
/// </summary> | ||
[Required] | ||
public DateTimeOffset ToDate { get; set; } | ||
|
||
/// <summary> | ||
/// Total energy consumed during the period (in kWh). | ||
/// </summary> | ||
[Required] | ||
public double TotalEnergyConsumed { get; set; } | ||
|
||
/// <summary> | ||
/// Total number of charging sessions during the period. | ||
/// </summary> | ||
[Required] | ||
public int TotalSessions { get; set; } | ||
|
||
/// <summary> | ||
/// Success rate of charging sessions during the period (as a percentage). | ||
/// </summary> | ||
[Required] | ||
public double SessionSuccessRate { get; set; } | ||
|
||
/// <summary> | ||
/// Percentage of uptime for the system during the period. | ||
/// </summary> | ||
public double? SystemUptimePercentage { get; set; } | ||
|
||
/// <summary> | ||
/// Detailed state for the period. | ||
/// </summary> | ||
public List<States> States { get; set; } = new List<States>(); | ||
|
||
/// <summary> | ||
/// Daily statistics for the period. | ||
/// </summary> | ||
public List<TimePeriod> Days { get; set; } = new List<TimePeriod>(); | ||
|
||
/// <summary> | ||
/// Monthly statistics for the period. | ||
/// </summary> | ||
public List<TimePeriod> Months { get; set; } = new List<TimePeriod>(); | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() | ||
=> $"{nameof(FromDate)}: ({FromDate}), {nameof(ToDate)}: ({ToDate}), {nameof(TotalEnergyConsumed)}: {TotalEnergyConsumed}, {nameof(TotalSessions)}: {TotalSessions}, {nameof(SessionSuccessRate)}: {SessionSuccessRate}, {nameof(SystemUptimePercentage)}: {SystemUptimePercentage}, {nameof(States)}.Count: {States?.Count ?? 0}, {nameof(Days)}.Count: {Days?.Count ?? 0}, {nameof(Months)}.Count: {Months?.Count ?? 0}"; | ||
} |
30 changes: 30 additions & 0 deletions
30
...CEM/src/Monta.ApiClient.Generated/Contracts/ChargePointStatistics/Performance.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//------------------------------------------------------------------------------ | ||
// This code was auto-generated by ApiGenerator x.x.x.x. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
//------------------------------------------------------------------------------ | ||
namespace Monta.ApiClient.Generated.Contracts.ChargePointStatistics; | ||
|
||
/// <summary> | ||
/// Performance. | ||
/// </summary> | ||
[GeneratedCode("ApiGenerator", "x.x.x.x")] | ||
public class Performance | ||
{ | ||
/// <summary> | ||
/// State of the system or charge point. | ||
/// </summary> | ||
[Required] | ||
public string Status { get; set; } | ||
|
||
/// <summary> | ||
/// Percentage of time in this state. | ||
/// </summary> | ||
[Required] | ||
public double UsagePercentage { get; set; } | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() | ||
=> $"{nameof(Status)}: {Status}, {nameof(UsagePercentage)}: {UsagePercentage}"; | ||
} |
32 changes: 32 additions & 0 deletions
32
...ts/ChargePointStatistics/RequestParameters/GetChargePointStatisticsParameters.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//------------------------------------------------------------------------------ | ||
// This code was auto-generated by ApiGenerator x.x.x.x. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
//------------------------------------------------------------------------------ | ||
namespace Monta.ApiClient.Generated.Contracts.ChargePointStatistics; | ||
|
||
/// <summary> | ||
/// Parameters for operation request. | ||
/// Description: Retrieve statistics related to a charge point. | ||
/// Operation: GetChargePointStatistics. | ||
/// </summary> | ||
[GeneratedCode("ApiGenerator", "x.x.x.x")] | ||
public class GetChargePointStatisticsParameters | ||
{ | ||
[Required] | ||
[Range(0, 2147483647)] | ||
public long ChargePointId { get; set; } | ||
|
||
[Required] | ||
[RegularExpression("\\d{4}-\\d{2}-\\d{2}")] | ||
public DateTimeOffset FromDate { get; set; } | ||
|
||
[Required] | ||
[RegularExpression("\\d{4}-\\d{2}-\\d{2}")] | ||
public DateTimeOffset ToDate { get; set; } | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() | ||
=> $"{nameof(ChargePointId)}: {ChargePointId}, {nameof(FromDate)}: ({FromDate}), {nameof(ToDate)}: ({ToDate})"; | ||
} |
32 changes: 32 additions & 0 deletions
32
...Contracts/ChargePointStatistics/RequestParameters/GetSiteStatisticsParameters.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//------------------------------------------------------------------------------ | ||
// This code was auto-generated by ApiGenerator x.x.x.x. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
//------------------------------------------------------------------------------ | ||
namespace Monta.ApiClient.Generated.Contracts.ChargePointStatistics; | ||
|
||
/// <summary> | ||
/// Parameters for operation request. | ||
/// Description: Retrieve statistics related to a site. | ||
/// Operation: GetSiteStatistics. | ||
/// </summary> | ||
[GeneratedCode("ApiGenerator", "x.x.x.x")] | ||
public class GetSiteStatisticsParameters | ||
{ | ||
[Required] | ||
[Range(0, 2147483647)] | ||
public long SiteId { get; set; } | ||
|
||
[Required] | ||
[RegularExpression("\\d{4}-\\d{2}-\\d{2}")] | ||
public DateTimeOffset FromDate { get; set; } | ||
|
||
[Required] | ||
[RegularExpression("\\d{4}-\\d{2}-\\d{2}")] | ||
public DateTimeOffset ToDate { get; set; } | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() | ||
=> $"{nameof(SiteId)}: {SiteId}, {nameof(FromDate)}: ({FromDate}), {nameof(ToDate)}: ({ToDate})"; | ||
} |
36 changes: 36 additions & 0 deletions
36
...ent/WCEM/src/Monta.ApiClient.Generated/Contracts/ChargePointStatistics/States.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//------------------------------------------------------------------------------ | ||
// This code was auto-generated by ApiGenerator x.x.x.x. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
//------------------------------------------------------------------------------ | ||
namespace Monta.ApiClient.Generated.Contracts.ChargePointStatistics; | ||
|
||
/// <summary> | ||
/// States. | ||
/// </summary> | ||
[GeneratedCode("ApiGenerator", "x.x.x.x")] | ||
public class States | ||
{ | ||
/// <summary> | ||
/// State of the system or charge point. | ||
/// </summary> | ||
[Required] | ||
public string State { get; set; } | ||
|
||
/// <summary> | ||
/// Percentage of the time spent in this state. | ||
/// </summary> | ||
[Required] | ||
public double Percentage { get; set; } | ||
|
||
/// <summary> | ||
/// Duration in this state (in seconds). | ||
/// </summary> | ||
[Required] | ||
public long Duration { get; set; } | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() | ||
=> $"{nameof(State)}: {State}, {nameof(Percentage)}: {Percentage}, {nameof(Duration)}: {Duration}"; | ||
} |
30 changes: 30 additions & 0 deletions
30
...WCEM/src/Monta.ApiClient.Generated/Contracts/ChargePointStatistics/TimePeriod.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//------------------------------------------------------------------------------ | ||
// This code was auto-generated by ApiGenerator x.x.x.x. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
//------------------------------------------------------------------------------ | ||
namespace Monta.ApiClient.Generated.Contracts.ChargePointStatistics; | ||
|
||
/// <summary> | ||
/// TimePeriod. | ||
/// </summary> | ||
[GeneratedCode("ApiGenerator", "x.x.x.x")] | ||
public class TimePeriod | ||
{ | ||
/// <summary> | ||
/// Date for the statistics. | ||
/// </summary> | ||
[Required] | ||
public DateTimeOffset Date { get; set; } | ||
|
||
/// <summary> | ||
/// Performance metrics for the day. | ||
/// </summary> | ||
[Required] | ||
public List<Performance> DailyPerformance { get; set; } | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() | ||
=> $"{nameof(Date)}: ({Date}), {nameof(DailyPerformance)}.Count: {DailyPerformance?.Count ?? 0}"; | ||
} |
30 changes: 30 additions & 0 deletions
30
.../WCEM/src/Monta.ApiClient.Generated/Contracts/ChargePoints/ChargePointOcppLog.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//------------------------------------------------------------------------------ | ||
// This code was auto-generated by ApiGenerator x.x.x.x. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
//------------------------------------------------------------------------------ | ||
namespace Monta.ApiClient.Generated.Contracts.ChargePoints; | ||
|
||
/// <summary> | ||
/// ChargePointOcppLog. | ||
/// </summary> | ||
[GeneratedCode("ApiGenerator", "x.x.x.x")] | ||
public class ChargePointOcppLog | ||
{ | ||
/// <summary> | ||
/// Timestamp of the OCPP log. | ||
/// </summary> | ||
[Required] | ||
public DateTimeOffset Timestamp { get; set; } | ||
|
||
/// <summary> | ||
/// Message content of the OCPP log, can be a string or an array of mixed types. | ||
/// </summary> | ||
[Required] | ||
public string Message { get; set; } | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() | ||
=> $"{nameof(Timestamp)}: ({Timestamp}), {nameof(Message)}: {Message}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.