Update
This commit is contained in:
36
sdk/nodejs/getProject.ts
generated
36
sdk/nodejs/getProject.ts
generated
@@ -1,4 +1,4 @@
|
||||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
||||
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
@@ -14,22 +14,16 @@ import * as utilities from "./utilities";
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProject({
|
||||
* const _this = incus.getProject({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* project: _default.then(_default => _default.name),
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* export const projectName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
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,
|
||||
@@ -40,11 +34,6 @@ export function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): P
|
||||
* 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.
|
||||
*/
|
||||
@@ -65,8 +54,8 @@ export interface GetProjectArgs {
|
||||
*/
|
||||
export interface GetProjectResult {
|
||||
/**
|
||||
* Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
* 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};
|
||||
/**
|
||||
@@ -90,22 +79,16 @@ export interface GetProjectResult {
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProject({
|
||||
* const _this = incus.getProject({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* project: _default.then(_default => _default.name),
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* export const projectName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
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,
|
||||
@@ -116,11 +99,6 @@ export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.Invok
|
||||
* 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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user