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

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";
@@ -86,28 +86,28 @@ export class NetworkIntegration extends pulumi.CustomResource {
/**
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
*/
public readonly config!: pulumi.Output<{[key: string]: string}>;
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network integration.
*/
public readonly description!: pulumi.Output<string>;
declare public readonly description: pulumi.Output<string>;
/**
* **Required** - Name of the network integration.
*/
public readonly name!: pulumi.Output<string>;
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/
public readonly project!: pulumi.Output<string>;
declare public readonly project: pulumi.Output<string>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.
*/
public readonly remote!: pulumi.Output<string | undefined>;
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
*/
public readonly type!: pulumi.Output<string>;
declare public readonly type: pulumi.Output<string>;
/**
* Create a NetworkIntegration resource with the given unique name, arguments, and options.
@@ -122,23 +122,26 @@ export class NetworkIntegration extends pulumi.CustomResource {
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkIntegrationState | undefined;
resourceInputs["config"] = state ? state.config : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["project"] = state ? state.project : undefined;
resourceInputs["remote"] = state ? state.remote : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["config"] = state?.config;
resourceInputs["description"] = state?.description;
resourceInputs["name"] = state?.name;
resourceInputs["project"] = state?.project;
resourceInputs["remote"] = state?.remote;
resourceInputs["type"] = state?.type;
} else {
const args = argsOrState as NetworkIntegrationArgs | undefined;
if ((!args || args.type === undefined) && !opts.urn) {
if (args?.name === undefined && !opts.urn) {
throw new Error("Missing required property 'name'");
}
if (args?.type === undefined && !opts.urn) {
throw new Error("Missing required property 'type'");
}
resourceInputs["config"] = args ? args.config : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
resourceInputs["remote"] = args ? args.remote : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["config"] = args?.config;
resourceInputs["description"] = args?.description;
resourceInputs["name"] = args?.name;
resourceInputs["project"] = (args?.project) ?? "default";
resourceInputs["remote"] = args?.remote;
resourceInputs["type"] = args?.type;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(NetworkIntegration.__pulumiType, name, resourceInputs, opts);
@@ -191,7 +194,7 @@ export interface NetworkIntegrationArgs {
/**
* **Required** - Name of the network integration.
*/
name?: pulumi.Input<string>;
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network will be created.
*/