style: format with tabs
This commit is contained in:
281
sdk/nodejs/networkIntegration.ts
generated
281
sdk/nodejs/networkIntegration.ts
generated
@@ -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<pulumi.ID>, state?: NetworkIntegrationState, opts?: pulumi.CustomResourceOptions): NetworkIntegration {
|
||||
return new NetworkIntegration(name, <any>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<pulumi.ID>,
|
||||
state?: NetworkIntegrationState,
|
||||
opts?: pulumi.CustomResourceOptions,
|
||||
): NetworkIntegration {
|
||||
return new NetworkIntegration(name, <any>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<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
/**
|
||||
* *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<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* 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<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network integration.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
/**
|
||||
* *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<string> }>;
|
||||
/**
|
||||
* *Optional* - Description of the network integration.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network integration.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
type: pulumi.Input<string>;
|
||||
/**
|
||||
* *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<string> }>;
|
||||
/**
|
||||
* *Optional* - Description of the network integration.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
type: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user