Skip to content

Commit

Permalink
chore(sdk): generate csharp extend sdk (2023-09-25T20:20:14+00:00)
Browse files Browse the repository at this point in the history
generated from openapi spec commit: 1a8aebb997c5f65a5843d88e4310354898308e05
  • Loading branch information
Ubuntu authored and Rinardi Sarean committed Sep 26, 2023
1 parent fab70fb commit a60e158
Show file tree
Hide file tree
Showing 169 changed files with 9,740 additions and 4,012 deletions.
4 changes: 2 additions & 2 deletions AccelByte.Sdk/AccelByte.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<Product>AccelByte.Sdk</Product>
<PackageId>AccelByte.Sdk</PackageId>
<Authors>AccelByte Developers</Authors>
<Version>0.43.0</Version>
<AssemblyVersion>0.43.0</AssemblyVersion>
<Version>0.44.0</Version>
<AssemblyVersion>0.44.0</AssemblyVersion>
<Company>AccelByte</Company>
<Copyright>Copyright(c) AccelByte 2022</Copyright>
<Description>AccelByte .NET (C#) SDK
Expand Down
3 changes: 3 additions & 0 deletions AccelByte.Sdk/Api/Ams/Model/ApiAccountCreateResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace AccelByte.Sdk.Api.Ams.Model
{
public class ApiAccountCreateResponse : AccelByte.Sdk.Core.Model
{
[JsonPropertyName("Limits")]
public ApiAccountLimits? Limits { get; set; }

[JsonPropertyName("id")]
public string? Id { get; set; }

Expand Down
23 changes: 23 additions & 0 deletions AccelByte.Sdk/Api/Ams/Model/ApiAccountLimits.cs
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; }

}


}
3 changes: 3 additions & 0 deletions AccelByte.Sdk/Api/Ams/Model/ApiAccountLinkResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace AccelByte.Sdk.Api.Ams.Model
{
public class ApiAccountLinkResponse : AccelByte.Sdk.Core.Model
{
[JsonPropertyName("Limits")]
public ApiAccountLimits? Limits { get; set; }

[JsonPropertyName("id")]
public string? Id { get; set; }

Expand Down
3 changes: 3 additions & 0 deletions AccelByte.Sdk/Api/Ams/Model/ApiAccountResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace AccelByte.Sdk.Api.Ams.Model
{
public class ApiAccountResponse : AccelByte.Sdk.Core.Model
{
[JsonPropertyName("Limits")]
public ApiAccountLimits? Limits { get; set; }

[JsonPropertyName("id")]
public string? Id { get; set; }

Expand Down
3 changes: 3 additions & 0 deletions AccelByte.Sdk/Api/Ams/Model/ApiFleetGetResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class ApiFleetGetResponse : AccelByte.Sdk.Core.Model
[JsonPropertyName("imageDeploymentProfile")]
public ApiImageDeploymentProfile? ImageDeploymentProfile { get; set; }

[JsonPropertyName("isLocal")]
public bool? IsLocal { get; set; }

[JsonPropertyName("name")]
public string? Name { get; set; }

Expand Down
24 changes: 24 additions & 0 deletions AccelByte.Sdk/Api/Ams/Model/ApiQOSServer.cs
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; }

}


}
3 changes: 3 additions & 0 deletions AccelByte.Sdk/Api/Ams/Model/ApiRegionsResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace AccelByte.Sdk.Api.Ams.Model
{
public class ApiRegionsResponse : AccelByte.Sdk.Core.Model
{
[JsonPropertyName("qosServers")]
public List<ApiQOSServer>? QosServers { get; set; }

[JsonPropertyName("regions")]
public List<string>? Regions { get; set; }

Expand Down
117 changes: 117 additions & 0 deletions AccelByte.Sdk/Api/Ams/Operation/Watchdogs/LocalWatchdogConnect.cs
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);
}
}

}
13 changes: 13 additions & 0 deletions AccelByte.Sdk/Api/Ams/Wrapper/Watchdogs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,25 @@ public Watchdogs(AccelByteSDK sdk)
}

#region Operation Builders
public LocalWatchdogConnect.LocalWatchdogConnectBuilder LocalWatchdogConnectOp
{
get { return Operation.LocalWatchdogConnect.Builder.SetWrapperObject(this); }
}
public WatchdogConnect.WatchdogConnectBuilder WatchdogConnectOp
{
get { return Operation.WatchdogConnect.Builder.SetWrapperObject(this); }
}
#endregion

public void LocalWatchdogConnect(LocalWatchdogConnect input)
{
var response = _sdk.RunRequest(input);

input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public void WatchdogConnect(WatchdogConnect input)
{
var response = _sdk.RunRequest(input);
Expand Down
13 changes: 13 additions & 0 deletions AccelByte.Sdk/Api/Ams/Wrapper/Watchdogs_OpExts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ namespace AccelByte.Sdk.Api
{
public static class AmsWatchdogs_OpExts
{
public static void Execute(
this LocalWatchdogConnect.LocalWatchdogConnectBuilder builder,
string namespace_,
string watchdogID
)
{
LocalWatchdogConnect op = builder.Build(
namespace_,
watchdogID
);

((Ams.Wrapper.Watchdogs)builder.WrapperObject!).LocalWatchdogConnect(op);
}
public static void Execute(
this WatchdogConnect.WatchdogConnectBuilder builder,
string namespace_,
Expand Down
1 change: 1 addition & 0 deletions AccelByte.Sdk/Api/Basic/Operation/Misc/GetCountries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace AccelByte.Sdk.Api.Basic.Operation
/// * Action code : 11204
/// * Returns : country code list
/// </summary>
[Obsolete(DiagnosticId = "ab_deprecated_operation")]
public class GetCountries : AccelByte.Sdk.Core.Operation
{
#region Builder Part
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace AccelByte.Sdk.Api.Basic.Operation
///
/// * Returns : country code list
/// </summary>
[Obsolete(DiagnosticId = "ab_deprecated_operation")]
public class PublicGetCountries : AccelByte.Sdk.Core.Operation
{
#region Builder Part
Expand Down
8 changes: 8 additions & 0 deletions AccelByte.Sdk/Api/Basic/Wrapper/Misc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public Misc(AccelByteSDK sdk)
}

#region Operation Builders
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public GetCountries.GetCountriesBuilder GetCountriesOp
{
get { return Operation.GetCountries.Builder.SetWrapperObject(this); }
Expand Down Expand Up @@ -51,6 +52,7 @@ public PublicGetTime.PublicGetTimeBuilder PublicGetTimeOp
{
get { return Operation.PublicGetTime.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public PublicGetCountries.PublicGetCountriesBuilder PublicGetCountriesOp
{
get { return Operation.PublicGetCountries.Builder.SetWrapperObject(this); }
Expand All @@ -65,6 +67,8 @@ public PublicGetTimeZones.PublicGetTimeZonesBuilder PublicGetTimeZonesOp
}
#endregion

#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public List<Model.CountryObject>? GetCountries(GetCountries input)
{
var response = _sdk.RunRequest(input);
Expand All @@ -74,6 +78,7 @@ public PublicGetTimeZones.PublicGetTimeZonesBuilder PublicGetTimeZonesOp
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
public List<Model.RetrieveCountryGroupResponse>? GetCountryGroups(GetCountryGroups input)
{
var response = _sdk.RunRequest(input);
Expand Down Expand Up @@ -137,6 +142,8 @@ public void DeleteCountryGroup(DeleteCountryGroup input)
response.ContentType,
response.Payload);
}
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public List<Model.CountryObject>? PublicGetCountries(PublicGetCountries input)
{
var response = _sdk.RunRequest(input);
Expand All @@ -146,6 +153,7 @@ public void DeleteCountryGroup(DeleteCountryGroup input)
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
public Dictionary<string, object>? PublicGetLanguages(PublicGetLanguages input)
{
var response = _sdk.RunRequest(input);
Expand Down
2 changes: 2 additions & 0 deletions AccelByte.Sdk/Api/Basic/Wrapper/Misc_OpExts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace AccelByte.Sdk.Api
{
public static class BasicMisc_OpExts
{
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public static List<Basic.Model.CountryObject>? Execute(
this GetCountries.GetCountriesBuilder builder,
string namespace_
Expand Down Expand Up @@ -102,6 +103,7 @@ this PublicGetTime.PublicGetTimeBuilder builder

return ((Basic.Wrapper.Misc)builder.WrapperObject!).PublicGetTime(op);
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public static List<Basic.Model.CountryObject>? Execute(
this PublicGetCountries.PublicGetCountriesBuilder builder,
string namespace_
Expand Down
Loading

0 comments on commit a60e158

Please sign in to comment.