style: format with tabs
This commit is contained in:
180
sdk/nodejs/getProfile.ts
generated
180
sdk/nodejs/getProfile.ts
generated
@@ -24,71 +24,78 @@ import * as utilities from "./utilities";
|
||||
* export const profileName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getProfile(args: GetProfileArgs, opts?: pulumi.InvokeOptions): Promise<GetProfileResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getProfile:getProfile", {
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
export function getProfile(
|
||||
args: GetProfileArgs,
|
||||
opts?: pulumi.InvokeOptions,
|
||||
): Promise<GetProfileResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke(
|
||||
"incus:index/getProfile:getProfile",
|
||||
{
|
||||
description: args.description,
|
||||
devices: args.devices,
|
||||
name: args.name,
|
||||
project: args.project,
|
||||
remote: args.remote,
|
||||
},
|
||||
opts,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getProfile.
|
||||
*/
|
||||
export interface GetProfileArgs {
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: inputs.GetProfileDevice[];
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile 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;
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: inputs.GetProfileDevice[];
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getProfile.
|
||||
*/
|
||||
export interface GetProfileResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
readonly devices?: outputs.GetProfileDevice[];
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Name of the device.
|
||||
*/
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
*/
|
||||
readonly config: { [key: string]: string };
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
readonly devices?: outputs.GetProfileDevice[];
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Name of the device.
|
||||
*/
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.Profile
|
||||
@@ -108,40 +115,47 @@ export interface GetProfileResult {
|
||||
* export const profileName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getProfileOutput(args: GetProfileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProfileResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getProfile:getProfile", {
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
export function getProfileOutput(
|
||||
args: GetProfileOutputArgs,
|
||||
opts?: pulumi.InvokeOutputOptions,
|
||||
): pulumi.Output<GetProfileResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput(
|
||||
"incus:index/getProfile:getProfile",
|
||||
{
|
||||
description: args.description,
|
||||
devices: args.devices,
|
||||
name: args.name,
|
||||
project: args.project,
|
||||
remote: args.remote,
|
||||
},
|
||||
opts,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getProfile.
|
||||
*/
|
||||
export interface GetProfileOutputArgs {
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: pulumi.Input<pulumi.Input<inputs.GetProfileDeviceArgs>[]>;
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile 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>;
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: pulumi.Input<pulumi.Input<inputs.GetProfileDeviceArgs>[]>;
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile 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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user