build nodejs
This commit is contained in:
189
sdk/nodejs/certificate.ts
generated
Normal file
189
sdk/nodejs/certificate.ts
generated
Normal file
@@ -0,0 +1,189 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.Certificate
|
||||
*
|
||||
* Manages an Incus certificate.
|
||||
*/
|
||||
export class Certificate extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing Certificate 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.
|
||||
*/
|
||||
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate {
|
||||
return new Certificate(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'incus:index/certificate:Certificate';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of Certificate. This is designed to work even
|
||||
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
||||
*/
|
||||
public static isInstance(obj: any): obj is Certificate {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === Certificate.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* **Required** - The certificate.
|
||||
*/
|
||||
public readonly certificate!: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Description of the certificate.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
/**
|
||||
* The fingerprint of the certificate.
|
||||
*/
|
||||
public /*out*/ readonly fingerprint!: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the certificate.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of projects to restrict the certificate to.
|
||||
*/
|
||||
public readonly projects!: pulumi.Output<string[]>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Restrict the certificate to one or more projects.
|
||||
*/
|
||||
public readonly restricted!: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - The type of certificate to create. Can be one of: client,
|
||||
* or metrics. If no type is specified, a client certificate is created.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a Certificate 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: CertificateArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: CertificateArgs | CertificateState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as CertificateState | undefined;
|
||||
resourceInputs["certificate"] = state ? state.certificate : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["fingerprint"] = state ? state.fingerprint : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["projects"] = state ? state.projects : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["restricted"] = state ? state.restricted : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
} else {
|
||||
const args = argsOrState as CertificateArgs | undefined;
|
||||
if ((!args || args.certificate === undefined) && !opts.urn) {
|
||||
throw new Error("Missing required property 'certificate'");
|
||||
}
|
||||
resourceInputs["certificate"] = args ? args.certificate : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["projects"] = args ? args.projects : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["restricted"] = args ? args.restricted : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
resourceInputs["fingerprint"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Certificate.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering Certificate resources.
|
||||
*/
|
||||
export interface CertificateState {
|
||||
/**
|
||||
* **Required** - The certificate.
|
||||
*/
|
||||
certificate?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Description of the certificate.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* The fingerprint of the certificate.
|
||||
*/
|
||||
fingerprint?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the certificate.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - List of projects to restrict the certificate to.
|
||||
*/
|
||||
projects?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Restrict the certificate to one or more projects.
|
||||
*/
|
||||
restricted?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* *Optional* - The type of certificate to create. Can be one of: client,
|
||||
* or metrics. If no type is specified, a client certificate is created.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a Certificate resource.
|
||||
*/
|
||||
export interface CertificateArgs {
|
||||
/**
|
||||
* **Required** - The certificate.
|
||||
*/
|
||||
certificate: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Description of the certificate.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the certificate.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - List of projects to restrict the certificate to.
|
||||
*/
|
||||
projects?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Restrict the certificate to one or more projects.
|
||||
*/
|
||||
restricted?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* *Optional* - The type of certificate to create. Can be one of: client,
|
||||
* or metrics. If no type is specified, a client certificate is created.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
Reference in New Issue
Block a user