build nodejs
This commit is contained in:
137
sdk/nodejs/getProject.ts
generated
Normal file
137
sdk/nodejs/getProject.ts
generated
Normal file
@@ -0,0 +1,137 @@
|
||||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.Project
|
||||
*
|
||||
* Provides information about an Incus project.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProject({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* project: _default.then(_default => _default.name),
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getProject:getProject", {
|
||||
"config": args.config,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getProject.
|
||||
*/
|
||||
export interface GetProjectArgs {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
config?: {[key: string]: string};
|
||||
/**
|
||||
* Description of the project.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
name: 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 getProject.
|
||||
*/
|
||||
export interface GetProjectResult {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the project.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.Project
|
||||
*
|
||||
* Provides information about an Incus project.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProject({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* project: _default.then(_default => _default.name),
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getProject:getProject", {
|
||||
"config": args.config,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getProject.
|
||||
*/
|
||||
export interface GetProjectOutputArgs {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* Description of the project.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
name: 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