Skip to content

Commit bebb660

Browse files
author
Unity Technologies
committed
com.unity.services.cloudcode@2.6.2
## [2.6.2] - 2024-05-03 ### Added - Added privacy manifest ### Fixed - An issue that would cache Npm and Node path at startup instead of reading them from the settings
1 parent 3b3fc5a commit bebb660

34 files changed

Lines changed: 149 additions & 593 deletions

.buginfo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
project: GBK
2+
area: Cloud Code

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [2.6.1] - 2024-03-25
7+
## [2.6.2] - 2024-05-03
8+
9+
### Added
10+
- Added privacy manifest
811

912
### Fixed
13+
- An issue that would cache Npm and Node path at startup instead of reading them from the settings
1014

15+
## [2.6.1] - 2024-03-25
16+
17+
### Fixed
1118
- Fixed JS script import when Node project is not initialized
1219

1320
## [2.6.0] - 2024-03-21

Editor/Authoring/AdminApi/Client/Apis/DefaultApiRequests.cs

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ internal class CreateModuleRequest : DefaultApiBaseRequest
395395
/// <summary>Accessor for file </summary>
396396
[Preserve]
397397
public System.IO.Stream File { get; }
398+
/// <summary>Accessor for tags </summary>
399+
[Preserve]
400+
public Dictionary<string, string> Tags { get; }
398401
string PathAndQueryParams;
399402

400403
/// <summary>
@@ -406,8 +409,9 @@ internal class CreateModuleRequest : DefaultApiBaseRequest
406409
/// <param name="name">Name of a Cloud Code module.</param>
407410
/// <param name="language">The language of a Cloud Code module.</param>
408411
/// <param name="file">Archive file containing the module assemblies.</param>
412+
/// <param name="tags">A set of user-defined tags in the form of string key-value pairs.</param>
409413
[Preserve]
410-
public CreateModuleRequest(string projectId, string environmentId, string name, string language, System.IO.Stream file)
414+
public CreateModuleRequest(string projectId, string environmentId, string name, string language, System.IO.Stream file, Dictionary<string, string> tags = default(Dictionary<string, string>))
411415
{
412416
ProjectId = projectId;
413417

@@ -416,7 +420,8 @@ public CreateModuleRequest(string projectId, string environmentId, string name,
416420
Name = name;
417421
Language = language;
418422
File = file;
419-
PathAndQueryParams = $"/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules";
423+
Tags = tags;
424+
PathAndQueryParams = $"/api/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules";
420425

421426

422427
}
@@ -443,6 +448,8 @@ public List<IMultipartFormSection> ConstructBody()
443448
requestParts.Add(new MultipartFormDataSection("name", ConstructBody(Name), "text/plain"));
444449

445450
requestParts.Add(new MultipartFormDataSection("language", ConstructBody(Language), "text/plain"));
451+
452+
requestParts.Add(new MultipartFormDataSection("tags", ConstructBody(Tags), "application/octet-stream"));
446453
requestParts.Add(GenerateMultipartFormFileSection("file", File, "application/octet-stream"));
447454

448455
return requestParts;
@@ -634,7 +641,7 @@ public DeleteModuleRequest(string projectId, string environmentId, string module
634641

635642
ModuleName = moduleName;
636643

637-
PathAndQueryParams = $"/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules/{moduleName}";
644+
PathAndQueryParams = $"/api/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules/{moduleName}";
638645

639646

640647
}
@@ -852,7 +859,7 @@ public GetModuleRequest(string projectId, string environmentId, string moduleNam
852859

853860
ModuleName = moduleName;
854861

855-
PathAndQueryParams = $"/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules/{moduleName}";
862+
PathAndQueryParams = $"/api/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules/{moduleName}";
856863

857864

858865
}
@@ -1076,7 +1083,7 @@ internal class ListModulesRequest : DefaultApiBaseRequest
10761083

10771084
Limit = limit;
10781085
After = after;
1079-
PathAndQueryParams = $"/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules";
1086+
PathAndQueryParams = $"/api/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules";
10801087

10811088
List<string> queryParams = new List<string>();
10821089

@@ -1551,6 +1558,9 @@ internal class UpdateModuleRequest : DefaultApiBaseRequest
15511558
/// <summary>Accessor for moduleName </summary>
15521559
[Preserve]
15531560
public string ModuleName { get; }
1561+
/// <summary>Accessor for tags </summary>
1562+
[Preserve]
1563+
public Dictionary<string, string> Tags { get; }
15541564
/// <summary>Accessor for file </summary>
15551565
[Preserve]
15561566
public System.IO.Stream File { get; }
@@ -1563,18 +1573,20 @@ internal class UpdateModuleRequest : DefaultApiBaseRequest
15631573
/// <param name="projectId">projectId param</param>
15641574
/// <param name="environmentId">environmentId param</param>
15651575
/// <param name="moduleName">moduleName param</param>
1576+
/// <param name="tags">A set of user-defined tags in the form of string key-value pairs.</param>
15661577
/// <param name="file">Archive file containing the module assemblies.</param>
15671578
[Preserve]
1568-
public UpdateModuleRequest(string projectId, string environmentId, string moduleName, System.IO.Stream file = default(System.IO.Stream))
1579+
public UpdateModuleRequest(string projectId, string environmentId, string moduleName, Dictionary<string, string> tags = default(Dictionary<string, string>), System.IO.Stream file = default(System.IO.Stream))
15691580
{
15701581
ProjectId = projectId;
15711582

15721583
EnvironmentId = environmentId;
15731584

15741585
ModuleName = moduleName;
15751586

1587+
Tags = tags;
15761588
File = file;
1577-
PathAndQueryParams = $"/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules/{moduleName}";
1589+
PathAndQueryParams = $"/api/cloud-code/v1/projects/{projectId}/environments/{environmentId}/modules/{moduleName}";
15781590

15791591

15801592
}
@@ -1597,6 +1609,8 @@ public string ConstructUrl(string requestBasePath)
15971609
public List<IMultipartFormSection> ConstructBody()
15981610
{
15991611
List<IMultipartFormSection> requestParts = new List<IMultipartFormSection>();
1612+
1613+
requestParts.Add(new MultipartFormDataSection("tags", ConstructBody(Tags), "application/octet-stream"));
16001614
requestParts.Add(GenerateMultipartFormFileSection("file", File, "application/octet-stream"));
16011615

16021616
return requestParts;

Editor/Authoring/AdminApi/Client/Models/CloudCodeBasicErrorResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Unity.Services.CloudCode.Authoring.Client.Models
2525
/// Referenced from - https://tools.ietf.org/html/rfc7807#page-3 Consumers MUST use the &#39;type&#39; string as the primary identifier for the problem type; the &#39;title&#39; string is advisory and included only for users who are not aware of the semantics of the URI and do not have the ability to discover them (e.g., offline log analysis). Consumers SHOULD NOT automatically dereference the type URI. The \&quot;status\&quot; member, if present, is only advisory; it conveys the HTTP status code used for the convenience of the consumer. Generators MUST use the same status code in the actual HTTP response, to assure that generic HTTP software that does not understand this format still behaves correctly. See Section 5 for further caveats regarding its use. Consumers can use the status member to determine what the original status code used by the generator was, in cases where it has been changed (e.g., by an intermediary or cache), and when message bodies persist without HTTP information. Generic HTTP software will still use the HTTP status code. The \&quot;detail\&quot; member, if present, ought to focus on helping the client correct the problem, rather than giving debugging information.
2626
/// </summary>
2727
[Preserve]
28-
[DataContract(Name = "cloud_code_basic_error_response")]
28+
[DataContract(Name = "cloud-code.basic-error-response")]
2929
internal class CloudCodeBasicErrorResponse
3030
{
3131
/// <summary>

Editor/Authoring/AdminApi/Client/Models/CloudCodeBasicErrorResponse1.cs

Lines changed: 0 additions & 182 deletions
This file was deleted.

Editor/Authoring/AdminApi/Client/Models/CloudCodeBasicErrorResponse1.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Editor/Authoring/AdminApi/Client/Models/CloudCodeCreateAnonymousPlayerResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Unity.Services.CloudCode.Authoring.Client.Models
2525
/// The details of the newly created anonymous player
2626
/// </summary>
2727
[Preserve]
28-
[DataContract(Name = "cloud_code_create_anonymous_player_response")]
28+
[DataContract(Name = "cloud-code.create-anonymous-player-response")]
2929
internal class CloudCodeCreateAnonymousPlayerResponse
3030
{
3131
/// <summary>

0 commit comments

Comments
 (0)