-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(sdk): generate csharp extend sdk (2023-09-25T20:20:14+00:00)
generated from openapi spec commit: 1a8aebb997c5f65a5843d88e4310354898308e05
- Loading branch information
Ubuntu
authored and
Rinardi Sarean
committed
Sep 26, 2023
1 parent
fab70fb
commit a60e158
Showing
169 changed files
with
9,740 additions
and
4,012 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. | ||
// This is licensed software from AccelByte Inc, for limitations | ||
// and restrictions contact your company contract manager. | ||
|
||
// This code is generated by tool. DO NOT EDIT. | ||
using System.Text.Json.Serialization; | ||
|
||
namespace AccelByte.Sdk.Api.Ams.Model | ||
{ | ||
public class ApiAccountLimits : AccelByte.Sdk.Core.Model | ||
{ | ||
[JsonPropertyName("fleetCount")] | ||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||
public int? FleetCount { get; set; } | ||
|
||
[JsonPropertyName("fleetVmCount")] | ||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||
public int? FleetVmCount { get; set; } | ||
|
||
} | ||
|
||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. | ||
// This is licensed software from AccelByte Inc, for limitations | ||
// and restrictions contact your company contract manager. | ||
|
||
// This code is generated by tool. DO NOT EDIT. | ||
using System.Text.Json.Serialization; | ||
|
||
namespace AccelByte.Sdk.Api.Ams.Model | ||
{ | ||
public class ApiQOSServer : AccelByte.Sdk.Core.Model | ||
{ | ||
[JsonPropertyName("host")] | ||
public string? Host { get; set; } | ||
|
||
[JsonPropertyName("port")] | ||
public int? Port { get; set; } | ||
|
||
[JsonPropertyName("region")] | ||
public string? Region { get; set; } | ||
|
||
} | ||
|
||
|
||
} |
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
117 changes: 117 additions & 0 deletions
117
AccelByte.Sdk/Api/Ams/Operation/Watchdogs/LocalWatchdogConnect.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,117 @@ | ||
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. | ||
// This is licensed software from AccelByte Inc, for limitations | ||
// and restrictions contact your company contract manager. | ||
|
||
// This code is generated by tool. DO NOT EDIT. | ||
|
||
using System.Net; | ||
using System.IO; | ||
using System.Text.Json; | ||
using AccelByte.Sdk.Api.Ams.Model; | ||
using AccelByte.Sdk.Core; | ||
using AccelByte.Sdk.Core.Util; | ||
|
||
namespace AccelByte.Sdk.Api.Ams.Operation | ||
{ | ||
/// <summary> | ||
/// LocalWatchdogConnect | ||
/// | ||
/// Required Permission: NAMESPACE:{namespace}:AMS:LOCALDS [CREATE] | ||
/// </summary> | ||
public class LocalWatchdogConnect : AccelByte.Sdk.Core.Operation | ||
{ | ||
#region Builder Part | ||
public static LocalWatchdogConnectBuilder Builder { get => new LocalWatchdogConnectBuilder(); } | ||
|
||
public class LocalWatchdogConnectBuilder | ||
: OperationBuilder<LocalWatchdogConnectBuilder> | ||
{ | ||
|
||
|
||
|
||
|
||
|
||
internal LocalWatchdogConnectBuilder() { } | ||
|
||
|
||
|
||
|
||
|
||
|
||
public LocalWatchdogConnect Build( | ||
string namespace_, | ||
string watchdogID | ||
) | ||
{ | ||
LocalWatchdogConnect op = new LocalWatchdogConnect(this, | ||
namespace_, | ||
watchdogID | ||
); | ||
op.PreferredSecurityMethod = PreferredSecurityMethod; | ||
op.RequestJsonOptions = RequestJsonOptions; | ||
op.ResponseJsonOptions = ResponseJsonOptions; | ||
|
||
return op; | ||
} | ||
} | ||
|
||
private LocalWatchdogConnect(LocalWatchdogConnectBuilder builder, | ||
string namespace_, | ||
string watchdogID | ||
) | ||
{ | ||
PathParams["namespace"] = namespace_; | ||
PathParams["watchdogID"] = watchdogID; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Securities.Add(AccelByte.Sdk.Core.Operation.SECURITY_BEARER); | ||
} | ||
#endregion | ||
|
||
public LocalWatchdogConnect( | ||
string namespace_, | ||
string watchdogID | ||
) | ||
{ | ||
PathParams["namespace"] = namespace_; | ||
PathParams["watchdogID"] = watchdogID; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Securities.Add(AccelByte.Sdk.Core.Operation.SECURITY_BEARER); | ||
} | ||
|
||
public override string Path => "/ams/v1/namespaces/{namespace}/local/{watchdogID}/connect"; | ||
|
||
public override HttpMethod Method => HttpMethod.Get; | ||
|
||
public override string[] Consumes => new string[] { }; | ||
|
||
public override string[] Produces => new string[] { "application/json" }; | ||
|
||
[Obsolete("2022-04-19 - Use 'Securities' property instead.")] | ||
public override string? Security { get; set; } = "Bearer"; | ||
|
||
public void ParseResponse(HttpStatusCode code, string contentType, Stream payload) | ||
{ | ||
if (code == (HttpStatusCode)200) | ||
{ | ||
return; | ||
} | ||
|
||
var payloadString = Helper.ConvertInputStreamToString(payload); | ||
|
||
throw new HttpResponseException(code, payloadString); | ||
} | ||
} | ||
|
||
} |
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
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.