Update
This commit is contained in:
55
sdk/nodejs/certificate.ts
generated
55
sdk/nodejs/certificate.ts
generated
@@ -1,4 +1,4 @@
|
||||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
||||
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
@@ -40,37 +40,37 @@ export class Certificate extends pulumi.CustomResource {
|
||||
/**
|
||||
* **Required** - The certificate.
|
||||
*/
|
||||
public readonly certificate!: pulumi.Output<string>;
|
||||
declare public readonly certificate: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Description of the certificate.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* The fingerprint of the certificate.
|
||||
*/
|
||||
public /*out*/ readonly fingerprint!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly fingerprint: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the certificate.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of projects to restrict the certificate to.
|
||||
*/
|
||||
public readonly projects!: pulumi.Output<string[]>;
|
||||
declare 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>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Restrict the certificate to one or more projects.
|
||||
*/
|
||||
public readonly restricted!: pulumi.Output<boolean>;
|
||||
declare 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>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a Certificate resource with the given unique name, arguments, and options.
|
||||
@@ -85,26 +85,29 @@ export class Certificate extends pulumi.CustomResource {
|
||||
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;
|
||||
resourceInputs["certificate"] = state?.certificate;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["fingerprint"] = state?.fingerprint;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["projects"] = state?.projects;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["restricted"] = state?.restricted;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as CertificateArgs | undefined;
|
||||
if ((!args || args.certificate === undefined) && !opts.urn) {
|
||||
if (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;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["certificate"] = args?.certificate;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["projects"] = args?.projects;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["restricted"] = args?.restricted;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["fingerprint"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -167,7 +170,7 @@ export interface CertificateArgs {
|
||||
/**
|
||||
* **Required** - Name of the certificate.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - List of projects to restrict the certificate to.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user