style: format with tabs

This commit is contained in:
2025-12-08 11:14:14 -05:00
parent c4445aa92f
commit 54f0fdb6c9
48 changed files with 7088 additions and 6580 deletions

7
sdk/nodejs/.oxfmtrc.json generated Normal file
View File

@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
// Use 80 if migrating from Prettier; 100 is the Oxfmt default!
"printWidth": 100,
"useTabs": true,
"tabWidth": 4
}

View File

@@ -10,183 +10,192 @@ import * as utilities from "./utilities";
* Manages an Incus certificate.
*/
export class Certificate extends pulumi.CustomResource {
/**
* Get an existing Certificate resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate {
return new Certificate(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing Certificate resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(
name: string,
id: pulumi.Input<pulumi.ID>,
state?: CertificateState,
opts?: pulumi.CustomResourceOptions,
): Certificate {
return new Certificate(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/certificate:Certificate';
/** @internal */
public static readonly __pulumiType = "incus:index/certificate:Certificate";
/**
* Returns true if the given object is an instance of Certificate. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is Certificate {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Certificate.__pulumiType;
}
/**
* Returns true if the given object is an instance of Certificate. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is Certificate {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === Certificate.__pulumiType;
}
/**
* **Required** - The certificate.
*/
declare public readonly certificate: pulumi.Output<string>;
/**
* *Optional* - Description of the certificate.
*/
declare public readonly description: pulumi.Output<string>;
/**
* The fingerprint of the certificate.
*/
declare public /*out*/ readonly fingerprint: pulumi.Output<string>;
/**
* **Required** - Name of the certificate.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - List of projects to restrict the certificate to.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Restrict the certificate to one or more projects.
*/
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.
*/
declare public readonly type: pulumi.Output<string>;
/**
* **Required** - The certificate.
*/
declare public readonly certificate: pulumi.Output<string>;
/**
* *Optional* - Description of the certificate.
*/
declare public readonly description: pulumi.Output<string>;
/**
* The fingerprint of the certificate.
*/
declare public readonly /*out*/ fingerprint: pulumi.Output<string>;
/**
* **Required** - Name of the certificate.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - List of projects to restrict the certificate to.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Restrict the certificate to one or more projects.
*/
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.
*/
declare public readonly type: pulumi.Output<string>;
/**
* Create a Certificate resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: CertificateArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: CertificateArgs | CertificateState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as CertificateState | undefined;
resourceInputs["certificate"] = state?.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?.certificate === undefined && !opts.urn) {
throw new Error("Missing required property 'certificate'");
}
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);
super(Certificate.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a Certificate resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: CertificateArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: CertificateArgs | CertificateState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as CertificateState | undefined;
resourceInputs["certificate"] = state?.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?.certificate === undefined && !opts.urn) {
throw new Error("Missing required property 'certificate'");
}
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);
super(Certificate.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering Certificate resources.
*/
export interface CertificateState {
/**
* **Required** - The certificate.
*/
certificate?: pulumi.Input<string>;
/**
* *Optional* - Description of the certificate.
*/
description?: pulumi.Input<string>;
/**
* The fingerprint of the certificate.
*/
fingerprint?: pulumi.Input<string>;
/**
* **Required** - Name of the certificate.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - List of projects to restrict the certificate to.
*/
projects?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.
*/
remote?: pulumi.Input<string>;
/**
* *Optional* - Restrict the certificate to one or more projects.
*/
restricted?: pulumi.Input<boolean>;
/**
* *Optional* - The type of certificate to create. Can be one of: client,
* or metrics. If no type is specified, a client certificate is created.
*/
type?: pulumi.Input<string>;
/**
* **Required** - The certificate.
*/
certificate?: pulumi.Input<string>;
/**
* *Optional* - Description of the certificate.
*/
description?: pulumi.Input<string>;
/**
* The fingerprint of the certificate.
*/
fingerprint?: pulumi.Input<string>;
/**
* **Required** - Name of the certificate.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - List of projects to restrict the certificate to.
*/
projects?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.
*/
remote?: pulumi.Input<string>;
/**
* *Optional* - Restrict the certificate to one or more projects.
*/
restricted?: pulumi.Input<boolean>;
/**
* *Optional* - The type of certificate to create. Can be one of: client,
* or metrics. If no type is specified, a client certificate is created.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Certificate resource.
*/
export interface CertificateArgs {
/**
* **Required** - The certificate.
*/
certificate: pulumi.Input<string>;
/**
* *Optional* - Description of the certificate.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the certificate.
*/
name: pulumi.Input<string>;
/**
* *Optional* - List of projects to restrict the certificate to.
*/
projects?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.
*/
remote?: pulumi.Input<string>;
/**
* *Optional* - Restrict the certificate to one or more projects.
*/
restricted?: pulumi.Input<boolean>;
/**
* *Optional* - The type of certificate to create. Can be one of: client,
* or metrics. If no type is specified, a client certificate is created.
*/
type?: pulumi.Input<string>;
/**
* **Required** - The certificate.
*/
certificate: pulumi.Input<string>;
/**
* *Optional* - Description of the certificate.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the certificate.
*/
name: pulumi.Input<string>;
/**
* *Optional* - List of projects to restrict the certificate to.
*/
projects?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.
*/
remote?: pulumi.Input<string>;
/**
* *Optional* - Restrict the certificate to one or more projects.
*/
restricted?: pulumi.Input<boolean>;
/**
* *Optional* - The type of certificate to create. Can be one of: client,
* or metrics. If no type is specified, a client certificate is created.
*/
type?: pulumi.Input<string>;
}

View File

@@ -5,128 +5,137 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class ClusterGroup extends pulumi.CustomResource {
/**
* Get an existing ClusterGroup 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?: ClusterGroupState, opts?: pulumi.CustomResourceOptions): ClusterGroup {
return new ClusterGroup(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing ClusterGroup 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?: ClusterGroupState,
opts?: pulumi.CustomResourceOptions,
): ClusterGroup {
return new ClusterGroup(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/clusterGroup:ClusterGroup';
/** @internal */
public static readonly __pulumiType = "incus:index/clusterGroup:ClusterGroup";
/**
* Returns true if the given object is an instance of ClusterGroup. 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 ClusterGroup {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === ClusterGroup.__pulumiType;
}
/**
* Returns true if the given object is an instance of ClusterGroup. 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 ClusterGroup {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === ClusterGroup.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
*/
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.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Map of key/value pairs of
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
*/
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.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* Create a ClusterGroup 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: 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?.config;
resourceInputs["description"] = state?.description;
resourceInputs["name"] = state?.name;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as ClusterGroupArgs | 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);
}
/**
* Create a ClusterGroup 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: 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?.config;
resourceInputs["description"] = state?.description;
resourceInputs["name"] = state?.name;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as ClusterGroupArgs | 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);
}
}
/**
* Input properties used for looking up and filtering ClusterGroup resources.
*/
export interface ClusterGroupState {
/**
* *Optional* - Map of key/value pairs of
* [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>;
/**
* *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* - Map of key/value pairs of
* [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>;
/**
* *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 ClusterGroup resource.
*/
export interface ClusterGroupArgs {
/**
* *Optional* - Map of key/value pairs of
* [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>;
/**
* *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* - Map of key/value pairs of
* [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>;
/**
* *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>;
}

View File

@@ -5,114 +5,123 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class ClusterGroupMember extends pulumi.CustomResource {
/**
* 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.
* @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?: ClusterGroupMemberState, opts?: pulumi.CustomResourceOptions): ClusterGroupMember {
return new ClusterGroupMember(name, <any>state, { ...opts, id: id });
}
/**
* 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.
* @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?: ClusterGroupMemberState,
opts?: pulumi.CustomResourceOptions,
): ClusterGroupMember {
return new ClusterGroupMember(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/clusterGroupMember:ClusterGroupMember';
/** @internal */
public static readonly __pulumiType = "incus:index/clusterGroupMember:ClusterGroupMember";
/**
* 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 ClusterGroupMember {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === ClusterGroupMember.__pulumiType;
}
/**
* 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 ClusterGroupMember {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === ClusterGroupMember.__pulumiType;
}
/**
* **Required** - Name of the cluster group.
*/
declare public readonly clusterGroup: pulumi.Output<string>;
/**
* **Required** - Name of the cluster group member.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* **Required** - Name of the cluster group.
*/
declare public readonly clusterGroup: pulumi.Output<string>;
/**
* **Required** - Name of the cluster group member.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* 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: 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 ClusterGroupMemberState | undefined;
resourceInputs["clusterGroup"] = state?.clusterGroup;
resourceInputs["member"] = state?.member;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as ClusterGroupMemberArgs | undefined;
if (args?.clusterGroup === undefined && !opts.urn) {
throw new Error("Missing required property 'clusterGroup'");
}
if (args?.member === undefined && !opts.urn) {
throw new Error("Missing required property 'member'");
}
resourceInputs["clusterGroup"] = args?.clusterGroup;
resourceInputs["member"] = args?.member;
resourceInputs["remote"] = args?.remote;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ClusterGroupMember.__pulumiType, name, resourceInputs, opts);
}
/**
* 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: 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 ClusterGroupMemberState | undefined;
resourceInputs["clusterGroup"] = state?.clusterGroup;
resourceInputs["member"] = state?.member;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as ClusterGroupMemberArgs | undefined;
if (args?.clusterGroup === undefined && !opts.urn) {
throw new Error("Missing required property 'clusterGroup'");
}
if (args?.member === undefined && !opts.urn) {
throw new Error("Missing required property 'member'");
}
resourceInputs["clusterGroup"] = args?.clusterGroup;
resourceInputs["member"] = args?.member;
resourceInputs["remote"] = args?.remote;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ClusterGroupMember.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering ClusterGroupMember resources.
*/
export interface ClusterGroupMemberState {
/**
* **Required** - Name of the cluster group.
*/
clusterGroup?: pulumi.Input<string>;
/**
* **Required** - Name of the cluster group member.
*/
member?: 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>;
/**
* **Required** - Name of the cluster group.
*/
clusterGroup?: pulumi.Input<string>;
/**
* **Required** - Name of the cluster group member.
*/
member?: 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 ClusterGroupMember resource.
*/
export interface ClusterGroupMemberArgs {
/**
* **Required** - Name of the cluster group.
*/
clusterGroup: pulumi.Input<string>;
/**
* **Required** - Name of the cluster group member.
*/
member: 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>;
/**
* **Required** - Name of the cluster group.
*/
clusterGroup: pulumi.Input<string>;
/**
* **Required** - Name of the cluster group member.
*/
member: 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>;
}

View File

@@ -14,10 +14,10 @@ const __config = new pulumi.Config("incus");
*/
export declare const acceptRemoteCertificate: boolean | undefined;
Object.defineProperty(exports, "acceptRemoteCertificate", {
get() {
return __config.getObject<boolean>("acceptRemoteCertificate");
},
enumerable: true,
get() {
return __config.getObject<boolean>("acceptRemoteCertificate");
},
enumerable: true,
});
/**
@@ -25,10 +25,10 @@ Object.defineProperty(exports, "acceptRemoteCertificate", {
*/
export declare const configDir: string | undefined;
Object.defineProperty(exports, "configDir", {
get() {
return __config.get("configDir");
},
enumerable: true,
get() {
return __config.get("configDir");
},
enumerable: true,
});
/**
@@ -36,10 +36,10 @@ Object.defineProperty(exports, "configDir", {
*/
export declare const defaultRemote: string | undefined;
Object.defineProperty(exports, "defaultRemote", {
get() {
return __config.get("defaultRemote");
},
enumerable: true,
get() {
return __config.get("defaultRemote");
},
enumerable: true,
});
/**
@@ -47,10 +47,10 @@ Object.defineProperty(exports, "defaultRemote", {
*/
export declare const generateClientCertificates: boolean | undefined;
Object.defineProperty(exports, "generateClientCertificates", {
get() {
return __config.getObject<boolean>("generateClientCertificates");
},
enumerable: true,
get() {
return __config.getObject<boolean>("generateClientCertificates");
},
enumerable: true,
});
/**
@@ -58,10 +58,10 @@ Object.defineProperty(exports, "generateClientCertificates", {
*/
export declare const project: string | undefined;
Object.defineProperty(exports, "project", {
get() {
return __config.get("project");
},
enumerable: true,
get() {
return __config.get("project");
},
enumerable: true,
});
/**
@@ -69,9 +69,8 @@ Object.defineProperty(exports, "project", {
*/
export declare const remotes: outputs.config.Remotes[] | undefined;
Object.defineProperty(exports, "remotes", {
get() {
return __config.getObject<outputs.config.Remotes[]>("remotes");
},
enumerable: true,
get() {
return __config.getObject<outputs.config.Remotes[]>("remotes");
},
enumerable: true,
});

View File

@@ -2,7 +2,6 @@
// *** 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";
@@ -58,43 +57,50 @@ import * as utilities from "./utilities";
*
* * 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);
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;
/**
* *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;
/**
* 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
@@ -148,21 +154,28 @@ export interface GetClusterResult {
*
* * 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);
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>;
/**
* *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>;
}

194
sdk/nodejs/getImage.ts generated
View File

@@ -24,72 +24,79 @@ import * as utilities from "./utilities";
* });
* ```
*/
export function getImage(args?: GetImageArgs, opts?: pulumi.InvokeOptions): Promise<GetImageResult> {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("incus:index/getImage:getImage", {
"architecture": args.architecture,
"fingerprint": args.fingerprint,
"name": args.name,
"project": args.project,
"remote": args.remote,
"type": args.type,
}, opts);
export function getImage(
args?: GetImageArgs,
opts?: pulumi.InvokeOptions,
): Promise<GetImageResult> {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke(
"incus:index/getImage:getImage",
{
architecture: args.architecture,
fingerprint: args.fingerprint,
name: args.name,
project: args.project,
remote: args.remote,
type: args.type,
},
opts,
);
}
/**
* A collection of arguments for invoking getImage.
*/
export interface GetImageArgs {
/**
* *Optional* - The image architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
*/
architecture?: string;
/**
* *Optional* - Fingerprint of the image.
*/
fingerprint?: string;
/**
* *Optional* - Name of the image.
*/
name?: string;
/**
* *Optional* - Name of the project where the image is 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* - Type of image. Must be one of `container` or `virtual-machine`.
*/
type?: string;
/**
* *Optional* - The image architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
*/
architecture?: string;
/**
* *Optional* - Fingerprint of the image.
*/
fingerprint?: string;
/**
* *Optional* - Name of the image.
*/
name?: string;
/**
* *Optional* - Name of the project where the image is 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* - Type of image. Must be one of `container` or `virtual-machine`.
*/
type?: string;
}
/**
* A collection of values returned by getImage.
*/
export interface GetImageResult {
/**
* The list of aliases for the image.
*/
readonly aliases: string[];
readonly architecture: string;
/**
* The datetime of image creation, in Unix time.
*/
readonly createdAt: number;
readonly fingerprint: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name?: string;
readonly project?: string;
readonly remote?: string;
readonly type: string;
/**
* The list of aliases for the image.
*/
readonly aliases: string[];
readonly architecture: string;
/**
* The datetime of image creation, in Unix time.
*/
readonly createdAt: number;
readonly fingerprint: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name?: string;
readonly project?: string;
readonly remote?: string;
readonly type: string;
}
/**
* ## # incus.Image
@@ -111,46 +118,53 @@ export interface GetImageResult {
* });
* ```
*/
export function getImageOutput(args?: GetImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetImageResult> {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("incus:index/getImage:getImage", {
"architecture": args.architecture,
"fingerprint": args.fingerprint,
"name": args.name,
"project": args.project,
"remote": args.remote,
"type": args.type,
}, opts);
export function getImageOutput(
args?: GetImageOutputArgs,
opts?: pulumi.InvokeOutputOptions,
): pulumi.Output<GetImageResult> {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput(
"incus:index/getImage:getImage",
{
architecture: args.architecture,
fingerprint: args.fingerprint,
name: args.name,
project: args.project,
remote: args.remote,
type: args.type,
},
opts,
);
}
/**
* A collection of arguments for invoking getImage.
*/
export interface GetImageOutputArgs {
/**
* *Optional* - The image architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
*/
architecture?: pulumi.Input<string>;
/**
* *Optional* - Fingerprint of the image.
*/
fingerprint?: pulumi.Input<string>;
/**
* *Optional* - Name of the image.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the image is 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* - Type of image. Must be one of `container` or `virtual-machine`.
*/
type?: pulumi.Input<string>;
/**
* *Optional* - The image architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
*/
architecture?: pulumi.Input<string>;
/**
* *Optional* - Fingerprint of the image.
*/
fingerprint?: pulumi.Input<string>;
/**
* *Optional* - Name of the image.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the image is 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* - Type of image. Must be one of `container` or `virtual-machine`.
*/
type?: pulumi.Input<string>;
}

View File

@@ -24,136 +24,143 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -173,76 +180,83 @@ export interface GetInstanceResult {
* 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);
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>;
/**
* 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>;
}

286
sdk/nodejs/getNetwork.ts generated
View File

@@ -22,103 +22,110 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -138,61 +145,68 @@ export interface GetNetworkResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -24,76 +24,83 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -113,45 +120,52 @@ export interface GetNetworkAclResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -22,67 +22,74 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -102,40 +109,47 @@ export interface GetNetworkAddressSetResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -25,88 +25,95 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -127,55 +134,62 @@ export interface GetNetworkForwardResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -22,61 +22,68 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -96,35 +103,42 @@ export interface GetNetworkIntegrationResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -25,91 +25,98 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -130,55 +137,62 @@ export interface GetNetworkLoadBalancerResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -23,109 +23,116 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -146,65 +153,72 @@ export interface GetNetworkPeerResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -22,58 +22,65 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -93,35 +100,42 @@ export interface GetNetworkZoneResult {
* 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);
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>;
/**
* 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>;
}

180
sdk/nodejs/getProfile.ts generated
View File

@@ -24,71 +24,78 @@ import * as utilities from "./utilities";
* 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,
"remote": args.remote,
}, opts);
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,
remote: args.remote,
},
opts,
);
}
/**
* A collection of arguments for invoking getProfile.
*/
export interface GetProfileArgs {
/**
* Description of the profile.
*/
description?: string;
/**
* Device definitions. See reference below.
*/
devices?: inputs.GetProfileDevice[];
/**
* **Required** - Name of the profile.
*/
name: string;
/**
* *Optional* - Name of the project where the profile 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;
/**
* Description of the profile.
*/
description?: string;
/**
* Device definitions. See reference below.
*/
devices?: inputs.GetProfileDevice[];
/**
* **Required** - Name of the profile.
*/
name: string;
/**
* *Optional* - Name of the project where the profile 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 getProfile.
*/
export interface GetProfileResult {
/**
* 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 definitions. See reference below.
*/
readonly devices?: outputs.GetProfileDevice[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Name of the device.
*/
readonly name: string;
readonly project?: string;
readonly remote?: 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 profile.
*/
readonly description: string;
/**
* Device definitions. See reference below.
*/
readonly devices?: outputs.GetProfileDevice[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Name of the device.
*/
readonly name: string;
readonly project?: string;
readonly remote?: string;
}
/**
* ## # incus.Profile
@@ -108,40 +115,47 @@ export interface GetProfileResult {
* 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,
"remote": args.remote,
}, opts);
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,
remote: args.remote,
},
opts,
);
}
/**
* A collection of arguments for invoking getProfile.
*/
export interface GetProfileOutputArgs {
/**
* Description of the profile.
*/
description?: pulumi.Input<string>;
/**
* Device definitions. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.GetProfileDeviceArgs>[]>;
/**
* **Required** - Name of the profile.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the profile 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>;
/**
* Description of the profile.
*/
description?: pulumi.Input<string>;
/**
* Device definitions. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.GetProfileDeviceArgs>[]>;
/**
* **Required** - Name of the profile.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the profile 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>;
}

124
sdk/nodejs/getProject.ts generated
View File

@@ -21,53 +21,60 @@ import * as utilities from "./utilities";
* 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", {
"description": args.description,
"name": args.name,
"remote": args.remote,
}, opts);
export function getProject(
args: GetProjectArgs,
opts?: pulumi.InvokeOptions,
): Promise<GetProjectResult> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke(
"incus:index/getProject:getProject",
{
description: args.description,
name: args.name,
remote: args.remote,
},
opts,
);
}
/**
* A collection of arguments for invoking getProject.
*/
export interface GetProjectArgs {
/**
* Description of the project.
*/
description?: string;
/**
* **Required** - Name of the project.
*/
name: string;
/**
* *Optional* - The remote in which the resource was created. If
* not provided, the provider's default remote will be used.
*/
remote?: string;
/**
* Description of the project.
*/
description?: string;
/**
* **Required** - Name of the project.
*/
name: 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 getProject.
*/
export interface GetProjectResult {
/**
* 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 project.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly remote?: 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 project.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly remote?: string;
}
/**
* ## # incus.Project
@@ -86,30 +93,37 @@ export interface GetProjectResult {
* 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", {
"description": args.description,
"name": args.name,
"remote": args.remote,
}, opts);
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",
{
description: args.description,
name: args.name,
remote: args.remote,
},
opts,
);
}
/**
* A collection of arguments for invoking getProject.
*/
export interface GetProjectOutputArgs {
/**
* Description of the project.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the project.
*/
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>;
/**
* Description of the project.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the project.
*/
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>;
}

View File

@@ -23,89 +23,96 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -126,55 +133,62 @@ export interface GetStorageBucketResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -22,77 +22,84 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -112,45 +119,52 @@ export interface GetStoragePoolResult {
* 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);
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>;
/**
* 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>;
}

View File

@@ -24,95 +24,102 @@ import * as utilities from "./utilities";
* 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);
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;
/**
* 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;
/**
* 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
@@ -134,60 +141,67 @@ export interface GetStorageVolumeResult {
* 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);
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>;
/**
* 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>;
}

341
sdk/nodejs/image.ts generated
View File

@@ -57,186 +57,195 @@ import * as utilities from "./utilities";
* * See the Incus [documentation](https://linuxcontainers.org/incus/docs/main/howto/images_remote) for more info on default image remotes.
*/
export class Image extends pulumi.CustomResource {
/**
* Get an existing Image 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?: ImageState, opts?: pulumi.CustomResourceOptions): Image {
return new Image(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing Image 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?: ImageState,
opts?: pulumi.CustomResourceOptions,
): Image {
return new Image(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/image:Image';
/** @internal */
public static readonly __pulumiType = "incus:index/image:Image";
/**
* Returns true if the given object is an instance of Image. 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 Image {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Image.__pulumiType;
}
/**
* Returns true if the given object is an instance of Image. 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 Image {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === Image.__pulumiType;
}
/**
* Image alias
*/
declare public readonly aliases: pulumi.Output<outputs.ImageAlias[] | undefined>;
/**
* The list of aliases that were copied from the
* `sourceImage`.
*/
declare public /*out*/ readonly copiedAliases: pulumi.Output<string[]>;
/**
* The datetime of image creation, in Unix time.
*/
declare public /*out*/ readonly createdAt: pulumi.Output<number>;
/**
* The unique hash fingperint of the image.
*/
declare public /*out*/ readonly fingerprint: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the image will be stored.
*/
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>;
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.
*/
declare public readonly sourceFile: pulumi.Output<outputs.ImageSourceFile | undefined>;
/**
* *Optional* - The source image from which the image will be created. See reference below.
*/
declare public readonly sourceImage: pulumi.Output<outputs.ImageSourceImage | undefined>;
/**
* *Optional* - The source instance from which the image will be created. See reference below.
*/
declare public readonly sourceInstance: pulumi.Output<outputs.ImageSourceInstance | undefined>;
/**
* Image alias
*/
declare public readonly aliases: pulumi.Output<outputs.ImageAlias[] | undefined>;
/**
* The list of aliases that were copied from the
* `sourceImage`.
*/
declare public readonly /*out*/ copiedAliases: pulumi.Output<string[]>;
/**
* The datetime of image creation, in Unix time.
*/
declare public readonly /*out*/ createdAt: pulumi.Output<number>;
/**
* The unique hash fingperint of the image.
*/
declare public readonly /*out*/ fingerprint: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the image will be stored.
*/
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>;
declare public readonly /*out*/ resourceId: pulumi.Output<string>;
/**
* *Optional* - The image file from the local file system from which the image will be created. See reference below.
*/
declare public readonly sourceFile: pulumi.Output<outputs.ImageSourceFile | undefined>;
/**
* *Optional* - The source image from which the image will be created. See reference below.
*/
declare public readonly sourceImage: pulumi.Output<outputs.ImageSourceImage | undefined>;
/**
* *Optional* - The source instance from which the image will be created. See reference below.
*/
declare public readonly sourceInstance: pulumi.Output<outputs.ImageSourceInstance | undefined>;
/**
* Create a Image 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?: ImageArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: ImageArgs | ImageState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as ImageState | 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?.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*/;
resourceInputs["resourceId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Image.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a Image 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?: ImageArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: ImageArgs | ImageState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as ImageState | 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?.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*/;
resourceInputs["resourceId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Image.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering Image resources.
*/
export interface ImageState {
/**
* Image alias
*/
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
/**
* The list of aliases that were copied from the
* `sourceImage`.
*/
copiedAliases?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The datetime of image creation, in Unix time.
*/
createdAt?: pulumi.Input<number>;
/**
* The unique hash fingperint of the image.
*/
fingerprint?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the image will be stored.
*/
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>;
resourceId?: pulumi.Input<string>;
/**
* *Optional* - The image file from the local file system from which the image will be created. See reference below.
*/
sourceFile?: pulumi.Input<inputs.ImageSourceFile>;
/**
* *Optional* - The source image from which the image will be created. See reference below.
*/
sourceImage?: pulumi.Input<inputs.ImageSourceImage>;
/**
* *Optional* - The source instance from which the image will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.ImageSourceInstance>;
/**
* Image alias
*/
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
/**
* The list of aliases that were copied from the
* `sourceImage`.
*/
copiedAliases?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The datetime of image creation, in Unix time.
*/
createdAt?: pulumi.Input<number>;
/**
* The unique hash fingperint of the image.
*/
fingerprint?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the image will be stored.
*/
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>;
resourceId?: pulumi.Input<string>;
/**
* *Optional* - The image file from the local file system from which the image will be created. See reference below.
*/
sourceFile?: pulumi.Input<inputs.ImageSourceFile>;
/**
* *Optional* - The source image from which the image will be created. See reference below.
*/
sourceImage?: pulumi.Input<inputs.ImageSourceImage>;
/**
* *Optional* - The source instance from which the image will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.ImageSourceInstance>;
}
/**
* The set of arguments for constructing a Image resource.
*/
export interface ImageArgs {
/**
* Image alias
*/
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
/**
* *Optional* - Name of the project where the image will be stored.
*/
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>;
/**
* *Optional* - The image file from the local file system from which the image will be created. See reference below.
*/
sourceFile?: pulumi.Input<inputs.ImageSourceFile>;
/**
* *Optional* - The source image from which the image will be created. See reference below.
*/
sourceImage?: pulumi.Input<inputs.ImageSourceImage>;
/**
* *Optional* - The source instance from which the image will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.ImageSourceInstance>;
/**
* Image alias
*/
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
/**
* *Optional* - Name of the project where the image will be stored.
*/
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>;
/**
* *Optional* - The image file from the local file system from which the image will be created. See reference below.
*/
sourceFile?: pulumi.Input<inputs.ImageSourceFile>;
/**
* *Optional* - The source image from which the image will be created. See reference below.
*/
sourceImage?: pulumi.Input<inputs.ImageSourceImage>;
/**
* *Optional* - The source instance from which the image will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.ImageSourceInstance>;
}

329
sdk/nodejs/index.ts generated
View File

@@ -17,88 +17,159 @@ utilities.lazyLoad(exports, ["ClusterGroup"], () => require("./clusterGroup"));
export { ClusterGroupMemberArgs, ClusterGroupMemberState } from "./clusterGroupMember";
export type ClusterGroupMember = import("./clusterGroupMember").ClusterGroupMember;
export const ClusterGroupMember: typeof import("./clusterGroupMember").ClusterGroupMember = null as any;
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"));
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"));
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"));
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"));
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 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 {
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 {
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 {
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 {
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 {
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 const getNetworkPeerOutput: typeof import("./getNetworkPeer").getNetworkPeerOutput =
null as any;
utilities.lazyLoad(exports, ["getNetworkPeer", "getNetworkPeerOutput"], () =>
require("./getNetworkPeer"),
);
export { GetNetworkZoneArgs, GetNetworkZoneResult, GetNetworkZoneOutputArgs } from "./getNetworkZone";
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 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;
utilities.lazyLoad(exports, ["getProfile","getProfileOutput"], () => require("./getProfile"));
utilities.lazyLoad(exports, ["getProfile", "getProfileOutput"], () => require("./getProfile"));
export { GetProjectArgs, GetProjectResult, GetProjectOutputArgs } from "./getProject";
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"));
utilities.lazyLoad(exports, ["getProject", "getProjectOutput"], () => require("./getProject"));
export { GetStorageBucketArgs, GetStorageBucketResult, GetStorageBucketOutputArgs } from "./getStorageBucket";
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 const getStorageBucketOutput: typeof import("./getStorageBucket").getStorageBucketOutput =
null as any;
utilities.lazyLoad(exports, ["getStorageBucket", "getStorageBucketOutput"], () =>
require("./getStorageBucket"),
);
export { GetStoragePoolArgs, GetStoragePoolResult, GetStoragePoolOutputArgs } from "./getStoragePool";
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 const getStoragePoolOutput: typeof import("./getStoragePool").getStoragePoolOutput =
null as any;
utilities.lazyLoad(exports, ["getStoragePool", "getStoragePoolOutput"], () =>
require("./getStoragePool"),
);
export { GetStorageVolumeArgs, GetStorageVolumeResult, GetStorageVolumeOutputArgs } from "./getStorageVolume";
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 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;
@@ -127,7 +198,8 @@ 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;
export const NetworkAddressSet: typeof import("./networkAddressSet").NetworkAddressSet =
null as any;
utilities.lazyLoad(exports, ["NetworkAddressSet"], () => require("./networkAddressSet"));
export { NetworkForwardArgs, NetworkForwardState } from "./networkForward";
@@ -137,12 +209,14 @@ utilities.lazyLoad(exports, ["NetworkForward"], () => require("./networkForward"
export { NetworkIntegrationArgs, NetworkIntegrationState } from "./networkIntegration";
export type NetworkIntegration = import("./networkIntegration").NetworkIntegration;
export const NetworkIntegration: typeof import("./networkIntegration").NetworkIntegration = null as any;
export const NetworkIntegration: typeof import("./networkIntegration").NetworkIntegration =
null as any;
utilities.lazyLoad(exports, ["NetworkIntegration"], () => require("./networkIntegration"));
export { NetworkLoadBalancerArgs, NetworkLoadBalancerState } from "./networkLoadBalancer";
export type NetworkLoadBalancer = import("./networkLoadBalancer").NetworkLoadBalancer;
export const NetworkLoadBalancer: typeof import("./networkLoadBalancer").NetworkLoadBalancer = null as any;
export const NetworkLoadBalancer: typeof import("./networkLoadBalancer").NetworkLoadBalancer =
null as any;
utilities.lazyLoad(exports, ["NetworkLoadBalancer"], () => require("./networkLoadBalancer"));
export { NetworkPeerArgs, NetworkPeerState } from "./networkPeer";
@@ -157,7 +231,8 @@ utilities.lazyLoad(exports, ["NetworkZone"], () => require("./networkZone"));
export { NetworkZoneRecordArgs, NetworkZoneRecordState } from "./networkZoneRecord";
export type NetworkZoneRecord = import("./networkZoneRecord").NetworkZoneRecord;
export const NetworkZoneRecord: typeof import("./networkZoneRecord").NetworkZoneRecord = null as any;
export const NetworkZoneRecord: typeof import("./networkZoneRecord").NetworkZoneRecord =
null as any;
utilities.lazyLoad(exports, ["NetworkZoneRecord"], () => require("./networkZoneRecord"));
export { ProfileArgs, ProfileState } from "./profile";
@@ -198,97 +273,93 @@ export type StorageVolume = import("./storageVolume").StorageVolume;
export const StorageVolume: typeof import("./storageVolume").StorageVolume = null as any;
utilities.lazyLoad(exports, ["StorageVolume"], () => require("./storageVolume"));
// Export sub-modules:
import * as config from "./config";
import * as types from "./types";
export {
config,
types,
};
export { config, types };
const _module = {
version: utilities.getVersion(),
construct: (name: string, type: string, urn: string): pulumi.Resource => {
switch (type) {
case "incus:index/certificate:Certificate":
return new Certificate(name, <any>undefined, { urn })
case "incus:index/clusterGroup:ClusterGroup":
return new ClusterGroup(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":
return new Instance(name, <any>undefined, { urn })
case "incus:index/instanceSnapshot:InstanceSnapshot":
return new InstanceSnapshot(name, <any>undefined, { urn })
case "incus:index/network:Network":
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":
return new NetworkIntegration(name, <any>undefined, { urn })
case "incus:index/networkLoadBalancer:NetworkLoadBalancer":
return new NetworkLoadBalancer(name, <any>undefined, { urn })
case "incus:index/networkPeer:NetworkPeer":
return new NetworkPeer(name, <any>undefined, { urn })
case "incus:index/networkZone:NetworkZone":
return new NetworkZone(name, <any>undefined, { urn })
case "incus:index/networkZoneRecord:NetworkZoneRecord":
return new NetworkZoneRecord(name, <any>undefined, { urn })
case "incus:index/profile:Profile":
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":
return new StorageBucketKey(name, <any>undefined, { urn })
case "incus:index/storagePool:StoragePool":
return new StoragePool(name, <any>undefined, { urn })
case "incus:index/storageVolume:StorageVolume":
return new StorageVolume(name, <any>undefined, { urn })
default:
throw new Error(`unknown resource type ${type}`);
}
},
version: utilities.getVersion(),
construct: (name: string, type: string, urn: string): pulumi.Resource => {
switch (type) {
case "incus:index/certificate:Certificate":
return new Certificate(name, <any>undefined, { urn });
case "incus:index/clusterGroup:ClusterGroup":
return new ClusterGroup(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":
return new Instance(name, <any>undefined, { urn });
case "incus:index/instanceSnapshot:InstanceSnapshot":
return new InstanceSnapshot(name, <any>undefined, { urn });
case "incus:index/network:Network":
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":
return new NetworkIntegration(name, <any>undefined, { urn });
case "incus:index/networkLoadBalancer:NetworkLoadBalancer":
return new NetworkLoadBalancer(name, <any>undefined, { urn });
case "incus:index/networkPeer:NetworkPeer":
return new NetworkPeer(name, <any>undefined, { urn });
case "incus:index/networkZone:NetworkZone":
return new NetworkZone(name, <any>undefined, { urn });
case "incus:index/networkZoneRecord:NetworkZoneRecord":
return new NetworkZoneRecord(name, <any>undefined, { urn });
case "incus:index/profile:Profile":
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":
return new StorageBucketKey(name, <any>undefined, { urn });
case "incus:index/storagePool:StoragePool":
return new StoragePool(name, <any>undefined, { urn });
case "incus:index/storageVolume:StorageVolume":
return new StorageVolume(name, <any>undefined, { urn });
default:
throw new Error(`unknown resource type ${type}`);
}
},
};
pulumi.runtime.registerResourceModule("incus", "index/certificate", _module)
pulumi.runtime.registerResourceModule("incus", "index/clusterGroup", _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)
pulumi.runtime.registerResourceModule("incus", "index/networkPeer", _module)
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)
pulumi.runtime.registerResourceModule("incus", "index/storageVolume", _module)
pulumi.runtime.registerResourceModule("incus", "index/certificate", _module);
pulumi.runtime.registerResourceModule("incus", "index/clusterGroup", _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);
pulumi.runtime.registerResourceModule("incus", "index/networkPeer", _module);
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);
pulumi.runtime.registerResourceModule("incus", "index/storageVolume", _module);
pulumi.runtime.registerResourcePackage("incus", {
version: utilities.getVersion(),
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
if (type !== "pulumi:providers:incus") {
throw new Error(`unknown provider type ${type}`);
}
return new Provider(name, <any>undefined, { urn });
},
version: utilities.getVersion(),
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
if (type !== "pulumi:providers:incus") {
throw new Error(`unknown provider type ${type}`);
}
return new Provider(name, <any>undefined, { urn });
},
});

707
sdk/nodejs/instance.ts generated
View File

@@ -7,368 +7,379 @@ import * as outputs from "./types/output";
import * as utilities from "./utilities";
export class Instance extends pulumi.CustomResource {
/**
* Get an existing Instance 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?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance {
return new Instance(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing Instance 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?: InstanceState,
opts?: pulumi.CustomResourceOptions,
): Instance {
return new Instance(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/instance:Instance';
/** @internal */
public static readonly __pulumiType = "incus:index/instance:Instance";
/**
* Returns true if the given object is an instance of Instance. 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 Instance {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Instance.__pulumiType;
}
/**
* Returns true if the given object is an instance of Instance. 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 Instance {
if (obj === undefined || obj === null) {
return false;
}
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/).
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the instance.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Device definition. See reference below.
*/
declare public readonly devices: pulumi.Output<outputs.InstanceDevice[] | undefined>;
/**
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
*/
declare public readonly ephemeral: pulumi.Output<boolean>;
/**
* *Optional* - File to upload to the instance. See reference below.
*/
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/).
*/
declare public readonly image: pulumi.Output<string | undefined>;
/**
* The IPv4 Address of the instance. See Instance Network
* Access for more details.
*/
declare public /*out*/ readonly ipv4Address: pulumi.Output<string>;
/**
* The IPv6 Address of the instance. See Instance Network
* Access for more details.
*/
declare public /*out*/ readonly ipv6Address: pulumi.Output<string>;
/**
* The MAC address of the detected NIC. See Instance Network
* Access for more details.
*/
declare public /*out*/ readonly macAddress: pulumi.Output<string>;
/**
* **Required** - Name of the instance.
*/
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.
*/
declare public readonly profiles: pulumi.Output<string[]>;
/**
* *Optional* - Name of the project where the instance will be spawned.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
*/
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.
*/
declare public readonly sourceFile: pulumi.Output<string | undefined>;
/**
* *Optional* - The source instance from which the instance will be created. See reference below.
*/
declare public readonly sourceInstance: pulumi.Output<outputs.InstanceSourceInstance | undefined>;
/**
* The status of the instance.
*/
declare public /*out*/ readonly status: pulumi.Output<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
declare public readonly target: pulumi.Output<string>;
/**
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
*/
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.
*/
declare public readonly waitFors: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
/**
* *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/).
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the instance.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Device definition. See reference below.
*/
declare public readonly devices: pulumi.Output<outputs.InstanceDevice[] | undefined>;
/**
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
*/
declare public readonly ephemeral: pulumi.Output<boolean>;
/**
* *Optional* - File to upload to the instance. See reference below.
*/
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/).
*/
declare public readonly image: pulumi.Output<string | undefined>;
/**
* The IPv4 Address of the instance. See Instance Network
* Access for more details.
*/
declare public readonly /*out*/ ipv4Address: pulumi.Output<string>;
/**
* The IPv6 Address of the instance. See Instance Network
* Access for more details.
*/
declare public readonly /*out*/ ipv6Address: pulumi.Output<string>;
/**
* The MAC address of the detected NIC. See Instance Network
* Access for more details.
*/
declare public readonly /*out*/ macAddress: pulumi.Output<string>;
/**
* **Required** - Name of the instance.
*/
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.
*/
declare public readonly profiles: pulumi.Output<string[]>;
/**
* *Optional* - Name of the project where the instance will be spawned.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
*/
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.
*/
declare public readonly sourceFile: pulumi.Output<string | undefined>;
/**
* *Optional* - The source instance from which the instance will be created. See reference below.
*/
declare public readonly sourceInstance: pulumi.Output<
outputs.InstanceSourceInstance | undefined
>;
/**
* The status of the instance.
*/
declare public readonly /*out*/ status: pulumi.Output<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
declare public readonly target: pulumi.Output<string>;
/**
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
*/
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.
*/
declare public readonly waitFors: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
/**
* Create a Instance 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: 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["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;
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*/;
resourceInputs["status"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Instance.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a Instance 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: 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["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;
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*/;
resourceInputs["status"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Instance.__pulumiType, name, resourceInputs, opts);
}
}
/**
* 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/).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the instance.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.InstanceDevice>[]>;
/**
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
*/
ephemeral?: pulumi.Input<boolean>;
/**
* *Optional* - File to upload to the instance. See reference below.
*/
files?: pulumi.Input<pulumi.Input<inputs.InstanceFile>[]>;
/**
* *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/).
*/
image?: pulumi.Input<string>;
/**
* The IPv4 Address of the instance. See Instance Network
* Access for more details.
*/
ipv4Address?: pulumi.Input<string>;
/**
* The IPv6 Address of the instance. See Instance Network
* Access for more details.
*/
ipv6Address?: pulumi.Input<string>;
/**
* The MAC address of the detected NIC. See Instance Network
* Access for more details.
*/
macAddress?: pulumi.Input<string>;
/**
* **Required** - Name of the instance.
*/
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`).
* However, if an empty array (`[]`) is set as a value, no profiles will be applied.
*/
profiles?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - Name of the project where the instance will be spawned.
*/
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>;
/**
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
*/
running?: pulumi.Input<boolean>;
/**
* *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source instance from which the instance will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.InstanceSourceInstance>;
/**
* The status of the instance.
*/
status?: pulumi.Input<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
*/
type?: pulumi.Input<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.
*/
waitFors?: pulumi.Input<pulumi.Input<inputs.InstanceWaitFor>[]>;
/**
* *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/).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the instance.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.InstanceDevice>[]>;
/**
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
*/
ephemeral?: pulumi.Input<boolean>;
/**
* *Optional* - File to upload to the instance. See reference below.
*/
files?: pulumi.Input<pulumi.Input<inputs.InstanceFile>[]>;
/**
* *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/).
*/
image?: pulumi.Input<string>;
/**
* The IPv4 Address of the instance. See Instance Network
* Access for more details.
*/
ipv4Address?: pulumi.Input<string>;
/**
* The IPv6 Address of the instance. See Instance Network
* Access for more details.
*/
ipv6Address?: pulumi.Input<string>;
/**
* The MAC address of the detected NIC. See Instance Network
* Access for more details.
*/
macAddress?: pulumi.Input<string>;
/**
* **Required** - Name of the instance.
*/
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`).
* However, if an empty array (`[]`) is set as a value, no profiles will be applied.
*/
profiles?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - Name of the project where the instance will be spawned.
*/
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>;
/**
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
*/
running?: pulumi.Input<boolean>;
/**
* *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source instance from which the instance will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.InstanceSourceInstance>;
/**
* The status of the instance.
*/
status?: pulumi.Input<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
*/
type?: pulumi.Input<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.
*/
waitFors?: pulumi.Input<pulumi.Input<inputs.InstanceWaitFor>[]>;
}
/**
* 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/).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the instance.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.InstanceDevice>[]>;
/**
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
*/
ephemeral?: pulumi.Input<boolean>;
/**
* *Optional* - File to upload to the instance. See reference below.
*/
files?: pulumi.Input<pulumi.Input<inputs.InstanceFile>[]>;
/**
* *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/).
*/
image?: pulumi.Input<string>;
/**
* **Required** - Name of the instance.
*/
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`).
* However, if an empty array (`[]`) is set as a value, no profiles will be applied.
*/
profiles?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - Name of the project where the instance will be spawned.
*/
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>;
/**
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
*/
running?: pulumi.Input<boolean>;
/**
* *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source instance from which the instance will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.InstanceSourceInstance>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
*/
type?: pulumi.Input<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.
*/
waitFors?: pulumi.Input<pulumi.Input<inputs.InstanceWaitFor>[]>;
/**
* *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/).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the instance.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.InstanceDevice>[]>;
/**
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
*/
ephemeral?: pulumi.Input<boolean>;
/**
* *Optional* - File to upload to the instance. See reference below.
*/
files?: pulumi.Input<pulumi.Input<inputs.InstanceFile>[]>;
/**
* *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/).
*/
image?: pulumi.Input<string>;
/**
* **Required** - Name of the instance.
*/
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`).
* However, if an empty array (`[]`) is set as a value, no profiles will be applied.
*/
profiles?: pulumi.Input<pulumi.Input<string>[]>;
/**
* *Optional* - Name of the project where the instance will be spawned.
*/
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>;
/**
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
*/
running?: pulumi.Input<boolean>;
/**
* *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source instance from which the instance will be created. See reference below.
*/
sourceInstance?: pulumi.Input<inputs.InstanceSourceInstance>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
*/
type?: pulumi.Input<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.
*/
waitFors?: pulumi.Input<pulumi.Input<inputs.InstanceWaitFor>[]>;
}

View File

@@ -27,160 +27,169 @@ import * as utilities from "./utilities";
* ```
*/
export class InstanceSnapshot extends pulumi.CustomResource {
/**
* Get an existing InstanceSnapshot 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?: InstanceSnapshotState, opts?: pulumi.CustomResourceOptions): InstanceSnapshot {
return new InstanceSnapshot(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing InstanceSnapshot 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?: InstanceSnapshotState,
opts?: pulumi.CustomResourceOptions,
): InstanceSnapshot {
return new InstanceSnapshot(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/instanceSnapshot:InstanceSnapshot';
/** @internal */
public static readonly __pulumiType = "incus:index/instanceSnapshot:InstanceSnapshot";
/**
* Returns true if the given object is an instance of InstanceSnapshot. 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 InstanceSnapshot {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === InstanceSnapshot.__pulumiType;
}
/**
* Returns true if the given object is an instance of InstanceSnapshot. 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 InstanceSnapshot {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === InstanceSnapshot.__pulumiType;
}
/**
* The time Incus reported the snapshot was successfully created,
* in UTC.
*/
declare public /*out*/ readonly createdAt: pulumi.Output<number>;
/**
* **Required** - The name of the instance to snapshot.
*/
declare public readonly instance: pulumi.Output<string>;
/**
* **Required** - Name of the snapshot.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the snapshot will be stored.
*/
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.
*/
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`.
*/
declare public readonly stateful: pulumi.Output<boolean>;
/**
* The time Incus reported the snapshot was successfully created,
* in UTC.
*/
declare public readonly /*out*/ createdAt: pulumi.Output<number>;
/**
* **Required** - The name of the instance to snapshot.
*/
declare public readonly instance: pulumi.Output<string>;
/**
* **Required** - Name of the snapshot.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the snapshot will be stored.
*/
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.
*/
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`.
*/
declare public readonly stateful: pulumi.Output<boolean>;
/**
* Create a InstanceSnapshot 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: InstanceSnapshotArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: InstanceSnapshotArgs | InstanceSnapshotState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as InstanceSnapshotState | 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?.instance === undefined && !opts.urn) {
throw new Error("Missing required property 'instance'");
}
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);
super(InstanceSnapshot.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a InstanceSnapshot 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: InstanceSnapshotArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: InstanceSnapshotArgs | InstanceSnapshotState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as InstanceSnapshotState | 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?.instance === undefined && !opts.urn) {
throw new Error("Missing required property 'instance'");
}
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);
super(InstanceSnapshot.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering InstanceSnapshot resources.
*/
export interface InstanceSnapshotState {
/**
* The time Incus reported the snapshot was successfully created,
* in UTC.
*/
createdAt?: pulumi.Input<number>;
/**
* **Required** - The name of the instance to snapshot.
*/
instance?: pulumi.Input<string>;
/**
* **Required** - Name of the snapshot.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the snapshot will be stored.
*/
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>;
/**
* *Optional* - Set to `true` to create a stateful snapshot,
* `false` for stateless. Stateful snapshots include runtime state. Defaults to
* `false`.
*/
stateful?: pulumi.Input<boolean>;
/**
* The time Incus reported the snapshot was successfully created,
* in UTC.
*/
createdAt?: pulumi.Input<number>;
/**
* **Required** - The name of the instance to snapshot.
*/
instance?: pulumi.Input<string>;
/**
* **Required** - Name of the snapshot.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the snapshot will be stored.
*/
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>;
/**
* *Optional* - Set to `true` to create a stateful snapshot,
* `false` for stateless. Stateful snapshots include runtime state. Defaults to
* `false`.
*/
stateful?: pulumi.Input<boolean>;
}
/**
* The set of arguments for constructing a InstanceSnapshot resource.
*/
export interface InstanceSnapshotArgs {
/**
* **Required** - The name of the instance to snapshot.
*/
instance: pulumi.Input<string>;
/**
* **Required** - Name of the snapshot.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the snapshot will be stored.
*/
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>;
/**
* *Optional* - Set to `true` to create a stateful snapshot,
* `false` for stateless. Stateful snapshots include runtime state. Defaults to
* `false`.
*/
stateful?: pulumi.Input<boolean>;
/**
* **Required** - The name of the instance to snapshot.
*/
instance: pulumi.Input<string>;
/**
* **Required** - Name of the snapshot.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the snapshot will be stored.
*/
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>;
/**
* *Optional* - Set to `true` to create a stateful snapshot,
* `false` for stateless. Stateful snapshots include runtime state. Defaults to
* `false`.
*/
stateful?: pulumi.Input<boolean>;
}

347
sdk/nodejs/network.ts generated
View File

@@ -5,189 +5,198 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class Network extends pulumi.CustomResource {
/**
* Get an existing Network 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?: NetworkState, opts?: pulumi.CustomResourceOptions): Network {
return new Network(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing Network 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?: NetworkState,
opts?: pulumi.CustomResourceOptions,
): Network {
return new Network(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/network:Network';
/** @internal */
public static readonly __pulumiType = "incus:index/network:Network";
/**
* Returns true if the given object is an instance of Network. 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 Network {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Network.__pulumiType;
}
/**
* Returns true if the given object is an instance of Network. 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 Network {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === Network.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *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.
*/
declare public readonly description: pulumi.Output<string>;
/**
* Whether or not the network is managed.
*/
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.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
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.
*/
declare public readonly type: pulumi.Output<string>;
/**
* *Optional* - Map of key/value pairs of
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *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.
*/
declare public readonly description: pulumi.Output<string>;
/**
* Whether or not the network is managed.
*/
declare public readonly /*out*/ managed: pulumi.Output<boolean>;
/**
* **Required** - Name of the network. This is usually the device the
* network will appear as to instances.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
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.
*/
declare public readonly type: pulumi.Output<string>;
/**
* Create a Network 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: 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?.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;
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);
super(Network.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a Network 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: 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?.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;
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);
super(Network.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering Network resources.
*/
export interface NetworkState {
/**
* *Optional* - Map of key/value pairs of
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *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>;
/**
* Whether or not the network is managed.
*/
managed?: pulumi.Input<boolean>;
/**
* **Required** - Name of the network. This is usually the device the
* network will appear as to instances.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *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.
*/
type?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *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>;
/**
* Whether or not the network is managed.
*/
managed?: pulumi.Input<boolean>;
/**
* **Required** - Name of the network. This is usually the device the
* network will appear as to instances.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *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.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Network resource.
*/
export interface NetworkArgs {
/**
* *Optional* - Map of key/value pairs of
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *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>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *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.
*/
type?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *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>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *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.
*/
type?: pulumi.Input<string>;
}

321
sdk/nodejs/networkAcl.ts generated
View File

@@ -7,176 +7,185 @@ import * as outputs from "./types/output";
import * as utilities from "./utilities";
export class NetworkAcl extends pulumi.CustomResource {
/**
* Get an existing NetworkAcl 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?: NetworkAclState, opts?: pulumi.CustomResourceOptions): NetworkAcl {
return new NetworkAcl(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing NetworkAcl 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?: NetworkAclState,
opts?: pulumi.CustomResourceOptions,
): NetworkAcl {
return new NetworkAcl(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/networkAcl:NetworkAcl';
/** @internal */
public static readonly __pulumiType = "incus:index/networkAcl:NetworkAcl";
/**
* Returns true if the given object is an instance of NetworkAcl. 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 NetworkAcl {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === NetworkAcl.__pulumiType;
}
/**
* Returns true if the given object is an instance of NetworkAcl. 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 NetworkAcl {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === NetworkAcl.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* network ACL config settings.
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network ACL rule.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - List of network ACL rules for egress traffic. See reference below.
*/
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:
*/
declare public readonly ingresses: pulumi.Output<outputs.NetworkAclIngress[]>;
/**
* **Required** - Name of the network ACL.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network ACL will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Map of key/value pairs of
* network ACL config settings.
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the network ACL rule.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - List of network ACL rules for egress traffic. See reference below.
*/
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:
*/
declare public readonly ingresses: pulumi.Output<outputs.NetworkAclIngress[]>;
/**
* **Required** - Name of the network ACL.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network ACL will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* Create a NetworkAcl 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: 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?.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;
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);
}
/**
* Create a NetworkAcl 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: 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?.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;
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);
}
}
/**
* Input properties used for looking up and filtering NetworkAcl resources.
*/
export interface NetworkAclState {
/**
* *Optional* - Map of key/value pairs of
* network ACL config settings.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network ACL rule.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - List of network ACL rules for egress traffic. See reference below.
*/
egresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclEgress>[]>;
/**
* *Optional* - List of network ACL rules for ingress traffic. See reference below.
*
* The network ACL rule supports:
*/
ingresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclIngress>[]>;
/**
* **Required** - Name of the network ACL.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network ACL 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>;
/**
* *Optional* - Map of key/value pairs of
* network ACL config settings.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network ACL rule.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - List of network ACL rules for egress traffic. See reference below.
*/
egresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclEgress>[]>;
/**
* *Optional* - List of network ACL rules for ingress traffic. See reference below.
*
* The network ACL rule supports:
*/
ingresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclIngress>[]>;
/**
* **Required** - Name of the network ACL.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network ACL 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 NetworkAcl resource.
*/
export interface NetworkAclArgs {
/**
* *Optional* - Map of key/value pairs of
* network ACL config settings.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network ACL rule.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - List of network ACL rules for egress traffic. See reference below.
*/
egresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclEgress>[]>;
/**
* *Optional* - List of network ACL rules for ingress traffic. See reference below.
*
* The network ACL rule supports:
*/
ingresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclIngress>[]>;
/**
* **Required** - Name of the network ACL.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network ACL 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>;
/**
* *Optional* - Map of key/value pairs of
* network ACL config settings.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network ACL rule.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - List of network ACL rules for egress traffic. See reference below.
*/
egresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclEgress>[]>;
/**
* *Optional* - List of network ACL rules for ingress traffic. See reference below.
*
* The network ACL rule supports:
*/
ingresses?: pulumi.Input<pulumi.Input<inputs.NetworkAclIngress>[]>;
/**
* **Required** - Name of the network ACL.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network ACL 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>;
}

View File

@@ -53,156 +53,165 @@ import * as utilities from "./utilities";
* ```
*/
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 });
}
/**
* 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';
/** @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;
}
/**
* 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>;
/**
* **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);
}
/**
* 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>;
/**
* **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>;
/**
* **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>;
}

View File

@@ -7,179 +7,188 @@ import * as outputs from "./types/output";
import * as utilities from "./utilities";
export class NetworkForward extends pulumi.CustomResource {
/**
* Get an existing NetworkForward 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?: NetworkForwardState, opts?: pulumi.CustomResourceOptions): NetworkForward {
return new NetworkForward(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing NetworkForward 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?: NetworkForwardState,
opts?: pulumi.CustomResourceOptions,
): NetworkForward {
return new NetworkForward(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/networkForward:NetworkForward';
/** @internal */
public static readonly __pulumiType = "incus:index/networkForward:NetworkForward";
/**
* Returns true if the given object is an instance of NetworkForward. 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 NetworkForward {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === NetworkForward.__pulumiType;
}
/**
* Returns true if the given object is an instance of NetworkForward. 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 NetworkForward {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === NetworkForward.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* network forward config settings.
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of port(s)
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - IP address to listen on.
*/
declare public readonly listenAddress: pulumi.Output<string>;
/**
* **Required** - Name of the network.
*/
declare public readonly network: pulumi.Output<string>;
/**
* *Optional* - List of port specifications. See reference below.
*
* The network forward port supports:
*/
declare public readonly ports: pulumi.Output<outputs.NetworkForwardPort[]>;
/**
* *Optional* - Name of the project where the network forward 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>;
/**
* *Optional* - Map of key/value pairs of
* network forward config settings.
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of port(s)
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - IP address to listen on.
*/
declare public readonly listenAddress: pulumi.Output<string>;
/**
* **Required** - Name of the network.
*/
declare public readonly network: pulumi.Output<string>;
/**
* *Optional* - List of port specifications. See reference below.
*
* The network forward port supports:
*/
declare public readonly ports: pulumi.Output<outputs.NetworkForwardPort[]>;
/**
* *Optional* - Name of the project where the network forward 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 NetworkForward 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: NetworkForwardArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: NetworkForwardArgs | NetworkForwardState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkForwardState | 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?.listenAddress === undefined && !opts.urn) {
throw new Error("Missing required property 'listenAddress'");
}
if (args?.network === undefined && !opts.urn) {
throw new Error("Missing required property 'network'");
}
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);
}
/**
* Create a NetworkForward 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: NetworkForwardArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: NetworkForwardArgs | NetworkForwardState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkForwardState | 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?.listenAddress === undefined && !opts.urn) {
throw new Error("Missing required property 'listenAddress'");
}
if (args?.network === undefined && !opts.urn) {
throw new Error("Missing required property 'network'");
}
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);
}
}
/**
* Input properties used for looking up and filtering NetworkForward resources.
*/
export interface NetworkForwardState {
/**
* *Optional* - Map of key/value pairs of
* network forward config settings.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of port(s)
*/
description?: pulumi.Input<string>;
/**
* **Required** - IP address to listen on.
*/
listenAddress?: pulumi.Input<string>;
/**
* **Required** - Name of the network.
*/
network?: pulumi.Input<string>;
/**
* *Optional* - List of port specifications. See reference below.
*
* The network forward port supports:
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkForwardPort>[]>;
/**
* *Optional* - Name of the project where the network forward 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>;
/**
* *Optional* - Map of key/value pairs of
* network forward config settings.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of port(s)
*/
description?: pulumi.Input<string>;
/**
* **Required** - IP address to listen on.
*/
listenAddress?: pulumi.Input<string>;
/**
* **Required** - Name of the network.
*/
network?: pulumi.Input<string>;
/**
* *Optional* - List of port specifications. See reference below.
*
* The network forward port supports:
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkForwardPort>[]>;
/**
* *Optional* - Name of the project where the network forward 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 NetworkForward resource.
*/
export interface NetworkForwardArgs {
/**
* *Optional* - Map of key/value pairs of
* network forward config settings.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of port(s)
*/
description?: pulumi.Input<string>;
/**
* **Required** - IP address to listen on.
*/
listenAddress: pulumi.Input<string>;
/**
* **Required** - Name of the network.
*/
network: pulumi.Input<string>;
/**
* *Optional* - List of port specifications. See reference below.
*
* The network forward port supports:
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkForwardPort>[]>;
/**
* *Optional* - Name of the project where the network forward 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>;
/**
* *Optional* - Map of key/value pairs of
* network forward config settings.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of port(s)
*/
description?: pulumi.Input<string>;
/**
* **Required** - IP address to listen on.
*/
listenAddress: pulumi.Input<string>;
/**
* **Required** - Name of the network.
*/
network: pulumi.Input<string>;
/**
* *Optional* - List of port specifications. See reference below.
*
* The network forward port supports:
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkForwardPort>[]>;
/**
* *Optional* - Name of the project where the network forward 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>;
}

View File

@@ -56,156 +56,165 @@ import * as utilities from "./utilities";
* ```
*/
export class NetworkIntegration extends pulumi.CustomResource {
/**
* Get an existing NetworkIntegration 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?: NetworkIntegrationState, opts?: pulumi.CustomResourceOptions): NetworkIntegration {
return new NetworkIntegration(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing NetworkIntegration 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?: NetworkIntegrationState,
opts?: pulumi.CustomResourceOptions,
): NetworkIntegration {
return new NetworkIntegration(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/networkIntegration:NetworkIntegration';
/** @internal */
public static readonly __pulumiType = "incus:index/networkIntegration:NetworkIntegration";
/**
* Returns true if the given object is an instance of NetworkIntegration. 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 NetworkIntegration {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === NetworkIntegration.__pulumiType;
}
/**
* Returns true if the given object is an instance of NetworkIntegration. 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 NetworkIntegration {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === NetworkIntegration.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network integration.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Name of the network integration.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
*/
declare public readonly type: pulumi.Output<string>;
/**
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the network integration.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Name of the network integration.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
*/
declare public readonly type: pulumi.Output<string>;
/**
* Create a NetworkIntegration 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: NetworkIntegrationArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: NetworkIntegrationArgs | NetworkIntegrationState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkIntegrationState | 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?.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?.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);
}
/**
* Create a NetworkIntegration 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: NetworkIntegrationArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: NetworkIntegrationArgs | NetworkIntegrationState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkIntegrationState | 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?.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?.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);
}
}
/**
* Input properties used for looking up and filtering NetworkIntegration resources.
*/
export interface NetworkIntegrationState {
/**
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network integration.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the network integration.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
*/
type?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network integration.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the network integration.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkIntegration resource.
*/
export interface NetworkIntegrationArgs {
/**
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network integration.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the network integration.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
*/
type: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network integration.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the network integration.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network 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>;
/**
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
*/
type: pulumi.Input<string>;
}

View File

@@ -7,127 +7,138 @@ import * as outputs from "./types/output";
import * as utilities from "./utilities";
export class NetworkLoadBalancer extends pulumi.CustomResource {
/**
* Get an existing NetworkLoadBalancer 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?: NetworkLoadBalancerState, opts?: pulumi.CustomResourceOptions): NetworkLoadBalancer {
return new NetworkLoadBalancer(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing NetworkLoadBalancer 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?: NetworkLoadBalancerState,
opts?: pulumi.CustomResourceOptions,
): NetworkLoadBalancer {
return new NetworkLoadBalancer(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/networkLoadBalancer:NetworkLoadBalancer';
/** @internal */
public static readonly __pulumiType = "incus:index/networkLoadBalancer:NetworkLoadBalancer";
/**
* Returns true if the given object is an instance of NetworkLoadBalancer. 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 NetworkLoadBalancer {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === NetworkLoadBalancer.__pulumiType;
}
/**
* Returns true if the given object is an instance of NetworkLoadBalancer. 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 NetworkLoadBalancer {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === NetworkLoadBalancer.__pulumiType;
}
/**
* Network load balancer backend
*/
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
*/
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>;
/**
* Network load balancer backend
*/
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
*/
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.
*
* @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: NetworkLoadBalancerArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: NetworkLoadBalancerArgs | NetworkLoadBalancerState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkLoadBalancerState | 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?.listenAddress === undefined && !opts.urn) {
throw new Error("Missing required property 'listenAddress'");
}
if (args?.network === undefined && !opts.urn) {
throw new Error("Missing required property 'network'");
}
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);
}
/**
* Create a NetworkLoadBalancer 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: NetworkLoadBalancerArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: NetworkLoadBalancerArgs | NetworkLoadBalancerState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkLoadBalancerState | 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?.listenAddress === undefined && !opts.urn) {
throw new Error("Missing required property 'listenAddress'");
}
if (args?.network === undefined && !opts.urn) {
throw new Error("Missing required property 'network'");
}
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);
}
}
/**
* Input properties used for looking up and filtering NetworkLoadBalancer resources.
*/
export interface NetworkLoadBalancerState {
/**
* Network load balancer backend
*/
backends?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerBackend>[]>;
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
description?: pulumi.Input<string>;
listenAddress?: pulumi.Input<string>;
network?: pulumi.Input<string>;
/**
* Network load balancer port
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerPort>[]>;
project?: pulumi.Input<string>;
remote?: pulumi.Input<string>;
/**
* Network load balancer backend
*/
backends?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerBackend>[]>;
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
description?: pulumi.Input<string>;
listenAddress?: pulumi.Input<string>;
network?: pulumi.Input<string>;
/**
* Network load balancer port
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerPort>[]>;
project?: pulumi.Input<string>;
remote?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkLoadBalancer resource.
*/
export interface NetworkLoadBalancerArgs {
/**
* Network load balancer backend
*/
backends?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerBackend>[]>;
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
description?: pulumi.Input<string>;
listenAddress: pulumi.Input<string>;
network: pulumi.Input<string>;
/**
* Network load balancer port
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerPort>[]>;
project?: pulumi.Input<string>;
remote?: pulumi.Input<string>;
/**
* Network load balancer backend
*/
backends?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerBackend>[]>;
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
description?: pulumi.Input<string>;
listenAddress: pulumi.Input<string>;
network: pulumi.Input<string>;
/**
* Network load balancer port
*/
ports?: pulumi.Input<pulumi.Input<inputs.NetworkLoadBalancerPort>[]>;
project?: pulumi.Input<string>;
remote?: pulumi.Input<string>;
}

View File

@@ -51,204 +51,213 @@ import * as utilities from "./utilities";
* ```
*/
export class NetworkPeer extends pulumi.CustomResource {
/**
* Get an existing NetworkPeer 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?: NetworkPeerState, opts?: pulumi.CustomResourceOptions): NetworkPeer {
return new NetworkPeer(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing NetworkPeer 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?: NetworkPeerState,
opts?: pulumi.CustomResourceOptions,
): NetworkPeer {
return new NetworkPeer(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/networkPeer:NetworkPeer';
/** @internal */
public static readonly __pulumiType = "incus:index/networkPeer:NetworkPeer";
/**
* Returns true if the given object is an instance of NetworkPeer. 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 NetworkPeer {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === NetworkPeer.__pulumiType;
}
/**
* Returns true if the given object is an instance of NetworkPeer. 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 NetworkPeer {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === NetworkPeer.__pulumiType;
}
/**
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network peering
*/
declare public readonly description: pulumi.Output<string>;
/**
* **required** - Name of the network peering on the local network
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of the local network.
*/
declare public readonly network: pulumi.Output<string | undefined>;
/**
* *Optional* - Name of the project where the network is located.
*/
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.
*/
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)
*/
declare public readonly targetNetwork: pulumi.Output<string>;
/**
* *Optional* - Which project the target network exists in (required at create time for local peers)
*/
declare public readonly targetProject: pulumi.Output<string>;
/**
* *Optional* - Type of network peering
*/
declare public readonly type: pulumi.Output<string>;
/**
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the network peering
*/
declare public readonly description: pulumi.Output<string>;
/**
* **required** - Name of the network peering on the local network
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of the local network.
*/
declare public readonly network: pulumi.Output<string | undefined>;
/**
* *Optional* - Name of the project where the network is located.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
declare public readonly /*out*/ 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)
*/
declare public readonly targetNetwork: pulumi.Output<string>;
/**
* *Optional* - Which project the target network exists in (required at create time for local peers)
*/
declare public readonly targetProject: pulumi.Output<string>;
/**
* *Optional* - Type of network peering
*/
declare public readonly type: pulumi.Output<string>;
/**
* Create a NetworkPeer 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: 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?.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;
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);
super(NetworkPeer.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a NetworkPeer 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: 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?.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;
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);
super(NetworkPeer.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering NetworkPeer resources.
*/
export interface NetworkPeerState {
/**
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network peering
*/
description?: pulumi.Input<string>;
/**
* **required** - Name of the network peering on the local network
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of the local network.
*/
network?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network is located.
*/
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>;
status?: pulumi.Input<string>;
targetIntegration?: pulumi.Input<string>;
/**
* **required** - Which network to create a peering with (required at create time for local peers)
*/
targetNetwork?: pulumi.Input<string>;
/**
* *Optional* - Which project the target network exists in (required at create time for local peers)
*/
targetProject?: pulumi.Input<string>;
/**
* *Optional* - Type of network peering
*/
type?: pulumi.Input<string>;
/**
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network peering
*/
description?: pulumi.Input<string>;
/**
* **required** - Name of the network peering on the local network
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of the local network.
*/
network?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network is located.
*/
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>;
status?: pulumi.Input<string>;
targetIntegration?: pulumi.Input<string>;
/**
* **required** - Which network to create a peering with (required at create time for local peers)
*/
targetNetwork?: pulumi.Input<string>;
/**
* *Optional* - Which project the target network exists in (required at create time for local peers)
*/
targetProject?: pulumi.Input<string>;
/**
* *Optional* - Type of network peering
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkPeer resource.
*/
export interface NetworkPeerArgs {
/**
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network peering
*/
description?: pulumi.Input<string>;
/**
* **required** - Name of the network peering on the local network
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of the local network.
*/
network?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network is located.
*/
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>;
targetIntegration?: pulumi.Input<string>;
/**
* **required** - Which network to create a peering with (required at create time for local peers)
*/
targetNetwork?: pulumi.Input<string>;
/**
* *Optional* - Which project the target network exists in (required at create time for local peers)
*/
targetProject?: pulumi.Input<string>;
/**
* *Optional* - Type of network peering
*/
type?: pulumi.Input<string>;
/**
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network peering
*/
description?: pulumi.Input<string>;
/**
* **required** - Name of the network peering on the local network
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of the local network.
*/
network?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network is located.
*/
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>;
targetIntegration?: pulumi.Input<string>;
/**
* **required** - Which network to create a peering with (required at create time for local peers)
*/
targetNetwork?: pulumi.Input<string>;
/**
* *Optional* - Which project the target network exists in (required at create time for local peers)
*/
targetProject?: pulumi.Input<string>;
/**
* *Optional* - Type of network peering
*/
type?: pulumi.Input<string>;
}

View File

@@ -5,142 +5,151 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class NetworkZone extends pulumi.CustomResource {
/**
* Get an existing NetworkZone 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?: NetworkZoneState, opts?: pulumi.CustomResourceOptions): NetworkZone {
return new NetworkZone(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing NetworkZone 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?: NetworkZoneState,
opts?: pulumi.CustomResourceOptions,
): NetworkZone {
return new NetworkZone(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/networkZone:NetworkZone';
/** @internal */
public static readonly __pulumiType = "incus:index/networkZone:NetworkZone";
/**
* Returns true if the given object is an instance of NetworkZone. 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 NetworkZone {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === NetworkZone.__pulumiType;
}
/**
* Returns true if the given object is an instance of NetworkZone. 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 NetworkZone {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === NetworkZone.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network zone.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Name of the network zone.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network zone will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the network zone.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Name of the network zone.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network zone will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* Create a NetworkZone 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: 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?.config;
resourceInputs["description"] = state?.description;
resourceInputs["name"] = state?.name;
resourceInputs["project"] = state?.project;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as NetworkZoneArgs | 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);
}
/**
* Create a NetworkZone 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: 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?.config;
resourceInputs["description"] = state?.description;
resourceInputs["name"] = state?.name;
resourceInputs["project"] = state?.project;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as NetworkZoneArgs | 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);
}
}
/**
* Input properties used for looking up and filtering NetworkZone resources.
*/
export interface NetworkZoneState {
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - 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 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>;
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - 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 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 NetworkZone resource.
*/
export interface NetworkZoneArgs {
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - 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 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>;
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - 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 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>;
}

View File

@@ -7,173 +7,182 @@ import * as outputs from "./types/output";
import * as utilities from "./utilities";
export class NetworkZoneRecord extends pulumi.CustomResource {
/**
* Get an existing NetworkZoneRecord 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?: NetworkZoneRecordState, opts?: pulumi.CustomResourceOptions): NetworkZoneRecord {
return new NetworkZoneRecord(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing NetworkZoneRecord 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?: NetworkZoneRecordState,
opts?: pulumi.CustomResourceOptions,
): NetworkZoneRecord {
return new NetworkZoneRecord(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/networkZoneRecord:NetworkZoneRecord';
/** @internal */
public static readonly __pulumiType = "incus:index/networkZoneRecord:NetworkZoneRecord";
/**
* Returns true if the given object is an instance of NetworkZoneRecord. 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 NetworkZoneRecord {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === NetworkZoneRecord.__pulumiType;
}
/**
* Returns true if the given object is an instance of NetworkZoneRecord. 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 NetworkZoneRecord {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === NetworkZoneRecord.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network zone.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Entry in network zone record - see below.
*/
declare public readonly entries: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
/**
* **Required** - Name of the network zone record.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network zone record will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* **Required** - Name of the zone to add the entries of this record.
*/
declare public readonly zone: pulumi.Output<string>;
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the network zone.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Entry in network zone record - see below.
*/
declare public readonly entries: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
/**
* **Required** - Name of the network zone record.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network zone record will be created.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* **Required** - Name of the zone to add the entries of this record.
*/
declare public readonly zone: pulumi.Output<string>;
/**
* Create a NetworkZoneRecord 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: NetworkZoneRecordArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: NetworkZoneRecordArgs | NetworkZoneRecordState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkZoneRecordState | 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?.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?.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);
}
/**
* Create a NetworkZoneRecord 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: NetworkZoneRecordArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: NetworkZoneRecordArgs | NetworkZoneRecordState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkZoneRecordState | 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?.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?.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);
}
}
/**
* Input properties used for looking up and filtering NetworkZoneRecord resources.
*/
export interface NetworkZoneRecordState {
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network zone.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Entry in network zone record - see below.
*/
entries?: pulumi.Input<pulumi.Input<inputs.NetworkZoneRecordEntry>[]>;
/**
* **Required** - Name of the network zone record.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network zone record 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>;
/**
* **Required** - Name of the zone to add the entries of this record.
*/
zone?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network zone.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Entry in network zone record - see below.
*/
entries?: pulumi.Input<pulumi.Input<inputs.NetworkZoneRecordEntry>[]>;
/**
* **Required** - Name of the network zone record.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network zone record 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>;
/**
* **Required** - Name of the zone to add the entries of this record.
*/
zone?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkZoneRecord resource.
*/
export interface NetworkZoneRecordArgs {
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network zone.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Entry in network zone record - see below.
*/
entries?: pulumi.Input<pulumi.Input<inputs.NetworkZoneRecordEntry>[]>;
/**
* **Required** - Name of the network zone record.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network zone record 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>;
/**
* **Required** - Name of the zone to add the entries of this record.
*/
zone: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the network zone.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Entry in network zone record - see below.
*/
entries?: pulumi.Input<pulumi.Input<inputs.NetworkZoneRecordEntry>[]>;
/**
* **Required** - Name of the network zone record.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network zone record 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>;
/**
* **Required** - Name of the zone to add the entries of this record.
*/
zone: pulumi.Input<string>;
}

View File

@@ -1,29 +1,31 @@
{
"name": "@kiterun/incus",
"version": "1.0.0-alpha.0+dev",
"description": "A Pulumi package for creating and managing incus cloud resources.",
"keywords": [
"incus",
"category/cloud",
"containers",
"nimbus"
],
"homepage": "https://linuxcontainers.org",
"repository": "https://git.kalinow.ski/kiterun/pulumi-incus",
"scripts": {
"build": "tsc"
},
"dependencies": {
"@pulumi/pulumi": "^3.142.0"
},
"devDependencies": {
"@types/node": "^18",
"typescript": "^5.8.3"
},
"pulumi": {
"resource": true,
"name": "incus",
"version": "1.0.0-alpha.0+dev",
"server": "https://git.kalinow.ski/api/packages/kiterun/generic/pulumi-incus/${VERSION}/"
}
"name": "@kiterun/incus",
"version": "1.0.0-alpha.0+dev",
"description": "A Pulumi package for creating and managing incus cloud resources.",
"keywords": [
"incus",
"category/cloud",
"containers",
"nimbus"
],
"homepage": "https://linuxcontainers.org",
"repository": "https://git.kalinow.ski/kiterun/pulumi-incus",
"scripts": {
"build": "tsc"
},
"dependencies": {
"@pulumi/pulumi": "^3.142.0"
},
"devDependencies": {
"@types/node": "^24.10.1",
"oxfmt": "^0.17.0",
"typescript": "^5.8.3"
},
"pulumi": {
"resource": true,
"name": "incus",
"version": "1.0.0-alpha.0+dev",
"server": "https://git.kalinow.ski/api/packages/kiterun/generic/pulumi-incus/${VERSION}/"
},
"packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501"
}

281
sdk/nodejs/profile.ts generated
View File

@@ -7,156 +7,165 @@ import * as outputs from "./types/output";
import * as utilities from "./utilities";
export class Profile extends pulumi.CustomResource {
/**
* Get an existing Profile 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?: ProfileState, opts?: pulumi.CustomResourceOptions): Profile {
return new Profile(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing Profile 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?: ProfileState,
opts?: pulumi.CustomResourceOptions,
): Profile {
return new Profile(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/profile:Profile';
/** @internal */
public static readonly __pulumiType = "incus:index/profile:Profile";
/**
* Returns true if the given object is an instance of Profile. 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 Profile {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Profile.__pulumiType;
}
/**
* Returns true if the given object is an instance of Profile. 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 Profile {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === Profile.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the profile.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Device definition. See reference below.
*/
declare public readonly devices: pulumi.Output<outputs.ProfileDevice[] | undefined>;
/**
* **Required** - Name of the profile.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the profile will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Map of key/value pairs of
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the profile.
*/
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Device definition. See reference below.
*/
declare public readonly devices: pulumi.Output<outputs.ProfileDevice[] | undefined>;
/**
* **Required** - Name of the profile.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the profile will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* Create a Profile 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: 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?.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;
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);
}
/**
* Create a Profile 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: 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?.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;
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);
}
}
/**
* Input properties used for looking up and filtering Profile resources.
*/
export interface ProfileState {
/**
* *Optional* - 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>}>;
/**
* *Optional* - Description of the profile.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.ProfileDevice>[]>;
/**
* **Required** - Name of the profile.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the profile will be stored.
*/
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>;
/**
* *Optional* - 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> }>;
/**
* *Optional* - Description of the profile.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.ProfileDevice>[]>;
/**
* **Required** - Name of the profile.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the profile will be stored.
*/
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 Profile resource.
*/
export interface ProfileArgs {
/**
* *Optional* - 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>}>;
/**
* *Optional* - Description of the profile.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.ProfileDevice>[]>;
/**
* **Required** - Name of the profile.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the profile will be stored.
*/
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>;
/**
* *Optional* - 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> }>;
/**
* *Optional* - Description of the profile.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Device definition. See reference below.
*/
devices?: pulumi.Input<pulumi.Input<inputs.ProfileDevice>[]>;
/**
* **Required** - Name of the profile.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the profile will be stored.
*/
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>;
}

247
sdk/nodejs/project.ts generated
View File

@@ -5,139 +5,148 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class Project extends pulumi.CustomResource {
/**
* Get an existing Project resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectState, opts?: pulumi.CustomResourceOptions): Project {
return new Project(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing Project resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(
name: string,
id: pulumi.Input<pulumi.ID>,
state?: ProjectState,
opts?: pulumi.CustomResourceOptions,
): Project {
return new Project(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/project:Project';
/** @internal */
public static readonly __pulumiType = "incus:index/project:Project";
/**
* Returns true if the given object is an instance of Project. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is Project {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Project.__pulumiType;
}
/**
* Returns true if the given object is an instance of Project. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is Project {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === Project.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the project.
*/
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.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the project.
*/
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.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* Create a Project 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: 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?.config;
resourceInputs["description"] = state?.description;
resourceInputs["forceDestroy"] = state?.forceDestroy;
resourceInputs["name"] = state?.name;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as ProjectArgs | 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);
}
/**
* Create a Project 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: 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?.config;
resourceInputs["description"] = state?.description;
resourceInputs["forceDestroy"] = state?.forceDestroy;
resourceInputs["name"] = state?.name;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as ProjectArgs | 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);
}
}
/**
* Input properties used for looking up and filtering Project resources.
*/
export interface ProjectState {
/**
* *Optional* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *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>;
/**
* *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* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *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>;
/**
* *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 Project resource.
*/
export interface ProjectArgs {
/**
* *Optional* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *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>;
/**
* *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* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *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>;
/**
* *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>;
}

175
sdk/nodejs/provider.ts generated
View File

@@ -13,101 +13,108 @@ import * as utilities from "./utilities";
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
*/
export class Provider extends pulumi.ProviderResource {
/** @internal */
public static readonly __pulumiType = 'incus';
/** @internal */
public static readonly __pulumiType = "incus";
/**
* Returns true if the given object is an instance of Provider. 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 Provider {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
}
/**
* Returns true if the given object is an instance of Provider. 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 Provider {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === "pulumi:providers:" + Provider.__pulumiType;
}
/**
* The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
*/
declare public readonly configDir: pulumi.Output<string | undefined>;
/**
* The default remote to use when no other remote is defined in a resource.
*/
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>;
/**
* The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
*/
declare public readonly configDir: pulumi.Output<string | undefined>;
/**
* The default remote to use when no other remote is defined in a resource.
*/
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.
*
* @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?: ProviderArgs, opts?: pulumi.ResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
{
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);
}
/**
* Create a Provider 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?: ProviderArgs, opts?: pulumi.ResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
{
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);
}
/**
* 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,
);
}
}
/**
* The set of arguments for constructing a Provider resource.
*/
export interface ProviderArgs {
/**
* Accept the server certificate.
*/
acceptRemoteCertificate?: pulumi.Input<boolean>;
/**
* 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)
*/
project?: pulumi.Input<string>;
/**
* Incus Remote
*/
remotes?: pulumi.Input<pulumi.Input<inputs.ProviderRemote>[]>;
/**
* Accept the server certificate.
*/
acceptRemoteCertificate?: pulumi.Input<boolean>;
/**
* 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)
*/
project?: pulumi.Input<string>;
/**
* Incus Remote
*/
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};
}
/**
* The results of the Provider.terraformConfig method.
*/
export interface TerraformConfigResult {
readonly result: { [key: string]: any };
}
}

203
sdk/nodejs/server.ts generated
View File

@@ -5,117 +5,126 @@ 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 });
}
/**
* 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';
/** @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;
}
/**
* 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>;
/**
* *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);
}
/**
* 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>;
/**
* *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>;
/**
* *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>;
}

View File

@@ -5,200 +5,209 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class StorageBucket extends pulumi.CustomResource {
/**
* Get an existing StorageBucket 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?: StorageBucketState, opts?: pulumi.CustomResourceOptions): StorageBucket {
return new StorageBucket(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing StorageBucket 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?: StorageBucketState,
opts?: pulumi.CustomResourceOptions,
): StorageBucket {
return new StorageBucket(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/storageBucket:StorageBucket';
/** @internal */
public static readonly __pulumiType = "incus:index/storageBucket:StorageBucket";
/**
* Returns true if the given object is an instance of StorageBucket. 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 StorageBucket {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === StorageBucket.__pulumiType;
}
/**
* Returns true if the given object is an instance of StorageBucket. 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 StorageBucket {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === StorageBucket.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [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.
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the storage bucket.
*/
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.
*/
declare public /*out*/ readonly location: pulumi.Output<string>;
/**
* **Required** - Name of the storage bucket.
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of storage pool to host the storage bucket.
*/
declare public readonly pool: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the storage bucket will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Path to a backup file from which the bucket will be created.
*/
declare public readonly sourceFile: pulumi.Output<string | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
declare public readonly target: pulumi.Output<string>;
/**
* *Optional* - Map of key/value pairs of
* [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.
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Description of the storage bucket.
*/
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.
*/
declare public readonly /*out*/ location: pulumi.Output<string>;
/**
* **Required** - Name of the storage bucket.
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of storage pool to host the storage bucket.
*/
declare public readonly pool: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the storage bucket will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Path to a backup file from which the bucket will be created.
*/
declare public readonly sourceFile: pulumi.Output<string | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
declare public readonly target: pulumi.Output<string>;
/**
* Create a StorageBucket 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: StorageBucketArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: StorageBucketArgs | StorageBucketState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StorageBucketState | 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?.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?.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);
super(StorageBucket.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a StorageBucket 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: StorageBucketArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: StorageBucketArgs | StorageBucketState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StorageBucketState | 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?.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?.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);
super(StorageBucket.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering StorageBucket resources.
*/
export interface StorageBucketState {
/**
* *Optional* - Map of key/value pairs of
* [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.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the storage bucket.
*/
description?: pulumi.Input<string>;
/**
* Name of the node where storage bucket was created. It could be useful with Incus in cluster mode.
*/
location?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket.
*/
pool?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the bucket will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [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.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the storage bucket.
*/
description?: pulumi.Input<string>;
/**
* Name of the node where storage bucket was created. It could be useful with Incus in cluster mode.
*/
location?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket.
*/
pool?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the bucket will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a StorageBucket resource.
*/
export interface StorageBucketArgs {
/**
* *Optional* - Map of key/value pairs of
* [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.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the storage bucket.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket.
*/
pool: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the bucket will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [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.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Description of the storage bucket.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket.
*/
pool: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the bucket will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
}

View File

@@ -5,198 +5,207 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class StorageBucketKey extends pulumi.CustomResource {
/**
* Get an existing StorageBucketKey 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?: StorageBucketKeyState, opts?: pulumi.CustomResourceOptions): StorageBucketKey {
return new StorageBucketKey(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing StorageBucketKey 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?: StorageBucketKeyState,
opts?: pulumi.CustomResourceOptions,
): StorageBucketKey {
return new StorageBucketKey(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/storageBucketKey:StorageBucketKey';
/** @internal */
public static readonly __pulumiType = "incus:index/storageBucketKey:StorageBucketKey";
/**
* Returns true if the given object is an instance of StorageBucketKey. 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 StorageBucketKey {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === StorageBucketKey.__pulumiType;
}
/**
* Returns true if the given object is an instance of StorageBucketKey. 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 StorageBucketKey {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === StorageBucketKey.__pulumiType;
}
/**
* Access key of the storage bucket key.
*/
declare public /*out*/ readonly accessKey: pulumi.Output<string>;
/**
* *Optional* - Description of the storage bucket key.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Name of the storage bucket key.
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of storage pool to host the storage bucket key.
*/
declare public readonly pool: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the storage bucket key will be stored.
*/
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.
*/
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).
*/
declare public readonly role: pulumi.Output<string>;
/**
* Secret key of the storage bucket key.
*/
declare public /*out*/ readonly secretKey: pulumi.Output<string>;
/**
* **Required** - Name of the storage bucket.
*/
declare public readonly storageBucket: pulumi.Output<string>;
/**
* Access key of the storage bucket key.
*/
declare public readonly /*out*/ accessKey: pulumi.Output<string>;
/**
* *Optional* - Description of the storage bucket key.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Name of the storage bucket key.
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of storage pool to host the storage bucket key.
*/
declare public readonly pool: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the storage bucket key will be stored.
*/
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.
*/
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).
*/
declare public readonly role: pulumi.Output<string>;
/**
* Secret key of the storage bucket key.
*/
declare public readonly /*out*/ secretKey: pulumi.Output<string>;
/**
* **Required** - Name of the storage bucket.
*/
declare public readonly storageBucket: pulumi.Output<string>;
/**
* Create a StorageBucketKey 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: StorageBucketKeyArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: StorageBucketKeyArgs | StorageBucketKeyState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StorageBucketKeyState | 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?.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?.storageBucket === undefined && !opts.urn) {
throw new Error("Missing required property 'storageBucket'");
}
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*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["accessKey", "secretKey"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(StorageBucketKey.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a StorageBucketKey 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: StorageBucketKeyArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: StorageBucketKeyArgs | StorageBucketKeyState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StorageBucketKeyState | 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?.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?.storageBucket === undefined && !opts.urn) {
throw new Error("Missing required property 'storageBucket'");
}
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*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["accessKey", "secretKey"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(StorageBucketKey.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering StorageBucketKey resources.
*/
export interface StorageBucketKeyState {
/**
* Access key of the storage bucket key.
*/
accessKey?: pulumi.Input<string>;
/**
* *Optional* - Description of the storage bucket key.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket key.
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket key.
*/
pool?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket key will be stored.
*/
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>;
/**
* *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).
*/
role?: pulumi.Input<string>;
/**
* Secret key of the storage bucket key.
*/
secretKey?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
storageBucket?: pulumi.Input<string>;
/**
* Access key of the storage bucket key.
*/
accessKey?: pulumi.Input<string>;
/**
* *Optional* - Description of the storage bucket key.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket key.
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket key.
*/
pool?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket key will be stored.
*/
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>;
/**
* *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).
*/
role?: pulumi.Input<string>;
/**
* Secret key of the storage bucket key.
*/
secretKey?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
storageBucket?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a StorageBucketKey resource.
*/
export interface StorageBucketKeyArgs {
/**
* *Optional* - Description of the storage bucket key.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket key.
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket key.
*/
pool: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket key will be stored.
*/
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>;
/**
* *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).
*/
role?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
storageBucket: pulumi.Input<string>;
/**
* *Optional* - Description of the storage bucket key.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket key.
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the storage bucket key.
*/
pool: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage bucket key will be stored.
*/
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>;
/**
* *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).
*/
role?: pulumi.Input<string>;
/**
* **Required** - Name of the storage bucket.
*/
storageBucket: pulumi.Input<string>;
}

View File

@@ -5,176 +5,185 @@ import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class StoragePool extends pulumi.CustomResource {
/**
* Get an existing StoragePool 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?: StoragePoolState, opts?: pulumi.CustomResourceOptions): StoragePool {
return new StoragePool(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing StoragePool 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?: StoragePoolState,
opts?: pulumi.CustomResourceOptions,
): StoragePool {
return new StoragePool(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/storagePool:StoragePool';
/** @internal */
public static readonly __pulumiType = "incus:index/storagePool:StoragePool";
/**
* Returns true if the given object is an instance of StoragePool. 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 StoragePool {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === StoragePool.__pulumiType;
}
/**
* Returns true if the given object is an instance of StoragePool. 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 StoragePool {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === StoragePool.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary from driver to driver.
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *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.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
*/
declare public readonly driver: pulumi.Output<string>;
/**
* **Required** - Name of the storage pool.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the storage pool will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
declare public readonly target: pulumi.Output<string | undefined>;
/**
* *Optional* - Map of key/value pairs of
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary from driver to driver.
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *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.
*/
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
*/
declare public readonly driver: pulumi.Output<string>;
/**
* **Required** - Name of the storage pool.
*/
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the storage pool will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
declare public readonly target: pulumi.Output<string | undefined>;
/**
* Create a StoragePool 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: StoragePoolArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: StoragePoolArgs | StoragePoolState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StoragePoolState | 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?.driver === undefined && !opts.urn) {
throw new Error("Missing required property 'driver'");
}
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);
}
/**
* Create a StoragePool 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: StoragePoolArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: StoragePoolArgs | StoragePoolState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StoragePoolState | 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?.driver === undefined && !opts.urn) {
throw new Error("Missing required property 'driver'");
}
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);
}
}
/**
* Input properties used for looking up and filtering StoragePool resources.
*/
export interface StoragePoolState {
/**
* *Optional* - Map of key/value pairs of
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary from driver to driver.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *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`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
*/
driver?: pulumi.Input<string>;
/**
* **Required** - Name of the storage pool.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage pool will be stored.
*/
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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary from driver to driver.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *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`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
*/
driver?: pulumi.Input<string>;
/**
* **Required** - Name of the storage pool.
*/
name?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage pool will be stored.
*/
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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a StoragePool resource.
*/
export interface StoragePoolArgs {
/**
* *Optional* - Map of key/value pairs of
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary from driver to driver.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *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`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
*/
driver: pulumi.Input<string>;
/**
* **Required** - Name of the storage pool.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage pool will be stored.
*/
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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary from driver to driver.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *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`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
*/
driver: pulumi.Input<string>;
/**
* **Required** - Name of the storage pool.
*/
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the storage pool will be stored.
*/
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>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
}

View File

@@ -7,245 +7,256 @@ import * as outputs from "./types/output";
import * as utilities from "./utilities";
export class StorageVolume extends pulumi.CustomResource {
/**
* Get an existing StorageVolume 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?: StorageVolumeState, opts?: pulumi.CustomResourceOptions): StorageVolume {
return new StorageVolume(name, <any>state, { ...opts, id: id });
}
/**
* Get an existing StorageVolume 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?: StorageVolumeState,
opts?: pulumi.CustomResourceOptions,
): StorageVolume {
return new StorageVolume(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'incus:index/storageVolume:StorageVolume';
/** @internal */
public static readonly __pulumiType = "incus:index/storageVolume:StorageVolume";
/**
* Returns true if the given object is an instance of StorageVolume. 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 StorageVolume {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === StorageVolume.__pulumiType;
}
/**
* Returns true if the given object is an instance of StorageVolume. 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 StorageVolume {
if (obj === undefined || obj === null) {
return false;
}
return obj["__pulumiType"] === StorageVolume.__pulumiType;
}
/**
* *Optional* - Map of key/value pairs of
* [volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary depending on the Storage Pool used.
*/
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Volume content type (`filesystem` or `block`)
*/
declare public readonly contentType: pulumi.Output<string>;
/**
* *Optional* - Description of the volume.
*/
declare public readonly description: pulumi.Output<string>;
/**
* Name of the node where volume was created. It could be useful with Incus in cluster mode.
*/
declare public /*out*/ readonly location: pulumi.Output<string>;
/**
* **Required** - Name of the storage volume.
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of storage pool to host the volume.
*/
declare public readonly pool: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the volume will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Path to a backup file from which the volume will be created.
*/
declare public readonly sourceFile: pulumi.Output<string | undefined>;
/**
* *Optional* - The source volume from which the volume will be created. See reference below.
*/
declare public readonly sourceVolume: pulumi.Output<outputs.StorageVolumeSourceVolume | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
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.
*/
declare public readonly type: pulumi.Output<string>;
/**
* *Optional* - Map of key/value pairs of
* [volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary depending on the Storage Pool used.
*/
declare public readonly config: pulumi.Output<{ [key: string]: string }>;
/**
* *Optional* - Volume content type (`filesystem` or `block`)
*/
declare public readonly contentType: pulumi.Output<string>;
/**
* *Optional* - Description of the volume.
*/
declare public readonly description: pulumi.Output<string>;
/**
* Name of the node where volume was created. It could be useful with Incus in cluster mode.
*/
declare public readonly /*out*/ location: pulumi.Output<string>;
/**
* **Required** - Name of the storage volume.
*/
declare public readonly name: pulumi.Output<string>;
/**
* **Required** - Name of storage pool to host the volume.
*/
declare public readonly pool: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the volume will be stored.
*/
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.
*/
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Path to a backup file from which the volume will be created.
*/
declare public readonly sourceFile: pulumi.Output<string | undefined>;
/**
* *Optional* - The source volume from which the volume will be created. See reference below.
*/
declare public readonly sourceVolume: pulumi.Output<
outputs.StorageVolumeSourceVolume | undefined
>;
/**
* *Optional* - Specify a target node in a cluster.
*/
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.
*/
declare public readonly type: pulumi.Output<string>;
/**
* Create a StorageVolume 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: StorageVolumeArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: StorageVolumeArgs | StorageVolumeState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StorageVolumeState | 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?.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?.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);
super(StorageVolume.__pulumiType, name, resourceInputs, opts);
}
/**
* Create a StorageVolume 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: StorageVolumeArgs, opts?: pulumi.CustomResourceOptions);
constructor(
name: string,
argsOrState?: StorageVolumeArgs | StorageVolumeState,
opts?: pulumi.CustomResourceOptions,
) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as StorageVolumeState | 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?.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?.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);
super(StorageVolume.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering StorageVolume resources.
*/
export interface StorageVolumeState {
/**
* *Optional* - Map of key/value pairs of
* [volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary depending on the Storage Pool used.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Volume content type (`filesystem` or `block`)
*/
contentType?: pulumi.Input<string>;
/**
* *Optional* - Description of the volume.
*/
description?: pulumi.Input<string>;
/**
* Name of the node where volume was created. It could be useful with Incus in cluster mode.
*/
location?: pulumi.Input<string>;
/**
* **Required** - Name of the storage volume.
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the volume.
*/
pool?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the volume will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the volume will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source volume from which the volume will be created. See reference below.
*/
sourceVolume?: pulumi.Input<inputs.StorageVolumeSourceVolume>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - The "type" of volume. The default value is `custom`,
* which is the type to use for storage volumes attached to instances.
*/
type?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary depending on the Storage Pool used.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Volume content type (`filesystem` or `block`)
*/
contentType?: pulumi.Input<string>;
/**
* *Optional* - Description of the volume.
*/
description?: pulumi.Input<string>;
/**
* Name of the node where volume was created. It could be useful with Incus in cluster mode.
*/
location?: pulumi.Input<string>;
/**
* **Required** - Name of the storage volume.
*/
name?: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the volume.
*/
pool?: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the volume will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the volume will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source volume from which the volume will be created. See reference below.
*/
sourceVolume?: pulumi.Input<inputs.StorageVolumeSourceVolume>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - The "type" of volume. The default value is `custom`,
* which is the type to use for storage volumes attached to instances.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a StorageVolume resource.
*/
export interface StorageVolumeArgs {
/**
* *Optional* - Map of key/value pairs of
* [volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary depending on the Storage Pool used.
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Volume content type (`filesystem` or `block`)
*/
contentType?: pulumi.Input<string>;
/**
* *Optional* - Description of the volume.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage volume.
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the volume.
*/
pool: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the volume will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the volume will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source volume from which the volume will be created. See reference below.
*/
sourceVolume?: pulumi.Input<inputs.StorageVolumeSourceVolume>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - The "type" of volume. The default value is `custom`,
* which is the type to use for storage volumes attached to instances.
*/
type?: pulumi.Input<string>;
/**
* *Optional* - Map of key/value pairs of
* [volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
* Config settings vary depending on the Storage Pool used.
*/
config?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
/**
* *Optional* - Volume content type (`filesystem` or `block`)
*/
contentType?: pulumi.Input<string>;
/**
* *Optional* - Description of the volume.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the storage volume.
*/
name: pulumi.Input<string>;
/**
* **Required** - Name of storage pool to host the volume.
*/
pool: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the volume will be stored.
*/
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>;
/**
* *Optional* - Path to a backup file from which the volume will be created.
*/
sourceFile?: pulumi.Input<string>;
/**
* *Optional* - The source volume from which the volume will be created. See reference below.
*/
sourceVolume?: pulumi.Input<inputs.StorageVolumeSourceVolume>;
/**
* *Optional* - Specify a target node in a cluster.
*/
target?: pulumi.Input<string>;
/**
* *Optional* - The "type" of volume. The default value is `custom`,
* which is the type to use for storage volumes attached to instances.
*/
type?: pulumi.Input<string>;
}

122
sdk/nodejs/tsconfig.json generated
View File

@@ -1,63 +1,63 @@
{
"compilerOptions": {
"outDir": "bin",
"target": "ES2020",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"stripInternal": true,
"experimentalDecorators": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"strict": true
},
"files": [
"certificate.ts",
"clusterGroup.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",
"networkPeer.ts",
"networkZone.ts",
"networkZoneRecord.ts",
"profile.ts",
"project.ts",
"provider.ts",
"server.ts",
"storageBucket.ts",
"storageBucketKey.ts",
"storagePool.ts",
"storageVolume.ts",
"types/index.ts",
"types/input.ts",
"types/output.ts",
"utilities.ts"
]
"compilerOptions": {
"outDir": "bin",
"target": "ES2020",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"stripInternal": true,
"experimentalDecorators": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
},
"files": [
"certificate.ts",
"clusterGroup.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",
"networkPeer.ts",
"networkZone.ts",
"networkZoneRecord.ts",
"profile.ts",
"project.ts",
"provider.ts",
"server.ts",
"storageBucket.ts",
"storageBucketKey.ts",
"storagePool.ts",
"storageVolume.ts",
"types/index.ts",
"types/input.ts",
"types/output.ts",
"utilities.ts",
],
}

View File

@@ -7,7 +7,4 @@ import * as utilities from "../utilities";
import * as input from "./input";
import * as output from "./output";
export {
input,
output,
};
export { input, output };

1273
sdk/nodejs/types/input.ts generated

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

138
sdk/nodejs/utilities.ts generated
View File

@@ -1,96 +1,102 @@
// *** 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 runtime from "@pulumi/pulumi/runtime";
import * as pulumi from "@pulumi/pulumi";
export function getEnv(...vars: string[]): string | undefined {
for (const v of vars) {
const value = process.env[v];
if (value) {
return value;
}
}
return undefined;
for (const v of vars) {
const value = process.env[v];
if (value) {
return value;
}
}
return undefined;
}
export function getEnvBoolean(...vars: string[]): boolean | undefined {
const s = getEnv(...vars);
if (s !== undefined) {
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
// Terraform uses internally when parsing boolean values.
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
return true;
}
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
return false;
}
}
return undefined;
const s = getEnv(...vars);
if (s !== undefined) {
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
// Terraform uses internally when parsing boolean values.
if (["1", "t", "T", "true", "TRUE", "True"].find((v) => v === s) !== undefined) {
return true;
}
if (["0", "f", "F", "false", "FALSE", "False"].find((v) => v === s) !== undefined) {
return false;
}
}
return undefined;
}
export function getEnvNumber(...vars: string[]): number | undefined {
const s = getEnv(...vars);
if (s !== undefined) {
const f = parseFloat(s);
if (!isNaN(f)) {
return f;
}
}
return undefined;
const s = getEnv(...vars);
if (s !== undefined) {
const f = parseFloat(s);
if (!isNaN(f)) {
return f;
}
}
return undefined;
}
export function getVersion(): string {
let version = require('./package.json').version;
// Node allows for the version to be prefixed by a "v", while semver doesn't.
// If there is a v, strip it off.
if (version.indexOf('v') === 0) {
version = version.slice(1);
}
return version;
let version = require("./package.json").version;
// Node allows for the version to be prefixed by a "v", while semver doesn't.
// If there is a v, strip it off.
if (version.indexOf("v") === 0) {
version = version.slice(1);
}
return version;
}
/** @internal */
export function resourceOptsDefaults(): any {
return { version: getVersion(), pluginDownloadURL: "https://git.kalinow.ski/api/packages/kiterun/generic/pulumi-incus/${VERSION}/" };
return {
version: getVersion(),
pluginDownloadURL:
"https://git.kalinow.ski/api/packages/kiterun/generic/pulumi-incus/${VERSION}/",
};
}
/** @internal */
export function lazyLoad(exports: any, props: string[], loadModule: any) {
for (let property of props) {
Object.defineProperty(exports, property, {
enumerable: true,
get: function() {
return loadModule()[property];
},
});
}
for (let property of props) {
Object.defineProperty(exports, property, {
enumerable: true,
get: function () {
return loadModule()[property];
},
});
}
}
/** @internal */
export async function callAsync<T>(
tok: string,
props: pulumi.Inputs,
res?: pulumi.Resource,
opts?: {property?: string},
tok: string,
props: pulumi.Inputs,
res?: pulumi.Resource,
opts?: { property?: string },
): Promise<T> {
const o: any = runtime.call<T>(tok, props, res);
const value = await o.promise(true /*withUnknowns*/);
const isKnown = await o.isKnown;
const isSecret = await o.isSecret;
const problem: string|undefined =
!isKnown ? "an unknown value"
: isSecret ? "a secret value"
: undefined;
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
if (problem) {
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
"This is an error in the provider, please report this to the provider developer.");
}
// Extract a single property if requested.
if (opts && opts.property) {
return value[opts.property];
}
return value;
const o: any = runtime.call<T>(tok, props, res);
const value = await o.promise(true /*withUnknowns*/);
const isKnown = await o.isKnown;
const isSecret = await o.isSecret;
const problem: string | undefined = !isKnown
? "an unknown value"
: isSecret
? "a secret value"
: undefined;
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
if (problem) {
throw new Error(
`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
"This is an error in the provider, please report this to the provider developer.",
);
}
// Extract a single property if requested.
if (opts && opts.property) {
return value[opts.property];
}
return value;
}