<filename>sdk/dotnet/Tencentcloud/Vod/GetImageSpriteTemplates.cs// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Vod
{
    public static class GetImageSpriteTemplates
    {
        /// <summary>
        /// Use this data source to query detailed information of VOD image sprite templates.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var fooImageSpriteTemplate = new Tencentcloud.Vod.ImageSpriteTemplate("fooImageSpriteTemplate", new Tencentcloud.Vod.ImageSpriteTemplateArgs
        ///         {
        ///             SampleType = "Percent",
        ///             SampleInterval = 10,
        ///             RowCount = 3,
        ///             ColumnCount = 3,
        ///             Comment = "test",
        ///             FillType = "stretch",
        ///             Width = 128,
        ///             Height = 128,
        ///             ResolutionAdaptive = false,
        ///         });
        ///         var fooImageSpriteTemplates = Tencentcloud.Vod.GetImageSpriteTemplates.Invoke(new Tencentcloud.Vod.GetImageSpriteTemplatesInvokeArgs
        ///         {
        ///             Type = "Custom",
        ///             Definition = fooImageSpriteTemplate.Id,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetImageSpriteTemplatesResult> InvokeAsync(GetImageSpriteTemplatesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetImageSpriteTemplatesResult>("tencentcloud:Vod/getImageSpriteTemplates:getImageSpriteTemplates", args ?? new GetImageSpriteTemplatesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of VOD image sprite templates.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var fooImageSpriteTemplate = new Tencentcloud.Vod.ImageSpriteTemplate("fooImageSpriteTemplate", new Tencentcloud.Vod.ImageSpriteTemplateArgs
        ///         {
        ///             SampleType = "Percent",
        ///             SampleInterval = 10,
        ///             RowCount = 3,
        ///             ColumnCount = 3,
        ///             Comment = "test",
        ///             FillType = "stretch",
        ///             Width = 128,
        ///             Height = 128,
        ///             ResolutionAdaptive = false,
        ///         });
        ///         var fooImageSpriteTemplates = Tencentcloud.Vod.GetImageSpriteTemplates.Invoke(new Tencentcloud.Vod.GetImageSpriteTemplatesInvokeArgs
        ///         {
        ///             Type = "Custom",
        ///             Definition = fooImageSpriteTemplate.Id,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetImageSpriteTemplatesResult> Invoke(GetImageSpriteTemplatesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetImageSpriteTemplatesResult>("tencentcloud:Vod/getImageSpriteTemplates:getImageSpriteTemplates", args ?? new GetImageSpriteTemplatesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetImageSpriteTemplatesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Unique ID filter of image sprite template.
        /// </summary>
        [Input("definition")]
        public string? Definition { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        /// <summary>
        /// Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
        /// </summary>
        [Input("subAppId")]
        public int? SubAppId { get; set; }

        /// <summary>
        /// Template type filter. Valid values: `Preset`, `Custom`. `Preset`: preset template; `Custom`: custom template.
        /// </summary>
        [Input("type")]
        public string? Type { get; set; }

        public GetImageSpriteTemplatesArgs()
        {
        }
    }

    public sealed class GetImageSpriteTemplatesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Unique ID filter of image sprite template.
        /// </summary>
        [Input("definition")]
        public Input<string>? Definition { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        /// <summary>
        /// Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
        /// </summary>
        [Input("subAppId")]
        public Input<int>? SubAppId { get; set; }

        /// <summary>
        /// Template type filter. Valid values: `Preset`, `Custom`. `Preset`: preset template; `Custom`: custom template.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

        public GetImageSpriteTemplatesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetImageSpriteTemplatesResult
    {
        /// <summary>
        /// Unique ID of image sprite template.
        /// </summary>
        public readonly string? Definition;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;
        public readonly int? SubAppId;
        /// <summary>
        /// A list of image sprite templates. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetImageSpriteTemplatesTemplateListResult> TemplateLists;
        /// <summary>
        /// Template type filter. Valid values: `Preset`, `Custom`. `Preset`: preset template; `Custom`: custom template.
        /// </summary>
        public readonly string? Type;

        [OutputConstructor]
        private GetImageSpriteTemplatesResult(
            string? definition,

            string id,

            string? resultOutputFile,

            int? subAppId,

            ImmutableArray<Outputs.GetImageSpriteTemplatesTemplateListResult> templateLists,

            string? type)
        {
            Definition = definition;
            Id = id;
            ResultOutputFile = resultOutputFile;
            SubAppId = subAppId;
            TemplateLists = templateLists;
            Type = type;
        }
    }
}
