This commit is contained in:
2025-12-08 10:47:09 -05:00
parent 136b88ccdc
commit c4445aa92f
109 changed files with 9007 additions and 1219 deletions

61
sdk/nodejs/network.ts generated
View File

@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
@@ -36,39 +36,39 @@ export class Network extends pulumi.CustomResource {
* *Optional* - Map of key/value pairs of
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
*/
public readonly config!: pulumi.Output<{[key: string]: string}>;
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network.
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
*/
public readonly description!: pulumi.Output<string>;
declare public readonly description: pulumi.Output<string>;
/**
* Whether or not the network is managed.
*/
public /*out*/ readonly managed!: pulumi.Output<boolean>;
declare public /*out*/ readonly managed: pulumi.Output<boolean>;
/**
* **Required** - Name of the network. This is usually the device the
* network will appear as to instances.
*/
public readonly name!: pulumi.Output<string>;
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/
public readonly project!: pulumi.Output<string>;
declare public readonly project: pulumi.Output<string>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.
*/
public readonly remote!: pulumi.Output<string | undefined>;
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* *Optional* - Specify a target node in a cluster.
*/
public readonly target!: pulumi.Output<string | undefined>;
declare public readonly target: pulumi.Output<string | undefined>;
/**
* *Optional* - The type of network to create. Can be one of: bridge,
* macvlan, sriov, ovn, or physical. If no type is specified, a bridge network
* is created.
*/
public readonly type!: pulumi.Output<string>;
declare public readonly type: pulumi.Output<string>;
/**
* Create a Network resource with the given unique name, arguments, and options.
@@ -77,29 +77,32 @@ export class Network extends pulumi.CustomResource {
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: NetworkArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, args: NetworkArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: NetworkArgs | NetworkState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkState | undefined;
resourceInputs["config"] = state ? state.config : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["managed"] = state ? state.managed : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["project"] = state ? state.project : undefined;
resourceInputs["remote"] = state ? state.remote : undefined;
resourceInputs["target"] = state ? state.target : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["config"] = state?.config;
resourceInputs["description"] = state?.description;
resourceInputs["managed"] = state?.managed;
resourceInputs["name"] = state?.name;
resourceInputs["project"] = state?.project;
resourceInputs["remote"] = state?.remote;
resourceInputs["target"] = state?.target;
resourceInputs["type"] = state?.type;
} else {
const args = argsOrState as NetworkArgs | undefined;
resourceInputs["config"] = args ? args.config : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
resourceInputs["remote"] = args ? args.remote : undefined;
resourceInputs["target"] = args ? args.target : undefined;
resourceInputs["type"] = args ? args.type : undefined;
if (args?.name === undefined && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["config"] = args?.config;
resourceInputs["description"] = args?.description;
resourceInputs["name"] = args?.name;
resourceInputs["project"] = (args?.project) ?? "default";
resourceInputs["remote"] = args?.remote;
resourceInputs["target"] = args?.target;
resourceInputs["type"] = args?.type;
resourceInputs["managed"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -117,7 +120,7 @@ export interface NetworkState {
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network.
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
*/
description?: pulumi.Input<string>;
/**
@@ -160,14 +163,14 @@ export interface NetworkArgs {
*/
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
/**
* *Optional* - Description of the network.
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
*/
description?: pulumi.Input<string>;
/**
* **Required** - Name of the network. This is usually the device the
* network will appear as to instances.
*/
name?: pulumi.Input<string>;
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/