diff --git a/sdk/nodejs/.oxfmtrc.json b/sdk/nodejs/.oxfmtrc.json new file mode 100644 index 0000000..67c6859 --- /dev/null +++ b/sdk/nodejs/.oxfmtrc.json @@ -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 +} diff --git a/sdk/nodejs/certificate.ts b/sdk/nodejs/certificate.ts index 3fdf26a..3e58cb6 100644 --- a/sdk/nodejs/certificate.ts +++ b/sdk/nodejs/certificate.ts @@ -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, state?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate { - return new Certificate(name, 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, + state?: CertificateState, + opts?: pulumi.CustomResourceOptions, + ): Certificate { + return new Certificate(name, 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; - /** - * *Optional* - Description of the certificate. - */ - declare public readonly description: pulumi.Output; - /** - * The fingerprint of the certificate. - */ - declare public /*out*/ readonly fingerprint: pulumi.Output; - /** - * **Required** - Name of the certificate. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - List of projects to restrict the certificate to. - */ - declare public readonly projects: pulumi.Output; - /** - * *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; - /** - * *Optional* - Restrict the certificate to one or more projects. - */ - declare public readonly restricted: pulumi.Output; - /** - * *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; + /** + * **Required** - The certificate. + */ + declare public readonly certificate: pulumi.Output; + /** + * *Optional* - Description of the certificate. + */ + declare public readonly description: pulumi.Output; + /** + * The fingerprint of the certificate. + */ + declare public readonly /*out*/ fingerprint: pulumi.Output; + /** + * **Required** - Name of the certificate. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - List of projects to restrict the certificate to. + */ + declare public readonly projects: pulumi.Output; + /** + * *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; + /** + * *Optional* - Restrict the certificate to one or more projects. + */ + declare public readonly restricted: pulumi.Output; + /** + * *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; - /** - * 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; - /** - * *Optional* - Description of the certificate. - */ - description?: pulumi.Input; - /** - * The fingerprint of the certificate. - */ - fingerprint?: pulumi.Input; - /** - * **Required** - Name of the certificate. - */ - name?: pulumi.Input; - /** - * *Optional* - List of projects to restrict the certificate to. - */ - projects?: pulumi.Input[]>; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Restrict the certificate to one or more projects. - */ - restricted?: pulumi.Input; - /** - * *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; + /** + * **Required** - The certificate. + */ + certificate?: pulumi.Input; + /** + * *Optional* - Description of the certificate. + */ + description?: pulumi.Input; + /** + * The fingerprint of the certificate. + */ + fingerprint?: pulumi.Input; + /** + * **Required** - Name of the certificate. + */ + name?: pulumi.Input; + /** + * *Optional* - List of projects to restrict the certificate to. + */ + projects?: pulumi.Input[]>; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Restrict the certificate to one or more projects. + */ + restricted?: pulumi.Input; + /** + * *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; } /** * The set of arguments for constructing a Certificate resource. */ export interface CertificateArgs { - /** - * **Required** - The certificate. - */ - certificate: pulumi.Input; - /** - * *Optional* - Description of the certificate. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the certificate. - */ - name: pulumi.Input; - /** - * *Optional* - List of projects to restrict the certificate to. - */ - projects?: pulumi.Input[]>; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Restrict the certificate to one or more projects. - */ - restricted?: pulumi.Input; - /** - * *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; + /** + * **Required** - The certificate. + */ + certificate: pulumi.Input; + /** + * *Optional* - Description of the certificate. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the certificate. + */ + name: pulumi.Input; + /** + * *Optional* - List of projects to restrict the certificate to. + */ + projects?: pulumi.Input[]>; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Restrict the certificate to one or more projects. + */ + restricted?: pulumi.Input; + /** + * *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; } diff --git a/sdk/nodejs/clusterGroup.ts b/sdk/nodejs/clusterGroup.ts index 928422b..7d47402 100644 --- a/sdk/nodejs/clusterGroup.ts +++ b/sdk/nodejs/clusterGroup.ts @@ -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, state?: ClusterGroupState, opts?: pulumi.CustomResourceOptions): ClusterGroup { - return new ClusterGroup(name, 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, + state?: ClusterGroupState, + opts?: pulumi.CustomResourceOptions, + ): ClusterGroup { + return new ClusterGroup(name, 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; - /** - * **Required** - Name of the cluster group. - */ - declare public readonly name: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * **Required** - Name of the cluster group. + */ + declare public readonly name: pulumi.Output; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - Description of the cluster group. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the cluster group. - */ - name?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the cluster group. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the cluster group. + */ + name?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the cluster group. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the cluster group. - */ - name: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the cluster group. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the cluster group. + */ + name: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/clusterGroupMember.ts b/sdk/nodejs/clusterGroupMember.ts index 39ae4fa..9d98cff 100644 --- a/sdk/nodejs/clusterGroupMember.ts +++ b/sdk/nodejs/clusterGroupMember.ts @@ -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, state?: ClusterGroupMemberState, opts?: pulumi.CustomResourceOptions): ClusterGroupMember { - return new ClusterGroupMember(name, 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, + state?: ClusterGroupMemberState, + opts?: pulumi.CustomResourceOptions, + ): ClusterGroupMember { + return new ClusterGroupMember(name, 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; - /** - * **Required** - Name of the cluster group member. - */ - declare public readonly member: pulumi.Output; - /** - * *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; + /** + * **Required** - Name of the cluster group. + */ + declare public readonly clusterGroup: pulumi.Output; + /** + * **Required** - Name of the cluster group member. + */ + declare public readonly member: pulumi.Output; + /** + * *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; - /** - * 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; - /** - * **Required** - Name of the cluster group member. - */ - member?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * **Required** - Name of the cluster group. + */ + clusterGroup?: pulumi.Input; + /** + * **Required** - Name of the cluster group member. + */ + member?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * The set of arguments for constructing a ClusterGroupMember resource. */ export interface ClusterGroupMemberArgs { - /** - * **Required** - Name of the cluster group. - */ - clusterGroup: pulumi.Input; - /** - * **Required** - Name of the cluster group member. - */ - member: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * **Required** - Name of the cluster group. + */ + clusterGroup: pulumi.Input; + /** + * **Required** - Name of the cluster group member. + */ + member: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/config/vars.ts b/sdk/nodejs/config/vars.ts index d4b0b0a..7499515 100644 --- a/sdk/nodejs/config/vars.ts +++ b/sdk/nodejs/config/vars.ts @@ -14,10 +14,10 @@ const __config = new pulumi.Config("incus"); */ export declare const acceptRemoteCertificate: boolean | undefined; Object.defineProperty(exports, "acceptRemoteCertificate", { - get() { - return __config.getObject("acceptRemoteCertificate"); - }, - enumerable: true, + get() { + return __config.getObject("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("generateClientCertificates"); - }, - enumerable: true, + get() { + return __config.getObject("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("remotes"); - }, - enumerable: true, + get() { + return __config.getObject("remotes"); + }, + enumerable: true, }); - diff --git a/sdk/nodejs/getCluster.ts b/sdk/nodejs/getCluster.ts index 227924b..6b61334 100644 --- a/sdk/nodejs/getCluster.ts +++ b/sdk/nodejs/getCluster.ts @@ -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 { - 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 { + 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 { - 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 { + 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; + /** + * *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; } diff --git a/sdk/nodejs/getImage.ts b/sdk/nodejs/getImage.ts index be94995..5b9cd7d 100644 --- a/sdk/nodejs/getImage.ts +++ b/sdk/nodejs/getImage.ts @@ -24,72 +24,79 @@ import * as utilities from "./utilities"; * }); * ``` */ -export function getImage(args?: GetImageArgs, opts?: pulumi.InvokeOptions): Promise { - 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 { + 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 { - 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 { + 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; - /** - * *Optional* - Fingerprint of the image. - */ - fingerprint?: pulumi.Input; - /** - * *Optional* - Name of the image. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the image is stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Type of image. Must be one of `container` or `virtual-machine`. - */ - type?: pulumi.Input; + /** + * *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; + /** + * *Optional* - Fingerprint of the image. + */ + fingerprint?: pulumi.Input; + /** + * *Optional* - Name of the image. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the image is stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Type of image. Must be one of `container` or `virtual-machine`. + */ + type?: pulumi.Input; } diff --git a/sdk/nodejs/getInstance.ts b/sdk/nodejs/getInstance.ts index 74e96a4..0f678ff 100644 --- a/sdk/nodejs/getInstance.ts +++ b/sdk/nodejs/getInstance.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * Description of the instance. - */ - description?: pulumi.Input; - /** - * Device definitions. See reference below. - */ - devices?: pulumi.Input[]>; - /** - * Whether the instance is ephemeral (deleted on shutdown). - */ - ephemeral?: pulumi.Input; - /** - * Location of the instance. - */ - location?: pulumi.Input; - /** - * **Required** - Name of the instance. - */ - name: pulumi.Input; - /** - * List of profiles applied to the instance. - */ - profiles?: pulumi.Input[]>; - /** - * *Optional* - Name of the project where the instance is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * Whether the instance is stateful. - */ - stateful?: pulumi.Input; - /** - * Status of the instance. - */ - status?: pulumi.Input; - /** - * 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; + /** + * Architecture name. + */ + architecture?: pulumi.Input; + /** + * Description of the instance. + */ + description?: pulumi.Input; + /** + * Device definitions. See reference below. + */ + devices?: pulumi.Input[]>; + /** + * Whether the instance is ephemeral (deleted on shutdown). + */ + ephemeral?: pulumi.Input; + /** + * Location of the instance. + */ + location?: pulumi.Input; + /** + * **Required** - Name of the instance. + */ + name: pulumi.Input; + /** + * List of profiles applied to the instance. + */ + profiles?: pulumi.Input[]>; + /** + * *Optional* - Name of the project where the instance is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * Whether the instance is stateful. + */ + stateful?: pulumi.Input; + /** + * Status of the instance. + */ + status?: pulumi.Input; + /** + * 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; } diff --git a/sdk/nodejs/getNetwork.ts b/sdk/nodejs/getNetwork.ts index 1d09387..1669b32 100644 --- a/sdk/nodejs/getNetwork.ts +++ b/sdk/nodejs/getNetwork.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * Locations of the network. - */ - locations?: pulumi.Input[]>; - /** - * Whether the network is managed by Incus. - */ - managed?: pulumi.Input; - /** - * **Required** - Name of the network. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * Status of the network. - */ - status?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * Network type. - * [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types) - */ - type?: pulumi.Input; + /** + * Description of the network. + */ + description?: pulumi.Input; + /** + * Locations of the network. + */ + locations?: pulumi.Input[]>; + /** + * Whether the network is managed by Incus. + */ + managed?: pulumi.Input; + /** + * **Required** - Name of the network. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * Status of the network. + */ + status?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * Network type. + * [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types) + */ + type?: pulumi.Input; } diff --git a/sdk/nodejs/getNetworkAcl.ts b/sdk/nodejs/getNetworkAcl.ts index 8d8f262..8fb4f34 100644 --- a/sdk/nodejs/getNetworkAcl.ts +++ b/sdk/nodejs/getNetworkAcl.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * List of egress rules. - */ - egresses?: pulumi.Input[]>; - /** - * List of ingress rules. - */ - ingresses?: pulumi.Input[]>; - /** - * **Required** - Name of the network ACL. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network ACL is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * Description of the rule. + */ + description?: pulumi.Input; + /** + * List of egress rules. + */ + egresses?: pulumi.Input[]>; + /** + * List of ingress rules. + */ + ingresses?: pulumi.Input[]>; + /** + * **Required** - Name of the network ACL. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network ACL is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/getNetworkAddressSet.ts b/sdk/nodejs/getNetworkAddressSet.ts index 93501b7..370d4b7 100644 --- a/sdk/nodejs/getNetworkAddressSet.ts +++ b/sdk/nodejs/getNetworkAddressSet.ts @@ -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 { - 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 { + 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 { - 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 { + 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[]>; - /** - * Description of the network address set. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the network address set. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network address set is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * List of network addresses. + */ + addresses?: pulumi.Input[]>; + /** + * Description of the network address set. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network address set. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network address set is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/getNetworkForward.ts b/sdk/nodejs/getNetworkForward.ts index 8c97161..22da9ea 100644 --- a/sdk/nodejs/getNetworkForward.ts +++ b/sdk/nodejs/getNetworkForward.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * **Required** - Listen Address of the network forward. - */ - listenAddress: pulumi.Input; - /** - * Location of the network forward. - */ - location?: pulumi.Input; - /** - * **Required** - Name of the parent network. - */ - network: pulumi.Input; - /** - * List of ports to forward. - */ - ports?: pulumi.Input[]>; - /** - * *Optional* - Name of the project where the network forward is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; + /** + * Description of the forward port. + */ + description?: pulumi.Input; + /** + * **Required** - Listen Address of the network forward. + */ + listenAddress: pulumi.Input; + /** + * Location of the network forward. + */ + location?: pulumi.Input; + /** + * **Required** - Name of the parent network. + */ + network: pulumi.Input; + /** + * List of ports to forward. + */ + ports?: pulumi.Input[]>; + /** + * *Optional* - Name of the project where the network forward is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; } diff --git a/sdk/nodejs/getNetworkIntegration.ts b/sdk/nodejs/getNetworkIntegration.ts index 9e49961..7767967 100644 --- a/sdk/nodejs/getNetworkIntegration.ts +++ b/sdk/nodejs/getNetworkIntegration.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * **Required** - Name of the network integration. - */ - name: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * Integration type. - */ - type?: pulumi.Input; + /** + * Description of the network integration. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network integration. + */ + name: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * Integration type. + */ + type?: pulumi.Input; } diff --git a/sdk/nodejs/getNetworkLoadBalancer.ts b/sdk/nodejs/getNetworkLoadBalancer.ts index d0e701d..8f5cb10 100644 --- a/sdk/nodejs/getNetworkLoadBalancer.ts +++ b/sdk/nodejs/getNetworkLoadBalancer.ts @@ -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 { - 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 { + 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 { - 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 { + 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[]>; - /** - * Description of the load balancer port. - */ - description?: pulumi.Input; - /** - * **Required** - Listen Address of the network load balancer. - */ - listenAddress: pulumi.Input; - /** - * Location of the network load balancer. - */ - location?: pulumi.Input; - /** - * **Required** - Name of the parent network. - */ - network: pulumi.Input; - /** - * List of load balancer ports. - */ - ports?: pulumi.Input[]>; - /** - * *Optional* - Name of the project where the network load balancer is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * List of load balancer backends. + */ + backends?: pulumi.Input[]>; + /** + * Description of the load balancer port. + */ + description?: pulumi.Input; + /** + * **Required** - Listen Address of the network load balancer. + */ + listenAddress: pulumi.Input; + /** + * Location of the network load balancer. + */ + location?: pulumi.Input; + /** + * **Required** - Name of the parent network. + */ + network: pulumi.Input; + /** + * List of load balancer ports. + */ + ports?: pulumi.Input[]>; + /** + * *Optional* - Name of the project where the network load balancer is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/getNetworkPeer.ts b/sdk/nodejs/getNetworkPeer.ts index a87390e..add2be3 100644 --- a/sdk/nodejs/getNetworkPeer.ts +++ b/sdk/nodejs/getNetworkPeer.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * **Required** - Name of the network peer. - */ - name: pulumi.Input; - /** - * **Required** - Name of the parent network. - */ - network: pulumi.Input; - /** - * *Optional* - Name of the project where the network peer is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * Status of the network peer. - */ - status?: pulumi.Input; - /** - * Target integration for the network peer. - */ - targetIntegration?: pulumi.Input; - /** - * Target network for the network peer. - */ - targetNetwork?: pulumi.Input; - /** - * Target project for the network peer. - */ - targetProject?: pulumi.Input; - /** - * Network peer type. - */ - type?: pulumi.Input; + /** + * Description of the network peer. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network peer. + */ + name: pulumi.Input; + /** + * **Required** - Name of the parent network. + */ + network: pulumi.Input; + /** + * *Optional* - Name of the project where the network peer is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * Status of the network peer. + */ + status?: pulumi.Input; + /** + * Target integration for the network peer. + */ + targetIntegration?: pulumi.Input; + /** + * Target network for the network peer. + */ + targetNetwork?: pulumi.Input; + /** + * Target project for the network peer. + */ + targetProject?: pulumi.Input; + /** + * Network peer type. + */ + type?: pulumi.Input; } diff --git a/sdk/nodejs/getNetworkZone.ts b/sdk/nodejs/getNetworkZone.ts index a08b0ce..1a4938b 100644 --- a/sdk/nodejs/getNetworkZone.ts +++ b/sdk/nodejs/getNetworkZone.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * **Required** - Name of the network zone. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network zone is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * Description of the network zone. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network zone. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network zone is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/getProfile.ts b/sdk/nodejs/getProfile.ts index 55a37f2..f619108 100644 --- a/sdk/nodejs/getProfile.ts +++ b/sdk/nodejs/getProfile.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * Device definitions. See reference below. - */ - devices?: pulumi.Input[]>; - /** - * **Required** - Name of the profile. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the profile is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * Description of the profile. + */ + description?: pulumi.Input; + /** + * Device definitions. See reference below. + */ + devices?: pulumi.Input[]>; + /** + * **Required** - Name of the profile. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the profile is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/getProject.ts b/sdk/nodejs/getProject.ts index f257bd0..81e594a 100644 --- a/sdk/nodejs/getProject.ts +++ b/sdk/nodejs/getProject.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * **Required** - Name of the project. - */ - name: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * Description of the project. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the project. + */ + name: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/getStorageBucket.ts b/sdk/nodejs/getStorageBucket.ts index 084e46a..3df651c 100644 --- a/sdk/nodejs/getStorageBucket.ts +++ b/sdk/nodejs/getStorageBucket.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * Location of the storage bucket. - */ - location?: pulumi.Input; - /** - * **Required** - Name of the storage bucket. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the storage bucket is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * Storage Bucket S3 URL. - */ - s3Url?: pulumi.Input; - /** - * **Required** - Name of the parent storage pool. - */ - storagePool: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; + /** + * Description of the storage bucket. + */ + description?: pulumi.Input; + /** + * Location of the storage bucket. + */ + location?: pulumi.Input; + /** + * **Required** - Name of the storage bucket. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the storage bucket is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * Storage Bucket S3 URL. + */ + s3Url?: pulumi.Input; + /** + * **Required** - Name of the parent storage pool. + */ + storagePool: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; } diff --git a/sdk/nodejs/getStoragePool.ts b/sdk/nodejs/getStoragePool.ts index 5169441..d4f52e1 100644 --- a/sdk/nodejs/getStoragePool.ts +++ b/sdk/nodejs/getStoragePool.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * Storage Pool driver. - */ - driver?: pulumi.Input; - /** - * **Required** - Name of the storage pool. - */ - name: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * Status of the storage pool. - */ - status?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; + /** + * Description of the storage pool. + */ + description?: pulumi.Input; + /** + * Storage Pool driver. + */ + driver?: pulumi.Input; + /** + * **Required** - Name of the storage pool. + */ + name: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * Status of the storage pool. + */ + status?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; } diff --git a/sdk/nodejs/getStorageVolume.ts b/sdk/nodejs/getStorageVolume.ts index e192411..ecf985c 100644 --- a/sdk/nodejs/getStorageVolume.ts +++ b/sdk/nodejs/getStorageVolume.ts @@ -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 { - 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 { + 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 { - 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 { + 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; - /** - * Description of the storage volume. - */ - description?: pulumi.Input; - /** - * Location of the storage volume. - */ - location?: pulumi.Input; - /** - * **Required** - Name of the storage volume. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the storage volume is be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource was created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * **Required** - Name of the parent storage pool. - */ - storagePool: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * **Required** - Storage Volume type. - */ - type: pulumi.Input; + /** + * Storage Volume content type. + */ + contentType?: pulumi.Input; + /** + * Description of the storage volume. + */ + description?: pulumi.Input; + /** + * Location of the storage volume. + */ + location?: pulumi.Input; + /** + * **Required** - Name of the storage volume. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the storage volume is be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource was created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * **Required** - Name of the parent storage pool. + */ + storagePool: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * **Required** - Storage Volume type. + */ + type: pulumi.Input; } diff --git a/sdk/nodejs/image.ts b/sdk/nodejs/image.ts index fa98b89..5f5ccae 100644 --- a/sdk/nodejs/image.ts +++ b/sdk/nodejs/image.ts @@ -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, state?: ImageState, opts?: pulumi.CustomResourceOptions): Image { - return new Image(name, 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, + state?: ImageState, + opts?: pulumi.CustomResourceOptions, + ): Image { + return new Image(name, 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; - /** - * The list of aliases that were copied from the - * `sourceImage`. - */ - declare public /*out*/ readonly copiedAliases: pulumi.Output; - /** - * The datetime of image creation, in Unix time. - */ - declare public /*out*/ readonly createdAt: pulumi.Output; - /** - * The unique hash fingperint of the image. - */ - declare public /*out*/ readonly fingerprint: pulumi.Output; - /** - * *Optional* - Name of the project where the image will be stored. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - declare public /*out*/ readonly resourceId: pulumi.Output; - /** - * *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; - /** - * *Optional* - The source image from which the image will be created. See reference below. - */ - declare public readonly sourceImage: pulumi.Output; - /** - * *Optional* - The source instance from which the image will be created. See reference below. - */ - declare public readonly sourceInstance: pulumi.Output; + /** + * Image alias + */ + declare public readonly aliases: pulumi.Output; + /** + * The list of aliases that were copied from the + * `sourceImage`. + */ + declare public readonly /*out*/ copiedAliases: pulumi.Output; + /** + * The datetime of image creation, in Unix time. + */ + declare public readonly /*out*/ createdAt: pulumi.Output; + /** + * The unique hash fingperint of the image. + */ + declare public readonly /*out*/ fingerprint: pulumi.Output; + /** + * *Optional* - Name of the project where the image will be stored. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + declare public readonly /*out*/ resourceId: pulumi.Output; + /** + * *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; + /** + * *Optional* - The source image from which the image will be created. See reference below. + */ + declare public readonly sourceImage: pulumi.Output; + /** + * *Optional* - The source instance from which the image will be created. See reference below. + */ + declare public readonly sourceInstance: pulumi.Output; - /** - * 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[]>; - /** - * The list of aliases that were copied from the - * `sourceImage`. - */ - copiedAliases?: pulumi.Input[]>; - /** - * The datetime of image creation, in Unix time. - */ - createdAt?: pulumi.Input; - /** - * The unique hash fingperint of the image. - */ - fingerprint?: pulumi.Input; - /** - * *Optional* - Name of the project where the image will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - resourceId?: pulumi.Input; - /** - * *Optional* - The image file from the local file system from which the image will be created. See reference below. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - The source image from which the image will be created. See reference below. - */ - sourceImage?: pulumi.Input; - /** - * *Optional* - The source instance from which the image will be created. See reference below. - */ - sourceInstance?: pulumi.Input; + /** + * Image alias + */ + aliases?: pulumi.Input[]>; + /** + * The list of aliases that were copied from the + * `sourceImage`. + */ + copiedAliases?: pulumi.Input[]>; + /** + * The datetime of image creation, in Unix time. + */ + createdAt?: pulumi.Input; + /** + * The unique hash fingperint of the image. + */ + fingerprint?: pulumi.Input; + /** + * *Optional* - Name of the project where the image will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + resourceId?: pulumi.Input; + /** + * *Optional* - The image file from the local file system from which the image will be created. See reference below. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - The source image from which the image will be created. See reference below. + */ + sourceImage?: pulumi.Input; + /** + * *Optional* - The source instance from which the image will be created. See reference below. + */ + sourceInstance?: pulumi.Input; } /** * The set of arguments for constructing a Image resource. */ export interface ImageArgs { - /** - * Image alias - */ - aliases?: pulumi.Input[]>; - /** - * *Optional* - Name of the project where the image will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - The image file from the local file system from which the image will be created. See reference below. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - The source image from which the image will be created. See reference below. - */ - sourceImage?: pulumi.Input; - /** - * *Optional* - The source instance from which the image will be created. See reference below. - */ - sourceInstance?: pulumi.Input; + /** + * Image alias + */ + aliases?: pulumi.Input[]>; + /** + * *Optional* - Name of the project where the image will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - The image file from the local file system from which the image will be created. See reference below. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - The source image from which the image will be created. See reference below. + */ + sourceImage?: pulumi.Input; + /** + * *Optional* - The source instance from which the image will be created. See reference below. + */ + sourceInstance?: pulumi.Input; } diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index c3731e6..c3afcc9 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -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, undefined, { urn }) - case "incus:index/clusterGroup:ClusterGroup": - return new ClusterGroup(name, undefined, { urn }) - case "incus:index/clusterGroupMember:ClusterGroupMember": - return new ClusterGroupMember(name, undefined, { urn }) - case "incus:index/image:Image": - return new Image(name, undefined, { urn }) - case "incus:index/instance:Instance": - return new Instance(name, undefined, { urn }) - case "incus:index/instanceSnapshot:InstanceSnapshot": - return new InstanceSnapshot(name, undefined, { urn }) - case "incus:index/network:Network": - return new Network(name, undefined, { urn }) - case "incus:index/networkAcl:NetworkAcl": - return new NetworkAcl(name, undefined, { urn }) - case "incus:index/networkAddressSet:NetworkAddressSet": - return new NetworkAddressSet(name, undefined, { urn }) - case "incus:index/networkForward:NetworkForward": - return new NetworkForward(name, undefined, { urn }) - case "incus:index/networkIntegration:NetworkIntegration": - return new NetworkIntegration(name, undefined, { urn }) - case "incus:index/networkLoadBalancer:NetworkLoadBalancer": - return new NetworkLoadBalancer(name, undefined, { urn }) - case "incus:index/networkPeer:NetworkPeer": - return new NetworkPeer(name, undefined, { urn }) - case "incus:index/networkZone:NetworkZone": - return new NetworkZone(name, undefined, { urn }) - case "incus:index/networkZoneRecord:NetworkZoneRecord": - return new NetworkZoneRecord(name, undefined, { urn }) - case "incus:index/profile:Profile": - return new Profile(name, undefined, { urn }) - case "incus:index/project:Project": - return new Project(name, undefined, { urn }) - case "incus:index/server:Server": - return new Server(name, undefined, { urn }) - case "incus:index/storageBucket:StorageBucket": - return new StorageBucket(name, undefined, { urn }) - case "incus:index/storageBucketKey:StorageBucketKey": - return new StorageBucketKey(name, undefined, { urn }) - case "incus:index/storagePool:StoragePool": - return new StoragePool(name, undefined, { urn }) - case "incus:index/storageVolume:StorageVolume": - return new StorageVolume(name, 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, undefined, { urn }); + case "incus:index/clusterGroup:ClusterGroup": + return new ClusterGroup(name, undefined, { urn }); + case "incus:index/clusterGroupMember:ClusterGroupMember": + return new ClusterGroupMember(name, undefined, { urn }); + case "incus:index/image:Image": + return new Image(name, undefined, { urn }); + case "incus:index/instance:Instance": + return new Instance(name, undefined, { urn }); + case "incus:index/instanceSnapshot:InstanceSnapshot": + return new InstanceSnapshot(name, undefined, { urn }); + case "incus:index/network:Network": + return new Network(name, undefined, { urn }); + case "incus:index/networkAcl:NetworkAcl": + return new NetworkAcl(name, undefined, { urn }); + case "incus:index/networkAddressSet:NetworkAddressSet": + return new NetworkAddressSet(name, undefined, { urn }); + case "incus:index/networkForward:NetworkForward": + return new NetworkForward(name, undefined, { urn }); + case "incus:index/networkIntegration:NetworkIntegration": + return new NetworkIntegration(name, undefined, { urn }); + case "incus:index/networkLoadBalancer:NetworkLoadBalancer": + return new NetworkLoadBalancer(name, undefined, { urn }); + case "incus:index/networkPeer:NetworkPeer": + return new NetworkPeer(name, undefined, { urn }); + case "incus:index/networkZone:NetworkZone": + return new NetworkZone(name, undefined, { urn }); + case "incus:index/networkZoneRecord:NetworkZoneRecord": + return new NetworkZoneRecord(name, undefined, { urn }); + case "incus:index/profile:Profile": + return new Profile(name, undefined, { urn }); + case "incus:index/project:Project": + return new Project(name, undefined, { urn }); + case "incus:index/server:Server": + return new Server(name, undefined, { urn }); + case "incus:index/storageBucket:StorageBucket": + return new StorageBucket(name, undefined, { urn }); + case "incus:index/storageBucketKey:StorageBucketKey": + return new StorageBucketKey(name, undefined, { urn }); + case "incus:index/storagePool:StoragePool": + return new StoragePool(name, undefined, { urn }); + case "incus:index/storageVolume:StorageVolume": + return new StorageVolume(name, 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, 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, undefined, { urn }); + }, }); diff --git a/sdk/nodejs/instance.ts b/sdk/nodejs/instance.ts index fb08e53..2c21b21 100644 --- a/sdk/nodejs/instance.ts +++ b/sdk/nodejs/instance.ts @@ -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, state?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance { - return new Instance(name, 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, + state?: InstanceState, + opts?: pulumi.CustomResourceOptions, + ): Instance { + return new Instance(name, 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; - /** - * *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; - /** - * *Optional* - Device definition. See reference below. - */ - declare public readonly devices: pulumi.Output; - /** - * *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`. - */ - declare public readonly ephemeral: pulumi.Output; - /** - * *Optional* - File to upload to the instance. See reference below. - */ - declare public readonly files: pulumi.Output; - /** - * *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; - /** - * The IPv4 Address of the instance. See Instance Network - * Access for more details. - */ - declare public /*out*/ readonly ipv4Address: pulumi.Output; - /** - * The IPv6 Address of the instance. See Instance Network - * Access for more details. - */ - declare public /*out*/ readonly ipv6Address: pulumi.Output; - /** - * The MAC address of the detected NIC. See Instance Network - * Access for more details. - */ - declare public /*out*/ readonly macAddress: pulumi.Output; - /** - * **Required** - Name of the instance. - */ - declare public readonly name: pulumi.Output; - /** - * *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; - /** - * *Optional* - Name of the project where the instance will be spawned. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`. - */ - declare public readonly running: pulumi.Output; - /** - * *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; - /** - * *Optional* - The source instance from which the instance will be created. See reference below. - */ - declare public readonly sourceInstance: pulumi.Output; - /** - * The status of the instance. - */ - declare public /*out*/ readonly status: pulumi.Output; - /** - * *Optional* - Specify a target node in a cluster. - */ - declare public readonly target: pulumi.Output; - /** - * *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`. - */ - declare public readonly type: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * *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; + /** + * *Optional* - Device definition. See reference below. + */ + declare public readonly devices: pulumi.Output; + /** + * *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`. + */ + declare public readonly ephemeral: pulumi.Output; + /** + * *Optional* - File to upload to the instance. See reference below. + */ + declare public readonly files: pulumi.Output; + /** + * *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; + /** + * The IPv4 Address of the instance. See Instance Network + * Access for more details. + */ + declare public readonly /*out*/ ipv4Address: pulumi.Output; + /** + * The IPv6 Address of the instance. See Instance Network + * Access for more details. + */ + declare public readonly /*out*/ ipv6Address: pulumi.Output; + /** + * The MAC address of the detected NIC. See Instance Network + * Access for more details. + */ + declare public readonly /*out*/ macAddress: pulumi.Output; + /** + * **Required** - Name of the instance. + */ + declare public readonly name: pulumi.Output; + /** + * *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; + /** + * *Optional* - Name of the project where the instance will be spawned. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`. + */ + declare public readonly running: pulumi.Output; + /** + * *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; + /** + * *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; + /** + * *Optional* - Specify a target node in a cluster. + */ + declare public readonly target: pulumi.Output; + /** + * *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`. + */ + declare public readonly type: pulumi.Output; + /** + * *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; - /** - * 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; - /** - * *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}>; - /** - * *Optional* - Description of the instance. - */ - description?: pulumi.Input; - /** - * *Optional* - Device definition. See reference below. - */ - devices?: pulumi.Input[]>; - /** - * *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`. - */ - ephemeral?: pulumi.Input; - /** - * *Optional* - File to upload to the instance. See reference below. - */ - files?: pulumi.Input[]>; - /** - * *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; - /** - * The IPv4 Address of the instance. See Instance Network - * Access for more details. - */ - ipv4Address?: pulumi.Input; - /** - * The IPv6 Address of the instance. See Instance Network - * Access for more details. - */ - ipv6Address?: pulumi.Input; - /** - * The MAC address of the detected NIC. See Instance Network - * Access for more details. - */ - macAddress?: pulumi.Input; - /** - * **Required** - Name of the instance. - */ - name?: pulumi.Input; - /** - * *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[]>; - /** - * *Optional* - Name of the project where the instance will be spawned. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`. - */ - running?: pulumi.Input; - /** - * *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - The source instance from which the instance will be created. See reference below. - */ - sourceInstance?: pulumi.Input; - /** - * The status of the instance. - */ - status?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`. - */ - type?: pulumi.Input; - /** - * *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[]>; + /** + * *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; + /** + * *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 }>; + /** + * *Optional* - Description of the instance. + */ + description?: pulumi.Input; + /** + * *Optional* - Device definition. See reference below. + */ + devices?: pulumi.Input[]>; + /** + * *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`. + */ + ephemeral?: pulumi.Input; + /** + * *Optional* - File to upload to the instance. See reference below. + */ + files?: pulumi.Input[]>; + /** + * *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; + /** + * The IPv4 Address of the instance. See Instance Network + * Access for more details. + */ + ipv4Address?: pulumi.Input; + /** + * The IPv6 Address of the instance. See Instance Network + * Access for more details. + */ + ipv6Address?: pulumi.Input; + /** + * The MAC address of the detected NIC. See Instance Network + * Access for more details. + */ + macAddress?: pulumi.Input; + /** + * **Required** - Name of the instance. + */ + name?: pulumi.Input; + /** + * *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[]>; + /** + * *Optional* - Name of the project where the instance will be spawned. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`. + */ + running?: pulumi.Input; + /** + * *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - The source instance from which the instance will be created. See reference below. + */ + sourceInstance?: pulumi.Input; + /** + * The status of the instance. + */ + status?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`. + */ + type?: pulumi.Input; + /** + * *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[]>; } /** * 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; - /** - * *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}>; - /** - * *Optional* - Description of the instance. - */ - description?: pulumi.Input; - /** - * *Optional* - Device definition. See reference below. - */ - devices?: pulumi.Input[]>; - /** - * *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`. - */ - ephemeral?: pulumi.Input; - /** - * *Optional* - File to upload to the instance. See reference below. - */ - files?: pulumi.Input[]>; - /** - * *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; - /** - * **Required** - Name of the instance. - */ - name: pulumi.Input; - /** - * *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[]>; - /** - * *Optional* - Name of the project where the instance will be spawned. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`. - */ - running?: pulumi.Input; - /** - * *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - The source instance from which the instance will be created. See reference below. - */ - sourceInstance?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`. - */ - type?: pulumi.Input; - /** - * *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[]>; + /** + * *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; + /** + * *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 }>; + /** + * *Optional* - Description of the instance. + */ + description?: pulumi.Input; + /** + * *Optional* - Device definition. See reference below. + */ + devices?: pulumi.Input[]>; + /** + * *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`. + */ + ephemeral?: pulumi.Input; + /** + * *Optional* - File to upload to the instance. See reference below. + */ + files?: pulumi.Input[]>; + /** + * *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; + /** + * **Required** - Name of the instance. + */ + name: pulumi.Input; + /** + * *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[]>; + /** + * *Optional* - Name of the project where the instance will be spawned. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`. + */ + running?: pulumi.Input; + /** + * *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - The source instance from which the instance will be created. See reference below. + */ + sourceInstance?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`. + */ + type?: pulumi.Input; + /** + * *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[]>; } diff --git a/sdk/nodejs/instanceSnapshot.ts b/sdk/nodejs/instanceSnapshot.ts index cfa3ce1..0b99273 100644 --- a/sdk/nodejs/instanceSnapshot.ts +++ b/sdk/nodejs/instanceSnapshot.ts @@ -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, state?: InstanceSnapshotState, opts?: pulumi.CustomResourceOptions): InstanceSnapshot { - return new InstanceSnapshot(name, 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, + state?: InstanceSnapshotState, + opts?: pulumi.CustomResourceOptions, + ): InstanceSnapshot { + return new InstanceSnapshot(name, 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; - /** - * **Required** - The name of the instance to snapshot. - */ - declare public readonly instance: pulumi.Output; - /** - * **Required** - Name of the snapshot. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the snapshot will be stored. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * *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; + /** + * The time Incus reported the snapshot was successfully created, + * in UTC. + */ + declare public readonly /*out*/ createdAt: pulumi.Output; + /** + * **Required** - The name of the instance to snapshot. + */ + declare public readonly instance: pulumi.Output; + /** + * **Required** - Name of the snapshot. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the snapshot will be stored. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * *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; - /** - * 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; - /** - * **Required** - The name of the instance to snapshot. - */ - instance?: pulumi.Input; - /** - * **Required** - Name of the snapshot. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the snapshot will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Set to `true` to create a stateful snapshot, - * `false` for stateless. Stateful snapshots include runtime state. Defaults to - * `false`. - */ - stateful?: pulumi.Input; + /** + * The time Incus reported the snapshot was successfully created, + * in UTC. + */ + createdAt?: pulumi.Input; + /** + * **Required** - The name of the instance to snapshot. + */ + instance?: pulumi.Input; + /** + * **Required** - Name of the snapshot. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the snapshot will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Set to `true` to create a stateful snapshot, + * `false` for stateless. Stateful snapshots include runtime state. Defaults to + * `false`. + */ + stateful?: pulumi.Input; } /** * The set of arguments for constructing a InstanceSnapshot resource. */ export interface InstanceSnapshotArgs { - /** - * **Required** - The name of the instance to snapshot. - */ - instance: pulumi.Input; - /** - * **Required** - Name of the snapshot. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the snapshot will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Set to `true` to create a stateful snapshot, - * `false` for stateless. Stateful snapshots include runtime state. Defaults to - * `false`. - */ - stateful?: pulumi.Input; + /** + * **Required** - The name of the instance to snapshot. + */ + instance: pulumi.Input; + /** + * **Required** - Name of the snapshot. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the snapshot will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Set to `true` to create a stateful snapshot, + * `false` for stateless. Stateful snapshots include runtime state. Defaults to + * `false`. + */ + stateful?: pulumi.Input; } diff --git a/sdk/nodejs/network.ts b/sdk/nodejs/network.ts index 6771e45..e429d08 100644 --- a/sdk/nodejs/network.ts +++ b/sdk/nodejs/network.ts @@ -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, state?: NetworkState, opts?: pulumi.CustomResourceOptions): Network { - return new Network(name, 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, + state?: NetworkState, + opts?: pulumi.CustomResourceOptions, + ): Network { + return new Network(name, 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; - /** - * Whether or not the network is managed. - */ - declare public /*out*/ readonly managed: pulumi.Output; - /** - * **Required** - Name of the network. This is usually the device the - * network will appear as to instances. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the network will be created. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * *Optional* - Specify a target node in a cluster. - */ - declare public readonly target: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * Whether or not the network is managed. + */ + declare public readonly /*out*/ managed: pulumi.Output; + /** + * **Required** - Name of the network. This is usually the device the + * network will appear as to instances. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the network will be created. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * *Optional* - Specify a target node in a cluster. + */ + declare public readonly target: pulumi.Output; + /** + * *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; - /** - * 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}>; - /** - * *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; - /** - * Whether or not the network is managed. - */ - managed?: pulumi.Input; - /** - * **Required** - Name of the network. This is usually the device the - * network will appear as to instances. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the network will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * *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; + /** + * *Optional* - Map of key/value pairs of + * [network config settings](https://linuxcontainers.org/incus/docs/main/networks/). + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *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; + /** + * Whether or not the network is managed. + */ + managed?: pulumi.Input; + /** + * **Required** - Name of the network. This is usually the device the + * network will appear as to instances. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the network will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * *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; } /** * 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}>; - /** - * *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; - /** - * **Required** - Name of the network. This is usually the device the - * network will appear as to instances. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * *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; + /** + * *Optional* - Map of key/value pairs of + * [network config settings](https://linuxcontainers.org/incus/docs/main/networks/). + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *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; + /** + * **Required** - Name of the network. This is usually the device the + * network will appear as to instances. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * *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; } diff --git a/sdk/nodejs/networkAcl.ts b/sdk/nodejs/networkAcl.ts index 3ba89cc..3408f96 100644 --- a/sdk/nodejs/networkAcl.ts +++ b/sdk/nodejs/networkAcl.ts @@ -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, state?: NetworkAclState, opts?: pulumi.CustomResourceOptions): NetworkAcl { - return new NetworkAcl(name, 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, + state?: NetworkAclState, + opts?: pulumi.CustomResourceOptions, + ): NetworkAcl { + return new NetworkAcl(name, 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; - /** - * *Optional* - List of network ACL rules for egress traffic. See reference below. - */ - declare public readonly egresses: pulumi.Output; - /** - * *Optional* - List of network ACL rules for ingress traffic. See reference below. - * - * The network ACL rule supports: - */ - declare public readonly ingresses: pulumi.Output; - /** - * **Required** - Name of the network ACL. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the network ACL will be created. - */ - declare public readonly project: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * *Optional* - List of network ACL rules for egress traffic. See reference below. + */ + declare public readonly egresses: pulumi.Output; + /** + * *Optional* - List of network ACL rules for ingress traffic. See reference below. + * + * The network ACL rule supports: + */ + declare public readonly ingresses: pulumi.Output; + /** + * **Required** - Name of the network ACL. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the network ACL will be created. + */ + declare public readonly project: pulumi.Output; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - Description of the network ACL rule. - */ - description?: pulumi.Input; - /** - * *Optional* - List of network ACL rules for egress traffic. See reference below. - */ - egresses?: pulumi.Input[]>; - /** - * *Optional* - List of network ACL rules for ingress traffic. See reference below. - * - * The network ACL rule supports: - */ - ingresses?: pulumi.Input[]>; - /** - * **Required** - Name of the network ACL. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the network ACL will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *Optional* - Map of key/value pairs of + * network ACL config settings. + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *Optional* - Description of the network ACL rule. + */ + description?: pulumi.Input; + /** + * *Optional* - List of network ACL rules for egress traffic. See reference below. + */ + egresses?: pulumi.Input[]>; + /** + * *Optional* - List of network ACL rules for ingress traffic. See reference below. + * + * The network ACL rule supports: + */ + ingresses?: pulumi.Input[]>; + /** + * **Required** - Name of the network ACL. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the network ACL will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the network ACL rule. - */ - description?: pulumi.Input; - /** - * *Optional* - List of network ACL rules for egress traffic. See reference below. - */ - egresses?: pulumi.Input[]>; - /** - * *Optional* - List of network ACL rules for ingress traffic. See reference below. - * - * The network ACL rule supports: - */ - ingresses?: pulumi.Input[]>; - /** - * **Required** - Name of the network ACL. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network ACL will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *Optional* - Map of key/value pairs of + * network ACL config settings. + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *Optional* - Description of the network ACL rule. + */ + description?: pulumi.Input; + /** + * *Optional* - List of network ACL rules for egress traffic. See reference below. + */ + egresses?: pulumi.Input[]>; + /** + * *Optional* - List of network ACL rules for ingress traffic. See reference below. + * + * The network ACL rule supports: + */ + ingresses?: pulumi.Input[]>; + /** + * **Required** - Name of the network ACL. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network ACL will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/networkAddressSet.ts b/sdk/nodejs/networkAddressSet.ts index 382b55c..63dbf04 100644 --- a/sdk/nodejs/networkAddressSet.ts +++ b/sdk/nodejs/networkAddressSet.ts @@ -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, state?: NetworkAddressSetState, opts?: pulumi.CustomResourceOptions): NetworkAddressSet { - return new NetworkAddressSet(name, 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, + state?: NetworkAddressSetState, + opts?: pulumi.CustomResourceOptions, + ): NetworkAddressSet { + return new NetworkAddressSet(name, 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; - /** - * *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; - /** - * **Required** - Name of the network address set. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the network address set will be created. - */ - declare public readonly project: pulumi.Output; - /** - * *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; + /** + * **Required** - IP addresses of the address set. + */ + declare public readonly addresses: pulumi.Output; + /** + * *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; + /** + * **Required** - Name of the network address set. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the network address set will be created. + */ + declare public readonly project: pulumi.Output; + /** + * *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; - /** - * 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[]>; - /** - * *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}>; - /** - * *Optional* - Description of the network address set. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the network address set. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the network address set will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * **Required** - IP addresses of the address set. + */ + addresses?: pulumi.Input[]>; + /** + * *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 }>; + /** + * *Optional* - Description of the network address set. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network address set. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the network address set will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * The set of arguments for constructing a NetworkAddressSet resource. */ export interface NetworkAddressSetArgs { - /** - * **Required** - IP addresses of the address set. - */ - addresses: pulumi.Input[]>; - /** - * *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}>; - /** - * *Optional* - Description of the network address set. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the network address set. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network address set will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * **Required** - IP addresses of the address set. + */ + addresses: pulumi.Input[]>; + /** + * *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 }>; + /** + * *Optional* - Description of the network address set. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network address set. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network address set will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/networkForward.ts b/sdk/nodejs/networkForward.ts index 7afa971..db16eba 100644 --- a/sdk/nodejs/networkForward.ts +++ b/sdk/nodejs/networkForward.ts @@ -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, state?: NetworkForwardState, opts?: pulumi.CustomResourceOptions): NetworkForward { - return new NetworkForward(name, 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, + state?: NetworkForwardState, + opts?: pulumi.CustomResourceOptions, + ): NetworkForward { + return new NetworkForward(name, 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; - /** - * **Required** - IP address to listen on. - */ - declare public readonly listenAddress: pulumi.Output; - /** - * **Required** - Name of the network. - */ - declare public readonly network: pulumi.Output; - /** - * *Optional* - List of port specifications. See reference below. - * - * The network forward port supports: - */ - declare public readonly ports: pulumi.Output; - /** - * *Optional* - Name of the project where the network forward will be created. - */ - declare public readonly project: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * **Required** - IP address to listen on. + */ + declare public readonly listenAddress: pulumi.Output; + /** + * **Required** - Name of the network. + */ + declare public readonly network: pulumi.Output; + /** + * *Optional* - List of port specifications. See reference below. + * + * The network forward port supports: + */ + declare public readonly ports: pulumi.Output; + /** + * *Optional* - Name of the project where the network forward will be created. + */ + declare public readonly project: pulumi.Output; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - Description of port(s) - */ - description?: pulumi.Input; - /** - * **Required** - IP address to listen on. - */ - listenAddress?: pulumi.Input; - /** - * **Required** - Name of the network. - */ - network?: pulumi.Input; - /** - * *Optional* - List of port specifications. See reference below. - * - * The network forward port supports: - */ - ports?: pulumi.Input[]>; - /** - * *Optional* - Name of the project where the network forward will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *Optional* - Map of key/value pairs of + * network forward config settings. + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *Optional* - Description of port(s) + */ + description?: pulumi.Input; + /** + * **Required** - IP address to listen on. + */ + listenAddress?: pulumi.Input; + /** + * **Required** - Name of the network. + */ + network?: pulumi.Input; + /** + * *Optional* - List of port specifications. See reference below. + * + * The network forward port supports: + */ + ports?: pulumi.Input[]>; + /** + * *Optional* - Name of the project where the network forward will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of port(s) - */ - description?: pulumi.Input; - /** - * **Required** - IP address to listen on. - */ - listenAddress: pulumi.Input; - /** - * **Required** - Name of the network. - */ - network: pulumi.Input; - /** - * *Optional* - List of port specifications. See reference below. - * - * The network forward port supports: - */ - ports?: pulumi.Input[]>; - /** - * *Optional* - Name of the project where the network forward will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *Optional* - Map of key/value pairs of + * network forward config settings. + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *Optional* - Description of port(s) + */ + description?: pulumi.Input; + /** + * **Required** - IP address to listen on. + */ + listenAddress: pulumi.Input; + /** + * **Required** - Name of the network. + */ + network: pulumi.Input; + /** + * *Optional* - List of port specifications. See reference below. + * + * The network forward port supports: + */ + ports?: pulumi.Input[]>; + /** + * *Optional* - Name of the project where the network forward will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/networkIntegration.ts b/sdk/nodejs/networkIntegration.ts index 3839305..857d32e 100644 --- a/sdk/nodejs/networkIntegration.ts +++ b/sdk/nodejs/networkIntegration.ts @@ -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, state?: NetworkIntegrationState, opts?: pulumi.CustomResourceOptions): NetworkIntegration { - return new NetworkIntegration(name, 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, + state?: NetworkIntegrationState, + opts?: pulumi.CustomResourceOptions, + ): NetworkIntegration { + return new NetworkIntegration(name, 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; - /** - * **Required** - Name of the network integration. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the network will be created. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * **Required** - The type of the network integration. Currently, only supports `ovn` type. - */ - declare public readonly type: pulumi.Output; + /** + * *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; + /** + * **Required** - Name of the network integration. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the network will be created. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * **Required** - The type of the network integration. Currently, only supports `ovn` type. + */ + declare public readonly type: pulumi.Output; - /** - * 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}>; - /** - * *Optional* - Description of the network integration. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the network integration. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the network will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * **Required** - The type of the network integration. Currently, only supports `ovn` type. - */ - type?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the network integration. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network integration. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the network will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * **Required** - The type of the network integration. Currently, only supports `ovn` type. + */ + type?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the network integration. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the network integration. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * **Required** - The type of the network integration. Currently, only supports `ovn` type. - */ - type: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the network integration. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network integration. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * **Required** - The type of the network integration. Currently, only supports `ovn` type. + */ + type: pulumi.Input; } diff --git a/sdk/nodejs/networkLoadBalancer.ts b/sdk/nodejs/networkLoadBalancer.ts index a593c43..9e62fcf 100644 --- a/sdk/nodejs/networkLoadBalancer.ts +++ b/sdk/nodejs/networkLoadBalancer.ts @@ -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, state?: NetworkLoadBalancerState, opts?: pulumi.CustomResourceOptions): NetworkLoadBalancer { - return new NetworkLoadBalancer(name, 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, + state?: NetworkLoadBalancerState, + opts?: pulumi.CustomResourceOptions, + ): NetworkLoadBalancer { + return new NetworkLoadBalancer(name, 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; - declare public readonly config: pulumi.Output<{[key: string]: string}>; - declare public readonly description: pulumi.Output; - declare public readonly listenAddress: pulumi.Output; - declare public readonly network: pulumi.Output; - /** - * Network load balancer port - */ - declare public readonly ports: pulumi.Output; - declare public readonly project: pulumi.Output; - declare public readonly remote: pulumi.Output; + /** + * 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; + declare public readonly listenAddress: pulumi.Output; + declare public readonly network: pulumi.Output; + /** + * Network load balancer port + */ + declare public readonly ports: pulumi.Output; + declare public readonly project: pulumi.Output; + declare public readonly remote: pulumi.Output; - /** - * 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[]>; - config?: pulumi.Input<{[key: string]: pulumi.Input}>; - description?: pulumi.Input; - listenAddress?: pulumi.Input; - network?: pulumi.Input; - /** - * Network load balancer port - */ - ports?: pulumi.Input[]>; - project?: pulumi.Input; - remote?: pulumi.Input; + /** + * Network load balancer backend + */ + backends?: pulumi.Input[]>; + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + description?: pulumi.Input; + listenAddress?: pulumi.Input; + network?: pulumi.Input; + /** + * Network load balancer port + */ + ports?: pulumi.Input[]>; + project?: pulumi.Input; + remote?: pulumi.Input; } /** * The set of arguments for constructing a NetworkLoadBalancer resource. */ export interface NetworkLoadBalancerArgs { - /** - * Network load balancer backend - */ - backends?: pulumi.Input[]>; - config?: pulumi.Input<{[key: string]: pulumi.Input}>; - description?: pulumi.Input; - listenAddress: pulumi.Input; - network: pulumi.Input; - /** - * Network load balancer port - */ - ports?: pulumi.Input[]>; - project?: pulumi.Input; - remote?: pulumi.Input; + /** + * Network load balancer backend + */ + backends?: pulumi.Input[]>; + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + description?: pulumi.Input; + listenAddress: pulumi.Input; + network: pulumi.Input; + /** + * Network load balancer port + */ + ports?: pulumi.Input[]>; + project?: pulumi.Input; + remote?: pulumi.Input; } diff --git a/sdk/nodejs/networkPeer.ts b/sdk/nodejs/networkPeer.ts index 5f9b050..419e1b1 100644 --- a/sdk/nodejs/networkPeer.ts +++ b/sdk/nodejs/networkPeer.ts @@ -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, state?: NetworkPeerState, opts?: pulumi.CustomResourceOptions): NetworkPeer { - return new NetworkPeer(name, 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, + state?: NetworkPeerState, + opts?: pulumi.CustomResourceOptions, + ): NetworkPeer { + return new NetworkPeer(name, 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; - /** - * **required** - Name of the network peering on the local network - */ - declare public readonly name: pulumi.Output; - /** - * **Required** - Name of the local network. - */ - declare public readonly network: pulumi.Output; - /** - * *Optional* - Name of the project where the network is located. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - declare public /*out*/ readonly status: pulumi.Output; - declare public readonly targetIntegration: pulumi.Output; - /** - * **required** - Which network to create a peering with (required at create time for local peers) - */ - declare public readonly targetNetwork: pulumi.Output; - /** - * *Optional* - Which project the target network exists in (required at create time for local peers) - */ - declare public readonly targetProject: pulumi.Output; - /** - * *Optional* - Type of network peering - */ - declare public readonly type: pulumi.Output; + /** + * *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; + /** + * **required** - Name of the network peering on the local network + */ + declare public readonly name: pulumi.Output; + /** + * **Required** - Name of the local network. + */ + declare public readonly network: pulumi.Output; + /** + * *Optional* - Name of the project where the network is located. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + declare public readonly /*out*/ status: pulumi.Output; + declare public readonly targetIntegration: pulumi.Output; + /** + * **required** - Which network to create a peering with (required at create time for local peers) + */ + declare public readonly targetNetwork: pulumi.Output; + /** + * *Optional* - Which project the target network exists in (required at create time for local peers) + */ + declare public readonly targetProject: pulumi.Output; + /** + * *Optional* - Type of network peering + */ + declare public readonly type: pulumi.Output; - /** - * 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}>; - /** - * *Optional* - Description of the network peering - */ - description?: pulumi.Input; - /** - * **required** - Name of the network peering on the local network - */ - name?: pulumi.Input; - /** - * **Required** - Name of the local network. - */ - network?: pulumi.Input; - /** - * *Optional* - Name of the project where the network is located. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - status?: pulumi.Input; - targetIntegration?: pulumi.Input; - /** - * **required** - Which network to create a peering with (required at create time for local peers) - */ - targetNetwork?: pulumi.Input; - /** - * *Optional* - Which project the target network exists in (required at create time for local peers) - */ - targetProject?: pulumi.Input; - /** - * *Optional* - Type of network peering - */ - type?: pulumi.Input; + /** + * *Optional* - Configuration options as key/value pairs (only user.* custom keys supported) + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *Optional* - Description of the network peering + */ + description?: pulumi.Input; + /** + * **required** - Name of the network peering on the local network + */ + name?: pulumi.Input; + /** + * **Required** - Name of the local network. + */ + network?: pulumi.Input; + /** + * *Optional* - Name of the project where the network is located. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + status?: pulumi.Input; + targetIntegration?: pulumi.Input; + /** + * **required** - Which network to create a peering with (required at create time for local peers) + */ + targetNetwork?: pulumi.Input; + /** + * *Optional* - Which project the target network exists in (required at create time for local peers) + */ + targetProject?: pulumi.Input; + /** + * *Optional* - Type of network peering + */ + type?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the network peering - */ - description?: pulumi.Input; - /** - * **required** - Name of the network peering on the local network - */ - name: pulumi.Input; - /** - * **Required** - Name of the local network. - */ - network?: pulumi.Input; - /** - * *Optional* - Name of the project where the network is located. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - targetIntegration?: pulumi.Input; - /** - * **required** - Which network to create a peering with (required at create time for local peers) - */ - targetNetwork?: pulumi.Input; - /** - * *Optional* - Which project the target network exists in (required at create time for local peers) - */ - targetProject?: pulumi.Input; - /** - * *Optional* - Type of network peering - */ - type?: pulumi.Input; + /** + * *Optional* - Configuration options as key/value pairs (only user.* custom keys supported) + */ + config?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * *Optional* - Description of the network peering + */ + description?: pulumi.Input; + /** + * **required** - Name of the network peering on the local network + */ + name: pulumi.Input; + /** + * **Required** - Name of the local network. + */ + network?: pulumi.Input; + /** + * *Optional* - Name of the project where the network is located. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + targetIntegration?: pulumi.Input; + /** + * **required** - Which network to create a peering with (required at create time for local peers) + */ + targetNetwork?: pulumi.Input; + /** + * *Optional* - Which project the target network exists in (required at create time for local peers) + */ + targetProject?: pulumi.Input; + /** + * *Optional* - Type of network peering + */ + type?: pulumi.Input; } diff --git a/sdk/nodejs/networkZone.ts b/sdk/nodejs/networkZone.ts index 9894356..5d714ef 100644 --- a/sdk/nodejs/networkZone.ts +++ b/sdk/nodejs/networkZone.ts @@ -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, state?: NetworkZoneState, opts?: pulumi.CustomResourceOptions): NetworkZone { - return new NetworkZone(name, 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, + state?: NetworkZoneState, + opts?: pulumi.CustomResourceOptions, + ): NetworkZone { + return new NetworkZone(name, 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; - /** - * **Required** - Name of the network zone. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the network zone will be created. - */ - declare public readonly project: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * **Required** - Name of the network zone. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the network zone will be created. + */ + declare public readonly project: pulumi.Output; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - Description of the network zone. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the network zone. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the network zone will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the network zone. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network zone. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the network zone will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the network zone. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the network zone. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network zone will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the network zone. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the network zone. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network zone will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/networkZoneRecord.ts b/sdk/nodejs/networkZoneRecord.ts index 30eb5c4..c33921e 100644 --- a/sdk/nodejs/networkZoneRecord.ts +++ b/sdk/nodejs/networkZoneRecord.ts @@ -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, state?: NetworkZoneRecordState, opts?: pulumi.CustomResourceOptions): NetworkZoneRecord { - return new NetworkZoneRecord(name, 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, + state?: NetworkZoneRecordState, + opts?: pulumi.CustomResourceOptions, + ): NetworkZoneRecord { + return new NetworkZoneRecord(name, 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; - /** - * *Optional* - Entry in network zone record - see below. - */ - declare public readonly entries: pulumi.Output; - /** - * **Required** - Name of the network zone record. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the network zone record will be created. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * **Required** - Name of the zone to add the entries of this record. - */ - declare public readonly zone: pulumi.Output; + /** + * *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; + /** + * *Optional* - Entry in network zone record - see below. + */ + declare public readonly entries: pulumi.Output; + /** + * **Required** - Name of the network zone record. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the network zone record will be created. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * **Required** - Name of the zone to add the entries of this record. + */ + declare public readonly zone: pulumi.Output; - /** - * 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}>; - /** - * *Optional* - Description of the network zone. - */ - description?: pulumi.Input; - /** - * *Optional* - Entry in network zone record - see below. - */ - entries?: pulumi.Input[]>; - /** - * **Required** - Name of the network zone record. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the network zone record will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * **Required** - Name of the zone to add the entries of this record. - */ - zone?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the network zone. + */ + description?: pulumi.Input; + /** + * *Optional* - Entry in network zone record - see below. + */ + entries?: pulumi.Input[]>; + /** + * **Required** - Name of the network zone record. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the network zone record will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * **Required** - Name of the zone to add the entries of this record. + */ + zone?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the network zone. - */ - description?: pulumi.Input; - /** - * *Optional* - Entry in network zone record - see below. - */ - entries?: pulumi.Input[]>; - /** - * **Required** - Name of the network zone record. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the network zone record will be created. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * **Required** - Name of the zone to add the entries of this record. - */ - zone: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the network zone. + */ + description?: pulumi.Input; + /** + * *Optional* - Entry in network zone record - see below. + */ + entries?: pulumi.Input[]>; + /** + * **Required** - Name of the network zone record. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the network zone record will be created. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * **Required** - Name of the zone to add the entries of this record. + */ + zone: pulumi.Input; } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index af9a0c3..7b6f6dd 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -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" } diff --git a/sdk/nodejs/profile.ts b/sdk/nodejs/profile.ts index 6c6ac1e..0bbf637 100644 --- a/sdk/nodejs/profile.ts +++ b/sdk/nodejs/profile.ts @@ -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, state?: ProfileState, opts?: pulumi.CustomResourceOptions): Profile { - return new Profile(name, 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, + state?: ProfileState, + opts?: pulumi.CustomResourceOptions, + ): Profile { + return new Profile(name, 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; - /** - * *Optional* - Device definition. See reference below. - */ - declare public readonly devices: pulumi.Output; - /** - * **Required** - Name of the profile. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the profile will be stored. - */ - declare public readonly project: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * *Optional* - Device definition. See reference below. + */ + declare public readonly devices: pulumi.Output; + /** + * **Required** - Name of the profile. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the profile will be stored. + */ + declare public readonly project: pulumi.Output; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - Description of the profile. - */ - description?: pulumi.Input; - /** - * *Optional* - Device definition. See reference below. - */ - devices?: pulumi.Input[]>; - /** - * **Required** - Name of the profile. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the profile will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the profile. + */ + description?: pulumi.Input; + /** + * *Optional* - Device definition. See reference below. + */ + devices?: pulumi.Input[]>; + /** + * **Required** - Name of the profile. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the profile will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the profile. - */ - description?: pulumi.Input; - /** - * *Optional* - Device definition. See reference below. - */ - devices?: pulumi.Input[]>; - /** - * **Required** - Name of the profile. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the profile will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the profile. + */ + description?: pulumi.Input; + /** + * *Optional* - Device definition. See reference below. + */ + devices?: pulumi.Input[]>; + /** + * **Required** - Name of the profile. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the profile will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/project.ts b/sdk/nodejs/project.ts index 4334fb3..7ba3746 100644 --- a/sdk/nodejs/project.ts +++ b/sdk/nodejs/project.ts @@ -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, state?: ProjectState, opts?: pulumi.CustomResourceOptions): Project { - return new Project(name, 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, + state?: ProjectState, + opts?: pulumi.CustomResourceOptions, + ): Project { + return new Project(name, 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; - /** - * *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; - /** - * **Required** - Name of the project. - */ - declare public readonly name: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * *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; + /** + * **Required** - Name of the project. + */ + declare public readonly name: pulumi.Output; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - Description of the project. - */ - description?: pulumi.Input; - /** - * *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error. - */ - forceDestroy?: pulumi.Input; - /** - * **Required** - Name of the project. - */ - name?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the project. + */ + description?: pulumi.Input; + /** + * *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error. + */ + forceDestroy?: pulumi.Input; + /** + * **Required** - Name of the project. + */ + name?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the project. - */ - description?: pulumi.Input; - /** - * *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error. - */ - forceDestroy?: pulumi.Input; - /** - * **Required** - Name of the project. - */ - name: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the project. + */ + description?: pulumi.Input; + /** + * *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error. + */ + forceDestroy?: pulumi.Input; + /** + * **Required** - Name of the project. + */ + name: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } diff --git a/sdk/nodejs/provider.ts b/sdk/nodejs/provider.ts index 139a00b..e5a66da 100644 --- a/sdk/nodejs/provider.ts +++ b/sdk/nodejs/provider.ts @@ -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; - /** - * The default remote to use when no other remote is defined in a resource. - */ - declare public readonly defaultRemote: pulumi.Output; - /** - * The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default) - */ - declare public readonly project: pulumi.Output; + /** + * The directory to look for existing Incus configuration. (default = $HOME/.config/incus) + */ + declare public readonly configDir: pulumi.Output; + /** + * The default remote to use when no other remote is defined in a resource. + */ + declare public readonly defaultRemote: pulumi.Output; + /** + * The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default) + */ + declare public readonly project: pulumi.Output; - /** - * 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 { - 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 { + 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; - /** - * The directory to look for existing Incus configuration. (default = $HOME/.config/incus) - */ - configDir?: pulumi.Input; - /** - * The default remote to use when no other remote is defined in a resource. - */ - defaultRemote?: pulumi.Input; - /** - * Automatically generate the Incus client certificates if they don't exist. - */ - generateClientCertificates?: pulumi.Input; - /** - * The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default) - */ - project?: pulumi.Input; - /** - * Incus Remote - */ - remotes?: pulumi.Input[]>; + /** + * Accept the server certificate. + */ + acceptRemoteCertificate?: pulumi.Input; + /** + * The directory to look for existing Incus configuration. (default = $HOME/.config/incus) + */ + configDir?: pulumi.Input; + /** + * The default remote to use when no other remote is defined in a resource. + */ + defaultRemote?: pulumi.Input; + /** + * Automatically generate the Incus client certificates if they don't exist. + */ + generateClientCertificates?: pulumi.Input; + /** + * The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default) + */ + project?: pulumi.Input; + /** + * Incus Remote + */ + remotes?: pulumi.Input[]>; } 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 }; + } } diff --git a/sdk/nodejs/server.ts b/sdk/nodejs/server.ts index 63410fd..b5227d8 100644 --- a/sdk/nodejs/server.ts +++ b/sdk/nodejs/server.ts @@ -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, state?: ServerState, opts?: pulumi.CustomResourceOptions): Server { - return new Server(name, 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, + state?: ServerState, + opts?: pulumi.CustomResourceOptions, + ): Server { + return new Server(name, 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; - /** - * *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; + /** + * *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; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *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; + /** + * *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 }>; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *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; } /** * 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}>; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *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; + /** + * *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 }>; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *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; } diff --git a/sdk/nodejs/storageBucket.ts b/sdk/nodejs/storageBucket.ts index 9ccdb34..bdabd5d 100644 --- a/sdk/nodejs/storageBucket.ts +++ b/sdk/nodejs/storageBucket.ts @@ -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, state?: StorageBucketState, opts?: pulumi.CustomResourceOptions): StorageBucket { - return new StorageBucket(name, 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, + state?: StorageBucketState, + opts?: pulumi.CustomResourceOptions, + ): StorageBucket { + return new StorageBucket(name, 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; - /** - * 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; - /** - * **Required** - Name of the storage bucket. - */ - declare public readonly name: pulumi.Output; - /** - * **Required** - Name of storage pool to host the storage bucket. - */ - declare public readonly pool: pulumi.Output; - /** - * *Optional* - Name of the project where the storage bucket will be stored. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * *Optional* - Path to a backup file from which the bucket will be created. - */ - declare public readonly sourceFile: pulumi.Output; - /** - * *Optional* - Specify a target node in a cluster. - */ - declare public readonly target: pulumi.Output; + /** + * *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; + /** + * 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; + /** + * **Required** - Name of the storage bucket. + */ + declare public readonly name: pulumi.Output; + /** + * **Required** - Name of storage pool to host the storage bucket. + */ + declare public readonly pool: pulumi.Output; + /** + * *Optional* - Name of the project where the storage bucket will be stored. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * *Optional* - Path to a backup file from which the bucket will be created. + */ + declare public readonly sourceFile: pulumi.Output; + /** + * *Optional* - Specify a target node in a cluster. + */ + declare public readonly target: pulumi.Output; - /** - * 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}>; - /** - * *Optional* - Description of the storage bucket. - */ - description?: pulumi.Input; - /** - * Name of the node where storage bucket was created. It could be useful with Incus in cluster mode. - */ - location?: pulumi.Input; - /** - * **Required** - Name of the storage bucket. - */ - name?: pulumi.Input; - /** - * **Required** - Name of storage pool to host the storage bucket. - */ - pool?: pulumi.Input; - /** - * *Optional* - Name of the project where the storage bucket will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Path to a backup file from which the bucket will be created. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the storage bucket. + */ + description?: pulumi.Input; + /** + * Name of the node where storage bucket was created. It could be useful with Incus in cluster mode. + */ + location?: pulumi.Input; + /** + * **Required** - Name of the storage bucket. + */ + name?: pulumi.Input; + /** + * **Required** - Name of storage pool to host the storage bucket. + */ + pool?: pulumi.Input; + /** + * *Optional* - Name of the project where the storage bucket will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Path to a backup file from which the bucket will be created. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; } /** * 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}>; - /** - * *Optional* - Description of the storage bucket. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the storage bucket. - */ - name: pulumi.Input; - /** - * **Required** - Name of storage pool to host the storage bucket. - */ - pool: pulumi.Input; - /** - * *Optional* - Name of the project where the storage bucket will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Path to a backup file from which the bucket will be created. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; + /** + * *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 }>; + /** + * *Optional* - Description of the storage bucket. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the storage bucket. + */ + name: pulumi.Input; + /** + * **Required** - Name of storage pool to host the storage bucket. + */ + pool: pulumi.Input; + /** + * *Optional* - Name of the project where the storage bucket will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Path to a backup file from which the bucket will be created. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; } diff --git a/sdk/nodejs/storageBucketKey.ts b/sdk/nodejs/storageBucketKey.ts index 77387d4..8de5e26 100644 --- a/sdk/nodejs/storageBucketKey.ts +++ b/sdk/nodejs/storageBucketKey.ts @@ -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, state?: StorageBucketKeyState, opts?: pulumi.CustomResourceOptions): StorageBucketKey { - return new StorageBucketKey(name, 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, + state?: StorageBucketKeyState, + opts?: pulumi.CustomResourceOptions, + ): StorageBucketKey { + return new StorageBucketKey(name, 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; - /** - * *Optional* - Description of the storage bucket key. - */ - declare public readonly description: pulumi.Output; - /** - * **Required** - Name of the storage bucket key. - */ - declare public readonly name: pulumi.Output; - /** - * **Required** - Name of storage pool to host the storage bucket key. - */ - declare public readonly pool: pulumi.Output; - /** - * *Optional* - Name of the project where the storage bucket key will be stored. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * *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; - /** - * Secret key of the storage bucket key. - */ - declare public /*out*/ readonly secretKey: pulumi.Output; - /** - * **Required** - Name of the storage bucket. - */ - declare public readonly storageBucket: pulumi.Output; + /** + * Access key of the storage bucket key. + */ + declare public readonly /*out*/ accessKey: pulumi.Output; + /** + * *Optional* - Description of the storage bucket key. + */ + declare public readonly description: pulumi.Output; + /** + * **Required** - Name of the storage bucket key. + */ + declare public readonly name: pulumi.Output; + /** + * **Required** - Name of storage pool to host the storage bucket key. + */ + declare public readonly pool: pulumi.Output; + /** + * *Optional* - Name of the project where the storage bucket key will be stored. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * *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; + /** + * Secret key of the storage bucket key. + */ + declare public readonly /*out*/ secretKey: pulumi.Output; + /** + * **Required** - Name of the storage bucket. + */ + declare public readonly storageBucket: pulumi.Output; - /** - * 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; - /** - * *Optional* - Description of the storage bucket key. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the storage bucket key. - */ - name?: pulumi.Input; - /** - * **Required** - Name of storage pool to host the storage bucket key. - */ - pool?: pulumi.Input; - /** - * *Optional* - Name of the project where the storage bucket key will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *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; - /** - * Secret key of the storage bucket key. - */ - secretKey?: pulumi.Input; - /** - * **Required** - Name of the storage bucket. - */ - storageBucket?: pulumi.Input; + /** + * Access key of the storage bucket key. + */ + accessKey?: pulumi.Input; + /** + * *Optional* - Description of the storage bucket key. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the storage bucket key. + */ + name?: pulumi.Input; + /** + * **Required** - Name of storage pool to host the storage bucket key. + */ + pool?: pulumi.Input; + /** + * *Optional* - Name of the project where the storage bucket key will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *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; + /** + * Secret key of the storage bucket key. + */ + secretKey?: pulumi.Input; + /** + * **Required** - Name of the storage bucket. + */ + storageBucket?: pulumi.Input; } /** * The set of arguments for constructing a StorageBucketKey resource. */ export interface StorageBucketKeyArgs { - /** - * *Optional* - Description of the storage bucket key. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the storage bucket key. - */ - name: pulumi.Input; - /** - * **Required** - Name of storage pool to host the storage bucket key. - */ - pool: pulumi.Input; - /** - * *Optional* - Name of the project where the storage bucket key will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *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; - /** - * **Required** - Name of the storage bucket. - */ - storageBucket: pulumi.Input; + /** + * *Optional* - Description of the storage bucket key. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the storage bucket key. + */ + name: pulumi.Input; + /** + * **Required** - Name of storage pool to host the storage bucket key. + */ + pool: pulumi.Input; + /** + * *Optional* - Name of the project where the storage bucket key will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *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; + /** + * **Required** - Name of the storage bucket. + */ + storageBucket: pulumi.Input; } diff --git a/sdk/nodejs/storagePool.ts b/sdk/nodejs/storagePool.ts index 0b495e9..cb55671 100644 --- a/sdk/nodejs/storagePool.ts +++ b/sdk/nodejs/storagePool.ts @@ -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, state?: StoragePoolState, opts?: pulumi.CustomResourceOptions): StoragePool { - return new StoragePool(name, 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, + state?: StoragePoolState, + opts?: pulumi.CustomResourceOptions, + ): StoragePool { + return new StoragePool(name, 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; - /** - * **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; - /** - * **Required** - Name of the storage pool. - */ - declare public readonly name: pulumi.Output; - /** - * *Optional* - Name of the project where the storage pool will be stored. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * *Optional* - Specify a target node in a cluster. - */ - declare public readonly target: pulumi.Output; + /** + * *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; + /** + * **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; + /** + * **Required** - Name of the storage pool. + */ + declare public readonly name: pulumi.Output; + /** + * *Optional* - Name of the project where the storage pool will be stored. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * *Optional* - Specify a target node in a cluster. + */ + declare public readonly target: pulumi.Output; - /** - * 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}>; - /** - * *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; - /** - * **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`. - */ - driver?: pulumi.Input; - /** - * **Required** - Name of the storage pool. - */ - name?: pulumi.Input; - /** - * *Optional* - Name of the project where the storage pool will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; + /** + * *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 }>; + /** + * *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; + /** + * **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`. + */ + driver?: pulumi.Input; + /** + * **Required** - Name of the storage pool. + */ + name?: pulumi.Input; + /** + * *Optional* - Name of the project where the storage pool will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; } /** * 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}>; - /** - * *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; - /** - * **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`. - */ - driver: pulumi.Input; - /** - * **Required** - Name of the storage pool. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the project where the storage pool will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; + /** + * *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 }>; + /** + * *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; + /** + * **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`. + */ + driver: pulumi.Input; + /** + * **Required** - Name of the storage pool. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the project where the storage pool will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; } diff --git a/sdk/nodejs/storageVolume.ts b/sdk/nodejs/storageVolume.ts index aa34503..814ba79 100644 --- a/sdk/nodejs/storageVolume.ts +++ b/sdk/nodejs/storageVolume.ts @@ -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, state?: StorageVolumeState, opts?: pulumi.CustomResourceOptions): StorageVolume { - return new StorageVolume(name, 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, + state?: StorageVolumeState, + opts?: pulumi.CustomResourceOptions, + ): StorageVolume { + return new StorageVolume(name, 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; - /** - * *Optional* - Description of the volume. - */ - declare public readonly description: pulumi.Output; - /** - * Name of the node where volume was created. It could be useful with Incus in cluster mode. - */ - declare public /*out*/ readonly location: pulumi.Output; - /** - * **Required** - Name of the storage volume. - */ - declare public readonly name: pulumi.Output; - /** - * **Required** - Name of storage pool to host the volume. - */ - declare public readonly pool: pulumi.Output; - /** - * *Optional* - Name of the project where the volume will be stored. - */ - declare public readonly project: pulumi.Output; - /** - * *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; - /** - * *Optional* - Path to a backup file from which the volume will be created. - */ - declare public readonly sourceFile: pulumi.Output; - /** - * *Optional* - The source volume from which the volume will be created. See reference below. - */ - declare public readonly sourceVolume: pulumi.Output; - /** - * *Optional* - Specify a target node in a cluster. - */ - declare public readonly target: pulumi.Output; - /** - * *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; + /** + * *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; + /** + * *Optional* - Description of the volume. + */ + declare public readonly description: pulumi.Output; + /** + * Name of the node where volume was created. It could be useful with Incus in cluster mode. + */ + declare public readonly /*out*/ location: pulumi.Output; + /** + * **Required** - Name of the storage volume. + */ + declare public readonly name: pulumi.Output; + /** + * **Required** - Name of storage pool to host the volume. + */ + declare public readonly pool: pulumi.Output; + /** + * *Optional* - Name of the project where the volume will be stored. + */ + declare public readonly project: pulumi.Output; + /** + * *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; + /** + * *Optional* - Path to a backup file from which the volume will be created. + */ + declare public readonly sourceFile: pulumi.Output; + /** + * *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; + /** + * *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; - /** - * 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}>; - /** - * *Optional* - Volume content type (`filesystem` or `block`) - */ - contentType?: pulumi.Input; - /** - * *Optional* - Description of the volume. - */ - description?: pulumi.Input; - /** - * Name of the node where volume was created. It could be useful with Incus in cluster mode. - */ - location?: pulumi.Input; - /** - * **Required** - Name of the storage volume. - */ - name?: pulumi.Input; - /** - * **Required** - Name of storage pool to host the volume. - */ - pool?: pulumi.Input; - /** - * *Optional* - Name of the project where the volume will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Path to a backup file from which the volume will be created. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - The source volume from which the volume will be created. See reference below. - */ - sourceVolume?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * *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; + /** + * *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 }>; + /** + * *Optional* - Volume content type (`filesystem` or `block`) + */ + contentType?: pulumi.Input; + /** + * *Optional* - Description of the volume. + */ + description?: pulumi.Input; + /** + * Name of the node where volume was created. It could be useful with Incus in cluster mode. + */ + location?: pulumi.Input; + /** + * **Required** - Name of the storage volume. + */ + name?: pulumi.Input; + /** + * **Required** - Name of storage pool to host the volume. + */ + pool?: pulumi.Input; + /** + * *Optional* - Name of the project where the volume will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Path to a backup file from which the volume will be created. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - The source volume from which the volume will be created. See reference below. + */ + sourceVolume?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * *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; } /** * 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}>; - /** - * *Optional* - Volume content type (`filesystem` or `block`) - */ - contentType?: pulumi.Input; - /** - * *Optional* - Description of the volume. - */ - description?: pulumi.Input; - /** - * **Required** - Name of the storage volume. - */ - name: pulumi.Input; - /** - * **Required** - Name of storage pool to host the volume. - */ - pool: pulumi.Input; - /** - * *Optional* - Name of the project where the volume will be stored. - */ - project?: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; - /** - * *Optional* - Path to a backup file from which the volume will be created. - */ - sourceFile?: pulumi.Input; - /** - * *Optional* - The source volume from which the volume will be created. See reference below. - */ - sourceVolume?: pulumi.Input; - /** - * *Optional* - Specify a target node in a cluster. - */ - target?: pulumi.Input; - /** - * *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; + /** + * *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 }>; + /** + * *Optional* - Volume content type (`filesystem` or `block`) + */ + contentType?: pulumi.Input; + /** + * *Optional* - Description of the volume. + */ + description?: pulumi.Input; + /** + * **Required** - Name of the storage volume. + */ + name: pulumi.Input; + /** + * **Required** - Name of storage pool to host the volume. + */ + pool: pulumi.Input; + /** + * *Optional* - Name of the project where the volume will be stored. + */ + project?: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; + /** + * *Optional* - Path to a backup file from which the volume will be created. + */ + sourceFile?: pulumi.Input; + /** + * *Optional* - The source volume from which the volume will be created. See reference below. + */ + sourceVolume?: pulumi.Input; + /** + * *Optional* - Specify a target node in a cluster. + */ + target?: pulumi.Input; + /** + * *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; } diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 5c2b567..12e3194 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -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", + ], } diff --git a/sdk/nodejs/types/index.ts b/sdk/nodejs/types/index.ts index f0db274..8d45e3c 100644 --- a/sdk/nodejs/types/index.ts +++ b/sdk/nodejs/types/index.ts @@ -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 }; diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 65ad8f9..03332b4 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -2,734 +2,731 @@ // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "../types/input"; -import * as outputs from "../types/output"; export interface GetInstanceDevice { - /** - * **Required** - Name of the instance. - */ - name?: string; - /** - * Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties?: {[key: string]: string}; - /** - * Type of the device Must be one of none, disk, nic, - * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. - */ - type?: string; + /** + * **Required** - Name of the instance. + */ + name?: string; + /** + * Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties?: { [key: string]: string }; + /** + * Type of the device Must be one of none, disk, nic, + * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. + */ + type?: string; } export interface GetInstanceDeviceArgs { - /** - * **Required** - Name of the instance. - */ - name?: pulumi.Input; - /** - * Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties?: pulumi.Input<{[key: string]: pulumi.Input}>; - /** - * 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; + /** + * **Required** - Name of the instance. + */ + name?: pulumi.Input; + /** + * Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * 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; } export interface GetNetworkAclEgress { - /** - * Action to perform on rule match. - */ - action: string; - /** - * Description of the rule. - */ - description: string; - /** - * Destination address. - */ - destination: string; - /** - * Destination port. - */ - destinationPort: string; - /** - * ICMP message code (for ICMP protocol). - */ - icmpCode: string; - /** - * Type of ICMP message. - */ - icmpType: string; - /** - * Protocol (e.g., tcp, udp). - */ - protocol: string; - /** - * Source address. - */ - source: string; - /** - * Source port. - */ - sourcePort: string; - /** - * State of the rule. - */ - state: string; + /** + * Action to perform on rule match. + */ + action: string; + /** + * Description of the rule. + */ + description: string; + /** + * Destination address. + */ + destination: string; + /** + * Destination port. + */ + destinationPort: string; + /** + * ICMP message code (for ICMP protocol). + */ + icmpCode: string; + /** + * Type of ICMP message. + */ + icmpType: string; + /** + * Protocol (e.g., tcp, udp). + */ + protocol: string; + /** + * Source address. + */ + source: string; + /** + * Source port. + */ + sourcePort: string; + /** + * State of the rule. + */ + state: string; } export interface GetNetworkAclEgressArgs { - /** - * Action to perform on rule match. - */ - action: pulumi.Input; - /** - * Description of the rule. - */ - description: pulumi.Input; - /** - * Destination address. - */ - destination: pulumi.Input; - /** - * Destination port. - */ - destinationPort: pulumi.Input; - /** - * ICMP message code (for ICMP protocol). - */ - icmpCode: pulumi.Input; - /** - * Type of ICMP message. - */ - icmpType: pulumi.Input; - /** - * Protocol (e.g., tcp, udp). - */ - protocol: pulumi.Input; - /** - * Source address. - */ - source: pulumi.Input; - /** - * Source port. - */ - sourcePort: pulumi.Input; - /** - * State of the rule. - */ - state: pulumi.Input; + /** + * Action to perform on rule match. + */ + action: pulumi.Input; + /** + * Description of the rule. + */ + description: pulumi.Input; + /** + * Destination address. + */ + destination: pulumi.Input; + /** + * Destination port. + */ + destinationPort: pulumi.Input; + /** + * ICMP message code (for ICMP protocol). + */ + icmpCode: pulumi.Input; + /** + * Type of ICMP message. + */ + icmpType: pulumi.Input; + /** + * Protocol (e.g., tcp, udp). + */ + protocol: pulumi.Input; + /** + * Source address. + */ + source: pulumi.Input; + /** + * Source port. + */ + sourcePort: pulumi.Input; + /** + * State of the rule. + */ + state: pulumi.Input; } export interface GetNetworkAclIngress { - /** - * Action to perform on rule match. - */ - action: string; - /** - * Description of the rule. - */ - description: string; - /** - * Destination address. - */ - destination: string; - /** - * Destination port. - */ - destinationPort: string; - /** - * ICMP message code (for ICMP protocol). - */ - icmpCode: string; - /** - * Type of ICMP message. - */ - icmpType: string; - /** - * Protocol (e.g., tcp, udp). - */ - protocol: string; - /** - * Source address. - */ - source: string; - /** - * Source port. - */ - sourcePort: string; - /** - * State of the rule. - */ - state: string; + /** + * Action to perform on rule match. + */ + action: string; + /** + * Description of the rule. + */ + description: string; + /** + * Destination address. + */ + destination: string; + /** + * Destination port. + */ + destinationPort: string; + /** + * ICMP message code (for ICMP protocol). + */ + icmpCode: string; + /** + * Type of ICMP message. + */ + icmpType: string; + /** + * Protocol (e.g., tcp, udp). + */ + protocol: string; + /** + * Source address. + */ + source: string; + /** + * Source port. + */ + sourcePort: string; + /** + * State of the rule. + */ + state: string; } export interface GetNetworkAclIngressArgs { - /** - * Action to perform on rule match. - */ - action: pulumi.Input; - /** - * Description of the rule. - */ - description: pulumi.Input; - /** - * Destination address. - */ - destination: pulumi.Input; - /** - * Destination port. - */ - destinationPort: pulumi.Input; - /** - * ICMP message code (for ICMP protocol). - */ - icmpCode: pulumi.Input; - /** - * Type of ICMP message. - */ - icmpType: pulumi.Input; - /** - * Protocol (e.g., tcp, udp). - */ - protocol: pulumi.Input; - /** - * Source address. - */ - source: pulumi.Input; - /** - * Source port. - */ - sourcePort: pulumi.Input; - /** - * State of the rule. - */ - state: pulumi.Input; + /** + * Action to perform on rule match. + */ + action: pulumi.Input; + /** + * Description of the rule. + */ + description: pulumi.Input; + /** + * Destination address. + */ + destination: pulumi.Input; + /** + * Destination port. + */ + destinationPort: pulumi.Input; + /** + * ICMP message code (for ICMP protocol). + */ + icmpCode: pulumi.Input; + /** + * Type of ICMP message. + */ + icmpType: pulumi.Input; + /** + * Protocol (e.g., tcp, udp). + */ + protocol: pulumi.Input; + /** + * Source address. + */ + source: pulumi.Input; + /** + * Source port. + */ + sourcePort: pulumi.Input; + /** + * State of the rule. + */ + state: pulumi.Input; } export interface GetNetworkForwardPort { - /** - * Description of the forward port. - */ - description: string; - /** - * ListenPort(s) to forward (comma delimited ranges). - */ - listenPort: string; - /** - * Protocol for port forward (either tcp or udp). - */ - protocol: string; - /** - * SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target. - */ - snat: boolean; - /** - * Target address to forward ListenPorts to. - */ - targetAddress: string; - /** - * Target port(s) to forward ListenPorts to (allows for many-to-one). - */ - targetPort: string; + /** + * Description of the forward port. + */ + description: string; + /** + * ListenPort(s) to forward (comma delimited ranges). + */ + listenPort: string; + /** + * Protocol for port forward (either tcp or udp). + */ + protocol: string; + /** + * SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target. + */ + snat: boolean; + /** + * Target address to forward ListenPorts to. + */ + targetAddress: string; + /** + * Target port(s) to forward ListenPorts to (allows for many-to-one). + */ + targetPort: string; } export interface GetNetworkForwardPortArgs { - /** - * Description of the forward port. - */ - description: pulumi.Input; - /** - * ListenPort(s) to forward (comma delimited ranges). - */ - listenPort: pulumi.Input; - /** - * Protocol for port forward (either tcp or udp). - */ - protocol: pulumi.Input; - /** - * SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target. - */ - snat: pulumi.Input; - /** - * Target address to forward ListenPorts to. - */ - targetAddress: pulumi.Input; - /** - * Target port(s) to forward ListenPorts to (allows for many-to-one). - */ - targetPort: pulumi.Input; + /** + * Description of the forward port. + */ + description: pulumi.Input; + /** + * ListenPort(s) to forward (comma delimited ranges). + */ + listenPort: pulumi.Input; + /** + * Protocol for port forward (either tcp or udp). + */ + protocol: pulumi.Input; + /** + * SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target. + */ + snat: pulumi.Input; + /** + * Target address to forward ListenPorts to. + */ + targetAddress: pulumi.Input; + /** + * Target port(s) to forward ListenPorts to (allows for many-to-one). + */ + targetPort: pulumi.Input; } export interface GetNetworkLoadBalancerBackend { - /** - * Description of the load balancer port. - */ - description: string; - /** - * Name of the load balancer backend. - */ - name: string; - /** - * TargetAddress to forward ListenPorts to. - */ - targetAddress: string; - /** - * TargetPort(s) for the forward ListenPorts to (allows for many-to one). - */ - targetPort: string; + /** + * Description of the load balancer port. + */ + description: string; + /** + * Name of the load balancer backend. + */ + name: string; + /** + * TargetAddress to forward ListenPorts to. + */ + targetAddress: string; + /** + * TargetPort(s) for the forward ListenPorts to (allows for many-to one). + */ + targetPort: string; } export interface GetNetworkLoadBalancerBackendArgs { - /** - * Description of the load balancer port. - */ - description: pulumi.Input; - /** - * Name of the load balancer backend. - */ - name: pulumi.Input; - /** - * TargetAddress to forward ListenPorts to. - */ - targetAddress: pulumi.Input; - /** - * TargetPort(s) for the forward ListenPorts to (allows for many-to one). - */ - targetPort: pulumi.Input; + /** + * Description of the load balancer port. + */ + description: pulumi.Input; + /** + * Name of the load balancer backend. + */ + name: pulumi.Input; + /** + * TargetAddress to forward ListenPorts to. + */ + targetAddress: pulumi.Input; + /** + * TargetPort(s) for the forward ListenPorts to (allows for many-to one). + */ + targetPort: pulumi.Input; } export interface GetNetworkLoadBalancerPort { - /** - * Description of the load balancer port. - */ - description: string; - /** - * ListenPort(s) for the load balancer (comma delimited ranges). - */ - listenPort: string; - /** - * Protocol for load balancer (either tcp or udp). - */ - protocol: string; - /** - * TargetBackend backend names to load balance ListenPorts to. - */ - targetBackends: string[]; + /** + * Description of the load balancer port. + */ + description: string; + /** + * ListenPort(s) for the load balancer (comma delimited ranges). + */ + listenPort: string; + /** + * Protocol for load balancer (either tcp or udp). + */ + protocol: string; + /** + * TargetBackend backend names to load balance ListenPorts to. + */ + targetBackends: string[]; } export interface GetNetworkLoadBalancerPortArgs { - /** - * Description of the load balancer port. - */ - description: pulumi.Input; - /** - * ListenPort(s) for the load balancer (comma delimited ranges). - */ - listenPort: pulumi.Input; - /** - * Protocol for load balancer (either tcp or udp). - */ - protocol: pulumi.Input; - /** - * TargetBackend backend names to load balance ListenPorts to. - */ - targetBackends: pulumi.Input[]>; + /** + * Description of the load balancer port. + */ + description: pulumi.Input; + /** + * ListenPort(s) for the load balancer (comma delimited ranges). + */ + listenPort: pulumi.Input; + /** + * Protocol for load balancer (either tcp or udp). + */ + protocol: pulumi.Input; + /** + * TargetBackend backend names to load balance ListenPorts to. + */ + targetBackends: pulumi.Input[]>; } export interface GetProfileDevice { - /** - * **Required** - Name of the profile. - */ - name?: string; - /** - * Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties?: {[key: string]: string}; - /** - * Type of the device Must be one of none, disk, nic, - * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. - */ - type?: string; + /** + * **Required** - Name of the profile. + */ + name?: string; + /** + * Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties?: { [key: string]: string }; + /** + * Type of the device Must be one of none, disk, nic, + * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. + */ + type?: string; } export interface GetProfileDeviceArgs { - /** - * **Required** - Name of the profile. - */ - name?: pulumi.Input; - /** - * Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties?: pulumi.Input<{[key: string]: pulumi.Input}>; - /** - * 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; + /** + * **Required** - Name of the profile. + */ + name?: pulumi.Input; + /** + * Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties?: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * 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; } export interface ImageAlias { - /** - * *Optional* - A description for the alias. - */ - description?: pulumi.Input; - /** - * **Required** - The name of the alias. - */ - name: pulumi.Input; + /** + * *Optional* - A description for the alias. + */ + description?: pulumi.Input; + /** + * **Required** - The name of the alias. + */ + name: pulumi.Input; } export interface ImageSourceFile { - /** - * **Required** - Either the path of an [unified image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-unified) - * or the rootfs tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split), depending on - * `metadataPath` being provided or not. - */ - dataPath: pulumi.Input; - /** - * *Optional* - Path to the metadata tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split). - */ - metadataPath?: pulumi.Input; + /** + * **Required** - Either the path of an [unified image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-unified) + * or the rootfs tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split), depending on + * `metadataPath` being provided or not. + */ + dataPath: pulumi.Input; + /** + * *Optional* - Path to the metadata tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split). + */ + metadataPath?: pulumi.Input; } export interface ImageSourceImage { - /** - * *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; - /** - * *Optional* - Whether to copy the aliases of the image from - * the remote. Valid values are `true` and `false`. - */ - copyAliases?: pulumi.Input; - /** - * **Required** - Name of the image. - */ - name: pulumi.Input; - /** - * **Required** - The remote where the image will be pulled from. - */ - remote: pulumi.Input; - /** - * *Optional* - Type of image to cache. Must be one of `container` or - * `virtual-machine`. Defaults to `container`. - */ - type?: pulumi.Input; + /** + * *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; + /** + * *Optional* - Whether to copy the aliases of the image from + * the remote. Valid values are `true` and `false`. + */ + copyAliases?: pulumi.Input; + /** + * **Required** - Name of the image. + */ + name: pulumi.Input; + /** + * **Required** - The remote where the image will be pulled from. + */ + remote: pulumi.Input; + /** + * *Optional* - Type of image to cache. Must be one of `container` or + * `virtual-machine`. Defaults to `container`. + */ + type?: pulumi.Input; } export interface ImageSourceInstance { - /** - * **Required** - Name of the source instance. - */ - name: pulumi.Input; - /** - * *Optional* - Name of the snapshot of the source instance - */ - snapshot?: pulumi.Input; + /** + * **Required** - Name of the source instance. + */ + name: pulumi.Input; + /** + * *Optional* - Name of the snapshot of the source instance + */ + snapshot?: pulumi.Input; } export interface InstanceDevice { - /** - * **Required** - Name of the device. - */ - name: pulumi.Input; - /** - * **Required** - Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties: pulumi.Input<{[key: string]: pulumi.Input}>; - /** - * **Required** - 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; + /** + * **Required** - Name of the device. + */ + name: pulumi.Input; + /** + * **Required** - Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * **Required** - 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; } export interface InstanceFile { - append?: pulumi.Input; - /** - * **Required** unless sourcePath is used* - The *contents* of the file. - * Use the `file()` function to read in the content of a file from disk. - */ - content?: pulumi.Input; - /** - * *Optional* - Whether to create the directories leading - * to the target if they do not exist. - */ - createDirectories?: pulumi.Input; - /** - * *Optional* - The GID of the file. Must be an unquoted integer. - */ - gid?: pulumi.Input; - /** - * *Optional* - The octal permissions of the file, must be quoted. Defaults to `0755`. - */ - mode?: pulumi.Input; - /** - * **Required** unless content is used* - The source path to a file to - * copy to the instance. - */ - sourcePath?: pulumi.Input; - /** - * **Required** - The absolute path of the file on the instance, - * including the filename. - */ - targetPath: pulumi.Input; - /** - * *Optional* - The UID of the file. Must be an unquoted integer. - */ - uid?: pulumi.Input; + append?: pulumi.Input; + /** + * **Required** unless sourcePath is used* - The *contents* of the file. + * Use the `file()` function to read in the content of a file from disk. + */ + content?: pulumi.Input; + /** + * *Optional* - Whether to create the directories leading + * to the target if they do not exist. + */ + createDirectories?: pulumi.Input; + /** + * *Optional* - The GID of the file. Must be an unquoted integer. + */ + gid?: pulumi.Input; + /** + * *Optional* - The octal permissions of the file, must be quoted. Defaults to `0755`. + */ + mode?: pulumi.Input; + /** + * **Required** unless content is used* - The source path to a file to + * copy to the instance. + */ + sourcePath?: pulumi.Input; + /** + * **Required** - The absolute path of the file on the instance, + * including the filename. + */ + targetPath: pulumi.Input; + /** + * *Optional* - The UID of the file. Must be an unquoted integer. + */ + uid?: pulumi.Input; } export interface InstanceSourceInstance { - /** - * **Required** - Name of the source instance. - */ - name: pulumi.Input; - /** - * **Required** - Name of the project in which the source instance exists. - */ - project: pulumi.Input; - /** - * *Optional* - Name of the snapshot of the source instance - */ - snapshot?: pulumi.Input; + /** + * **Required** - Name of the source instance. + */ + name: pulumi.Input; + /** + * **Required** - Name of the project in which the source instance exists. + */ + project: pulumi.Input; + /** + * *Optional* - Name of the snapshot of the source instance + */ + snapshot?: pulumi.Input; } export interface InstanceWaitFor { - /** - * *Optional* - Delay time that should be waited for when type is `delay`, e.g. `30s`. - */ - delay?: pulumi.Input; - /** - * *Optional* - Network interface that should be waited for when type is `ipv4` or `ipv6`. - */ - nic?: pulumi.Input; - /** - * **Required** - Type for what should be waited for. Can be `agent`, `delay`, `ipv4`, `ipv6` or `ready`. - */ - type: pulumi.Input; + /** + * *Optional* - Delay time that should be waited for when type is `delay`, e.g. `30s`. + */ + delay?: pulumi.Input; + /** + * *Optional* - Network interface that should be waited for when type is `ipv4` or `ipv6`. + */ + nic?: pulumi.Input; + /** + * **Required** - Type for what should be waited for. Can be `agent`, `delay`, `ipv4`, `ipv6` or `ready`. + */ + type: pulumi.Input; } export interface NetworkAclEgress { - /** - * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject - */ - action: pulumi.Input; - /** - * *Optional* - Description of the network ACL rule. - */ - description?: pulumi.Input; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any - */ - destination?: pulumi.Input; - /** - * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - destinationPort?: pulumi.Input; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any - */ - icmpCode?: pulumi.Input; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any - */ - icmpType?: pulumi.Input; - /** - * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - protocol?: pulumi.Input; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any - */ - source?: pulumi.Input; - /** - * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified - */ - state: pulumi.Input; + /** + * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject + */ + action: pulumi.Input; + /** + * *Optional* - Description of the network ACL rule. + */ + description?: pulumi.Input; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any + */ + destination?: pulumi.Input; + /** + * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + destinationPort?: pulumi.Input; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any + */ + icmpCode?: pulumi.Input; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any + */ + icmpType?: pulumi.Input; + /** + * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + protocol?: pulumi.Input; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any + */ + source?: pulumi.Input; + /** + * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified + */ + state: pulumi.Input; } export interface NetworkAclIngress { - /** - * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject - */ - action: pulumi.Input; - /** - * *Optional* - Description of the network ACL rule. - */ - description?: pulumi.Input; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any - */ - destination?: pulumi.Input; - /** - * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - destinationPort?: pulumi.Input; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any - */ - icmpCode?: pulumi.Input; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any - */ - icmpType?: pulumi.Input; - /** - * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - protocol?: pulumi.Input; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any - */ - source?: pulumi.Input; - /** - * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified - */ - state: pulumi.Input; + /** + * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject + */ + action: pulumi.Input; + /** + * *Optional* - Description of the network ACL rule. + */ + description?: pulumi.Input; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any + */ + destination?: pulumi.Input; + /** + * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + destinationPort?: pulumi.Input; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any + */ + icmpCode?: pulumi.Input; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any + */ + icmpType?: pulumi.Input; + /** + * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + protocol?: pulumi.Input; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any + */ + source?: pulumi.Input; + /** + * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified + */ + state: pulumi.Input; } export interface NetworkForwardPort { - /** - * *Optional* - Description of port(s) - */ - description?: pulumi.Input; - /** - * **Required** - Listen port(s) (e.g. `80,90-100`) - */ - listenPort: pulumi.Input; - /** - * **Required** - Protocol for the port(s) (`tcp` or `udp`). If not set then `tcp` will be used. - */ - protocol?: pulumi.Input; - /** - * **Required** - IP address to forward to - */ - targetAddress: pulumi.Input; - /** - * *Optional* - T arget port(s) (e.g. `70,80-90` or `90`), same as listenPort if empty - */ - targetPort: pulumi.Input; + /** + * *Optional* - Description of port(s) + */ + description?: pulumi.Input; + /** + * **Required** - Listen port(s) (e.g. `80,90-100`) + */ + listenPort: pulumi.Input; + /** + * **Required** - Protocol for the port(s) (`tcp` or `udp`). If not set then `tcp` will be used. + */ + protocol?: pulumi.Input; + /** + * **Required** - IP address to forward to + */ + targetAddress: pulumi.Input; + /** + * *Optional* - T arget port(s) (e.g. `70,80-90` or `90`), same as listenPort if empty + */ + targetPort: pulumi.Input; } export interface NetworkLoadBalancerBackend { - /** - * LB backend description - */ - description?: pulumi.Input; - /** - * LB backend name - */ - name: pulumi.Input; - /** - * LB backend target address - */ - targetAddress: pulumi.Input; - /** - * LB backend target port - */ - targetPort?: pulumi.Input; + /** + * LB backend description + */ + description?: pulumi.Input; + /** + * LB backend name + */ + name: pulumi.Input; + /** + * LB backend target address + */ + targetAddress: pulumi.Input; + /** + * LB backend target port + */ + targetPort?: pulumi.Input; } export interface NetworkLoadBalancerPort { - /** - * Port description - */ - description?: pulumi.Input; - /** - * Port to listen to - */ - listenPort: pulumi.Input; - /** - * Port protocol - */ - protocol?: pulumi.Input; - /** - * List of target LB backends - */ - targetBackends: pulumi.Input[]>; + /** + * Port description + */ + description?: pulumi.Input; + /** + * Port to listen to + */ + listenPort: pulumi.Input; + /** + * Port protocol + */ + protocol?: pulumi.Input; + /** + * List of target LB backends + */ + targetBackends: pulumi.Input[]>; } export interface NetworkZoneRecordEntry { - /** - * *Optional* - Entry time to live (TTL). - */ - ttl?: pulumi.Input; - /** - * **Required** - Entry type. Valid values are DNS record type, e.g. `A`, `AAAA`, `CNAME`, `TXT`, etc. - */ - type: pulumi.Input; - /** - * **Required** - Entry value. - */ - value: pulumi.Input; + /** + * *Optional* - Entry time to live (TTL). + */ + ttl?: pulumi.Input; + /** + * **Required** - Entry type. Valid values are DNS record type, e.g. `A`, `AAAA`, `CNAME`, `TXT`, etc. + */ + type: pulumi.Input; + /** + * **Required** - Entry value. + */ + value: pulumi.Input; } export interface ProfileDevice { - /** - * **Required** - Name of the device. - */ - name: pulumi.Input; - /** - * **Required** - Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties: pulumi.Input<{[key: string]: pulumi.Input}>; - /** - * **Required** - 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; + /** + * **Required** - Name of the device. + */ + name: pulumi.Input; + /** + * **Required** - Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties: pulumi.Input<{ [key: string]: pulumi.Input }>; + /** + * **Required** - 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; } export interface ProviderRemote { - /** - * The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path. - */ - address?: pulumi.Input; - /** - * Server authentication type, tls or oidc. ( Only for the `incus` protocol ) - */ - authenticationType?: pulumi.Input; - /** - * Name of the Incus remote. - */ - name: pulumi.Input; - /** - * Server protocol ( incus, oci or simplestreams ) - */ - protocol?: pulumi.Input; - /** - * Public image server - */ - public?: pulumi.Input; - /** - * The trust token used for initial authentication with the Incus remote. - */ - token?: pulumi.Input; + /** + * The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path. + */ + address?: pulumi.Input; + /** + * Server authentication type, tls or oidc. ( Only for the `incus` protocol ) + */ + authenticationType?: pulumi.Input; + /** + * Name of the Incus remote. + */ + name: pulumi.Input; + /** + * Server protocol ( incus, oci or simplestreams ) + */ + protocol?: pulumi.Input; + /** + * Public image server + */ + public?: pulumi.Input; + /** + * The trust token used for initial authentication with the Incus remote. + */ + token?: pulumi.Input; } export interface StorageVolumeSourceVolume { - /** - * **Required** - Name of the storage volume. - */ - name: pulumi.Input; - /** - * **Required** - The storage pool that will receive the copy of the volume copy. - */ - pool: pulumi.Input; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: pulumi.Input; -} -export namespace config { + /** + * **Required** - Name of the storage volume. + */ + name: pulumi.Input; + /** + * **Required** - The storage pool that will receive the copy of the volume copy. + */ + pool: pulumi.Input; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: pulumi.Input; } +export namespace config {} diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 5d6dd2c..8cda3ac 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1,585 +1,580 @@ // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** -import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "../types/input"; -import * as outputs from "../types/output"; - export interface GetClusterMembers { - /** - * Address of the cluster member, that is used for cluster communication. - */ - address: string; - /** - * Architecture of the cluster member (e.g. x86_64, aarch64). - * See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) - * for all possible values. - */ - architecture: string; - /** - * Description of the cluster member. - */ - description: string; - /** - * Failure domain of the cluster member. - */ - failureDomain: string; - /** - * A list of groups the cluster member belongs to. - */ - groups: string[]; - /** - * A list of roles assigned to the cluster member. - */ - roles: string[]; - /** - * Status of the cluster member. Possible values are - * `Online`, `Evacuated`, `Offline`, `Blocked`. - */ - status: string; + /** + * Address of the cluster member, that is used for cluster communication. + */ + address: string; + /** + * Architecture of the cluster member (e.g. x86_64, aarch64). + * See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) + * for all possible values. + */ + architecture: string; + /** + * Description of the cluster member. + */ + description: string; + /** + * Failure domain of the cluster member. + */ + failureDomain: string; + /** + * A list of groups the cluster member belongs to. + */ + groups: string[]; + /** + * A list of roles assigned to the cluster member. + */ + roles: string[]; + /** + * Status of the cluster member. Possible values are + * `Online`, `Evacuated`, `Offline`, `Blocked`. + */ + status: string; } export interface GetInstanceDevice { - /** - * **Required** - Name of the instance. - */ - name: string; - /** - * Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties: {[key: string]: string}; - /** - * Type of the device Must be one of none, disk, nic, - * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. - */ - type: string; + /** + * **Required** - Name of the instance. + */ + name: string; + /** + * Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties: { [key: string]: string }; + /** + * Type of the device Must be one of none, disk, nic, + * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. + */ + type: string; } export interface GetNetworkAclEgress { - /** - * Action to perform on rule match. - */ - action: string; - /** - * Description of the rule. - */ - description: string; - /** - * Destination address. - */ - destination: string; - /** - * Destination port. - */ - destinationPort: string; - /** - * ICMP message code (for ICMP protocol). - */ - icmpCode: string; - /** - * Type of ICMP message. - */ - icmpType: string; - /** - * Protocol (e.g., tcp, udp). - */ - protocol: string; - /** - * Source address. - */ - source: string; - /** - * Source port. - */ - sourcePort: string; - /** - * State of the rule. - */ - state: string; + /** + * Action to perform on rule match. + */ + action: string; + /** + * Description of the rule. + */ + description: string; + /** + * Destination address. + */ + destination: string; + /** + * Destination port. + */ + destinationPort: string; + /** + * ICMP message code (for ICMP protocol). + */ + icmpCode: string; + /** + * Type of ICMP message. + */ + icmpType: string; + /** + * Protocol (e.g., tcp, udp). + */ + protocol: string; + /** + * Source address. + */ + source: string; + /** + * Source port. + */ + sourcePort: string; + /** + * State of the rule. + */ + state: string; } export interface GetNetworkAclIngress { - /** - * Action to perform on rule match. - */ - action: string; - /** - * Description of the rule. - */ - description: string; - /** - * Destination address. - */ - destination: string; - /** - * Destination port. - */ - destinationPort: string; - /** - * ICMP message code (for ICMP protocol). - */ - icmpCode: string; - /** - * Type of ICMP message. - */ - icmpType: string; - /** - * Protocol (e.g., tcp, udp). - */ - protocol: string; - /** - * Source address. - */ - source: string; - /** - * Source port. - */ - sourcePort: string; - /** - * State of the rule. - */ - state: string; + /** + * Action to perform on rule match. + */ + action: string; + /** + * Description of the rule. + */ + description: string; + /** + * Destination address. + */ + destination: string; + /** + * Destination port. + */ + destinationPort: string; + /** + * ICMP message code (for ICMP protocol). + */ + icmpCode: string; + /** + * Type of ICMP message. + */ + icmpType: string; + /** + * Protocol (e.g., tcp, udp). + */ + protocol: string; + /** + * Source address. + */ + source: string; + /** + * Source port. + */ + sourcePort: string; + /** + * State of the rule. + */ + state: string; } export interface GetNetworkForwardPort { - /** - * Description of the forward port. - */ - description: string; - /** - * ListenPort(s) to forward (comma delimited ranges). - */ - listenPort: string; - /** - * Protocol for port forward (either tcp or udp). - */ - protocol: string; - /** - * SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target. - */ - snat: boolean; - /** - * Target address to forward ListenPorts to. - */ - targetAddress: string; - /** - * Target port(s) to forward ListenPorts to (allows for many-to-one). - */ - targetPort: string; + /** + * Description of the forward port. + */ + description: string; + /** + * ListenPort(s) to forward (comma delimited ranges). + */ + listenPort: string; + /** + * Protocol for port forward (either tcp or udp). + */ + protocol: string; + /** + * SNAT controls whether to apply a matching SNAT rule to new outgoing traffic from the target. + */ + snat: boolean; + /** + * Target address to forward ListenPorts to. + */ + targetAddress: string; + /** + * Target port(s) to forward ListenPorts to (allows for many-to-one). + */ + targetPort: string; } export interface GetNetworkLoadBalancerBackend { - /** - * Description of the load balancer port. - */ - description: string; - /** - * Name of the load balancer backend. - */ - name: string; - /** - * TargetAddress to forward ListenPorts to. - */ - targetAddress: string; - /** - * TargetPort(s) for the forward ListenPorts to (allows for many-to one). - */ - targetPort: string; + /** + * Description of the load balancer port. + */ + description: string; + /** + * Name of the load balancer backend. + */ + name: string; + /** + * TargetAddress to forward ListenPorts to. + */ + targetAddress: string; + /** + * TargetPort(s) for the forward ListenPorts to (allows for many-to one). + */ + targetPort: string; } export interface GetNetworkLoadBalancerPort { - /** - * Description of the load balancer port. - */ - description: string; - /** - * ListenPort(s) for the load balancer (comma delimited ranges). - */ - listenPort: string; - /** - * Protocol for load balancer (either tcp or udp). - */ - protocol: string; - /** - * TargetBackend backend names to load balance ListenPorts to. - */ - targetBackends: string[]; + /** + * Description of the load balancer port. + */ + description: string; + /** + * ListenPort(s) for the load balancer (comma delimited ranges). + */ + listenPort: string; + /** + * Protocol for load balancer (either tcp or udp). + */ + protocol: string; + /** + * TargetBackend backend names to load balance ListenPorts to. + */ + targetBackends: string[]; } export interface GetProfileDevice { - /** - * **Required** - Name of the profile. - */ - name: string; - /** - * Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties: {[key: string]: string}; - /** - * Type of the device Must be one of none, disk, nic, - * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. - */ - type: string; + /** + * **Required** - Name of the profile. + */ + name: string; + /** + * Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties: { [key: string]: string }; + /** + * Type of the device Must be one of none, disk, nic, + * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. + */ + type: string; } export interface ImageAlias { - /** - * *Optional* - A description for the alias. - */ - description: string; - /** - * **Required** - The name of the alias. - */ - name: string; + /** + * *Optional* - A description for the alias. + */ + description: string; + /** + * **Required** - The name of the alias. + */ + name: string; } export interface ImageSourceFile { - /** - * **Required** - Either the path of an [unified image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-unified) - * or the rootfs tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split), depending on - * `metadataPath` being provided or not. - */ - dataPath: string; - /** - * *Optional* - Path to the metadata tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split). - */ - metadataPath?: string; + /** + * **Required** - Either the path of an [unified image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-unified) + * or the rootfs tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split), depending on + * `metadataPath` being provided or not. + */ + dataPath: string; + /** + * *Optional* - Path to the metadata tarball of a [split image](https://linuxcontainers.org/incus/docs/main/reference/image_format/#image-format-split). + */ + metadataPath?: string; } export interface ImageSourceImage { - /** - * *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* - Whether to copy the aliases of the image from - * the remote. Valid values are `true` and `false`. - */ - copyAliases?: boolean; - /** - * **Required** - Name of the image. - */ - name: string; - /** - * **Required** - The remote where the image will be pulled from. - */ - remote: string; - /** - * *Optional* - Type of image to cache. Must be one of `container` or - * `virtual-machine`. Defaults to `container`. - */ - 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* - Whether to copy the aliases of the image from + * the remote. Valid values are `true` and `false`. + */ + copyAliases?: boolean; + /** + * **Required** - Name of the image. + */ + name: string; + /** + * **Required** - The remote where the image will be pulled from. + */ + remote: string; + /** + * *Optional* - Type of image to cache. Must be one of `container` or + * `virtual-machine`. Defaults to `container`. + */ + type: string; } export interface ImageSourceInstance { - /** - * **Required** - Name of the source instance. - */ - name: string; - /** - * *Optional* - Name of the snapshot of the source instance - */ - snapshot?: string; + /** + * **Required** - Name of the source instance. + */ + name: string; + /** + * *Optional* - Name of the snapshot of the source instance + */ + snapshot?: string; } export interface InstanceDevice { - /** - * **Required** - Name of the device. - */ - name: string; - /** - * **Required** - Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties: {[key: string]: string}; - /** - * **Required** - 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; + /** + * **Required** - Name of the device. + */ + name: string; + /** + * **Required** - Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties: { [key: string]: string }; + /** + * **Required** - Type of the device Must be one of none, disk, nic, + * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. + */ + type: string; } export interface InstanceFile { - append: boolean; - /** - * **Required** unless sourcePath is used* - The *contents* of the file. - * Use the `file()` function to read in the content of a file from disk. - */ - content?: string; - /** - * *Optional* - Whether to create the directories leading - * to the target if they do not exist. - */ - createDirectories?: boolean; - /** - * *Optional* - The GID of the file. Must be an unquoted integer. - */ - gid?: number; - /** - * *Optional* - The octal permissions of the file, must be quoted. Defaults to `0755`. - */ - mode: string; - /** - * **Required** unless content is used* - The source path to a file to - * copy to the instance. - */ - sourcePath?: string; - /** - * **Required** - The absolute path of the file on the instance, - * including the filename. - */ - targetPath: string; - /** - * *Optional* - The UID of the file. Must be an unquoted integer. - */ - uid?: number; + append: boolean; + /** + * **Required** unless sourcePath is used* - The *contents* of the file. + * Use the `file()` function to read in the content of a file from disk. + */ + content?: string; + /** + * *Optional* - Whether to create the directories leading + * to the target if they do not exist. + */ + createDirectories?: boolean; + /** + * *Optional* - The GID of the file. Must be an unquoted integer. + */ + gid?: number; + /** + * *Optional* - The octal permissions of the file, must be quoted. Defaults to `0755`. + */ + mode: string; + /** + * **Required** unless content is used* - The source path to a file to + * copy to the instance. + */ + sourcePath?: string; + /** + * **Required** - The absolute path of the file on the instance, + * including the filename. + */ + targetPath: string; + /** + * *Optional* - The UID of the file. Must be an unquoted integer. + */ + uid?: number; } export interface InstanceSourceInstance { - /** - * **Required** - Name of the source instance. - */ - name: string; - /** - * **Required** - Name of the project in which the source instance exists. - */ - project: string; - /** - * *Optional* - Name of the snapshot of the source instance - */ - snapshot?: string; + /** + * **Required** - Name of the source instance. + */ + name: string; + /** + * **Required** - Name of the project in which the source instance exists. + */ + project: string; + /** + * *Optional* - Name of the snapshot of the source instance + */ + snapshot?: string; } export interface InstanceWaitFor { - /** - * *Optional* - Delay time that should be waited for when type is `delay`, e.g. `30s`. - */ - delay?: string; - /** - * *Optional* - Network interface that should be waited for when type is `ipv4` or `ipv6`. - */ - nic?: string; - /** - * **Required** - Type for what should be waited for. Can be `agent`, `delay`, `ipv4`, `ipv6` or `ready`. - */ - type: string; + /** + * *Optional* - Delay time that should be waited for when type is `delay`, e.g. `30s`. + */ + delay?: string; + /** + * *Optional* - Network interface that should be waited for when type is `ipv4` or `ipv6`. + */ + nic?: string; + /** + * **Required** - Type for what should be waited for. Can be `agent`, `delay`, `ipv4`, `ipv6` or `ready`. + */ + type: string; } export interface NetworkAclEgress { - /** - * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject - */ - action: string; - /** - * *Optional* - Description of the network ACL rule. - */ - description: string; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any - */ - destination: string; - /** - * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - destinationPort: string; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any - */ - icmpCode: string; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any - */ - icmpType: string; - /** - * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - protocol: string; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any - */ - source: string; - /** - * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified - */ - state: string; + /** + * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject + */ + action: string; + /** + * *Optional* - Description of the network ACL rule. + */ + description: string; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any + */ + destination: string; + /** + * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + destinationPort: string; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any + */ + icmpCode: string; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any + */ + icmpType: string; + /** + * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + protocol: string; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any + */ + source: string; + /** + * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified + */ + state: string; } export interface NetworkAclIngress { - /** - * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject - */ - action: string; - /** - * *Optional* - Description of the network ACL rule. - */ - description: string; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any - */ - destination: string; - /** - * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - destinationPort: string; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any - */ - icmpCode: string; - /** - * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any - */ - icmpType: string; - /** - * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any - */ - protocol: string; - /** - * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any - */ - source: string; - /** - * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified - */ - state: string; + /** + * **Required** - Action to take for matching traffic , must be one of allow, allow-stateless, drop, reject + */ + action: string; + /** + * *Optional* - Description of the network ACL rule. + */ + description: string; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, destination subject name selectors (for egress rules), or empty for any + */ + destination: string; + /** + * *Optional* - If protocol is `udp` or tcp, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + destinationPort: string; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP code number, or empty for any + */ + icmpCode: string; + /** + * *Optional* - If protocol is `icmp4` or `icmp6`, then ICMP type number, or empty for any + */ + icmpType: string; + /** + * *Optional* - If protocol is `udp` or `tcp`, then a comma-separated list of ports or port ranges (start-end inclusive), or empty for any + */ + protocol: string; + /** + * *Optional* - Comma-separated list of CIDR or IP ranges, source subject name selectors (for ingress rules), or empty for any + */ + source: string; + /** + * *Optional* - State of the rule (enabled, disabled or logged), defaulting to enabled if not specified + */ + state: string; } export interface NetworkForwardPort { - /** - * *Optional* - Description of port(s) - */ - description?: string; - /** - * **Required** - Listen port(s) (e.g. `80,90-100`) - */ - listenPort: string; - /** - * **Required** - Protocol for the port(s) (`tcp` or `udp`). If not set then `tcp` will be used. - */ - protocol: string; - /** - * **Required** - IP address to forward to - */ - targetAddress: string; - /** - * *Optional* - T arget port(s) (e.g. `70,80-90` or `90`), same as listenPort if empty - */ - targetPort: string; + /** + * *Optional* - Description of port(s) + */ + description?: string; + /** + * **Required** - Listen port(s) (e.g. `80,90-100`) + */ + listenPort: string; + /** + * **Required** - Protocol for the port(s) (`tcp` or `udp`). If not set then `tcp` will be used. + */ + protocol: string; + /** + * **Required** - IP address to forward to + */ + targetAddress: string; + /** + * *Optional* - T arget port(s) (e.g. `70,80-90` or `90`), same as listenPort if empty + */ + targetPort: string; } export interface NetworkLoadBalancerBackend { - /** - * LB backend description - */ - description: string; - /** - * LB backend name - */ - name: string; - /** - * LB backend target address - */ - targetAddress: string; - /** - * LB backend target port - */ - targetPort?: string; + /** + * LB backend description + */ + description: string; + /** + * LB backend name + */ + name: string; + /** + * LB backend target address + */ + targetAddress: string; + /** + * LB backend target port + */ + targetPort?: string; } export interface NetworkLoadBalancerPort { - /** - * Port description - */ - description: string; - /** - * Port to listen to - */ - listenPort: string; - /** - * Port protocol - */ - protocol: string; - /** - * List of target LB backends - */ - targetBackends: string[]; + /** + * Port description + */ + description: string; + /** + * Port to listen to + */ + listenPort: string; + /** + * Port protocol + */ + protocol: string; + /** + * List of target LB backends + */ + targetBackends: string[]; } export interface NetworkZoneRecordEntry { - /** - * *Optional* - Entry time to live (TTL). - */ - ttl: number; - /** - * **Required** - Entry type. Valid values are DNS record type, e.g. `A`, `AAAA`, `CNAME`, `TXT`, etc. - */ - type: string; - /** - * **Required** - Entry value. - */ - value: string; + /** + * *Optional* - Entry time to live (TTL). + */ + ttl: number; + /** + * **Required** - Entry type. Valid values are DNS record type, e.g. `A`, `AAAA`, `CNAME`, `TXT`, etc. + */ + type: string; + /** + * **Required** - Entry value. + */ + value: string; } export interface ProfileDevice { - /** - * **Required** - Name of the device. - */ - name: string; - /** - * **Required** - Map of key/value pairs of - * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). - */ - properties: {[key: string]: string}; - /** - * **Required** - 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; + /** + * **Required** - Name of the device. + */ + name: string; + /** + * **Required** - Map of key/value pairs of + * [device properties](https://linuxcontainers.org/incus/docs/main/reference/devices/). + */ + properties: { [key: string]: string }; + /** + * **Required** - Type of the device Must be one of none, disk, nic, + * unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci. + */ + type: string; } export interface StorageVolumeSourceVolume { - /** - * **Required** - Name of the storage volume. - */ - name: string; - /** - * **Required** - The storage pool that will receive the copy of the volume copy. - */ - pool: string; - /** - * *Optional* - The remote in which the resource will be created. If - * not provided, the provider's default remote will be used. - */ - remote?: string; + /** + * **Required** - Name of the storage volume. + */ + name: string; + /** + * **Required** - The storage pool that will receive the copy of the volume copy. + */ + pool: string; + /** + * *Optional* - The remote in which the resource will be created. If + * not provided, the provider's default remote will be used. + */ + remote?: string; } export namespace config { - export interface Remotes { - /** - * The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path. - */ - address?: string; - /** - * Server authentication type, tls or oidc. ( Only for the `incus` protocol ) - */ - authenticationType?: string; - /** - * Name of the Incus remote. - */ - name: string; - /** - * Server protocol ( incus, oci or simplestreams ) - */ - protocol?: string; - /** - * Public image server - */ - public?: boolean; - /** - * The trust token used for initial authentication with the Incus remote. - */ - token?: string; - } - + export interface Remotes { + /** + * The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path. + */ + address?: string; + /** + * Server authentication type, tls or oidc. ( Only for the `incus` protocol ) + */ + authenticationType?: string; + /** + * Name of the Incus remote. + */ + name: string; + /** + * Server protocol ( incus, oci or simplestreams ) + */ + protocol?: string; + /** + * Public image server + */ + public?: boolean; + /** + * The trust token used for initial authentication with the Incus remote. + */ + token?: string; + } } diff --git a/sdk/nodejs/utilities.ts b/sdk/nodejs/utilities.ts index daff7fa..ee44845 100644 --- a/sdk/nodejs/utilities.ts +++ b/sdk/nodejs/utilities.ts @@ -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( - tok: string, - props: pulumi.Inputs, - res?: pulumi.Resource, - opts?: {property?: string}, + tok: string, + props: pulumi.Inputs, + res?: pulumi.Resource, + opts?: { property?: string }, ): Promise { - const o: any = runtime.call(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(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; }