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";
@@ -38,32 +38,32 @@ export class NetworkZoneRecord extends pulumi.CustomResource {
* *Optional* - Map of key/value pairs of
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
*/
public readonly config!: pulumi.Output<{[key: string]: string}>;
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the network zone.
*/
public readonly description!: pulumi.Output<string>;
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Entry in network zone record - see below.
*/
public readonly entries!: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
declare public readonly entries: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
/**
* **Required** - Name of the network zone record.
*/
public readonly name!: pulumi.Output<string>;
declare public readonly name: pulumi.Output<string>;
/**
* *Optional* - Name of the project where the network zone record will be created.
*/
public readonly project!: pulumi.Output<string>;
declare public readonly project: pulumi.Output<string>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.
*/
public readonly remote!: pulumi.Output<string | undefined>;
declare public readonly remote: pulumi.Output<string | undefined>;
/**
* **Required** - Name of the zone to add the entries of this record.
*/
public readonly zone!: pulumi.Output<string>;
declare public readonly zone: pulumi.Output<string>;
/**
* Create a NetworkZoneRecord resource with the given unique name, arguments, and options.
@@ -78,25 +78,28 @@ export class NetworkZoneRecord extends pulumi.CustomResource {
opts = opts || {};
if (opts.id) {
const state = argsOrState as NetworkZoneRecordState | undefined;
resourceInputs["config"] = state ? state.config : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["entries"] = state ? state.entries : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["project"] = state ? state.project : undefined;
resourceInputs["remote"] = state ? state.remote : undefined;
resourceInputs["zone"] = state ? state.zone : undefined;
resourceInputs["config"] = state?.config;
resourceInputs["description"] = state?.description;
resourceInputs["entries"] = state?.entries;
resourceInputs["name"] = state?.name;
resourceInputs["project"] = state?.project;
resourceInputs["remote"] = state?.remote;
resourceInputs["zone"] = state?.zone;
} else {
const args = argsOrState as NetworkZoneRecordArgs | undefined;
if ((!args || args.zone === undefined) && !opts.urn) {
if (args?.name === undefined && !opts.urn) {
throw new Error("Missing required property 'name'");
}
if (args?.zone === undefined && !opts.urn) {
throw new Error("Missing required property 'zone'");
}
resourceInputs["config"] = args ? args.config : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["entries"] = args ? args.entries : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
resourceInputs["remote"] = args ? args.remote : undefined;
resourceInputs["zone"] = args ? args.zone : undefined;
resourceInputs["config"] = args?.config;
resourceInputs["description"] = args?.description;
resourceInputs["entries"] = args?.entries;
resourceInputs["name"] = args?.name;
resourceInputs["project"] = (args?.project) ?? "default";
resourceInputs["remote"] = args?.remote;
resourceInputs["zone"] = args?.zone;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(NetworkZoneRecord.__pulumiType, name, resourceInputs, opts);
@@ -159,7 +162,7 @@ export interface NetworkZoneRecordArgs {
/**
* **Required** - Name of the network zone record.
*/
name?: pulumi.Input<string>;
name: pulumi.Input<string>;
/**
* *Optional* - Name of the project where the network zone record will be created.
*/