diff --git a/Doxyfile b/Doxyfile index 2855f9cf..b8764548 100644 --- a/Doxyfile +++ b/Doxyfile @@ -48,7 +48,7 @@ PROJECT_NAME = UGemini # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 2.0.0-preview.2 +PROJECT_NUMBER = 2.0.0-preview.3 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Delete/GeminiFileDeleteRequest.cs b/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Delete/GeminiFileDeleteRequest.cs index 01ddd049..80690925 100644 --- a/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Delete/GeminiFileDeleteRequest.cs +++ b/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Delete/GeminiFileDeleteRequest.cs @@ -22,13 +22,13 @@ public string GetEndpointUri(GeminiRequestMetadata metadata) } /// - /// Creates a new . + /// Creates a new . /// - /// The ID of the file to delete. + /// The name (format 'files/{fileId}') or ID of the file to delete. /// Should the request use the Beta API? - public GeminiFileDeleteRequest(string fileId, bool useBetaApi = true) + public GeminiFileDeleteRequest(string fileNameOrId, bool useBetaApi = true) { - FileId = fileId; + FileId = fileNameOrId.Split('/')[^1]; ApiVersion = useBetaApi ? "v1beta" : "v1"; } } diff --git a/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Get/GeminiFileGetRequest.cs b/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Get/GeminiFileGetRequest.cs index 4d35b012..a937ebb4 100644 --- a/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Get/GeminiFileGetRequest.cs +++ b/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/Get/GeminiFileGetRequest.cs @@ -24,11 +24,11 @@ public string GetEndpointUri(GeminiRequestMetadata metadata) /// /// Creates a new . /// - /// The ID of the file to get. + /// The name (format 'files/{fileId}') or ID of the file to get. /// Should the request use the Beta API? - public GeminiFileGetRequest(string fileId, bool useBetaApi = true) + public GeminiFileGetRequest(string fileNameOrId, bool useBetaApi = true) { - FileId = fileId; + FileId = fileNameOrId.Split('/')[^1]; ApiVersion = useBetaApi ? "v1beta" : "v1"; } } diff --git a/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/List/GeminiFileListRequest.cs b/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/List/GeminiFileListRequest.cs index 18aa790d..a0e86e40 100644 --- a/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/List/GeminiFileListRequest.cs +++ b/UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/Files/List/GeminiFileListRequest.cs @@ -29,7 +29,7 @@ public string GetEndpointUri(GeminiRequestMetadata metadata) } /// - /// Creates a new . + /// Creates a new . /// /// Should the request use the Beta API? public GeminiFileListRequest(bool useBetaApi = true) diff --git a/UGemini/Packages/com.uralstech.ugemini/package.json b/UGemini/Packages/com.uralstech.ugemini/package.json index 679000ef..6cd514e3 100644 --- a/UGemini/Packages/com.uralstech.ugemini/package.json +++ b/UGemini/Packages/com.uralstech.ugemini/package.json @@ -9,7 +9,7 @@ "AI", "Integration" ], - "version": "2.0.0-preview.2", + "version": "2.0.0-preview.3", "unity": "2022.3", "hideInEditor": false, "documentationUrl": "https://github.com/Uralstech/UGemini/blob/master/UGemini/Packages/com.uralstech.ugemini/Documentation~/README.md",