Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ public AkamaiNetStorageDestination(
public AkamaiNetStorageDestination()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,6 @@ public AkamaiNetStorageDestinationOptions(
public AkamaiNetStorageDestinationOptions()
{
}

}
}
105 changes: 105 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public bool TryPickVideo(
return IsVideo;
}

/// <summary>
///
/// </summary>
public global::Shotstack.VideoAsset PickVideo() => IsVideo
? Video!
: throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}.");

/// <summary>
/// The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
/// </summary>
Expand Down Expand Up @@ -74,6 +81,13 @@ public bool TryPickImage(
return IsImage;
}

/// <summary>
///
/// </summary>
public global::Shotstack.ImageAsset PickImage() => IsImage
? Image!
: throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}.");

/// <summary>
/// The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom<br/>
/// [Fonts](#tocs_font). You can also add a background bounding box used to control wrapping and overflow. Emoticons are also supported.
Expand Down Expand Up @@ -105,6 +119,13 @@ public bool TryPickText(
return IsText;
}

/// <summary>
///
/// </summary>
public global::Shotstack.TextAsset PickText() => IsText
? Text!
: throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}.");

/// <summary>
/// The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,<br/>
/// animations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.
Expand Down Expand Up @@ -136,6 +157,13 @@ public bool TryPickRichText(
return IsRichText;
}

/// <summary>
///
/// </summary>
public global::Shotstack.RichTextAsset PickRichText() => IsRichText
? RichText!
: throw new global::System.InvalidOperationException($"Expected union variant 'RichText' but the value was {ToString()}.");

/// <summary>
/// The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
/// </summary>
Expand Down Expand Up @@ -166,6 +194,13 @@ public bool TryPickAudio(
return IsAudio;
}

/// <summary>
///
/// </summary>
public global::Shotstack.AudioAsset PickAudio() => IsAudio
? Audio!
: throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}.");

/// <summary>
/// The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
/// </summary>
Expand Down Expand Up @@ -196,6 +231,13 @@ public bool TryPickLuma(
return IsLuma;
}

/// <summary>
///
/// </summary>
public global::Shotstack.LumaAsset PickLuma() => IsLuma
? Luma!
: throw new global::System.InvalidOperationException($"Expected union variant 'Luma' but the value was {ToString()}.");

/// <summary>
/// The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will<br/>
/// be read and burnt to the video.<br/>
Expand Down Expand Up @@ -232,6 +274,13 @@ public bool TryPickCaption(
return IsCaption;
}

/// <summary>
///
/// </summary>
public global::Shotstack.CaptionAsset PickCaption() => IsCaption
? Caption!
: throw new global::System.InvalidOperationException($"Expected union variant 'Caption' but the value was {ToString()}.");

/// <summary>
/// The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports<br/>
/// karaoke-style highlighting, word-by-word animations, and advanced typography. Captions can be<br/>
Expand Down Expand Up @@ -265,6 +314,13 @@ public bool TryPickRichCaption(
return IsRichCaption;
}

/// <summary>
///
/// </summary>
public global::Shotstack.RichCaptionAsset PickRichCaption() => IsRichCaption
? RichCaption!
: throw new global::System.InvalidOperationException($"Expected union variant 'RichCaption' but the value was {ToString()}.");

/// <summary>
/// **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**<br/>
/// The HtmlAsset clip type lets you create text based layout and formatting using<br/>
Expand Down Expand Up @@ -298,6 +354,13 @@ public bool TryPickHtml(
return IsHtml;
}

/// <summary>
///
/// </summary>
public global::Shotstack.HtmlAsset PickHtml() => IsHtml
? Html!
: throw new global::System.InvalidOperationException($"Expected union variant 'Html' but the value was {ToString()}.");

/// <summary>
/// **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**<br/>
/// The TitleAsset clip type lets you create video titles from a text string and apply styling and positioning.
Expand Down Expand Up @@ -329,6 +392,13 @@ public bool TryPickTitle(
return IsTitle;
}

/// <summary>
///
/// </summary>
public global::Shotstack.TitleAsset PickTitle() => IsTitle
? Title!
: throw new global::System.InvalidOperationException($"Expected union variant 'Title' but the value was {ToString()}.");

/// <summary>
/// The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.<br/>
/// You can manipulate properties such as rotation to create dynamic effects like a diamond shape or stripes.
Expand Down Expand Up @@ -360,6 +430,13 @@ public bool TryPickShape(
return IsShape;
}

/// <summary>
///
/// </summary>
public global::Shotstack.ShapeAsset PickShape() => IsShape
? Shape!
: throw new global::System.InvalidOperationException($"Expected union variant 'Shape' but the value was {ToString()}.");

/// <summary>
/// The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.<br/>
/// **Supported elements:** `&lt;path&gt;`, `&lt;rect&gt;`, `&lt;circle&gt;`, `&lt;ellipse&gt;`,<br/>
Expand Down Expand Up @@ -400,6 +477,13 @@ public bool TryPickSvg(
return IsSvg;
}

/// <summary>
///
/// </summary>
public global::Shotstack.SvgAsset PickSvg() => IsSvg
? Svg!
: throw new global::System.InvalidOperationException($"Expected union variant 'Svg' but the value was {ToString()}.");

/// <summary>
/// The TextToImageAsset lets you create a dynamic image from a text prompt.
/// </summary>
Expand Down Expand Up @@ -430,6 +514,13 @@ public bool TryPickTextToImage(
return IsTextToImage;
}

/// <summary>
///
/// </summary>
public global::Shotstack.TextToImageAsset PickTextToImage() => IsTextToImage
? TextToImage!
: throw new global::System.InvalidOperationException($"Expected union variant 'TextToImage' but the value was {ToString()}.");

/// <summary>
/// The ImageToVideoAsset lets you create a video from an image and a text prompt.
/// </summary>
Expand Down Expand Up @@ -460,6 +551,13 @@ public bool TryPickImageToVideo(
return IsImageToVideo;
}

/// <summary>
///
/// </summary>
public global::Shotstack.ImageToVideoAsset PickImageToVideo() => IsImageToVideo
? ImageToVideo!
: throw new global::System.InvalidOperationException($"Expected union variant 'ImageToVideo' but the value was {ToString()}.");

/// <summary>
/// The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset.
/// </summary>
Expand Down Expand Up @@ -489,6 +587,13 @@ public bool TryPickTextToSpeech(
value = TextToSpeech;
return IsTextToSpeech;
}

/// <summary>
///
/// </summary>
public global::Shotstack.TextToSpeechAsset PickTextToSpeech() => IsTextToSpeech
? TextToSpeech!
: throw new global::System.InvalidOperationException($"Expected union variant 'TextToSpeech' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public AssetDiscriminator(
public AssetDiscriminator()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public AssetRenderResponse(
public AssetRenderResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public AssetResponse(
public AssetResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,6 @@ public AssetResponseAttributes(
public AssetResponseAttributes()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ public AssetResponseData(
public AssetResponseData()
{
}

}
}
13 changes: 13 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.Models.AudioAsset.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,18 @@ public AudioAsset(
public AudioAsset()
{
}

/// <summary>
/// Creates a new <see cref="AudioAsset"/> from its single non-const required field,
/// hardcoding any const discriminator fields.
/// </summary>
public static AudioAsset FromSrc(string src)
{
return new AudioAsset
{
Src = src,
};
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ public bool TryPickDolby(
value = Dolby;
return IsDolby;
}

/// <summary>
///
/// </summary>
public global::Shotstack.DolbyEnhancement PickDolby() => IsDolby
? Dolby!
: throw new global::System.InvalidOperationException($"Expected union variant 'Dolby' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ public AudioEnhancementDiscriminator(
public AudioEnhancementDiscriminator()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ public AzureBlobStorageDestination(
public AzureBlobStorageDestination()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,6 @@ public AzureBlobStorageDestinationOptions(
public AzureBlobStorageDestinationOptions()
{
}

}
}
13 changes: 13 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.Models.CaptionAsset.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,18 @@ public CaptionAsset(
public CaptionAsset()
{
}

/// <summary>
/// Creates a new <see cref="CaptionAsset"/> from its single non-const required field,
/// hardcoding any const discriminator fields.
/// </summary>
public static CaptionAsset FromSrc(string src)
{
return new CaptionAsset
{
Src = src,
};
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@ public CaptionBackground(
public CaptionBackground()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,6 @@ public CaptionFont(
public CaptionFont()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ public CaptionMargin(
public CaptionMargin()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ public ChromaKey(
public ChromaKey()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Shotstack/Generated/Shotstack.Models.Clip.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,6 @@ public Clip(
public Clip()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Shotstack/Generated/Shotstack.Models.Crop.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ public Crop(
public Crop()
{
}

}
}
Loading