@pulumiverse/harbor
Version:
A Pulumi package for creating and managing Harbor resources.
84 lines • 4.11 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.Project = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*
* ### Hosted
*
* ### Proxy
*
* ## Import
*
* ```sh
* $ pulumi import harbor:index/project:Project main /projects/1
* ```
*/
class Project extends pulumi.CustomResource {
/**
* Get an existing Project 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 Project(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Project. 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'] === Project.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["autoSbomGeneration"] = state ? state.autoSbomGeneration : undefined;
resourceInputs["cveAllowlists"] = state ? state.cveAllowlists : undefined;
resourceInputs["deploymentSecurity"] = state ? state.deploymentSecurity : undefined;
resourceInputs["enableContentTrust"] = state ? state.enableContentTrust : undefined;
resourceInputs["enableContentTrustCosign"] = state ? state.enableContentTrustCosign : undefined;
resourceInputs["forceDestroy"] = state ? state.forceDestroy : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["projectId"] = state ? state.projectId : undefined;
resourceInputs["public"] = state ? state.public : undefined;
resourceInputs["registryId"] = state ? state.registryId : undefined;
resourceInputs["storageQuota"] = state ? state.storageQuota : undefined;
resourceInputs["vulnerabilityScanning"] = state ? state.vulnerabilityScanning : undefined;
}
else {
const args = argsOrState;
resourceInputs["autoSbomGeneration"] = args ? args.autoSbomGeneration : undefined;
resourceInputs["cveAllowlists"] = args ? args.cveAllowlists : undefined;
resourceInputs["deploymentSecurity"] = args ? args.deploymentSecurity : undefined;
resourceInputs["enableContentTrust"] = args ? args.enableContentTrust : undefined;
resourceInputs["enableContentTrustCosign"] = args ? args.enableContentTrustCosign : undefined;
resourceInputs["forceDestroy"] = args ? args.forceDestroy : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["public"] = args ? args.public : undefined;
resourceInputs["registryId"] = args ? args.registryId : undefined;
resourceInputs["storageQuota"] = args ? args.storageQuota : undefined;
resourceInputs["vulnerabilityScanning"] = args ? args.vulnerabilityScanning : undefined;
resourceInputs["projectId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Project.__pulumiType, name, resourceInputs, opts);
}
}
exports.Project = Project;
/** @internal */
Project.__pulumiType = 'harbor:index/project:Project';
//# sourceMappingURL=project.js.map