Skip to content

Commit 26f4ba4

Browse files
committed
## Unity SDK Changes:
* `Hathora-Cloud-SDK.FleetsV2.UpdateFleetRegion()`: `request` **Changed** **Breaking** ⚠️ * `Hathora-Cloud-SDK.DeploymentsV3.GetDeployments()`: * `request.nextPageToken` **Added** * `response.nextPageToken` **Added** * `error.status[422]` **Added** * `Hathora-Cloud-SDK.DeploymentsV2.GetDeploymentsV2Deprecated()`: `error.status[500]` **Added** * `Hathora-Cloud-SDK.FleetsV2.DeprecatedUpdateFleetRegionV2()`: **Added** * `Hathora-Cloud-SDK.FleetsV1.CreateFleetDeprecated()`: `response.name` **Changed** * `Hathora-Cloud-SDK.FleetsV1.GetFleetDeprecated()`: `response.name` **Changed** * `Hathora-Cloud-SDK.FleetsV1.GetFleetRegionDeprecated()`: `response.nodeBaseline` **Added** * `Hathora-Cloud-SDK.FleetsV1.GetFleetsDeprecated()`: `response.fleets.[].name` **Changed** * `Hathora-Cloud-SDK.FleetsV2.GetFleetRegion()`: `response.nodeBaseline` **Added** * `Hathora-Cloud-SDK.DeploymentsV1.GetDeploymentsV1Deprecated()`: `error.status[500]` **Added** * `Hathora-Cloud-SDK.ProcessesV3.CreateProcess()`: `response` **Changed** * `Hathora-Cloud-SDK.ProcessesV3.GetLatestProcesses()`: `response.[]` **Changed** * `Hathora-Cloud-SDK.ProcessesV3.GetProcess()`: `response` **Changed**
1 parent 9a440d7 commit 26f4ba4

File tree

88 files changed

+5415
-1166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+5415
-1166
lines changed

.speakeasy/gen.lock

Lines changed: 4842 additions & 970 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.656.2
1+
speakeasyVersion: 1.684.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:4a3206d670a13ac8ec9c060876590f89f57f53379a249f12246b245b59db0130
6-
sourceBlobDigest: sha256:2fe2e274bba5c6dfb6dc164ac5ab74a132e920f2c117eae58b9a972cc8202b0d
5+
sourceRevisionDigest: sha256:944cf9fb7d51ccf2dd1a4c4b4d5852233dcd053d0e7cf035087f0d47ada022c5
6+
sourceBlobDigest: sha256:ccb67af924ad02daea1d6c4c7c9d311b460be20a2cc4dc1fc81d02b486d94aff
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1758758685
9+
- speakeasy-sdk-regen-1763424269
1010
- 0.0.1
1111
targets:
1212
cloud-sdk-unity:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:4a3206d670a13ac8ec9c060876590f89f57f53379a249f12246b245b59db0130
16-
sourceBlobDigest: sha256:2fe2e274bba5c6dfb6dc164ac5ab74a132e920f2c117eae58b9a972cc8202b0d
15+
sourceRevisionDigest: sha256:944cf9fb7d51ccf2dd1a4c4b4d5852233dcd053d0e7cf035087f0d47ada022c5
16+
sourceBlobDigest: sha256:ccb67af924ad02daea1d6c4c7c9d311b460be20a2cc4dc1fc81d02b486d94aff
1717
codeSamplesNamespace: code-samples-unity-cloud-sdk-unity
18-
codeSamplesRevisionDigest: sha256:e79b0f8cba785fdeece18a83ba986597abd4f3b4a6a70051e66af35ce3d8cf49
18+
codeSamplesRevisionDigest: sha256:e27109da252948091b9a318ca446e2d7d8540188f805798333850f1444e818c7
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

HathoraCloud/AppsV1.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public class AppsV1: IAppsV1
7474
{
7575
public SDKConfig SDKConfiguration { get; private set; }
7676
private const string _target = "unity";
77-
private const string _sdkVersion = "0.31.0";
78-
private const string _sdkGenVersion = "2.753.6";
77+
private const string _sdkVersion = "0.31.1";
78+
private const string _sdkGenVersion = "2.793.0";
7979
private const string _openapiDocVersion = "0.0.1";
80-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
80+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
8181
private string _serverUrl = "";
8282
private ISpeakeasyHttpClient _defaultClient;
8383
private Func<Security>? _securitySource;

HathoraCloud/AppsV2.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ public class AppsV2: IAppsV2
8989
{
9090
public SDKConfig SDKConfiguration { get; private set; }
9191
private const string _target = "unity";
92-
private const string _sdkVersion = "0.31.0";
93-
private const string _sdkGenVersion = "2.753.6";
92+
private const string _sdkVersion = "0.31.1";
93+
private const string _sdkGenVersion = "2.793.0";
9494
private const string _openapiDocVersion = "0.0.1";
95-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
95+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
9696
private string _serverUrl = "";
9797
private ISpeakeasyHttpClient _defaultClient;
9898
private Func<Security>? _securitySource;

HathoraCloud/AuthV1.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ public class AuthV1: IAuthV1
6262
{
6363
public SDKConfig SDKConfiguration { get; private set; }
6464
private const string _target = "unity";
65-
private const string _sdkVersion = "0.31.0";
66-
private const string _sdkGenVersion = "2.753.6";
65+
private const string _sdkVersion = "0.31.1";
66+
private const string _sdkGenVersion = "2.793.0";
6767
private const string _openapiDocVersion = "0.0.1";
68-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
68+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
6969
private string _serverUrl = "";
7070
private ISpeakeasyHttpClient _defaultClient;
7171
private Func<Security>? _securitySource;

HathoraCloud/BillingV1.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public class BillingV1: IBillingV1
6565
{
6666
public SDKConfig SDKConfiguration { get; private set; }
6767
private const string _target = "unity";
68-
private const string _sdkVersion = "0.31.0";
69-
private const string _sdkGenVersion = "2.753.6";
68+
private const string _sdkVersion = "0.31.1";
69+
private const string _sdkGenVersion = "2.793.0";
7070
private const string _openapiDocVersion = "0.0.1";
71-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
71+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
7272
private string _serverUrl = "";
7373
private ISpeakeasyHttpClient _defaultClient;
7474
private Func<Security>? _securitySource;

HathoraCloud/BuildsV1.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public class BuildsV1: IBuildsV1
7474
{
7575
public SDKConfig SDKConfiguration { get; private set; }
7676
private const string _target = "unity";
77-
private const string _sdkVersion = "0.31.0";
78-
private const string _sdkGenVersion = "2.753.6";
77+
private const string _sdkVersion = "0.31.1";
78+
private const string _sdkGenVersion = "2.793.0";
7979
private const string _openapiDocVersion = "0.0.1";
80-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
80+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
8181
private string _serverUrl = "";
8282
private ISpeakeasyHttpClient _defaultClient;
8383
private Func<Security>? _securitySource;

HathoraCloud/BuildsV2.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public class BuildsV2: IBuildsV2
9292
{
9393
public SDKConfig SDKConfiguration { get; private set; }
9494
private const string _target = "unity";
95-
private const string _sdkVersion = "0.31.0";
96-
private const string _sdkGenVersion = "2.753.6";
95+
private const string _sdkVersion = "0.31.1";
96+
private const string _sdkGenVersion = "2.793.0";
9797
private const string _openapiDocVersion = "0.0.1";
98-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
98+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
9999
private string _serverUrl = "";
100100
private ISpeakeasyHttpClient _defaultClient;
101101
private Func<Security>? _securitySource;

HathoraCloud/BuildsV3.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public class BuildsV3: IBuildsV3
100100
{
101101
public SDKConfig SDKConfiguration { get; private set; }
102102
private const string _target = "unity";
103-
private const string _sdkVersion = "0.31.0";
104-
private const string _sdkGenVersion = "2.753.6";
103+
private const string _sdkVersion = "0.31.1";
104+
private const string _sdkGenVersion = "2.793.0";
105105
private const string _openapiDocVersion = "0.0.1";
106-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
106+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
107107
private string _serverUrl = "";
108108
private ISpeakeasyHttpClient _defaultClient;
109109
private Func<Security>? _securitySource;

HathoraCloud/DeploymentsV1.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public class DeploymentsV1: IDeploymentsV1
6565
{
6666
public SDKConfig SDKConfiguration { get; private set; }
6767
private const string _target = "unity";
68-
private const string _sdkVersion = "0.31.0";
69-
private const string _sdkGenVersion = "2.753.6";
68+
private const string _sdkVersion = "0.31.1";
69+
private const string _sdkGenVersion = "2.793.0";
7070
private const string _openapiDocVersion = "0.0.1";
71-
private const string _userAgent = "speakeasy-sdk/unity 0.31.0 2.753.6 0.0.1 HathoraCloud";
71+
private const string _userAgent = "speakeasy-sdk/unity 0.31.1 2.793.0 0.0.1 HathoraCloud";
7272
private string _serverUrl = "";
7373
private ISpeakeasyHttpClient _defaultClient;
7474
private Func<Security>? _securitySource;
@@ -353,6 +353,18 @@ public async Task<GetDeploymentsV1DeprecatedResponse> GetDeploymentsV1Deprecated
353353
throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse);
354354
}
355355
}
356+
else if (httpCode == 500)
357+
{
358+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
359+
{
360+
var obj = JsonConvert.DeserializeObject<ApiError>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() });
361+
throw obj!;
362+
}
363+
else
364+
{
365+
throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse);
366+
}
367+
}
356368
else if (httpCode >= 400 && httpCode < 500)
357369
{
358370
throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse);

0 commit comments

Comments
 (0)