@pulumiverse/harbor
Version:
A Pulumi package for creating and managing Harbor resources.
68 lines • 3.71 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigSystem = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*/
class ConfigSystem extends pulumi.CustomResource {
/**
* Get an existing ConfigSystem 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 ConfigSystem(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ConfigSystem. 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'] === ConfigSystem.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["auditLogForwardEndpoint"] = state ? state.auditLogForwardEndpoint : undefined;
resourceInputs["bannerMessage"] = state ? state.bannerMessage : undefined;
resourceInputs["projectCreationRestriction"] = state ? state.projectCreationRestriction : undefined;
resourceInputs["readOnly"] = state ? state.readOnly : undefined;
resourceInputs["robotNamePrefix"] = state ? state.robotNamePrefix : undefined;
resourceInputs["robotTokenExpiration"] = state ? state.robotTokenExpiration : undefined;
resourceInputs["scannerSkipUpdatePulltime"] = state ? state.scannerSkipUpdatePulltime : undefined;
resourceInputs["skipAuditLogDatabase"] = state ? state.skipAuditLogDatabase : undefined;
resourceInputs["storagePerProject"] = state ? state.storagePerProject : undefined;
}
else {
const args = argsOrState;
resourceInputs["auditLogForwardEndpoint"] = args ? args.auditLogForwardEndpoint : undefined;
resourceInputs["bannerMessage"] = args ? args.bannerMessage : undefined;
resourceInputs["projectCreationRestriction"] = args ? args.projectCreationRestriction : undefined;
resourceInputs["readOnly"] = args ? args.readOnly : undefined;
resourceInputs["robotNamePrefix"] = args ? args.robotNamePrefix : undefined;
resourceInputs["robotTokenExpiration"] = args ? args.robotTokenExpiration : undefined;
resourceInputs["scannerSkipUpdatePulltime"] = args ? args.scannerSkipUpdatePulltime : undefined;
resourceInputs["skipAuditLogDatabase"] = args ? args.skipAuditLogDatabase : undefined;
resourceInputs["storagePerProject"] = args ? args.storagePerProject : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ConfigSystem.__pulumiType, name, resourceInputs, opts);
}
}
exports.ConfigSystem = ConfigSystem;
/** @internal */
ConfigSystem.__pulumiType = 'harbor:index/configSystem:ConfigSystem';
//# sourceMappingURL=configSystem.js.map