style: format with tabs
This commit is contained in:
286
sdk/nodejs/getNetwork.ts
generated
286
sdk/nodejs/getNetwork.ts
generated
@@ -22,103 +22,110 @@ import * as utilities from "./utilities";
|
||||
* export const networkName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetwork(args: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetwork:getNetwork", {
|
||||
"description": args.description,
|
||||
"locations": args.locations,
|
||||
"managed": args.managed,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
export function getNetwork(
|
||||
args: GetNetworkArgs,
|
||||
opts?: pulumi.InvokeOptions,
|
||||
): Promise<GetNetworkResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke(
|
||||
"incus:index/getNetwork:getNetwork",
|
||||
{
|
||||
description: args.description,
|
||||
locations: args.locations,
|
||||
managed: args.managed,
|
||||
name: args.name,
|
||||
project: args.project,
|
||||
remote: args.remote,
|
||||
status: args.status,
|
||||
target: args.target,
|
||||
type: args.type,
|
||||
},
|
||||
opts,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetwork.
|
||||
*/
|
||||
export interface GetNetworkArgs {
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
locations?: string[];
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
managed?: boolean;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
locations?: string[];
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
managed?: boolean;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetwork.
|
||||
*/
|
||||
export interface GetNetworkResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [network config settings](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
readonly locations: string[];
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
readonly managed: boolean;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
readonly status: string;
|
||||
readonly target?: string;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
readonly type: string;
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [network config settings](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
readonly config: { [key: string]: string };
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
readonly locations: string[];
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
readonly managed: boolean;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
readonly status: string;
|
||||
readonly target?: string;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.Network
|
||||
@@ -138,61 +145,68 @@ export interface GetNetworkResult {
|
||||
* export const networkName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkOutput(args: GetNetworkOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetwork:getNetwork", {
|
||||
"description": args.description,
|
||||
"locations": args.locations,
|
||||
"managed": args.managed,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
export function getNetworkOutput(
|
||||
args: GetNetworkOutputArgs,
|
||||
opts?: pulumi.InvokeOutputOptions,
|
||||
): pulumi.Output<GetNetworkResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput(
|
||||
"incus:index/getNetwork:getNetwork",
|
||||
{
|
||||
description: args.description,
|
||||
locations: args.locations,
|
||||
managed: args.managed,
|
||||
name: args.name,
|
||||
project: args.project,
|
||||
remote: args.remote,
|
||||
status: args.status,
|
||||
target: args.target,
|
||||
type: args.type,
|
||||
},
|
||||
opts,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetwork.
|
||||
*/
|
||||
export interface GetNetworkOutputArgs {
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
managed?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
/**
|
||||
* Description of the network.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Locations of the network.
|
||||
*/
|
||||
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* Whether the network is managed by Incus.
|
||||
*/
|
||||
managed?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Status of the network.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
/**
|
||||
* Network type.
|
||||
* [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user