style: format with tabs
This commit is contained in:
87
sdk/nodejs/getCluster.ts
generated
87
sdk/nodejs/getCluster.ts
generated
@@ -2,7 +2,6 @@
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
@@ -58,43 +57,50 @@ import * as utilities from "./utilities";
|
||||
*
|
||||
* * For non-clustered setups, the `members` attribute will be `null`.
|
||||
*/
|
||||
export function getCluster(args?: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult> {
|
||||
args = args || {};
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getCluster:getCluster", {
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
export function getCluster(
|
||||
args?: GetClusterArgs,
|
||||
opts?: pulumi.InvokeOptions,
|
||||
): Promise<GetClusterResult> {
|
||||
args = args || {};
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke(
|
||||
"incus:index/getCluster:getCluster",
|
||||
{
|
||||
remote: args.remote,
|
||||
},
|
||||
opts,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getCluster.
|
||||
*/
|
||||
export interface GetClusterArgs {
|
||||
/**
|
||||
* *Optional* - The remote for which the Incus cluster information
|
||||
* should be queried. If not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* *Optional* - The remote for which the Incus cluster information
|
||||
* should be queried. If not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getCluster.
|
||||
*/
|
||||
export interface GetClusterResult {
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Whether this is a clustered setup.
|
||||
*/
|
||||
readonly isClustered: boolean;
|
||||
/**
|
||||
* A map of cluster members. The key is the member name and the value
|
||||
* is a member object. See reference below.
|
||||
*/
|
||||
readonly members: {[key: string]: outputs.GetClusterMembers};
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Whether this is a clustered setup.
|
||||
*/
|
||||
readonly isClustered: boolean;
|
||||
/**
|
||||
* A map of cluster members. The key is the member name and the value
|
||||
* is a member object. See reference below.
|
||||
*/
|
||||
readonly members: { [key: string]: outputs.GetClusterMembers };
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.getCluster
|
||||
@@ -148,21 +154,28 @@ export interface GetClusterResult {
|
||||
*
|
||||
* * For non-clustered setups, the `members` attribute will be `null`.
|
||||
*/
|
||||
export function getClusterOutput(args?: GetClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClusterResult> {
|
||||
args = args || {};
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getCluster:getCluster", {
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
export function getClusterOutput(
|
||||
args?: GetClusterOutputArgs,
|
||||
opts?: pulumi.InvokeOutputOptions,
|
||||
): pulumi.Output<GetClusterResult> {
|
||||
args = args || {};
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput(
|
||||
"incus:index/getCluster:getCluster",
|
||||
{
|
||||
remote: args.remote,
|
||||
},
|
||||
opts,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getCluster.
|
||||
*/
|
||||
export interface GetClusterOutputArgs {
|
||||
/**
|
||||
* *Optional* - The remote for which the Incus cluster information
|
||||
* should be queried. If not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote for which the Incus cluster information
|
||||
* should be queried. If not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user