Update
This commit is contained in:
73
sdk/nodejs/networkPeer.ts
generated
73
sdk/nodejs/networkPeer.ts
generated
@@ -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";
|
||||
@@ -81,42 +81,42 @@ export class NetworkPeer extends pulumi.CustomResource {
|
||||
/**
|
||||
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network peering
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **required** - Name of the network peering on the local network
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the local network.
|
||||
*/
|
||||
public readonly network!: pulumi.Output<string | undefined>;
|
||||
declare public readonly network: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is located.
|
||||
*/
|
||||
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>;
|
||||
public /*out*/ readonly status!: pulumi.Output<string>;
|
||||
public readonly targetIntegration!: pulumi.Output<string>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
declare public /*out*/ readonly status: pulumi.Output<string>;
|
||||
declare public readonly targetIntegration: pulumi.Output<string>;
|
||||
/**
|
||||
* **required** - Which network to create a peering with (required at create time for local peers)
|
||||
*/
|
||||
public readonly targetNetwork!: pulumi.Output<string>;
|
||||
declare public readonly targetNetwork: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Which project the target network exists in (required at create time for local peers)
|
||||
*/
|
||||
public readonly targetProject!: pulumi.Output<string>;
|
||||
declare public readonly targetProject: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Type of network peering
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a NetworkPeer resource with the given unique name, arguments, and options.
|
||||
@@ -125,35 +125,38 @@ export class NetworkPeer 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?: NetworkPeerArgs, opts?: pulumi.CustomResourceOptions)
|
||||
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 ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["status"] = state ? state.status : undefined;
|
||||
resourceInputs["targetIntegration"] = state ? state.targetIntegration : undefined;
|
||||
resourceInputs["targetNetwork"] = state ? state.targetNetwork : undefined;
|
||||
resourceInputs["targetProject"] = state ? state.targetProject : undefined;
|
||||
resourceInputs["type"] = state ? state.type : 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;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["targetIntegration"] = args ? args.targetIntegration : undefined;
|
||||
resourceInputs["targetNetwork"] = args ? args.targetNetwork : undefined;
|
||||
resourceInputs["targetProject"] = args ? args.targetProject : 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["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);
|
||||
@@ -221,7 +224,7 @@ export interface NetworkPeerArgs {
|
||||
/**
|
||||
* **required** - Name of the network peering on the local network
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the local network.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user