@maienm/pulumi-lidarr
Version:
A Pulumi package for creating and managing Lidarr resources. Based on terraform-provider-lidarr: version v1.11.0
195 lines (194 loc) • 5.06 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* <!-- subcategory:Indexers -->Indexer Nyaa resource.
* For more information refer to [Indexer](https://wiki.servarr.com/lidarr/settings#indexers) and [Nyaa](https://wiki.servarr.com/lidarr/supported#nyaa).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as lidarr from "@maienm/pulumi-lidarr";
*
* const example = new lidarr.indexers.Nyaa("example", {
* additionalParameters: "&cats=1_0&filter=1",
* baseUrl: "https://nyaa.io",
* enableAutomaticSearch: true,
* minimumSeeders: 1,
* });
* ```
*
* ## Import
*
* import using the API/UI ID
*
* ```sh
* $ pulumi import lidarr:Indexers/nyaa:Nyaa example 1
* ```
*/
export declare class Nyaa extends pulumi.CustomResource {
/**
* Get an existing Nyaa resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NyaaState, opts?: pulumi.CustomResourceOptions): Nyaa;
/**
* Returns true if the given object is an instance of Nyaa. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Nyaa;
/**
* Additional parameters.
*/
readonly additionalParameters: pulumi.Output<string>;
/**
* Base URL.
*/
readonly baseUrl: pulumi.Output<string>;
/**
* Enable automatic search flag.
*/
readonly enableAutomaticSearch: pulumi.Output<boolean>;
/**
* Enable interactive search flag.
*/
readonly enableInteractiveSearch: pulumi.Output<boolean>;
/**
* Enable RSS flag.
*/
readonly enableRss: pulumi.Output<boolean>;
/**
* Minimum seeders.
*/
readonly minimumSeeders: pulumi.Output<number>;
/**
* IndexerNyaa name.
*/
readonly name: pulumi.Output<string>;
/**
* Priority.
*/
readonly priority: pulumi.Output<number>;
/**
* Seed ratio.
*/
readonly seedRatio: pulumi.Output<number>;
/**
* Seed time.
*/
readonly seedTime: pulumi.Output<number>;
/**
* List of associated tags.
*/
readonly tags: pulumi.Output<number[]>;
/**
* Create a Nyaa resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: NyaaArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Nyaa resources.
*/
export interface NyaaState {
/**
* Additional parameters.
*/
additionalParameters?: pulumi.Input<string>;
/**
* Base URL.
*/
baseUrl?: pulumi.Input<string>;
/**
* Enable automatic search flag.
*/
enableAutomaticSearch?: pulumi.Input<boolean>;
/**
* Enable interactive search flag.
*/
enableInteractiveSearch?: pulumi.Input<boolean>;
/**
* Enable RSS flag.
*/
enableRss?: pulumi.Input<boolean>;
/**
* Minimum seeders.
*/
minimumSeeders?: pulumi.Input<number>;
/**
* IndexerNyaa name.
*/
name?: pulumi.Input<string>;
/**
* Priority.
*/
priority?: pulumi.Input<number>;
/**
* Seed ratio.
*/
seedRatio?: pulumi.Input<number>;
/**
* Seed time.
*/
seedTime?: pulumi.Input<number>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
}
/**
* The set of arguments for constructing a Nyaa resource.
*/
export interface NyaaArgs {
/**
* Additional parameters.
*/
additionalParameters?: pulumi.Input<string>;
/**
* Base URL.
*/
baseUrl: pulumi.Input<string>;
/**
* Enable automatic search flag.
*/
enableAutomaticSearch?: pulumi.Input<boolean>;
/**
* Enable interactive search flag.
*/
enableInteractiveSearch?: pulumi.Input<boolean>;
/**
* Enable RSS flag.
*/
enableRss?: pulumi.Input<boolean>;
/**
* Minimum seeders.
*/
minimumSeeders?: pulumi.Input<number>;
/**
* IndexerNyaa name.
*/
name?: pulumi.Input<string>;
/**
* Priority.
*/
priority?: pulumi.Input<number>;
/**
* Seed ratio.
*/
seedRatio?: pulumi.Input<number>;
/**
* Seed time.
*/
seedTime?: pulumi.Input<number>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
}