Update
This commit is contained in:
91
sdk/nodejs/image.ts
generated
91
sdk/nodejs/image.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";
|
||||
@@ -28,6 +28,30 @@ import * as utilities from "./utilities";
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Image alias Example
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const alpine = new incus.Image("alpine", {
|
||||
* sourceImage: {
|
||||
* remote: "images",
|
||||
* name: "alpine/edge",
|
||||
* },
|
||||
* aliases: [
|
||||
* {
|
||||
* name: "alpine",
|
||||
* description: "Alpine Linux",
|
||||
* },
|
||||
* {
|
||||
* name: "alpine-edge",
|
||||
* description: "Alpine Linux Edge",
|
||||
* },
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Notes
|
||||
*
|
||||
* * See the Incus [documentation](https://linuxcontainers.org/incus/docs/main/howto/images_remote) for more info on default image remotes.
|
||||
@@ -61,45 +85,44 @@ export class Image extends pulumi.CustomResource {
|
||||
}
|
||||
|
||||
/**
|
||||
* *Optional* - A list of aliases to assign to the image after
|
||||
* pulling.
|
||||
* Image alias
|
||||
*/
|
||||
public readonly aliases!: pulumi.Output<string[] | undefined>;
|
||||
declare public readonly aliases: pulumi.Output<outputs.ImageAlias[] | undefined>;
|
||||
/**
|
||||
* The list of aliases that were copied from the
|
||||
* `sourceImage`.
|
||||
*/
|
||||
public /*out*/ readonly copiedAliases!: pulumi.Output<string[]>;
|
||||
declare public /*out*/ readonly copiedAliases: pulumi.Output<string[]>;
|
||||
/**
|
||||
* The datetime of image creation, in Unix time.
|
||||
*/
|
||||
public /*out*/ readonly createdAt!: pulumi.Output<number>;
|
||||
declare public /*out*/ readonly createdAt: pulumi.Output<number>;
|
||||
/**
|
||||
* The unique hash fingperint of the image.
|
||||
*/
|
||||
public /*out*/ readonly fingerprint!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly fingerprint: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the image will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *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>;
|
||||
public /*out*/ readonly resourceId!: pulumi.Output<string>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
declare public /*out*/ readonly resourceId: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The image file from the local file system from which the image will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<outputs.ImageSourceFile | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<outputs.ImageSourceFile | undefined>;
|
||||
/**
|
||||
* *Optional* - The source image from which the image will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceImage!: pulumi.Output<outputs.ImageSourceImage | undefined>;
|
||||
declare public readonly sourceImage: pulumi.Output<outputs.ImageSourceImage | undefined>;
|
||||
/**
|
||||
* *Optional* - The source instance from which the image will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceInstance!: pulumi.Output<outputs.ImageSourceInstance | undefined>;
|
||||
declare public readonly sourceInstance: pulumi.Output<outputs.ImageSourceInstance | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Image resource with the given unique name, arguments, and options.
|
||||
@@ -114,24 +137,24 @@ export class Image extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ImageState | undefined;
|
||||
resourceInputs["aliases"] = state ? state.aliases : undefined;
|
||||
resourceInputs["copiedAliases"] = state ? state.copiedAliases : undefined;
|
||||
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
||||
resourceInputs["fingerprint"] = state ? state.fingerprint : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["resourceId"] = state ? state.resourceId : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["sourceImage"] = state ? state.sourceImage : undefined;
|
||||
resourceInputs["sourceInstance"] = state ? state.sourceInstance : undefined;
|
||||
resourceInputs["aliases"] = state?.aliases;
|
||||
resourceInputs["copiedAliases"] = state?.copiedAliases;
|
||||
resourceInputs["createdAt"] = state?.createdAt;
|
||||
resourceInputs["fingerprint"] = state?.fingerprint;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["resourceId"] = state?.resourceId;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["sourceImage"] = state?.sourceImage;
|
||||
resourceInputs["sourceInstance"] = state?.sourceInstance;
|
||||
} else {
|
||||
const args = argsOrState as ImageArgs | undefined;
|
||||
resourceInputs["aliases"] = args ? args.aliases : undefined;
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["sourceImage"] = args ? args.sourceImage : undefined;
|
||||
resourceInputs["sourceInstance"] = args ? args.sourceInstance : undefined;
|
||||
resourceInputs["aliases"] = args?.aliases;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["sourceImage"] = args?.sourceImage;
|
||||
resourceInputs["sourceInstance"] = args?.sourceInstance;
|
||||
resourceInputs["copiedAliases"] = undefined /*out*/;
|
||||
resourceInputs["createdAt"] = undefined /*out*/;
|
||||
resourceInputs["fingerprint"] = undefined /*out*/;
|
||||
@@ -147,10 +170,9 @@ export class Image extends pulumi.CustomResource {
|
||||
*/
|
||||
export interface ImageState {
|
||||
/**
|
||||
* *Optional* - A list of aliases to assign to the image after
|
||||
* pulling.
|
||||
* Image alias
|
||||
*/
|
||||
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
|
||||
/**
|
||||
* The list of aliases that were copied from the
|
||||
* `sourceImage`.
|
||||
@@ -193,10 +215,9 @@ export interface ImageState {
|
||||
*/
|
||||
export interface ImageArgs {
|
||||
/**
|
||||
* *Optional* - A list of aliases to assign to the image after
|
||||
* pulling.
|
||||
* Image alias
|
||||
*/
|
||||
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the image will be stored.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user