@maienm/pulumi-readarr
Version:
A Pulumi package for creating and managing Readarr resources. Based on terraform-provider-readarr: version v2.1.0
98 lines • 4.25 kB
JavaScript
;
// *** 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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Profile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* <!-- subcategory:Profiles -->Metadata Profile resource.
* For more information refer to [Metadata Profile](https://wiki.servarr.com/readarr/settings#metadata-profiles) documentation.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as readarr from "@maienm/pulumi-readarr";
*
* const example = new readarr.metadata.Profile("example", {
* allowedLanguages: "eng,ita",
* ignoreds: [
* "alpha",
* "beta",
* ],
* minPages: 10,
* minPopularity: 3.5,
* skipMissingDate: false,
* skipMissingIsbn: true,
* skipPartsAndSets: false,
* skipSeriesSecondary: false,
* });
* ```
*
* ## Import
*
* import using the API/UI ID
*
* ```sh
* $ pulumi import readarr:Metadata/profile:Profile example 10
* ```
*/
class Profile extends pulumi.CustomResource {
/**
* Get an existing Profile 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, id, state, opts) {
return new Profile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Profile. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Profile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["allowedLanguages"] = state ? state.allowedLanguages : undefined;
resourceInputs["ignoreds"] = state ? state.ignoreds : undefined;
resourceInputs["minPages"] = state ? state.minPages : undefined;
resourceInputs["minPopularity"] = state ? state.minPopularity : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["skipMissingDate"] = state ? state.skipMissingDate : undefined;
resourceInputs["skipMissingIsbn"] = state ? state.skipMissingIsbn : undefined;
resourceInputs["skipPartsAndSets"] = state ? state.skipPartsAndSets : undefined;
resourceInputs["skipSeriesSecondary"] = state ? state.skipSeriesSecondary : undefined;
}
else {
const args = argsOrState;
resourceInputs["allowedLanguages"] = args ? args.allowedLanguages : undefined;
resourceInputs["ignoreds"] = args ? args.ignoreds : undefined;
resourceInputs["minPages"] = args ? args.minPages : undefined;
resourceInputs["minPopularity"] = args ? args.minPopularity : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["skipMissingDate"] = args ? args.skipMissingDate : undefined;
resourceInputs["skipMissingIsbn"] = args ? args.skipMissingIsbn : undefined;
resourceInputs["skipPartsAndSets"] = args ? args.skipPartsAndSets : undefined;
resourceInputs["skipSeriesSecondary"] = args ? args.skipSeriesSecondary : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Profile.__pulumiType, name, resourceInputs, opts);
}
}
exports.Profile = Profile;
/** @internal */
Profile.__pulumiType = 'readarr:Metadata/profile:Profile';
//# sourceMappingURL=profile.js.map