// *** 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 PiersKarsenbarg.Octopusdeploy
{
    public static class GetFeeds
    {
        /// <summary>
        /// Provides information about existing feeds.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using System.Linq;
        /// using Pulumi;
        /// using Octopusdeploy = Pulumi.Octopusdeploy;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Octopusdeploy.GetFeeds.Invoke(new()
        ///     {
        ///         FeedType = "NuGet",
        ///         Ids = new[]
        ///         {
        ///             "Feeds-123",
        ///             "Feeds-321",
        ///         },
        ///         PartialName = "Develop",
        ///         Skip = 5,
        ///         Take = 100,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetFeedsResult> InvokeAsync(GetFeedsArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetFeedsResult>("octopusdeploy:index/getFeeds:getFeeds", args ?? new GetFeedsArgs(), options.WithDefaults());

        /// <summary>
        /// Provides information about existing feeds.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using System.Linq;
        /// using Pulumi;
        /// using Octopusdeploy = Pulumi.Octopusdeploy;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Octopusdeploy.GetFeeds.Invoke(new()
        ///     {
        ///         FeedType = "NuGet",
        ///         Ids = new[]
        ///         {
        ///             "Feeds-123",
        ///             "Feeds-321",
        ///         },
        ///         PartialName = "Develop",
        ///         Skip = 5,
        ///         Take = 100,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetFeedsResult> Invoke(GetFeedsInvokeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetFeedsResult>("octopusdeploy:index/getFeeds:getFeeds", args ?? new GetFeedsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetFeedsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// A filter to search by feed type. Valid feed types are `AwsElasticContainerRegistry`, `BuiltIn`, `Docker`, `GitHub`, `Helm`, `Maven`, `NuGet`, or `OctopusProject`.
        /// </summary>
        [Input("feedType")]
        public string? FeedType { get; set; }

        [Input("feeds")]
        private List<Inputs.GetFeedsFeedArgs>? _feeds;

        /// <summary>
        /// A list of feeds that match the filter(s).
        /// </summary>
        public List<Inputs.GetFeedsFeedArgs> Feeds
        {
            get => _feeds ?? (_feeds = new List<Inputs.GetFeedsFeedArgs>());
            set => _feeds = value;
        }

        [Input("ids")]
        private List<string>? _ids;

        /// <summary>
        /// A filter to search by a list of IDs.
        /// </summary>
        public List<string> Ids
        {
            get => _ids ?? (_ids = new List<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A filter to search by name.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        /// <summary>
        /// A filter to search by the partial match of a name.
        /// </summary>
        [Input("partialName")]
        public string? PartialName { get; set; }

        /// <summary>
        /// A filter to specify the number of items to skip in the response.
        /// </summary>
        [Input("skip")]
        public int? Skip { get; set; }

        /// <summary>
        /// A filter to specify the number of items to take (or return) in the response.
        /// </summary>
        [Input("take")]
        public int? Take { get; set; }

        public GetFeedsArgs()
        {
        }
        public static new GetFeedsArgs Empty => new GetFeedsArgs();
    }

    public sealed class GetFeedsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// A filter to search by feed type. Valid feed types are `AwsElasticContainerRegistry`, `BuiltIn`, `Docker`, `GitHub`, `Helm`, `Maven`, `NuGet`, or `OctopusProject`.
        /// </summary>
        [Input("feedType")]
        public Input<string>? FeedType { get; set; }

        [Input("feeds")]
        private InputList<Inputs.GetFeedsFeedInputArgs>? _feeds;

        /// <summary>
        /// A list of feeds that match the filter(s).
        /// </summary>
        public InputList<Inputs.GetFeedsFeedInputArgs> Feeds
        {
            get => _feeds ?? (_feeds = new InputList<Inputs.GetFeedsFeedInputArgs>());
            set => _feeds = value;
        }

        [Input("ids")]
        private InputList<string>? _ids;

        /// <summary>
        /// A filter to search by a list of IDs.
        /// </summary>
        public InputList<string> Ids
        {
            get => _ids ?? (_ids = new InputList<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A filter to search by name.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// A filter to search by the partial match of a name.
        /// </summary>
        [Input("partialName")]
        public Input<string>? PartialName { get; set; }

        /// <summary>
        /// A filter to specify the number of items to skip in the response.
        /// </summary>
        [Input("skip")]
        public Input<int>? Skip { get; set; }

        /// <summary>
        /// A filter to specify the number of items to take (or return) in the response.
        /// </summary>
        [Input("take")]
        public Input<int>? Take { get; set; }

        public GetFeedsInvokeArgs()
        {
        }
        public static new GetFeedsInvokeArgs Empty => new GetFeedsInvokeArgs();
    }


    [OutputType]
    public sealed class GetFeedsResult
    {
        /// <summary>
        /// A filter to search by feed type. Valid feed types are `AwsElasticContainerRegistry`, `BuiltIn`, `Docker`, `GitHub`, `Helm`, `Maven`, `NuGet`, or `OctopusProject`.
        /// </summary>
        public readonly string? FeedType;
        /// <summary>
        /// A list of feeds that match the filter(s).
        /// </summary>
        public readonly ImmutableArray<Outputs.GetFeedsFeedResult> Feeds;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A filter to search by a list of IDs.
        /// </summary>
        public readonly ImmutableArray<string> Ids;
        /// <summary>
        /// A filter to search by name.
        /// </summary>
        public readonly string? Name;
        /// <summary>
        /// A filter to search by the partial match of a name.
        /// </summary>
        public readonly string? PartialName;
        /// <summary>
        /// A filter to specify the number of items to skip in the response.
        /// </summary>
        public readonly int? Skip;
        /// <summary>
        /// A filter to specify the number of items to take (or return) in the response.
        /// </summary>
        public readonly int? Take;

        [OutputConstructor]
        private GetFeedsResult(
            string? feedType,

            ImmutableArray<Outputs.GetFeedsFeedResult> feeds,

            string id,

            ImmutableArray<string> ids,

            string? name,

            string? partialName,

            int? skip,

            int? take)
        {
            FeedType = feedType;
            Feeds = feeds;
            Id = id;
            Ids = ids;
            Name = name;
            PartialName = partialName;
            Skip = skip;
            Take = take;
        }
    }
}
