Update
This commit is contained in:
1
sdk/nodejs/.gitattributes
generated
vendored
Normal file
1
sdk/nodejs/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* linguist-generated
|
||||
2
sdk/nodejs/.gitignore
generated
vendored
Normal file
2
sdk/nodejs/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
bin/
|
||||
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.
|
||||
*/
|
||||
|
||||
42
sdk/nodejs/clusterGroup.ts
generated
42
sdk/nodejs/clusterGroup.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";
|
||||
@@ -36,17 +36,20 @@ export class ClusterGroup extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the cluster group.
|
||||
*/
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: 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>;
|
||||
|
||||
/**
|
||||
* Create a ClusterGroup resource with the given unique name, arguments, and options.
|
||||
@@ -55,22 +58,25 @@ export class ClusterGroup extends pulumi.CustomResource {
|
||||
* @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?: ClusterGroupArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: ClusterGroupArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ClusterGroupArgs | ClusterGroupState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ClusterGroupState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ClusterGroupArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(ClusterGroup.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -86,6 +92,9 @@ export interface ClusterGroupState {
|
||||
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the cluster group.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
@@ -107,11 +116,14 @@ export interface ClusterGroupArgs {
|
||||
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the cluster group.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
export class ClusterGroupAssignment extends pulumi.CustomResource {
|
||||
export class ClusterGroupMember extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing ClusterGroupAssignment resource's state with the given name, ID, and optional extra
|
||||
* Get an existing ClusterGroupMember 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.
|
||||
@@ -14,75 +14,75 @@ export class ClusterGroupAssignment extends pulumi.CustomResource {
|
||||
* @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?: ClusterGroupAssignmentState, opts?: pulumi.CustomResourceOptions): ClusterGroupAssignment {
|
||||
return new ClusterGroupAssignment(name, <any>state, { ...opts, id: id });
|
||||
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterGroupMemberState, opts?: pulumi.CustomResourceOptions): ClusterGroupMember {
|
||||
return new ClusterGroupMember(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'incus:index/clusterGroupAssignment:ClusterGroupAssignment';
|
||||
public static readonly __pulumiType = 'incus:index/clusterGroupMember:ClusterGroupMember';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of ClusterGroupAssignment. This is designed to work even
|
||||
* Returns true if the given object is an instance of ClusterGroupMember. 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 ClusterGroupAssignment {
|
||||
public static isInstance(obj: any): obj is ClusterGroupMember {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === ClusterGroupAssignment.__pulumiType;
|
||||
return obj['__pulumiType'] === ClusterGroupMember.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
public readonly clusterGroup!: pulumi.Output<string>;
|
||||
declare public readonly clusterGroup: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group member.
|
||||
*/
|
||||
public readonly member!: pulumi.Output<string>;
|
||||
declare public readonly member: 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>;
|
||||
|
||||
/**
|
||||
* Create a ClusterGroupAssignment resource with the given unique name, arguments, and options.
|
||||
* Create a ClusterGroupMember 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: ClusterGroupAssignmentArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ClusterGroupAssignmentArgs | ClusterGroupAssignmentState, opts?: pulumi.CustomResourceOptions) {
|
||||
constructor(name: string, args: ClusterGroupMemberArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ClusterGroupMemberArgs | ClusterGroupMemberState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ClusterGroupAssignmentState | undefined;
|
||||
resourceInputs["clusterGroup"] = state ? state.clusterGroup : undefined;
|
||||
resourceInputs["member"] = state ? state.member : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
const state = argsOrState as ClusterGroupMemberState | undefined;
|
||||
resourceInputs["clusterGroup"] = state?.clusterGroup;
|
||||
resourceInputs["member"] = state?.member;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ClusterGroupAssignmentArgs | undefined;
|
||||
if ((!args || args.clusterGroup === undefined) && !opts.urn) {
|
||||
const args = argsOrState as ClusterGroupMemberArgs | undefined;
|
||||
if (args?.clusterGroup === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'clusterGroup'");
|
||||
}
|
||||
if ((!args || args.member === undefined) && !opts.urn) {
|
||||
if (args?.member === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'member'");
|
||||
}
|
||||
resourceInputs["clusterGroup"] = args ? args.clusterGroup : undefined;
|
||||
resourceInputs["member"] = args ? args.member : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["clusterGroup"] = args?.clusterGroup;
|
||||
resourceInputs["member"] = args?.member;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(ClusterGroupAssignment.__pulumiType, name, resourceInputs, opts);
|
||||
super(ClusterGroupMember.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering ClusterGroupAssignment resources.
|
||||
* Input properties used for looking up and filtering ClusterGroupMember resources.
|
||||
*/
|
||||
export interface ClusterGroupAssignmentState {
|
||||
export interface ClusterGroupMemberState {
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
@@ -99,9 +99,9 @@ export interface ClusterGroupAssignmentState {
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a ClusterGroupAssignment resource.
|
||||
* The set of arguments for constructing a ClusterGroupMember resource.
|
||||
*/
|
||||
export interface ClusterGroupAssignmentArgs {
|
||||
export interface ClusterGroupMemberArgs {
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
2
sdk/nodejs/config/index.ts
generated
2
sdk/nodejs/config/index.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! ***
|
||||
|
||||
// Export members:
|
||||
|
||||
16
sdk/nodejs/config/vars.ts
generated
16
sdk/nodejs/config/vars.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";
|
||||
@@ -31,6 +31,17 @@ Object.defineProperty(exports, "configDir", {
|
||||
enumerable: true,
|
||||
});
|
||||
|
||||
/**
|
||||
* The default remote to use when no other remote is defined in a resource.
|
||||
*/
|
||||
export declare const defaultRemote: string | undefined;
|
||||
Object.defineProperty(exports, "defaultRemote", {
|
||||
get() {
|
||||
return __config.get("defaultRemote");
|
||||
},
|
||||
enumerable: true,
|
||||
});
|
||||
|
||||
/**
|
||||
* Automatically generate the Incus client certificates if they don't exist.
|
||||
*/
|
||||
@@ -43,8 +54,7 @@ Object.defineProperty(exports, "generateClientCertificates", {
|
||||
});
|
||||
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
* default)
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
*/
|
||||
export declare const project: string | undefined;
|
||||
Object.defineProperty(exports, "project", {
|
||||
|
||||
168
sdk/nodejs/getCluster.ts
generated
Normal file
168
sdk/nodejs/getCluster.ts
generated
Normal file
@@ -0,0 +1,168 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.getCluster
|
||||
*
|
||||
* Provides information about an Incus cluster.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({});
|
||||
* ```
|
||||
*
|
||||
* ## Example prevent execution if any cluster member is not online
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({
|
||||
* remote: "cluster",
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Example create resource for each cluster member
|
||||
*
|
||||
* In this example, we define the server configuration [`core.bgp_address`](https://linuxcontainers.org/incus/docs/main/server_config/#core-configuration),
|
||||
* which has scope `local`, on each cluster member.
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* export = async () => {
|
||||
* const _this = await incus.getCluster({});
|
||||
* const nodes: incus.Server[] = [];
|
||||
* for (const range of Object.entries(_this.members).map(([k, v]) => ({key: k, value: v}))) {
|
||||
* nodes.push(new incus.Server(`nodes-${range.key}`, {
|
||||
* target: _this.isClustered ? range.key : null,
|
||||
* config: {
|
||||
* "core.bgp_address": ":179",
|
||||
* },
|
||||
* }));
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* ## Notes
|
||||
*
|
||||
* * For non-clustered setups, the `members` attribute will be `null`.
|
||||
*/
|
||||
export function getCluster(args?: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult> {
|
||||
args = args || {};
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getCluster:getCluster", {
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getCluster.
|
||||
*/
|
||||
export interface GetClusterArgs {
|
||||
/**
|
||||
* *Optional* - The remote for which the Incus cluster information
|
||||
* should be queried. If not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getCluster.
|
||||
*/
|
||||
export interface GetClusterResult {
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Whether this is a clustered setup.
|
||||
*/
|
||||
readonly isClustered: boolean;
|
||||
/**
|
||||
* A map of cluster members. The key is the member name and the value
|
||||
* is a member object. See reference below.
|
||||
*/
|
||||
readonly members: {[key: string]: outputs.GetClusterMembers};
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.getCluster
|
||||
*
|
||||
* Provides information about an Incus cluster.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({});
|
||||
* ```
|
||||
*
|
||||
* ## Example prevent execution if any cluster member is not online
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({
|
||||
* remote: "cluster",
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Example create resource for each cluster member
|
||||
*
|
||||
* In this example, we define the server configuration [`core.bgp_address`](https://linuxcontainers.org/incus/docs/main/server_config/#core-configuration),
|
||||
* which has scope `local`, on each cluster member.
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* export = async () => {
|
||||
* const _this = await incus.getCluster({});
|
||||
* const nodes: incus.Server[] = [];
|
||||
* for (const range of Object.entries(_this.members).map(([k, v]) => ({key: k, value: v}))) {
|
||||
* nodes.push(new incus.Server(`nodes-${range.key}`, {
|
||||
* target: _this.isClustered ? range.key : null,
|
||||
* config: {
|
||||
* "core.bgp_address": ":179",
|
||||
* },
|
||||
* }));
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* ## Notes
|
||||
*
|
||||
* * For non-clustered setups, the `members` attribute will be `null`.
|
||||
*/
|
||||
export function getClusterOutput(args?: GetClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClusterResult> {
|
||||
args = args || {};
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getCluster:getCluster", {
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getCluster.
|
||||
*/
|
||||
export interface GetClusterOutputArgs {
|
||||
/**
|
||||
* *Optional* - The remote for which the Incus cluster information
|
||||
* should be queried. If not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
4
sdk/nodejs/getImage.ts
generated
4
sdk/nodejs/getImage.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";
|
||||
@@ -14,7 +14,6 @@ import * as utilities from "./utilities";
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const debianCustom = incus.getImage({
|
||||
* name: "debian_custom",
|
||||
@@ -102,7 +101,6 @@ export interface GetImageResult {
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const debianCustom = incus.getImage({
|
||||
* name: "debian_custom",
|
||||
|
||||
248
sdk/nodejs/getInstance.ts
generated
Normal file
248
sdk/nodejs/getInstance.ts
generated
Normal file
@@ -0,0 +1,248 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.Instance
|
||||
*
|
||||
* Provides information about an Incus instance.
|
||||
* See Incus instance [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/instance_config/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getInstance({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const instanceName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getInstance:getInstance", {
|
||||
"architecture": args.architecture,
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"ephemeral": args.ephemeral,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"profiles": args.profiles,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"stateful": args.stateful,
|
||||
"status": args.status,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getInstance.
|
||||
*/
|
||||
export interface GetInstanceArgs {
|
||||
/**
|
||||
* Architecture name.
|
||||
*/
|
||||
architecture?: string;
|
||||
/**
|
||||
* Description of the instance.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: inputs.GetInstanceDevice[];
|
||||
/**
|
||||
* Whether the instance is ephemeral (deleted on shutdown).
|
||||
*/
|
||||
ephemeral?: boolean;
|
||||
/**
|
||||
* Location of the instance.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* List of profiles applied to the instance.
|
||||
*/
|
||||
profiles?: string[];
|
||||
/**
|
||||
* *Optional* - Name of the project where the instance is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Whether the instance is stateful.
|
||||
*/
|
||||
stateful?: boolean;
|
||||
/**
|
||||
* Status of the instance.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getInstance.
|
||||
*/
|
||||
export interface GetInstanceResult {
|
||||
/**
|
||||
* Architecture name.
|
||||
*/
|
||||
readonly architecture: string;
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the instance.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
readonly devices?: outputs.GetInstanceDevice[];
|
||||
/**
|
||||
* Whether the instance is ephemeral (deleted on shutdown).
|
||||
*/
|
||||
readonly ephemeral: boolean;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Location of the instance.
|
||||
*/
|
||||
readonly location: string;
|
||||
/**
|
||||
* Name of the device.
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
* List of profiles applied to the instance.
|
||||
*/
|
||||
readonly profiles: string[];
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Whether the instance is stateful.
|
||||
*/
|
||||
readonly stateful: boolean;
|
||||
/**
|
||||
* Status of the instance.
|
||||
*/
|
||||
readonly status: string;
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.Instance
|
||||
*
|
||||
* Provides information about an Incus instance.
|
||||
* See Incus instance [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/instance_config/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getInstance({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const instanceName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getInstance:getInstance", {
|
||||
"architecture": args.architecture,
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"ephemeral": args.ephemeral,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"profiles": args.profiles,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"stateful": args.stateful,
|
||||
"status": args.status,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getInstance.
|
||||
*/
|
||||
export interface GetInstanceOutputArgs {
|
||||
/**
|
||||
* Architecture name.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* Description of the instance.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: pulumi.Input<pulumi.Input<inputs.GetInstanceDeviceArgs>[]>;
|
||||
/**
|
||||
* Whether the instance is ephemeral (deleted on shutdown).
|
||||
*/
|
||||
ephemeral?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* Location of the instance.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* List of profiles applied to the instance.
|
||||
*/
|
||||
profiles?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the instance is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Whether the instance is stateful.
|
||||
*/
|
||||
stateful?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* Status of the instance.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
198
sdk/nodejs/getNetwork.ts
generated
Normal file
198
sdk/nodejs/getNetwork.ts
generated
Normal file
@@ -0,0 +1,198 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.Network
|
||||
*
|
||||
* Provides information about an Incus network.
|
||||
* See Incus network [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/networks/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetwork({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetwork(args: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetwork:getNetwork", {
|
||||
"description": args.description,
|
||||
"locations": args.locations,
|
||||
"managed": args.managed,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetwork.
|
||||
*/
|
||||
export interface GetNetworkArgs {
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
locations?: string[];
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
managed?: boolean;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetwork.
|
||||
*/
|
||||
export interface GetNetworkResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [network config settings](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
readonly locations: string[];
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
readonly managed: boolean;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
readonly status: string;
|
||||
readonly target?: string;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.Network
|
||||
*
|
||||
* Provides information about an Incus network.
|
||||
* See Incus network [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/networks/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetwork({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkOutput(args: GetNetworkOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetwork:getNetwork", {
|
||||
"description": args.description,
|
||||
"locations": args.locations,
|
||||
"managed": args.managed,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetwork.
|
||||
*/
|
||||
export interface GetNetworkOutputArgs {
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
managed?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
157
sdk/nodejs/getNetworkAcl.ts
generated
Normal file
157
sdk/nodejs/getNetworkAcl.ts
generated
Normal file
@@ -0,0 +1,157 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkAcl
|
||||
*
|
||||
* Provides information about an Incus network ACL.
|
||||
* See Incus network ACL [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_acls/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAcl({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAclName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAcl(args: GetNetworkAclArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkAclResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkAcl:getNetworkAcl", {
|
||||
"description": args.description,
|
||||
"egresses": args.egresses,
|
||||
"ingresses": args.ingresses,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAcl.
|
||||
*/
|
||||
export interface GetNetworkAclArgs {
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* List of egress rules.
|
||||
*/
|
||||
egresses?: inputs.GetNetworkAclEgress[];
|
||||
/**
|
||||
* List of ingress rules.
|
||||
*/
|
||||
ingresses?: inputs.GetNetworkAclIngress[];
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkAcl.
|
||||
*/
|
||||
export interface GetNetworkAclResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* List of egress rules.
|
||||
*/
|
||||
readonly egresses: outputs.GetNetworkAclEgress[];
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* List of ingress rules.
|
||||
*/
|
||||
readonly ingresses: outputs.GetNetworkAclIngress[];
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkAcl
|
||||
*
|
||||
* Provides information about an Incus network ACL.
|
||||
* See Incus network ACL [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_acls/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAcl({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAclName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAclOutput(args: GetNetworkAclOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkAclResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkAcl:getNetworkAcl", {
|
||||
"description": args.description,
|
||||
"egresses": args.egresses,
|
||||
"ingresses": args.ingresses,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAcl.
|
||||
*/
|
||||
export interface GetNetworkAclOutputArgs {
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* List of egress rules.
|
||||
*/
|
||||
egresses?: pulumi.Input<pulumi.Input<inputs.GetNetworkAclEgressArgs>[]>;
|
||||
/**
|
||||
* List of ingress rules.
|
||||
*/
|
||||
ingresses?: pulumi.Input<pulumi.Input<inputs.GetNetworkAclIngressArgs>[]>;
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
141
sdk/nodejs/getNetworkAddressSet.ts
generated
Normal file
141
sdk/nodejs/getNetworkAddressSet.ts
generated
Normal file
@@ -0,0 +1,141 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkAddressSet
|
||||
*
|
||||
* Provides information about an Incus network address set.
|
||||
* See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAddressSet({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAddressSetName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAddressSet(args: GetNetworkAddressSetArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkAddressSetResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkAddressSet:getNetworkAddressSet", {
|
||||
"addresses": args.addresses,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAddressSet.
|
||||
*/
|
||||
export interface GetNetworkAddressSetArgs {
|
||||
/**
|
||||
* List of network addresses.
|
||||
*/
|
||||
addresses?: string[];
|
||||
/**
|
||||
* Description of the network address set.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkAddressSet.
|
||||
*/
|
||||
export interface GetNetworkAddressSetResult {
|
||||
/**
|
||||
* List of network addresses.
|
||||
*/
|
||||
readonly addresses: string[];
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network address set.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkAddressSet
|
||||
*
|
||||
* Provides information about an Incus network address set.
|
||||
* See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAddressSet({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAddressSetName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAddressSetOutput(args: GetNetworkAddressSetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkAddressSetResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkAddressSet:getNetworkAddressSet", {
|
||||
"addresses": args.addresses,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAddressSet.
|
||||
*/
|
||||
export interface GetNetworkAddressSetOutputArgs {
|
||||
/**
|
||||
* List of network addresses.
|
||||
*/
|
||||
addresses?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* Description of the network address set.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
181
sdk/nodejs/getNetworkForward.ts
generated
Normal file
181
sdk/nodejs/getNetworkForward.ts
generated
Normal file
@@ -0,0 +1,181 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkForward
|
||||
*
|
||||
* Provides information about an Incus network forward.
|
||||
* See Incus network forward [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_forwards/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkForward({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkForwardListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkForward(args: GetNetworkForwardArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkForwardResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkForward:getNetworkForward", {
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkForward.
|
||||
*/
|
||||
export interface GetNetworkForwardArgs {
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Listen Address of the network forward.
|
||||
*/
|
||||
listenAddress: string;
|
||||
/**
|
||||
* Location of the network forward.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: string;
|
||||
/**
|
||||
* List of ports to forward.
|
||||
*/
|
||||
ports?: inputs.GetNetworkForwardPort[];
|
||||
/**
|
||||
* *Optional* - Name of the project where the network forward is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkForward.
|
||||
*/
|
||||
export interface GetNetworkForwardResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly listenAddress: string;
|
||||
/**
|
||||
* Location of the network forward.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly network: string;
|
||||
/**
|
||||
* List of ports to forward.
|
||||
*/
|
||||
readonly ports: outputs.GetNetworkForwardPort[];
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
readonly target?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkForward
|
||||
*
|
||||
* Provides information about an Incus network forward.
|
||||
* See Incus network forward [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_forwards/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkForward({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkForwardListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkForwardOutput(args: GetNetworkForwardOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkForwardResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkForward:getNetworkForward", {
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkForward.
|
||||
*/
|
||||
export interface GetNetworkForwardOutputArgs {
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Listen Address of the network forward.
|
||||
*/
|
||||
listenAddress: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the network forward.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: pulumi.Input<string>;
|
||||
/**
|
||||
* List of ports to forward.
|
||||
*/
|
||||
ports?: pulumi.Input<pulumi.Input<inputs.GetNetworkForwardPortArgs>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network forward is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
130
sdk/nodejs/getNetworkIntegration.ts
generated
Normal file
130
sdk/nodejs/getNetworkIntegration.ts
generated
Normal file
@@ -0,0 +1,130 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkIntegration
|
||||
*
|
||||
* Provides information about an Incus network integration.
|
||||
* See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkIntegration({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkIntegrationName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkIntegration(args: GetNetworkIntegrationArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkIntegrationResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkIntegration:getNetworkIntegration", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkIntegration.
|
||||
*/
|
||||
export interface GetNetworkIntegrationArgs {
|
||||
/**
|
||||
* Description of the network integration.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Integration type.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkIntegration.
|
||||
*/
|
||||
export interface GetNetworkIntegrationResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network integration.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Integration type.
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkIntegration
|
||||
*
|
||||
* Provides information about an Incus network integration.
|
||||
* See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkIntegration({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkIntegrationName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkIntegrationOutput(args: GetNetworkIntegrationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkIntegrationResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkIntegration:getNetworkIntegration", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkIntegration.
|
||||
*/
|
||||
export interface GetNetworkIntegrationOutputArgs {
|
||||
/**
|
||||
* Description of the network integration.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Integration type.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
184
sdk/nodejs/getNetworkLoadBalancer.ts
generated
Normal file
184
sdk/nodejs/getNetworkLoadBalancer.ts
generated
Normal file
@@ -0,0 +1,184 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.getNetworkLoadBalancer
|
||||
*
|
||||
* Provides information about an Incus network load balancer.
|
||||
* See Incus network load balancer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_load_balancers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkLoadBalancer({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkLoadBalancerListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkLoadBalancer(args: GetNetworkLoadBalancerArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkLoadBalancerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", {
|
||||
"backends": args.backends,
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkLoadBalancer.
|
||||
*/
|
||||
export interface GetNetworkLoadBalancerArgs {
|
||||
/**
|
||||
* List of load balancer backends.
|
||||
*/
|
||||
backends?: inputs.GetNetworkLoadBalancerBackend[];
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Listen Address of the network load balancer.
|
||||
*/
|
||||
listenAddress: string;
|
||||
/**
|
||||
* Location of the network load balancer.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: string;
|
||||
/**
|
||||
* List of load balancer ports.
|
||||
*/
|
||||
ports?: inputs.GetNetworkLoadBalancerPort[];
|
||||
/**
|
||||
* *Optional* - Name of the project where the network load balancer is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkLoadBalancer.
|
||||
*/
|
||||
export interface GetNetworkLoadBalancerResult {
|
||||
/**
|
||||
* List of load balancer backends.
|
||||
*/
|
||||
readonly backends: outputs.GetNetworkLoadBalancerBackend[];
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly listenAddress: string;
|
||||
/**
|
||||
* Location of the network load balancer.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly network: string;
|
||||
/**
|
||||
* List of load balancer ports.
|
||||
*/
|
||||
readonly ports: outputs.GetNetworkLoadBalancerPort[];
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.getNetworkLoadBalancer
|
||||
*
|
||||
* Provides information about an Incus network load balancer.
|
||||
* See Incus network load balancer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_load_balancers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkLoadBalancer({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkLoadBalancerListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkLoadBalancerOutput(args: GetNetworkLoadBalancerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkLoadBalancerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", {
|
||||
"backends": args.backends,
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkLoadBalancer.
|
||||
*/
|
||||
export interface GetNetworkLoadBalancerOutputArgs {
|
||||
/**
|
||||
* List of load balancer backends.
|
||||
*/
|
||||
backends?: pulumi.Input<pulumi.Input<inputs.GetNetworkLoadBalancerBackendArgs>[]>;
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Listen Address of the network load balancer.
|
||||
*/
|
||||
listenAddress: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the network load balancer.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: pulumi.Input<string>;
|
||||
/**
|
||||
* List of load balancer ports.
|
||||
*/
|
||||
ports?: pulumi.Input<pulumi.Input<inputs.GetNetworkLoadBalancerPortArgs>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network load balancer is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
210
sdk/nodejs/getNetworkPeer.ts
generated
Normal file
210
sdk/nodejs/getNetworkPeer.ts
generated
Normal file
@@ -0,0 +1,210 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkPeer
|
||||
*
|
||||
* Provides information about an Incus network peer.
|
||||
* See Incus network peer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_peers/https://linuxcontainers.org/incus/docs/main/howto/network_ovn_peers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkPeer({
|
||||
* name: "default",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkPeerName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkPeer(args: GetNetworkPeerArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkPeerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkPeer:getNetworkPeer", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"network": args.network,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"targetIntegration": args.targetIntegration,
|
||||
"targetNetwork": args.targetNetwork,
|
||||
"targetProject": args.targetProject,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkPeer.
|
||||
*/
|
||||
export interface GetNetworkPeerArgs {
|
||||
/**
|
||||
* Description of the network peer.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network peer.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network peer is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Status of the network peer.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* Target integration for the network peer.
|
||||
*/
|
||||
targetIntegration?: string;
|
||||
/**
|
||||
* Target network for the network peer.
|
||||
*/
|
||||
targetNetwork?: string;
|
||||
/**
|
||||
* Target project for the network peer.
|
||||
*/
|
||||
targetProject?: string;
|
||||
/**
|
||||
* Network peer type.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkPeer.
|
||||
*/
|
||||
export interface GetNetworkPeerResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network peer.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly network: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Status of the network peer.
|
||||
*/
|
||||
readonly status: string;
|
||||
/**
|
||||
* Target integration for the network peer.
|
||||
*/
|
||||
readonly targetIntegration: string;
|
||||
/**
|
||||
* Target network for the network peer.
|
||||
*/
|
||||
readonly targetNetwork: string;
|
||||
/**
|
||||
* Target project for the network peer.
|
||||
*/
|
||||
readonly targetProject: string;
|
||||
/**
|
||||
* Network peer type.
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkPeer
|
||||
*
|
||||
* Provides information about an Incus network peer.
|
||||
* See Incus network peer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_peers/https://linuxcontainers.org/incus/docs/main/howto/network_ovn_peers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkPeer({
|
||||
* name: "default",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkPeerName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkPeerOutput(args: GetNetworkPeerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkPeerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkPeer:getNetworkPeer", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"network": args.network,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"targetIntegration": args.targetIntegration,
|
||||
"targetNetwork": args.targetNetwork,
|
||||
"targetProject": args.targetProject,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkPeer.
|
||||
*/
|
||||
export interface GetNetworkPeerOutputArgs {
|
||||
/**
|
||||
* Description of the network peer.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network peer.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network peer is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Status of the network peer.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* Target integration for the network peer.
|
||||
*/
|
||||
targetIntegration?: pulumi.Input<string>;
|
||||
/**
|
||||
* Target network for the network peer.
|
||||
*/
|
||||
targetNetwork?: pulumi.Input<string>;
|
||||
/**
|
||||
* Target project for the network peer.
|
||||
*/
|
||||
targetProject?: pulumi.Input<string>;
|
||||
/**
|
||||
* Network peer type.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
127
sdk/nodejs/getNetworkZone.ts
generated
Normal file
127
sdk/nodejs/getNetworkZone.ts
generated
Normal file
@@ -0,0 +1,127 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkZone
|
||||
*
|
||||
* Provides information about an Incus network zone.
|
||||
* See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkZone({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkZoneName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkZone(args: GetNetworkZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkZoneResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkZone:getNetworkZone", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkZone.
|
||||
*/
|
||||
export interface GetNetworkZoneArgs {
|
||||
/**
|
||||
* Description of the network zone.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkZone.
|
||||
*/
|
||||
export interface GetNetworkZoneResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network zone.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkZone
|
||||
*
|
||||
* Provides information about an Incus network zone.
|
||||
* See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkZone({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkZoneName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkZoneOutput(args: GetNetworkZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkZoneResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkZone:getNetworkZone", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkZone.
|
||||
*/
|
||||
export interface GetNetworkZoneOutputArgs {
|
||||
/**
|
||||
* Description of the network zone.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
49
sdk/nodejs/getProfile.ts
generated
49
sdk/nodejs/getProfile.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";
|
||||
@@ -10,27 +10,24 @@ import * as utilities from "./utilities";
|
||||
* ## # incus.Profile
|
||||
*
|
||||
* Provides information about an Incus profile.
|
||||
* See Incus profile [configuration reference](https://linuxcontainers.org/incus/docs/main/profiles/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProfile({
|
||||
* const _this = incus.getProfile({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* profiles: [_default.then(_default => _default.name)],
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* export const profileName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getProfile(args: GetProfileArgs, opts?: pulumi.InvokeOptions): Promise<GetProfileResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getProfile:getProfile", {
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
@@ -43,7 +40,11 @@ export function getProfile(args: GetProfileArgs, opts?: pulumi.InvokeOptions): P
|
||||
*/
|
||||
export interface GetProfileArgs {
|
||||
/**
|
||||
* Device definition. See reference below.
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: inputs.GetProfileDevice[];
|
||||
/**
|
||||
@@ -51,7 +52,7 @@ export interface GetProfileArgs {
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
* *Optional* - Name of the project where the profile is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
@@ -66,13 +67,16 @@ export interface GetProfileArgs {
|
||||
*/
|
||||
export interface GetProfileResult {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
* Map of key/value pairs of config settings.
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Device definition. See reference below.
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
readonly devices?: outputs.GetProfileDevice[];
|
||||
/**
|
||||
@@ -90,27 +94,24 @@ export interface GetProfileResult {
|
||||
* ## # incus.Profile
|
||||
*
|
||||
* Provides information about an Incus profile.
|
||||
* See Incus profile [configuration reference](https://linuxcontainers.org/incus/docs/main/profiles/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProfile({
|
||||
* const _this = incus.getProfile({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* profiles: [_default.then(_default => _default.name)],
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* export const profileName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getProfileOutput(args: GetProfileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProfileResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getProfile:getProfile", {
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
@@ -123,7 +124,11 @@ export function getProfileOutput(args: GetProfileOutputArgs, opts?: pulumi.Invok
|
||||
*/
|
||||
export interface GetProfileOutputArgs {
|
||||
/**
|
||||
* Device definition. See reference below.
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: pulumi.Input<pulumi.Input<inputs.GetProfileDeviceArgs>[]>;
|
||||
/**
|
||||
@@ -131,7 +136,7 @@ export interface GetProfileOutputArgs {
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
* *Optional* - Name of the project where the profile is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
|
||||
36
sdk/nodejs/getProject.ts
generated
36
sdk/nodejs/getProject.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";
|
||||
@@ -14,22 +14,16 @@ import * as utilities from "./utilities";
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProject({
|
||||
* const _this = incus.getProject({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* project: _default.then(_default => _default.name),
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* export const projectName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getProject:getProject", {
|
||||
"config": args.config,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
@@ -40,11 +34,6 @@ export function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): P
|
||||
* A collection of arguments for invoking getProject.
|
||||
*/
|
||||
export interface GetProjectArgs {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
config?: {[key: string]: string};
|
||||
/**
|
||||
* Description of the project.
|
||||
*/
|
||||
@@ -65,8 +54,8 @@ export interface GetProjectArgs {
|
||||
*/
|
||||
export interface GetProjectResult {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
* Map of key/value pairs of config settings.
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
@@ -90,22 +79,16 @@ export interface GetProjectResult {
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProject({
|
||||
* const _this = incus.getProject({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* project: _default.then(_default => _default.name),
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* export const projectName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getProject:getProject", {
|
||||
"config": args.config,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
@@ -116,11 +99,6 @@ export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.Invok
|
||||
* A collection of arguments for invoking getProject.
|
||||
*/
|
||||
export interface GetProjectOutputArgs {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* Description of the project.
|
||||
*/
|
||||
|
||||
180
sdk/nodejs/getStorageBucket.ts
generated
Normal file
180
sdk/nodejs/getStorageBucket.ts
generated
Normal file
@@ -0,0 +1,180 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.StorageBucket
|
||||
*
|
||||
* Provides information about an Incus storage bucket.
|
||||
* See Incus storage bucket [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageBucket({
|
||||
* name: "default",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageBucketName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageBucket(args: GetStorageBucketArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageBucketResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getStorageBucket:getStorageBucket", {
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"s3Url": args.s3Url,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageBucket.
|
||||
*/
|
||||
export interface GetStorageBucketArgs {
|
||||
/**
|
||||
* Description of the storage bucket.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Location of the storage bucket.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Storage Bucket S3 URL.
|
||||
*/
|
||||
s3Url?: string;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getStorageBucket.
|
||||
*/
|
||||
export interface GetStorageBucketResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the storage bucket.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Location of the storage bucket.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Storage Bucket S3 URL.
|
||||
*/
|
||||
readonly s3Url: string;
|
||||
readonly storagePool: string;
|
||||
readonly target?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.StorageBucket
|
||||
*
|
||||
* Provides information about an Incus storage bucket.
|
||||
* See Incus storage bucket [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageBucket({
|
||||
* name: "default",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageBucketName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageBucketOutput(args: GetStorageBucketOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageBucketResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getStorageBucket:getStorageBucket", {
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"s3Url": args.s3Url,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageBucket.
|
||||
*/
|
||||
export interface GetStorageBucketOutputArgs {
|
||||
/**
|
||||
* Description of the storage bucket.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the storage bucket.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Storage Bucket S3 URL.
|
||||
*/
|
||||
s3Url?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
156
sdk/nodejs/getStoragePool.ts
generated
Normal file
156
sdk/nodejs/getStoragePool.ts
generated
Normal file
@@ -0,0 +1,156 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.StoragePool
|
||||
*
|
||||
* Provides information about an Incus storage pool.
|
||||
* See Incus storage pool [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_pools/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStoragePool({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const storagePoolName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStoragePool(args: GetStoragePoolArgs, opts?: pulumi.InvokeOptions): Promise<GetStoragePoolResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getStoragePool:getStoragePool", {
|
||||
"description": args.description,
|
||||
"driver": args.driver,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStoragePool.
|
||||
*/
|
||||
export interface GetStoragePoolArgs {
|
||||
/**
|
||||
* Description of the storage pool.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Storage Pool driver.
|
||||
*/
|
||||
driver?: string;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Status of the storage pool.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getStoragePool.
|
||||
*/
|
||||
export interface GetStoragePoolResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the storage pool.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Storage Pool driver.
|
||||
*/
|
||||
readonly driver: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Status of the storage pool.
|
||||
*/
|
||||
readonly status: string;
|
||||
readonly target?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.StoragePool
|
||||
*
|
||||
* Provides information about an Incus storage pool.
|
||||
* See Incus storage pool [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_pools/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStoragePool({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const storagePoolName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStoragePoolOutput(args: GetStoragePoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStoragePoolResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getStoragePool:getStoragePool", {
|
||||
"description": args.description,
|
||||
"driver": args.driver,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStoragePool.
|
||||
*/
|
||||
export interface GetStoragePoolOutputArgs {
|
||||
/**
|
||||
* Description of the storage pool.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Storage Pool driver.
|
||||
*/
|
||||
driver?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Status of the storage pool.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
193
sdk/nodejs/getStorageVolume.ts
generated
Normal file
193
sdk/nodejs/getStorageVolume.ts
generated
Normal file
@@ -0,0 +1,193 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.StorageVolume
|
||||
*
|
||||
* Provides information about an Incus storage volume.
|
||||
* See Incus storage volume [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_volumes/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageVolume({
|
||||
* name: "default",
|
||||
* type: "custom",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageVolumeName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageVolume(args: GetStorageVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageVolumeResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getStorageVolume:getStorageVolume", {
|
||||
"contentType": args.contentType,
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageVolume.
|
||||
*/
|
||||
export interface GetStorageVolumeArgs {
|
||||
/**
|
||||
* Storage Volume content type.
|
||||
*/
|
||||
contentType?: string;
|
||||
/**
|
||||
* Description of the storage volume.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Location of the storage volume.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the storage volume.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage volume is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
/**
|
||||
* **Required** - Storage Volume type.
|
||||
*/
|
||||
type: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getStorageVolume.
|
||||
*/
|
||||
export interface GetStorageVolumeResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [storage volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Storage Volume content type.
|
||||
*/
|
||||
readonly contentType: string;
|
||||
/**
|
||||
* Description of the storage volume.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Location of the storage volume.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
readonly storagePool: string;
|
||||
readonly target?: string;
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.StorageVolume
|
||||
*
|
||||
* Provides information about an Incus storage volume.
|
||||
* See Incus storage volume [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_volumes/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageVolume({
|
||||
* name: "default",
|
||||
* type: "custom",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageVolumeName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageVolumeOutput(args: GetStorageVolumeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageVolumeResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getStorageVolume:getStorageVolume", {
|
||||
"contentType": args.contentType,
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageVolume.
|
||||
*/
|
||||
export interface GetStorageVolumeOutputArgs {
|
||||
/**
|
||||
* Storage Volume content type.
|
||||
*/
|
||||
contentType?: pulumi.Input<string>;
|
||||
/**
|
||||
* Description of the storage volume.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the storage volume.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage volume.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage volume is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Storage Volume type.
|
||||
*/
|
||||
type: pulumi.Input<string>;
|
||||
}
|
||||
2
sdk/nodejs/go.mod
generated
2
sdk/nodejs/go.mod
generated
@@ -1,3 +1,3 @@
|
||||
module fake_nodejs_module // Exclude this directory from Go tools
|
||||
|
||||
go 1.25
|
||||
go 1.17
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
103
sdk/nodejs/index.ts
generated
103
sdk/nodejs/index.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";
|
||||
@@ -15,16 +15,66 @@ export type ClusterGroup = import("./clusterGroup").ClusterGroup;
|
||||
export const ClusterGroup: typeof import("./clusterGroup").ClusterGroup = null as any;
|
||||
utilities.lazyLoad(exports, ["ClusterGroup"], () => require("./clusterGroup"));
|
||||
|
||||
export { ClusterGroupAssignmentArgs, ClusterGroupAssignmentState } from "./clusterGroupAssignment";
|
||||
export type ClusterGroupAssignment = import("./clusterGroupAssignment").ClusterGroupAssignment;
|
||||
export const ClusterGroupAssignment: typeof import("./clusterGroupAssignment").ClusterGroupAssignment = null as any;
|
||||
utilities.lazyLoad(exports, ["ClusterGroupAssignment"], () => require("./clusterGroupAssignment"));
|
||||
export { ClusterGroupMemberArgs, ClusterGroupMemberState } from "./clusterGroupMember";
|
||||
export type ClusterGroupMember = import("./clusterGroupMember").ClusterGroupMember;
|
||||
export const ClusterGroupMember: typeof import("./clusterGroupMember").ClusterGroupMember = null as any;
|
||||
utilities.lazyLoad(exports, ["ClusterGroupMember"], () => require("./clusterGroupMember"));
|
||||
|
||||
export { GetClusterArgs, GetClusterResult, GetClusterOutputArgs } from "./getCluster";
|
||||
export const getCluster: typeof import("./getCluster").getCluster = null as any;
|
||||
export const getClusterOutput: typeof import("./getCluster").getClusterOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getCluster","getClusterOutput"], () => require("./getCluster"));
|
||||
|
||||
export { GetImageArgs, GetImageResult, GetImageOutputArgs } from "./getImage";
|
||||
export const getImage: typeof import("./getImage").getImage = null as any;
|
||||
export const getImageOutput: typeof import("./getImage").getImageOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getImage","getImageOutput"], () => require("./getImage"));
|
||||
|
||||
export { GetInstanceArgs, GetInstanceResult, GetInstanceOutputArgs } from "./getInstance";
|
||||
export const getInstance: typeof import("./getInstance").getInstance = null as any;
|
||||
export const getInstanceOutput: typeof import("./getInstance").getInstanceOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getInstance","getInstanceOutput"], () => require("./getInstance"));
|
||||
|
||||
export { GetNetworkArgs, GetNetworkResult, GetNetworkOutputArgs } from "./getNetwork";
|
||||
export const getNetwork: typeof import("./getNetwork").getNetwork = null as any;
|
||||
export const getNetworkOutput: typeof import("./getNetwork").getNetworkOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetwork","getNetworkOutput"], () => require("./getNetwork"));
|
||||
|
||||
export { GetNetworkAclArgs, GetNetworkAclResult, GetNetworkAclOutputArgs } from "./getNetworkAcl";
|
||||
export const getNetworkAcl: typeof import("./getNetworkAcl").getNetworkAcl = null as any;
|
||||
export const getNetworkAclOutput: typeof import("./getNetworkAcl").getNetworkAclOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkAcl","getNetworkAclOutput"], () => require("./getNetworkAcl"));
|
||||
|
||||
export { GetNetworkAddressSetArgs, GetNetworkAddressSetResult, GetNetworkAddressSetOutputArgs } from "./getNetworkAddressSet";
|
||||
export const getNetworkAddressSet: typeof import("./getNetworkAddressSet").getNetworkAddressSet = null as any;
|
||||
export const getNetworkAddressSetOutput: typeof import("./getNetworkAddressSet").getNetworkAddressSetOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkAddressSet","getNetworkAddressSetOutput"], () => require("./getNetworkAddressSet"));
|
||||
|
||||
export { GetNetworkForwardArgs, GetNetworkForwardResult, GetNetworkForwardOutputArgs } from "./getNetworkForward";
|
||||
export const getNetworkForward: typeof import("./getNetworkForward").getNetworkForward = null as any;
|
||||
export const getNetworkForwardOutput: typeof import("./getNetworkForward").getNetworkForwardOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkForward","getNetworkForwardOutput"], () => require("./getNetworkForward"));
|
||||
|
||||
export { GetNetworkIntegrationArgs, GetNetworkIntegrationResult, GetNetworkIntegrationOutputArgs } from "./getNetworkIntegration";
|
||||
export const getNetworkIntegration: typeof import("./getNetworkIntegration").getNetworkIntegration = null as any;
|
||||
export const getNetworkIntegrationOutput: typeof import("./getNetworkIntegration").getNetworkIntegrationOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkIntegration","getNetworkIntegrationOutput"], () => require("./getNetworkIntegration"));
|
||||
|
||||
export { GetNetworkLoadBalancerArgs, GetNetworkLoadBalancerResult, GetNetworkLoadBalancerOutputArgs } from "./getNetworkLoadBalancer";
|
||||
export const getNetworkLoadBalancer: typeof import("./getNetworkLoadBalancer").getNetworkLoadBalancer = null as any;
|
||||
export const getNetworkLoadBalancerOutput: typeof import("./getNetworkLoadBalancer").getNetworkLoadBalancerOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkLoadBalancer","getNetworkLoadBalancerOutput"], () => require("./getNetworkLoadBalancer"));
|
||||
|
||||
export { GetNetworkPeerArgs, GetNetworkPeerResult, GetNetworkPeerOutputArgs } from "./getNetworkPeer";
|
||||
export const getNetworkPeer: typeof import("./getNetworkPeer").getNetworkPeer = null as any;
|
||||
export const getNetworkPeerOutput: typeof import("./getNetworkPeer").getNetworkPeerOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkPeer","getNetworkPeerOutput"], () => require("./getNetworkPeer"));
|
||||
|
||||
export { GetNetworkZoneArgs, GetNetworkZoneResult, GetNetworkZoneOutputArgs } from "./getNetworkZone";
|
||||
export const getNetworkZone: typeof import("./getNetworkZone").getNetworkZone = null as any;
|
||||
export const getNetworkZoneOutput: typeof import("./getNetworkZone").getNetworkZoneOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkZone","getNetworkZoneOutput"], () => require("./getNetworkZone"));
|
||||
|
||||
export { GetProfileArgs, GetProfileResult, GetProfileOutputArgs } from "./getProfile";
|
||||
export const getProfile: typeof import("./getProfile").getProfile = null as any;
|
||||
export const getProfileOutput: typeof import("./getProfile").getProfileOutput = null as any;
|
||||
@@ -35,6 +85,21 @@ export const getProject: typeof import("./getProject").getProject = null as any;
|
||||
export const getProjectOutput: typeof import("./getProject").getProjectOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getProject","getProjectOutput"], () => require("./getProject"));
|
||||
|
||||
export { GetStorageBucketArgs, GetStorageBucketResult, GetStorageBucketOutputArgs } from "./getStorageBucket";
|
||||
export const getStorageBucket: typeof import("./getStorageBucket").getStorageBucket = null as any;
|
||||
export const getStorageBucketOutput: typeof import("./getStorageBucket").getStorageBucketOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getStorageBucket","getStorageBucketOutput"], () => require("./getStorageBucket"));
|
||||
|
||||
export { GetStoragePoolArgs, GetStoragePoolResult, GetStoragePoolOutputArgs } from "./getStoragePool";
|
||||
export const getStoragePool: typeof import("./getStoragePool").getStoragePool = null as any;
|
||||
export const getStoragePoolOutput: typeof import("./getStoragePool").getStoragePoolOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getStoragePool","getStoragePoolOutput"], () => require("./getStoragePool"));
|
||||
|
||||
export { GetStorageVolumeArgs, GetStorageVolumeResult, GetStorageVolumeOutputArgs } from "./getStorageVolume";
|
||||
export const getStorageVolume: typeof import("./getStorageVolume").getStorageVolume = null as any;
|
||||
export const getStorageVolumeOutput: typeof import("./getStorageVolume").getStorageVolumeOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getStorageVolume","getStorageVolumeOutput"], () => require("./getStorageVolume"));
|
||||
|
||||
export { ImageArgs, ImageState } from "./image";
|
||||
export type Image = import("./image").Image;
|
||||
export const Image: typeof import("./image").Image = null as any;
|
||||
@@ -60,6 +125,11 @@ export type NetworkAcl = import("./networkAcl").NetworkAcl;
|
||||
export const NetworkAcl: typeof import("./networkAcl").NetworkAcl = null as any;
|
||||
utilities.lazyLoad(exports, ["NetworkAcl"], () => require("./networkAcl"));
|
||||
|
||||
export { NetworkAddressSetArgs, NetworkAddressSetState } from "./networkAddressSet";
|
||||
export type NetworkAddressSet = import("./networkAddressSet").NetworkAddressSet;
|
||||
export const NetworkAddressSet: typeof import("./networkAddressSet").NetworkAddressSet = null as any;
|
||||
utilities.lazyLoad(exports, ["NetworkAddressSet"], () => require("./networkAddressSet"));
|
||||
|
||||
export { NetworkForwardArgs, NetworkForwardState } from "./networkForward";
|
||||
export type NetworkForward = import("./networkForward").NetworkForward;
|
||||
export const NetworkForward: typeof import("./networkForward").NetworkForward = null as any;
|
||||
@@ -100,10 +170,13 @@ export type Project = import("./project").Project;
|
||||
export const Project: typeof import("./project").Project = null as any;
|
||||
utilities.lazyLoad(exports, ["Project"], () => require("./project"));
|
||||
|
||||
export { ProviderArgs } from "./provider";
|
||||
export type Provider = import("./provider").Provider;
|
||||
export const Provider: typeof import("./provider").Provider = null as any;
|
||||
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
||||
export * from "./provider";
|
||||
import { Provider } from "./provider";
|
||||
|
||||
export { ServerArgs, ServerState } from "./server";
|
||||
export type Server = import("./server").Server;
|
||||
export const Server: typeof import("./server").Server = null as any;
|
||||
utilities.lazyLoad(exports, ["Server"], () => require("./server"));
|
||||
|
||||
export { StorageBucketArgs, StorageBucketState } from "./storageBucket";
|
||||
export type StorageBucket = import("./storageBucket").StorageBucket;
|
||||
@@ -143,8 +216,8 @@ const _module = {
|
||||
return new Certificate(name, <any>undefined, { urn })
|
||||
case "incus:index/clusterGroup:ClusterGroup":
|
||||
return new ClusterGroup(name, <any>undefined, { urn })
|
||||
case "incus:index/clusterGroupAssignment:ClusterGroupAssignment":
|
||||
return new ClusterGroupAssignment(name, <any>undefined, { urn })
|
||||
case "incus:index/clusterGroupMember:ClusterGroupMember":
|
||||
return new ClusterGroupMember(name, <any>undefined, { urn })
|
||||
case "incus:index/image:Image":
|
||||
return new Image(name, <any>undefined, { urn })
|
||||
case "incus:index/instance:Instance":
|
||||
@@ -155,6 +228,8 @@ const _module = {
|
||||
return new Network(name, <any>undefined, { urn })
|
||||
case "incus:index/networkAcl:NetworkAcl":
|
||||
return new NetworkAcl(name, <any>undefined, { urn })
|
||||
case "incus:index/networkAddressSet:NetworkAddressSet":
|
||||
return new NetworkAddressSet(name, <any>undefined, { urn })
|
||||
case "incus:index/networkForward:NetworkForward":
|
||||
return new NetworkForward(name, <any>undefined, { urn })
|
||||
case "incus:index/networkIntegration:NetworkIntegration":
|
||||
@@ -171,6 +246,8 @@ const _module = {
|
||||
return new Profile(name, <any>undefined, { urn })
|
||||
case "incus:index/project:Project":
|
||||
return new Project(name, <any>undefined, { urn })
|
||||
case "incus:index/server:Server":
|
||||
return new Server(name, <any>undefined, { urn })
|
||||
case "incus:index/storageBucket:StorageBucket":
|
||||
return new StorageBucket(name, <any>undefined, { urn })
|
||||
case "incus:index/storageBucketKey:StorageBucketKey":
|
||||
@@ -186,12 +263,13 @@ const _module = {
|
||||
};
|
||||
pulumi.runtime.registerResourceModule("incus", "index/certificate", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/clusterGroup", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/clusterGroupAssignment", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/clusterGroupMember", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/image", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/instance", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/instanceSnapshot", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/network", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkAcl", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkAddressSet", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkForward", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkIntegration", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkLoadBalancer", _module)
|
||||
@@ -200,6 +278,7 @@ pulumi.runtime.registerResourceModule("incus", "index/networkZone", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkZoneRecord", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/profile", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/project", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/server", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/storageBucket", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/storageBucketKey", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/storagePool", _module)
|
||||
|
||||
135
sdk/nodejs/instance.ts
generated
135
sdk/nodejs/instance.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";
|
||||
@@ -34,95 +34,99 @@ export class Instance extends pulumi.CustomResource {
|
||||
return obj['__pulumiType'] === Instance.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
declare public readonly architecture: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the instance.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Device definition. See reference below.
|
||||
*/
|
||||
public readonly devices!: pulumi.Output<outputs.InstanceDevice[] | undefined>;
|
||||
declare public readonly devices: pulumi.Output<outputs.InstanceDevice[] | undefined>;
|
||||
/**
|
||||
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
|
||||
*/
|
||||
public readonly ephemeral!: pulumi.Output<boolean>;
|
||||
declare public readonly ephemeral: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - File to upload to the instance. See reference below.
|
||||
*/
|
||||
public readonly files!: pulumi.Output<outputs.InstanceFile[] | undefined>;
|
||||
declare public readonly files: pulumi.Output<outputs.InstanceFile[] | undefined>;
|
||||
/**
|
||||
* *Optional* - Base image from which the instance will be created. Must
|
||||
* specify [an image accessible from the provider remote](https://linuxcontainers.org/incus/docs/main/reference/image_servers/).
|
||||
*/
|
||||
public readonly image!: pulumi.Output<string | undefined>;
|
||||
declare public readonly image: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* The IPv4 Address of the instance. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly ipv4Address!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly ipv4Address: pulumi.Output<string>;
|
||||
/**
|
||||
* The IPv6 Address of the instance. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly ipv6Address!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly ipv6Address: pulumi.Output<string>;
|
||||
/**
|
||||
* The MAC address of the detected NIC. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly macAddress!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly macAddress: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of Incus config profiles to apply to the new
|
||||
* instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
* However, if an empty array (`[]`) is set as a value, no profiles will be applied.
|
||||
*/
|
||||
public readonly profiles!: pulumi.Output<string[]>;
|
||||
declare public readonly profiles: pulumi.Output<string[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the instance will be spawned.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
|
||||
*/
|
||||
public readonly running!: pulumi.Output<boolean>;
|
||||
declare public readonly running: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<string | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The source instance from which the instance will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceInstance!: pulumi.Output<outputs.InstanceSourceInstance | undefined>;
|
||||
declare public readonly sourceInstance: pulumi.Output<outputs.InstanceSourceInstance | undefined>;
|
||||
/**
|
||||
* The status of the instance.
|
||||
*/
|
||||
public /*out*/ readonly status!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly status: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string>;
|
||||
declare public readonly target: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - WaitFor definition. See reference below.
|
||||
* If `running` is set to false or instance is already running (on update), this value has no effect.
|
||||
*/
|
||||
public readonly waitFors!: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
|
||||
declare public readonly waitFors: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Instance resource with the given unique name, arguments, and options.
|
||||
@@ -131,50 +135,55 @@ export class Instance extends pulumi.CustomResource {
|
||||
* @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?: InstanceArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: InstanceArgs | InstanceState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as InstanceState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["devices"] = state ? state.devices : undefined;
|
||||
resourceInputs["ephemeral"] = state ? state.ephemeral : undefined;
|
||||
resourceInputs["files"] = state ? state.files : undefined;
|
||||
resourceInputs["image"] = state ? state.image : undefined;
|
||||
resourceInputs["ipv4Address"] = state ? state.ipv4Address : undefined;
|
||||
resourceInputs["ipv6Address"] = state ? state.ipv6Address : undefined;
|
||||
resourceInputs["macAddress"] = state ? state.macAddress : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["profiles"] = state ? state.profiles : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["running"] = state ? state.running : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["sourceInstance"] = state ? state.sourceInstance : undefined;
|
||||
resourceInputs["status"] = state ? state.status : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["waitFors"] = state ? state.waitFors : undefined;
|
||||
resourceInputs["architecture"] = state?.architecture;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["devices"] = state?.devices;
|
||||
resourceInputs["ephemeral"] = state?.ephemeral;
|
||||
resourceInputs["files"] = state?.files;
|
||||
resourceInputs["image"] = state?.image;
|
||||
resourceInputs["ipv4Address"] = state?.ipv4Address;
|
||||
resourceInputs["ipv6Address"] = state?.ipv6Address;
|
||||
resourceInputs["macAddress"] = state?.macAddress;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["profiles"] = state?.profiles;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["running"] = state?.running;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["sourceInstance"] = state?.sourceInstance;
|
||||
resourceInputs["status"] = state?.status;
|
||||
resourceInputs["target"] = state?.target;
|
||||
resourceInputs["type"] = state?.type;
|
||||
resourceInputs["waitFors"] = state?.waitFors;
|
||||
} else {
|
||||
const args = argsOrState as InstanceArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["devices"] = args ? args.devices : undefined;
|
||||
resourceInputs["ephemeral"] = args ? args.ephemeral : undefined;
|
||||
resourceInputs["files"] = args ? args.files : undefined;
|
||||
resourceInputs["image"] = args ? args.image : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["profiles"] = args ? args.profiles : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["running"] = args ? args.running : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["sourceInstance"] = args ? args.sourceInstance : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
resourceInputs["waitFors"] = args ? args.waitFors : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["architecture"] = args?.architecture;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["devices"] = args?.devices;
|
||||
resourceInputs["ephemeral"] = args?.ephemeral;
|
||||
resourceInputs["files"] = args?.files;
|
||||
resourceInputs["image"] = args?.image;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["profiles"] = args?.profiles;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["running"] = args?.running;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["sourceInstance"] = args?.sourceInstance;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["waitFors"] = args?.waitFors;
|
||||
resourceInputs["ipv4Address"] = undefined /*out*/;
|
||||
resourceInputs["ipv6Address"] = undefined /*out*/;
|
||||
resourceInputs["macAddress"] = undefined /*out*/;
|
||||
@@ -189,6 +198,10 @@ export class Instance extends pulumi.CustomResource {
|
||||
* Input properties used for looking up and filtering Instance resources.
|
||||
*/
|
||||
export interface InstanceState {
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
@@ -284,6 +297,10 @@ export interface InstanceState {
|
||||
* The set of arguments for constructing a Instance resource.
|
||||
*/
|
||||
export interface InstanceArgs {
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
@@ -313,7 +330,7 @@ export interface InstanceArgs {
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - List of Incus config profiles to apply to the new
|
||||
* instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
|
||||
43
sdk/nodejs/instanceSnapshot.ts
generated
43
sdk/nodejs/instanceSnapshot.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";
|
||||
@@ -58,30 +58,30 @@ export class InstanceSnapshot extends pulumi.CustomResource {
|
||||
* The time Incus reported the snapshot was successfully created,
|
||||
* in UTC.
|
||||
*/
|
||||
public /*out*/ readonly createdAt!: pulumi.Output<number>;
|
||||
declare public /*out*/ readonly createdAt: pulumi.Output<number>;
|
||||
/**
|
||||
* **Required** - The name of the instance to snapshot.
|
||||
*/
|
||||
public readonly instance!: pulumi.Output<string>;
|
||||
declare public readonly instance: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the snapshot.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the snapshot will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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* - Set to `true` to create a stateful snapshot,
|
||||
* `false` for stateless. Stateful snapshots include runtime state. Defaults to
|
||||
* `false`.
|
||||
*/
|
||||
public readonly stateful!: pulumi.Output<boolean>;
|
||||
declare public readonly stateful: pulumi.Output<boolean>;
|
||||
|
||||
/**
|
||||
* Create a InstanceSnapshot resource with the given unique name, arguments, and options.
|
||||
@@ -96,22 +96,25 @@ export class InstanceSnapshot extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as InstanceSnapshotState | undefined;
|
||||
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
||||
resourceInputs["instance"] = state ? state.instance : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["stateful"] = state ? state.stateful : undefined;
|
||||
resourceInputs["createdAt"] = state?.createdAt;
|
||||
resourceInputs["instance"] = state?.instance;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["stateful"] = state?.stateful;
|
||||
} else {
|
||||
const args = argsOrState as InstanceSnapshotArgs | undefined;
|
||||
if ((!args || args.instance === undefined) && !opts.urn) {
|
||||
if (args?.instance === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'instance'");
|
||||
}
|
||||
resourceInputs["instance"] = args ? args.instance : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["stateful"] = args ? args.stateful : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["instance"] = args?.instance;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["stateful"] = args?.stateful;
|
||||
resourceInputs["createdAt"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -164,7 +167,7 @@ export interface InstanceSnapshotArgs {
|
||||
/**
|
||||
* **Required** - Name of the snapshot.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the snapshot will be stored.
|
||||
*/
|
||||
|
||||
61
sdk/nodejs/network.ts
generated
61
sdk/nodejs/network.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";
|
||||
@@ -36,39 +36,39 @@ export class Network extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network.
|
||||
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* Whether or not the network is managed.
|
||||
*/
|
||||
public /*out*/ readonly managed!: pulumi.Output<boolean>;
|
||||
declare public /*out*/ readonly managed: pulumi.Output<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the network. This is usually the device the
|
||||
* network will appear as to instances.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string | undefined>;
|
||||
declare public readonly target: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The type of network to create. Can be one of: bridge,
|
||||
* macvlan, sriov, ovn, or physical. If no type is specified, a bridge network
|
||||
* is created.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a Network resource with the given unique name, arguments, and options.
|
||||
@@ -77,29 +77,32 @@ export class Network extends pulumi.CustomResource {
|
||||
* @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?: NetworkArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkArgs | NetworkState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["managed"] = state ? state.managed : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["managed"] = state?.managed;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["target"] = state?.target;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as NetworkArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["managed"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -117,7 +120,7 @@ export interface NetworkState {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network.
|
||||
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
@@ -160,14 +163,14 @@ export interface NetworkArgs {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network.
|
||||
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network. This is usually the device the
|
||||
* network will appear as to instances.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
|
||||
51
sdk/nodejs/networkAcl.ts
generated
51
sdk/nodejs/networkAcl.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";
|
||||
@@ -38,34 +38,34 @@ export class NetworkAcl extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* network ACL config settings.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network ACL rule.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of network ACL rules for egress traffic. See reference below.
|
||||
*/
|
||||
public readonly egresses!: pulumi.Output<outputs.NetworkAclEgress[]>;
|
||||
declare public readonly egresses: pulumi.Output<outputs.NetworkAclEgress[]>;
|
||||
/**
|
||||
* *Optional* - List of network ACL rules for ingress traffic. See reference below.
|
||||
*
|
||||
* The network ACL rule supports:
|
||||
*/
|
||||
public readonly ingresses!: pulumi.Output<outputs.NetworkAclIngress[]>;
|
||||
declare public readonly ingresses: pulumi.Output<outputs.NetworkAclIngress[]>;
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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>;
|
||||
|
||||
/**
|
||||
* Create a NetworkAcl resource with the given unique name, arguments, and options.
|
||||
@@ -74,28 +74,31 @@ export class NetworkAcl extends pulumi.CustomResource {
|
||||
* @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?: NetworkAclArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkAclArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkAclArgs | NetworkAclState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkAclState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["egresses"] = state ? state.egresses : undefined;
|
||||
resourceInputs["ingresses"] = state ? state.ingresses : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["egresses"] = state?.egresses;
|
||||
resourceInputs["ingresses"] = state?.ingresses;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkAclArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["egresses"] = args ? args.egresses : undefined;
|
||||
resourceInputs["ingresses"] = args ? args.ingresses : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["egresses"] = args?.egresses;
|
||||
resourceInputs["ingresses"] = args?.ingresses;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkAcl.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -166,7 +169,7 @@ export interface NetworkAclArgs {
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL will be created.
|
||||
*/
|
||||
|
||||
208
sdk/nodejs/networkAddressSet.ts
generated
Normal file
208
sdk/nodejs/networkAddressSet.ts
generated
Normal file
@@ -0,0 +1,208 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkAddressSet
|
||||
*
|
||||
* Network address sets are a list of either IPv4, IPv6 addresses with or without CIDR suffix. They can be used in source or destination fields of [ACLs](https://linuxcontainers.org/incus/docs/main/howto/network_acls/#network-acls-rules-properties).
|
||||
*
|
||||
* ## Basic Example
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = new incus.NetworkAddressSet("this", {
|
||||
* name: "Network Address Set",
|
||||
* description: "Network Address Set description",
|
||||
* addresses: [
|
||||
* "10.0.0.2",
|
||||
* "10.0.0.3",
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## ACL Example
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = new incus.NetworkAddressSet("this", {
|
||||
* name: "network_address_set",
|
||||
* description: "Network Address Set description",
|
||||
* addresses: [
|
||||
* "10.0.0.2",
|
||||
* "10.0.0.3",
|
||||
* ],
|
||||
* });
|
||||
* const thisNetworkAcl = new incus.NetworkAcl("this", {
|
||||
* name: "network_acl",
|
||||
* ingresses: [{
|
||||
* action: "allow",
|
||||
* source: "${incus_network_address_set.this.name}",
|
||||
* destination_port: "22",
|
||||
* protocol: "tcp",
|
||||
* description: pulumi.interpolate`Incoming SSH connections from ${_this.name}`,
|
||||
* state: "logged",
|
||||
* }],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export class NetworkAddressSet extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing NetworkAddressSet 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?: NetworkAddressSetState, opts?: pulumi.CustomResourceOptions): NetworkAddressSet {
|
||||
return new NetworkAddressSet(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'incus:index/networkAddressSet:NetworkAddressSet';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of NetworkAddressSet. 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 NetworkAddressSet {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === NetworkAddressSet.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* **Required** - IP addresses of the address set.
|
||||
*/
|
||||
declare public readonly addresses: pulumi.Output<string[]>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
*/
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network address set.
|
||||
*/
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set will be created.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkAddressSet 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: NetworkAddressSetArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkAddressSetArgs | NetworkAddressSetState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkAddressSetState | undefined;
|
||||
resourceInputs["addresses"] = state?.addresses;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkAddressSetArgs | undefined;
|
||||
if (args?.addresses === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'addresses'");
|
||||
}
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["addresses"] = args?.addresses;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkAddressSet.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering NetworkAddressSet resources.
|
||||
*/
|
||||
export interface NetworkAddressSetState {
|
||||
/**
|
||||
* **Required** - IP addresses of the address set.
|
||||
*/
|
||||
addresses?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network address set.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set will be created.
|
||||
*/
|
||||
project?: 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>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a NetworkAddressSet resource.
|
||||
*/
|
||||
export interface NetworkAddressSetArgs {
|
||||
/**
|
||||
* **Required** - IP addresses of the address set.
|
||||
*/
|
||||
addresses: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network address set.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set will be created.
|
||||
*/
|
||||
project?: 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>;
|
||||
}
|
||||
48
sdk/nodejs/networkForward.ts
generated
48
sdk/nodejs/networkForward.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";
|
||||
@@ -38,34 +38,34 @@ export class NetworkForward extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* network forward config settings.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of port(s)
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - IP address to listen on.
|
||||
*/
|
||||
public readonly listenAddress!: pulumi.Output<string>;
|
||||
declare public readonly listenAddress: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
public readonly network!: pulumi.Output<string>;
|
||||
declare public readonly network: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of port specifications. See reference below.
|
||||
*
|
||||
* The network forward port supports:
|
||||
*/
|
||||
public readonly ports!: pulumi.Output<outputs.NetworkForwardPort[]>;
|
||||
declare public readonly ports: pulumi.Output<outputs.NetworkForwardPort[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network forward will be created.
|
||||
*/
|
||||
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>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkForward resource with the given unique name, arguments, and options.
|
||||
@@ -80,28 +80,28 @@ export class NetworkForward extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkForwardState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["listenAddress"] = state ? state.listenAddress : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["ports"] = state ? state.ports : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["listenAddress"] = state?.listenAddress;
|
||||
resourceInputs["network"] = state?.network;
|
||||
resourceInputs["ports"] = state?.ports;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkForwardArgs | undefined;
|
||||
if ((!args || args.listenAddress === undefined) && !opts.urn) {
|
||||
if (args?.listenAddress === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'listenAddress'");
|
||||
}
|
||||
if ((!args || args.network === undefined) && !opts.urn) {
|
||||
if (args?.network === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'network'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["listenAddress"] = args ? args.listenAddress : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["ports"] = args ? args.ports : undefined;
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["listenAddress"] = args?.listenAddress;
|
||||
resourceInputs["network"] = args?.network;
|
||||
resourceInputs["ports"] = args?.ports;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkForward.__pulumiType, name, resourceInputs, opts);
|
||||
|
||||
45
sdk/nodejs/networkIntegration.ts
generated
45
sdk/nodejs/networkIntegration.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";
|
||||
@@ -86,28 +86,28 @@ export class NetworkIntegration extends pulumi.CustomResource {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network integration.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a NetworkIntegration resource with the given unique name, arguments, and options.
|
||||
@@ -122,23 +122,26 @@ export class NetworkIntegration extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkIntegrationState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as NetworkIntegrationArgs | undefined;
|
||||
if ((!args || args.type === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.type === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'type'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["type"] = args?.type;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkIntegration.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -191,7 +194,7 @@ export interface NetworkIntegrationArgs {
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
|
||||
54
sdk/nodejs/networkLoadBalancer.ts
generated
54
sdk/nodejs/networkLoadBalancer.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";
|
||||
@@ -37,17 +37,17 @@ export class NetworkLoadBalancer extends pulumi.CustomResource {
|
||||
/**
|
||||
* Network load balancer backend
|
||||
*/
|
||||
public readonly backends!: pulumi.Output<outputs.NetworkLoadBalancerBackend[] | undefined>;
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
public readonly listenAddress!: pulumi.Output<string>;
|
||||
public readonly network!: pulumi.Output<string>;
|
||||
declare public readonly backends: pulumi.Output<outputs.NetworkLoadBalancerBackend[] | undefined>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
declare public readonly listenAddress: pulumi.Output<string>;
|
||||
declare public readonly network: pulumi.Output<string>;
|
||||
/**
|
||||
* Network load balancer port
|
||||
*/
|
||||
public readonly ports!: pulumi.Output<outputs.NetworkLoadBalancerPort[] | undefined>;
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly ports: pulumi.Output<outputs.NetworkLoadBalancerPort[] | undefined>;
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkLoadBalancer resource with the given unique name, arguments, and options.
|
||||
@@ -62,30 +62,30 @@ export class NetworkLoadBalancer extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkLoadBalancerState | undefined;
|
||||
resourceInputs["backends"] = state ? state.backends : undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["listenAddress"] = state ? state.listenAddress : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["ports"] = state ? state.ports : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["backends"] = state?.backends;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["listenAddress"] = state?.listenAddress;
|
||||
resourceInputs["network"] = state?.network;
|
||||
resourceInputs["ports"] = state?.ports;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkLoadBalancerArgs | undefined;
|
||||
if ((!args || args.listenAddress === undefined) && !opts.urn) {
|
||||
if (args?.listenAddress === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'listenAddress'");
|
||||
}
|
||||
if ((!args || args.network === undefined) && !opts.urn) {
|
||||
if (args?.network === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'network'");
|
||||
}
|
||||
resourceInputs["backends"] = args ? args.backends : undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["listenAddress"] = args ? args.listenAddress : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["ports"] = args ? args.ports : undefined;
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["backends"] = args?.backends;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["listenAddress"] = args?.listenAddress;
|
||||
resourceInputs["network"] = args?.network;
|
||||
resourceInputs["ports"] = args?.ports;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkLoadBalancer.__pulumiType, name, resourceInputs, opts);
|
||||
|
||||
73
sdk/nodejs/networkPeer.ts
generated
73
sdk/nodejs/networkPeer.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";
|
||||
@@ -81,42 +81,42 @@ export class NetworkPeer extends pulumi.CustomResource {
|
||||
/**
|
||||
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network peering
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **required** - Name of the network peering on the local network
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the local network.
|
||||
*/
|
||||
public readonly network!: pulumi.Output<string | undefined>;
|
||||
declare public readonly network: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is located.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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>;
|
||||
public /*out*/ readonly status!: pulumi.Output<string>;
|
||||
public readonly targetIntegration!: pulumi.Output<string>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
declare public /*out*/ readonly status: pulumi.Output<string>;
|
||||
declare public readonly targetIntegration: pulumi.Output<string>;
|
||||
/**
|
||||
* **required** - Which network to create a peering with (required at create time for local peers)
|
||||
*/
|
||||
public readonly targetNetwork!: pulumi.Output<string>;
|
||||
declare public readonly targetNetwork: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Which project the target network exists in (required at create time for local peers)
|
||||
*/
|
||||
public readonly targetProject!: pulumi.Output<string>;
|
||||
declare public readonly targetProject: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Type of network peering
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a NetworkPeer resource with the given unique name, arguments, and options.
|
||||
@@ -125,35 +125,38 @@ export class NetworkPeer extends pulumi.CustomResource {
|
||||
* @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?: NetworkPeerArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkPeerArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkPeerArgs | NetworkPeerState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkPeerState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["status"] = state ? state.status : undefined;
|
||||
resourceInputs["targetIntegration"] = state ? state.targetIntegration : undefined;
|
||||
resourceInputs["targetNetwork"] = state ? state.targetNetwork : undefined;
|
||||
resourceInputs["targetProject"] = state ? state.targetProject : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["network"] = state?.network;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["status"] = state?.status;
|
||||
resourceInputs["targetIntegration"] = state?.targetIntegration;
|
||||
resourceInputs["targetNetwork"] = state?.targetNetwork;
|
||||
resourceInputs["targetProject"] = state?.targetProject;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as NetworkPeerArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["targetIntegration"] = args ? args.targetIntegration : undefined;
|
||||
resourceInputs["targetNetwork"] = args ? args.targetNetwork : undefined;
|
||||
resourceInputs["targetProject"] = args ? args.targetProject : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["network"] = args?.network;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["targetIntegration"] = args?.targetIntegration;
|
||||
resourceInputs["targetNetwork"] = args?.targetNetwork;
|
||||
resourceInputs["targetProject"] = args?.targetProject;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["status"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -221,7 +224,7 @@ export interface NetworkPeerArgs {
|
||||
/**
|
||||
* **required** - Name of the network peering on the local network
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the local network.
|
||||
*/
|
||||
|
||||
39
sdk/nodejs/networkZone.ts
generated
39
sdk/nodejs/networkZone.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";
|
||||
@@ -36,24 +36,24 @@ export class NetworkZone extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network zone.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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>;
|
||||
|
||||
/**
|
||||
* Create a NetworkZone resource with the given unique name, arguments, and options.
|
||||
@@ -62,24 +62,27 @@ export class NetworkZone extends pulumi.CustomResource {
|
||||
* @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?: NetworkZoneArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkZoneArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkZoneArgs | NetworkZoneState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkZoneState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkZoneArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkZone.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -130,7 +133,7 @@ export interface NetworkZoneArgs {
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone will be created.
|
||||
*/
|
||||
|
||||
51
sdk/nodejs/networkZoneRecord.ts
generated
51
sdk/nodejs/networkZoneRecord.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";
|
||||
@@ -38,32 +38,32 @@ export class NetworkZoneRecord extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network zone.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Entry in network zone record - see below.
|
||||
*/
|
||||
public readonly entries!: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
|
||||
declare public readonly entries: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
|
||||
/**
|
||||
* **Required** - Name of the network zone record.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone record will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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>;
|
||||
/**
|
||||
* **Required** - Name of the zone to add the entries of this record.
|
||||
*/
|
||||
public readonly zone!: pulumi.Output<string>;
|
||||
declare public readonly zone: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a NetworkZoneRecord resource with the given unique name, arguments, and options.
|
||||
@@ -78,25 +78,28 @@ export class NetworkZoneRecord extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkZoneRecordState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["entries"] = state ? state.entries : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["zone"] = state ? state.zone : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["entries"] = state?.entries;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["zone"] = state?.zone;
|
||||
} else {
|
||||
const args = argsOrState as NetworkZoneRecordArgs | undefined;
|
||||
if ((!args || args.zone === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.zone === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'zone'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["entries"] = args ? args.entries : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["zone"] = args ? args.zone : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["entries"] = args?.entries;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["zone"] = args?.zone;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkZoneRecord.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -159,7 +162,7 @@ export interface NetworkZoneRecordArgs {
|
||||
/**
|
||||
* **Required** - Name of the network zone record.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone record will be created.
|
||||
*/
|
||||
|
||||
45
sdk/nodejs/profile.ts
generated
45
sdk/nodejs/profile.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";
|
||||
@@ -38,28 +38,28 @@ export class Profile extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the profile.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Device definition. See reference below.
|
||||
*/
|
||||
public readonly devices!: pulumi.Output<outputs.ProfileDevice[] | undefined>;
|
||||
declare public readonly devices: pulumi.Output<outputs.ProfileDevice[] | undefined>;
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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>;
|
||||
|
||||
/**
|
||||
* Create a Profile resource with the given unique name, arguments, and options.
|
||||
@@ -68,26 +68,29 @@ export class Profile extends pulumi.CustomResource {
|
||||
* @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?: ProfileArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: ProfileArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ProfileArgs | ProfileState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ProfileState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["devices"] = state ? state.devices : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["devices"] = state?.devices;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ProfileArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["devices"] = args ? args.devices : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["devices"] = args?.devices;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Profile.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -146,7 +149,7 @@ export interface ProfileArgs {
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
*/
|
||||
|
||||
47
sdk/nodejs/project.ts
generated
47
sdk/nodejs/project.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";
|
||||
@@ -35,20 +35,24 @@ export class Project extends pulumi.CustomResource {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the project.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
*/
|
||||
declare public readonly forceDestroy: pulumi.Output<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: 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>;
|
||||
|
||||
/**
|
||||
* Create a Project resource with the given unique name, arguments, and options.
|
||||
@@ -57,22 +61,27 @@ export class Project extends pulumi.CustomResource {
|
||||
* @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?: ProjectArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: ProjectArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ProjectArgs | ProjectState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ProjectState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["forceDestroy"] = state?.forceDestroy;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ProjectArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["forceDestroy"] = args?.forceDestroy;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Project.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -91,6 +100,10 @@ export interface ProjectState {
|
||||
* *Optional* - Description of the project.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
*/
|
||||
forceDestroy?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
@@ -114,10 +127,14 @@ export interface ProjectArgs {
|
||||
* *Optional* - Description of the project.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
*/
|
||||
forceDestroy?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
|
||||
50
sdk/nodejs/provider.ts
generated
50
sdk/nodejs/provider.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";
|
||||
@@ -30,12 +30,15 @@ export class Provider extends pulumi.ProviderResource {
|
||||
/**
|
||||
* The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
|
||||
*/
|
||||
public readonly configDir!: pulumi.Output<string | undefined>;
|
||||
declare public readonly configDir: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
* default)
|
||||
* The default remote to use when no other remote is defined in a resource.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
declare public readonly defaultRemote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
*/
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Provider resource with the given unique name, arguments, and options.
|
||||
@@ -48,15 +51,25 @@ export class Provider extends pulumi.ProviderResource {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
{
|
||||
resourceInputs["acceptRemoteCertificate"] = pulumi.output(args ? args.acceptRemoteCertificate : undefined).apply(JSON.stringify);
|
||||
resourceInputs["configDir"] = args ? args.configDir : undefined;
|
||||
resourceInputs["generateClientCertificates"] = pulumi.output(args ? args.generateClientCertificates : undefined).apply(JSON.stringify);
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remotes"] = pulumi.output(args ? args.remotes : undefined).apply(JSON.stringify);
|
||||
resourceInputs["acceptRemoteCertificate"] = pulumi.output(args?.acceptRemoteCertificate).apply(JSON.stringify);
|
||||
resourceInputs["configDir"] = args?.configDir;
|
||||
resourceInputs["defaultRemote"] = args?.defaultRemote;
|
||||
resourceInputs["generateClientCertificates"] = pulumi.output(args?.generateClientCertificates).apply(JSON.stringify);
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remotes"] = pulumi.output(args?.remotes).apply(JSON.stringify);
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Provider.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
||||
*/
|
||||
terraformConfig(): pulumi.Output<Provider.TerraformConfigResult> {
|
||||
return pulumi.runtime.call("pulumi:providers:incus/terraformConfig", {
|
||||
"__self__": this,
|
||||
}, this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,13 +84,16 @@ export interface ProviderArgs {
|
||||
* The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
|
||||
*/
|
||||
configDir?: pulumi.Input<string>;
|
||||
/**
|
||||
* The default remote to use when no other remote is defined in a resource.
|
||||
*/
|
||||
defaultRemote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Automatically generate the Incus client certificates if they don't exist.
|
||||
*/
|
||||
generateClientCertificates?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
* default)
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
@@ -85,3 +101,13 @@ export interface ProviderArgs {
|
||||
*/
|
||||
remotes?: pulumi.Input<pulumi.Input<inputs.ProviderRemote>[]>;
|
||||
}
|
||||
|
||||
export namespace Provider {
|
||||
/**
|
||||
* The results of the Provider.terraformConfig method.
|
||||
*/
|
||||
export interface TerraformConfigResult {
|
||||
readonly result: {[key: string]: any};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
121
sdk/nodejs/server.ts
generated
Normal file
121
sdk/nodejs/server.ts
generated
Normal file
@@ -0,0 +1,121 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
export class Server extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing Server 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?: ServerState, opts?: pulumi.CustomResourceOptions): Server {
|
||||
return new Server(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'incus:index/server:Server';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of Server. 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 Server {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === Server.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
*/
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster where the config
|
||||
* options should be applied. This is in particular important for config options
|
||||
* with `local` scope.
|
||||
*/
|
||||
declare public readonly target: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Server 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?: ServerArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ServerArgs | ServerState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ServerState | undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["target"] = state?.target;
|
||||
} else {
|
||||
const args = argsOrState as ServerArgs | undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["target"] = args?.target;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Server.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering Server resources.
|
||||
*/
|
||||
export interface ServerState {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: 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* - Specify a target node in a cluster where the config
|
||||
* options should be applied. This is in particular important for config options
|
||||
* with `local` scope.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a Server resource.
|
||||
*/
|
||||
export interface ServerArgs {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: 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* - Specify a target node in a cluster where the config
|
||||
* options should be applied. This is in particular important for config options
|
||||
* with `local` scope.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
61
sdk/nodejs/storageBucket.ts
generated
61
sdk/nodejs/storageBucket.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";
|
||||
@@ -37,40 +37,40 @@ export class StorageBucket extends pulumi.CustomResource {
|
||||
* [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/#configure-storage-bucket-settings).
|
||||
* Config settings vary depending on the Storage Pool used.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage bucket.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* Name of the node where storage bucket was created. It could be useful with Incus in cluster mode.
|
||||
*/
|
||||
public /*out*/ readonly location!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly location: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket.
|
||||
*/
|
||||
public readonly pool!: pulumi.Output<string>;
|
||||
declare public readonly pool: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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* - Path to a backup file from which the bucket will be created.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<string | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string>;
|
||||
declare public readonly target: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a StorageBucket resource with the given unique name, arguments, and options.
|
||||
@@ -85,28 +85,31 @@ export class StorageBucket extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as StorageBucketState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["location"] = state ? state.location : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["pool"] = state ? state.pool : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["location"] = state?.location;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["pool"] = state?.pool;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["target"] = state?.target;
|
||||
} else {
|
||||
const args = argsOrState as StorageBucketArgs | undefined;
|
||||
if ((!args || args.pool === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.pool === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'pool'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["pool"] = args ? args.pool : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["pool"] = args?.pool;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["location"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -176,7 +179,7 @@ export interface StorageBucketArgs {
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket.
|
||||
*/
|
||||
|
||||
61
sdk/nodejs/storageBucketKey.ts
generated
61
sdk/nodejs/storageBucketKey.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";
|
||||
@@ -35,41 +35,41 @@ export class StorageBucketKey extends pulumi.CustomResource {
|
||||
/**
|
||||
* Access key of the storage bucket key.
|
||||
*/
|
||||
public /*out*/ readonly accessKey!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly accessKey: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Description of the storage bucket key.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket key.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket key.
|
||||
*/
|
||||
public readonly pool!: pulumi.Output<string>;
|
||||
declare public readonly pool: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket key will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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* - Name of the role that controls the access rights for the
|
||||
* key. If not specified, the default role is used, as described in the [official documentation](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/#manage-storage-bucket-keys).
|
||||
*/
|
||||
public readonly role!: pulumi.Output<string>;
|
||||
declare public readonly role: pulumi.Output<string>;
|
||||
/**
|
||||
* Secret key of the storage bucket key.
|
||||
*/
|
||||
public /*out*/ readonly secretKey!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly secretKey: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
public readonly storageBucket!: pulumi.Output<string>;
|
||||
declare public readonly storageBucket: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a StorageBucketKey resource with the given unique name, arguments, and options.
|
||||
@@ -84,30 +84,33 @@ export class StorageBucketKey extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as StorageBucketKeyState | undefined;
|
||||
resourceInputs["accessKey"] = state ? state.accessKey : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["pool"] = state ? state.pool : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["role"] = state ? state.role : undefined;
|
||||
resourceInputs["secretKey"] = state ? state.secretKey : undefined;
|
||||
resourceInputs["storageBucket"] = state ? state.storageBucket : undefined;
|
||||
resourceInputs["accessKey"] = state?.accessKey;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["pool"] = state?.pool;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["role"] = state?.role;
|
||||
resourceInputs["secretKey"] = state?.secretKey;
|
||||
resourceInputs["storageBucket"] = state?.storageBucket;
|
||||
} else {
|
||||
const args = argsOrState as StorageBucketKeyArgs | undefined;
|
||||
if ((!args || args.pool === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.pool === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'pool'");
|
||||
}
|
||||
if ((!args || args.storageBucket === undefined) && !opts.urn) {
|
||||
if (args?.storageBucket === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'storageBucket'");
|
||||
}
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["pool"] = args ? args.pool : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["role"] = args ? args.role : undefined;
|
||||
resourceInputs["storageBucket"] = args ? args.storageBucket : undefined;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["pool"] = args?.pool;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["role"] = args?.role;
|
||||
resourceInputs["storageBucket"] = args?.storageBucket;
|
||||
resourceInputs["accessKey"] = undefined /*out*/;
|
||||
resourceInputs["secretKey"] = undefined /*out*/;
|
||||
}
|
||||
@@ -173,7 +176,7 @@ export interface StorageBucketKeyArgs {
|
||||
/**
|
||||
* **Required** - Name of the storage bucket key.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket key.
|
||||
*/
|
||||
|
||||
63
sdk/nodejs/storagePool.ts
generated
63
sdk/nodejs/storagePool.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";
|
||||
@@ -37,32 +37,32 @@ export class StoragePool extends pulumi.CustomResource {
|
||||
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
* Config settings vary from driver to driver.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage pool.
|
||||
* *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
*/
|
||||
public readonly driver!: pulumi.Output<string>;
|
||||
declare public readonly driver: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage pool will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string | undefined>;
|
||||
declare public readonly target: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a StoragePool resource with the given unique name, arguments, and options.
|
||||
@@ -77,25 +77,28 @@ export class StoragePool extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as StoragePoolState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["driver"] = state ? state.driver : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["driver"] = state?.driver;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["target"] = state?.target;
|
||||
} else {
|
||||
const args = argsOrState as StoragePoolArgs | undefined;
|
||||
if ((!args || args.driver === undefined) && !opts.urn) {
|
||||
if (args?.driver === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'driver'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["driver"] = args ? args.driver : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["driver"] = args?.driver;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["target"] = args?.target;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(StoragePool.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -113,11 +116,11 @@ export interface StoragePoolState {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage pool.
|
||||
* *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
*/
|
||||
driver?: pulumi.Input<string>;
|
||||
/**
|
||||
@@ -150,17 +153,17 @@ export interface StoragePoolArgs {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage pool.
|
||||
* *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
*/
|
||||
driver: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage pool will be stored.
|
||||
*/
|
||||
|
||||
79
sdk/nodejs/storageVolume.ts
generated
79
sdk/nodejs/storageVolume.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";
|
||||
@@ -39,53 +39,53 @@ export class StorageVolume extends pulumi.CustomResource {
|
||||
* [volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
* Config settings vary depending on the Storage Pool used.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Volume content type (`filesystem` or `block`)
|
||||
*/
|
||||
public readonly contentType!: pulumi.Output<string>;
|
||||
declare public readonly contentType: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Description of the volume.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* Name of the node where volume was created. It could be useful with Incus in cluster mode.
|
||||
*/
|
||||
public /*out*/ readonly location!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly location: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage volume.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the volume.
|
||||
*/
|
||||
public readonly pool!: pulumi.Output<string>;
|
||||
declare public readonly pool: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the volume will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: 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* - Path to a backup file from which the volume will be created.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<string | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The source volume from which the volume will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceVolume!: pulumi.Output<outputs.StorageVolumeSourceVolume | undefined>;
|
||||
declare public readonly sourceVolume: pulumi.Output<outputs.StorageVolumeSourceVolume | undefined>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string>;
|
||||
declare public readonly target: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The "type" of volume. The default value is `custom`,
|
||||
* which is the type to use for storage volumes attached to instances.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a StorageVolume resource with the given unique name, arguments, and options.
|
||||
@@ -100,34 +100,37 @@ export class StorageVolume extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as StorageVolumeState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["contentType"] = state ? state.contentType : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["location"] = state ? state.location : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["pool"] = state ? state.pool : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["sourceVolume"] = state ? state.sourceVolume : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["contentType"] = state?.contentType;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["location"] = state?.location;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["pool"] = state?.pool;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["sourceVolume"] = state?.sourceVolume;
|
||||
resourceInputs["target"] = state?.target;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as StorageVolumeArgs | undefined;
|
||||
if ((!args || args.pool === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.pool === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'pool'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["contentType"] = args ? args.contentType : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["pool"] = args ? args.pool : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["sourceVolume"] = args ? args.sourceVolume : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["contentType"] = args?.contentType;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["pool"] = args?.pool;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["sourceVolume"] = args?.sourceVolume;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["location"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -214,7 +217,7 @@ export interface StorageVolumeArgs {
|
||||
/**
|
||||
* **Required** - Name of the storage volume.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the volume.
|
||||
*/
|
||||
|
||||
19
sdk/nodejs/tsconfig.json
generated
19
sdk/nodejs/tsconfig.json
generated
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "bin",
|
||||
"target": "es2016",
|
||||
"target": "ES2020",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
@@ -15,18 +15,32 @@
|
||||
"files": [
|
||||
"certificate.ts",
|
||||
"clusterGroup.ts",
|
||||
"clusterGroupAssignment.ts",
|
||||
"clusterGroupMember.ts",
|
||||
"config/index.ts",
|
||||
"config/vars.ts",
|
||||
"getCluster.ts",
|
||||
"getImage.ts",
|
||||
"getInstance.ts",
|
||||
"getNetwork.ts",
|
||||
"getNetworkAcl.ts",
|
||||
"getNetworkAddressSet.ts",
|
||||
"getNetworkForward.ts",
|
||||
"getNetworkIntegration.ts",
|
||||
"getNetworkLoadBalancer.ts",
|
||||
"getNetworkPeer.ts",
|
||||
"getNetworkZone.ts",
|
||||
"getProfile.ts",
|
||||
"getProject.ts",
|
||||
"getStorageBucket.ts",
|
||||
"getStoragePool.ts",
|
||||
"getStorageVolume.ts",
|
||||
"image.ts",
|
||||
"index.ts",
|
||||
"instance.ts",
|
||||
"instanceSnapshot.ts",
|
||||
"network.ts",
|
||||
"networkAcl.ts",
|
||||
"networkAddressSet.ts",
|
||||
"networkForward.ts",
|
||||
"networkIntegration.ts",
|
||||
"networkLoadBalancer.ts",
|
||||
@@ -36,6 +50,7 @@
|
||||
"profile.ts",
|
||||
"project.ts",
|
||||
"provider.ts",
|
||||
"server.ts",
|
||||
"storageBucket.ts",
|
||||
"storageBucketKey.ts",
|
||||
"storagePool.ts",
|
||||
|
||||
2
sdk/nodejs/types/index.ts
generated
2
sdk/nodejs/types/index.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 utilities from "../utilities";
|
||||
|
||||
367
sdk/nodejs/types/input.ts
generated
367
sdk/nodejs/types/input.ts
generated
@@ -1,10 +1,346 @@
|
||||
// *** 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";
|
||||
import * as inputs from "../types/input";
|
||||
import * as outputs from "../types/output";
|
||||
|
||||
export interface GetInstanceDevice {
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/).
|
||||
*/
|
||||
properties?: {[key: string]: string};
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface GetInstanceDeviceArgs {
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/).
|
||||
*/
|
||||
properties?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
export interface GetNetworkAclEgress {
|
||||
/**
|
||||
* Action to perform on rule match.
|
||||
*/
|
||||
action: string;
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Destination address.
|
||||
*/
|
||||
destination: string;
|
||||
/**
|
||||
* Destination port.
|
||||
*/
|
||||
destinationPort: string;
|
||||
/**
|
||||
* ICMP message code (for ICMP protocol).
|
||||
*/
|
||||
icmpCode: string;
|
||||
/**
|
||||
* Type of ICMP message.
|
||||
*/
|
||||
icmpType: string;
|
||||
/**
|
||||
* Protocol (e.g., tcp, udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* Source address.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* Source port.
|
||||
*/
|
||||
sourcePort: string;
|
||||
/**
|
||||
* State of the rule.
|
||||
*/
|
||||
state: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkAclEgressArgs {
|
||||
/**
|
||||
* Action to perform on rule match.
|
||||
*/
|
||||
action: pulumi.Input<string>;
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description: pulumi.Input<string>;
|
||||
/**
|
||||
* Destination address.
|
||||
*/
|
||||
destination: pulumi.Input<string>;
|
||||
/**
|
||||
* Destination port.
|
||||
*/
|
||||
destinationPort: pulumi.Input<string>;
|
||||
/**
|
||||
* ICMP message code (for ICMP protocol).
|
||||
*/
|
||||
icmpCode: pulumi.Input<string>;
|
||||
/**
|
||||
* Type of ICMP message.
|
||||
*/
|
||||
icmpType: pulumi.Input<string>;
|
||||
/**
|
||||
* Protocol (e.g., tcp, udp).
|
||||
*/
|
||||
protocol: pulumi.Input<string>;
|
||||
/**
|
||||
* Source address.
|
||||
*/
|
||||
source: pulumi.Input<string>;
|
||||
/**
|
||||
* Source port.
|
||||
*/
|
||||
sourcePort: pulumi.Input<string>;
|
||||
/**
|
||||
* State of the rule.
|
||||
*/
|
||||
state: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
export interface GetNetworkAclIngress {
|
||||
/**
|
||||
* Action to perform on rule match.
|
||||
*/
|
||||
action: string;
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Destination address.
|
||||
*/
|
||||
destination: string;
|
||||
/**
|
||||
* Destination port.
|
||||
*/
|
||||
destinationPort: string;
|
||||
/**
|
||||
* ICMP message code (for ICMP protocol).
|
||||
*/
|
||||
icmpCode: string;
|
||||
/**
|
||||
* Type of ICMP message.
|
||||
*/
|
||||
icmpType: string;
|
||||
/**
|
||||
* Protocol (e.g., tcp, udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* Source address.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* Source port.
|
||||
*/
|
||||
sourcePort: string;
|
||||
/**
|
||||
* State of the rule.
|
||||
*/
|
||||
state: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkAclIngressArgs {
|
||||
/**
|
||||
* Action to perform on rule match.
|
||||
*/
|
||||
action: pulumi.Input<string>;
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description: pulumi.Input<string>;
|
||||
/**
|
||||
* Destination address.
|
||||
*/
|
||||
destination: pulumi.Input<string>;
|
||||
/**
|
||||
* Destination port.
|
||||
*/
|
||||
destinationPort: pulumi.Input<string>;
|
||||
/**
|
||||
* ICMP message code (for ICMP protocol).
|
||||
*/
|
||||
icmpCode: pulumi.Input<string>;
|
||||
/**
|
||||
* Type of ICMP message.
|
||||
*/
|
||||
icmpType: pulumi.Input<string>;
|
||||
/**
|
||||
* Protocol (e.g., tcp, udp).
|
||||
*/
|
||||
protocol: pulumi.Input<string>;
|
||||
/**
|
||||
* Source address.
|
||||
*/
|
||||
source: pulumi.Input<string>;
|
||||
/**
|
||||
* Source port.
|
||||
*/
|
||||
sourcePort: pulumi.Input<string>;
|
||||
/**
|
||||
* State of the rule.
|
||||
*/
|
||||
state: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
export interface GetNetworkForwardPort {
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* ListenPort(s) to forward (comma delimited ranges).
|
||||
*/
|
||||
listenPort: string;
|
||||
/**
|
||||
* Protocol for port forward (either tcp or udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target.
|
||||
*/
|
||||
snat: boolean;
|
||||
/**
|
||||
* Target address to forward ListenPorts to.
|
||||
*/
|
||||
targetAddress: string;
|
||||
/**
|
||||
* Target port(s) to forward ListenPorts to (allows for many-to-one).
|
||||
*/
|
||||
targetPort: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkForwardPortArgs {
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
description: pulumi.Input<string>;
|
||||
/**
|
||||
* ListenPort(s) to forward (comma delimited ranges).
|
||||
*/
|
||||
listenPort: pulumi.Input<string>;
|
||||
/**
|
||||
* Protocol for port forward (either tcp or udp).
|
||||
*/
|
||||
protocol: pulumi.Input<string>;
|
||||
/**
|
||||
* SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target.
|
||||
*/
|
||||
snat: pulumi.Input<boolean>;
|
||||
/**
|
||||
* Target address to forward ListenPorts to.
|
||||
*/
|
||||
targetAddress: pulumi.Input<string>;
|
||||
/**
|
||||
* Target port(s) to forward ListenPorts to (allows for many-to-one).
|
||||
*/
|
||||
targetPort: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
export interface GetNetworkLoadBalancerBackend {
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Name of the load balancer backend.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* TargetAddress to forward ListenPorts to.
|
||||
*/
|
||||
targetAddress: string;
|
||||
/**
|
||||
* TargetPort(s) for the forward ListenPorts to (allows for many-to one).
|
||||
*/
|
||||
targetPort: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkLoadBalancerBackendArgs {
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description: pulumi.Input<string>;
|
||||
/**
|
||||
* Name of the load balancer backend.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* TargetAddress to forward ListenPorts to.
|
||||
*/
|
||||
targetAddress: pulumi.Input<string>;
|
||||
/**
|
||||
* TargetPort(s) for the forward ListenPorts to (allows for many-to one).
|
||||
*/
|
||||
targetPort: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
export interface GetNetworkLoadBalancerPort {
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* ListenPort(s) for the load balancer (comma delimited ranges).
|
||||
*/
|
||||
listenPort: string;
|
||||
/**
|
||||
* Protocol for load balancer (either tcp or udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* TargetBackend backend names to load balance ListenPorts to.
|
||||
*/
|
||||
targetBackends: string[];
|
||||
}
|
||||
|
||||
export interface GetNetworkLoadBalancerPortArgs {
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description: pulumi.Input<string>;
|
||||
/**
|
||||
* ListenPort(s) for the load balancer (comma delimited ranges).
|
||||
*/
|
||||
listenPort: pulumi.Input<string>;
|
||||
/**
|
||||
* Protocol for load balancer (either tcp or udp).
|
||||
*/
|
||||
protocol: pulumi.Input<string>;
|
||||
/**
|
||||
* TargetBackend backend names to load balance ListenPorts to.
|
||||
*/
|
||||
targetBackends: pulumi.Input<pulumi.Input<string>[]>;
|
||||
}
|
||||
|
||||
export interface GetProfileDevice {
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
@@ -39,6 +375,17 @@ export interface GetProfileDeviceArgs {
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
export interface ImageAlias {
|
||||
/**
|
||||
* *Optional* - A description for the alias.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - The name of the alias.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
export interface ImageSourceFile {
|
||||
/**
|
||||
* **Required** - Either the path of an [unified image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-unified)
|
||||
@@ -344,27 +691,27 @@ export interface ProfileDevice {
|
||||
|
||||
export interface ProviderRemote {
|
||||
/**
|
||||
* The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
|
||||
* The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
|
||||
*/
|
||||
address?: pulumi.Input<string>;
|
||||
/**
|
||||
* Set this remote as default.
|
||||
* Server authentication type, tls or oidc. ( Only for the `incus` protocol )
|
||||
*/
|
||||
default?: pulumi.Input<boolean>;
|
||||
authenticationType?: pulumi.Input<string>;
|
||||
/**
|
||||
* Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
|
||||
* Name of the Incus remote.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* Port Incus Daemon API is listening on. (default = 8443)
|
||||
* Server protocol ( incus, oci or simplestreams )
|
||||
*/
|
||||
port?: pulumi.Input<string>;
|
||||
protocol?: pulumi.Input<string>;
|
||||
/**
|
||||
* Unix (unix) or HTTPs (https). (default = unix)
|
||||
* Public image server
|
||||
*/
|
||||
scheme?: pulumi.Input<string>;
|
||||
public?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* The trust token for the remote.
|
||||
* The trust token used for initial authentication with the Incus remote.
|
||||
*/
|
||||
token?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
235
sdk/nodejs/types/output.ts
generated
235
sdk/nodejs/types/output.ts
generated
@@ -1,10 +1,212 @@
|
||||
// *** 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";
|
||||
import * as inputs from "../types/input";
|
||||
import * as outputs from "../types/output";
|
||||
|
||||
export interface GetClusterMembers {
|
||||
/**
|
||||
* Address of the cluster member, that is used for cluster communication.
|
||||
*/
|
||||
address: string;
|
||||
/**
|
||||
* Architecture of the cluster member (e.g. x86_64, aarch64).
|
||||
* See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/)
|
||||
* for all possible values.
|
||||
*/
|
||||
architecture: string;
|
||||
/**
|
||||
* Description of the cluster member.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Failure domain of the cluster member.
|
||||
*/
|
||||
failureDomain: string;
|
||||
/**
|
||||
* A list of groups the cluster member belongs to.
|
||||
*/
|
||||
groups: string[];
|
||||
/**
|
||||
* A list of roles assigned to the cluster member.
|
||||
*/
|
||||
roles: string[];
|
||||
/**
|
||||
* Status of the cluster member. Possible values are
|
||||
* `Online`, `Evacuated`, `Offline`, `Blocked`.
|
||||
*/
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface GetInstanceDevice {
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/).
|
||||
*/
|
||||
properties: {[key: string]: string};
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkAclEgress {
|
||||
/**
|
||||
* Action to perform on rule match.
|
||||
*/
|
||||
action: string;
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Destination address.
|
||||
*/
|
||||
destination: string;
|
||||
/**
|
||||
* Destination port.
|
||||
*/
|
||||
destinationPort: string;
|
||||
/**
|
||||
* ICMP message code (for ICMP protocol).
|
||||
*/
|
||||
icmpCode: string;
|
||||
/**
|
||||
* Type of ICMP message.
|
||||
*/
|
||||
icmpType: string;
|
||||
/**
|
||||
* Protocol (e.g., tcp, udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* Source address.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* Source port.
|
||||
*/
|
||||
sourcePort: string;
|
||||
/**
|
||||
* State of the rule.
|
||||
*/
|
||||
state: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkAclIngress {
|
||||
/**
|
||||
* Action to perform on rule match.
|
||||
*/
|
||||
action: string;
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Destination address.
|
||||
*/
|
||||
destination: string;
|
||||
/**
|
||||
* Destination port.
|
||||
*/
|
||||
destinationPort: string;
|
||||
/**
|
||||
* ICMP message code (for ICMP protocol).
|
||||
*/
|
||||
icmpCode: string;
|
||||
/**
|
||||
* Type of ICMP message.
|
||||
*/
|
||||
icmpType: string;
|
||||
/**
|
||||
* Protocol (e.g., tcp, udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* Source address.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* Source port.
|
||||
*/
|
||||
sourcePort: string;
|
||||
/**
|
||||
* State of the rule.
|
||||
*/
|
||||
state: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkForwardPort {
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* ListenPort(s) to forward (comma delimited ranges).
|
||||
*/
|
||||
listenPort: string;
|
||||
/**
|
||||
* Protocol for port forward (either tcp or udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target.
|
||||
*/
|
||||
snat: boolean;
|
||||
/**
|
||||
* Target address to forward ListenPorts to.
|
||||
*/
|
||||
targetAddress: string;
|
||||
/**
|
||||
* Target port(s) to forward ListenPorts to (allows for many-to-one).
|
||||
*/
|
||||
targetPort: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkLoadBalancerBackend {
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Name of the load balancer backend.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* TargetAddress to forward ListenPorts to.
|
||||
*/
|
||||
targetAddress: string;
|
||||
/**
|
||||
* TargetPort(s) for the forward ListenPorts to (allows for many-to one).
|
||||
*/
|
||||
targetPort: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkLoadBalancerPort {
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* ListenPort(s) for the load balancer (comma delimited ranges).
|
||||
*/
|
||||
listenPort: string;
|
||||
/**
|
||||
* Protocol for load balancer (either tcp or udp).
|
||||
*/
|
||||
protocol: string;
|
||||
/**
|
||||
* TargetBackend backend names to load balance ListenPorts to.
|
||||
*/
|
||||
targetBackends: string[];
|
||||
}
|
||||
|
||||
export interface GetProfileDevice {
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
@@ -22,6 +224,17 @@ export interface GetProfileDevice {
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface ImageAlias {
|
||||
/**
|
||||
* *Optional* - A description for the alias.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* **Required** - The name of the alias.
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface ImageSourceFile {
|
||||
/**
|
||||
* **Required** - Either the path of an [unified image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-unified)
|
||||
@@ -271,7 +484,7 @@ export interface NetworkLoadBalancerBackend {
|
||||
/**
|
||||
* LB backend target port
|
||||
*/
|
||||
targetPort: string;
|
||||
targetPort?: string;
|
||||
}
|
||||
|
||||
export interface NetworkLoadBalancerPort {
|
||||
@@ -344,27 +557,27 @@ export interface StorageVolumeSourceVolume {
|
||||
export namespace config {
|
||||
export interface Remotes {
|
||||
/**
|
||||
* The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
|
||||
* The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
|
||||
*/
|
||||
address?: string;
|
||||
/**
|
||||
* Set this remote as default.
|
||||
* Server authentication type, tls or oidc. ( Only for the `incus` protocol )
|
||||
*/
|
||||
default?: boolean;
|
||||
authenticationType?: string;
|
||||
/**
|
||||
* Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
|
||||
* Name of the Incus remote.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Port Incus Daemon API is listening on. (default = 8443)
|
||||
* Server protocol ( incus, oci or simplestreams )
|
||||
*/
|
||||
port?: string;
|
||||
protocol?: string;
|
||||
/**
|
||||
* Unix (unix) or HTTPs (https). (default = unix)
|
||||
* Public image server
|
||||
*/
|
||||
scheme?: string;
|
||||
public?: boolean;
|
||||
/**
|
||||
* The trust token for the remote.
|
||||
* The trust token used for initial authentication with the Incus remote.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
|
||||
3
sdk/nodejs/utilities.ts
generated
3
sdk/nodejs/utilities.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! ***
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ export function lazyLoad(exports: any, props: string[], loadModule: any) {
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export async function callAsync<T>(
|
||||
tok: string,
|
||||
props: pulumi.Inputs,
|
||||
|
||||
Reference in New Issue
Block a user