From d4efda39ce1afaae0a084bf623dd0d5281836844 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 17 Jul 2026 16:10:56 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Shotstack.Models.GoogleDriveDestination.g.cs | 7 +++---- ...otstack.Models.GoogleDriveDestinationOptions.g.cs | 11 +++++------ src/libs/Shotstack/openapi.json | 12 ++++-------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestination.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestination.g.cs index 90023cc..e46d813 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestination.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestination.g.cs @@ -23,8 +23,7 @@ public sealed partial class GoogleDriveDestination /// Pass the folder ID and options to configure how assets are stored in Google Drive. /// [global::System.Text.Json.Serialization.JsonPropertyName("options")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Shotstack.GoogleDriveDestinationOptions Options { get; set; } + public global::Shotstack.GoogleDriveDestinationOptions? Options { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,10 +47,10 @@ public sealed partial class GoogleDriveDestination #endif public GoogleDriveDestination( string provider, - global::Shotstack.GoogleDriveDestinationOptions options) + global::Shotstack.GoogleDriveDestinationOptions? options) { this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); - this.Options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + this.Options = options; } /// diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestinationOptions.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestinationOptions.g.cs index 6bee0ba..a5afe78 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestinationOptions.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.GoogleDriveDestinationOptions.g.cs @@ -9,13 +9,12 @@ namespace Shotstack public sealed partial class GoogleDriveDestinationOptions { /// - /// The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href="#">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.
+ /// The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href="#">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.
/// Example: 1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A ///
/// 1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A [global::System.Text.Json.Serialization.JsonPropertyName("folderId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FolderId { get; set; } + public string? FolderId { get; set; } /// /// Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.
@@ -35,7 +34,7 @@ public sealed partial class GoogleDriveDestinationOptions /// Initializes a new instance of the class. ///
/// - /// The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href="#">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.
+ /// The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href="#">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.
/// Example: 1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A /// /// @@ -46,10 +45,10 @@ public sealed partial class GoogleDriveDestinationOptions [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleDriveDestinationOptions( - string folderId, + string? folderId, string? filename) { - this.FolderId = folderId ?? throw new global::System.ArgumentNullException(nameof(folderId)); + this.FolderId = folderId; this.Filename = filename; } diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index 5f7ec32..9ded7aa 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -3806,21 +3806,20 @@ "example": "google-drive" }, "options": { - "description": "Additional Google Drive configuration and features.", + "description": "Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename.", "$ref": "#/components/schemas/GoogleDriveDestinationOptions" } }, "type": "object", "required": [ - "provider", - "options" + "provider" ] }, "GoogleDriveDestinationOptions": { "description": "Pass the folder ID and options to configure how assets are stored in Google Drive.", "properties": { "folderId": { - "description": "The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A.", + "description": "The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A.", "type": "string", "example": "1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A" }, @@ -3829,10 +3828,7 @@ "type": "string", "example": "my-file" } - }, - "required": [ - "folderId" - ] + } }, "VimeoDestination": { "description": "Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.",