Update
This commit is contained in:
9
.github/actions/download-tfgen/action.yml
vendored
9
.github/actions/download-tfgen/action.yml
vendored
@@ -4,14 +4,13 @@ description: Downloads the tfgen binary to `bin/`.
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
|
||||
- name: Download pulumi-tfgen-xyz
|
||||
- name: Download pulumi-tfgen-incus
|
||||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
||||
with:
|
||||
name: pulumi-tfgen-xyz
|
||||
name: pulumi-tfgen-incus
|
||||
path: ${{ github.workspace }}/bin
|
||||
|
||||
- name: Ensure pulumi-tfgen-xyz is executable
|
||||
- name: Ensure pulumi-tfgen-incus is executable
|
||||
shell: bash
|
||||
run: |
|
||||
find ${{ github.workspace }} -name "pulumi-*-xyz" -print -exec chmod +x {} \;
|
||||
find ${{ github.workspace }} -name "pulumi-*-incus" -print -exec chmod +x {} \;
|
||||
|
||||
4
.github/actions/upload-bin/action.yml
vendored
4
.github/actions/upload-bin/action.yml
vendored
@@ -6,10 +6,10 @@ runs:
|
||||
steps:
|
||||
- name: Tar provider binaries
|
||||
shell: bash
|
||||
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace }}/bin/ pulumi-resource-xyz pulumi-tfgen-xyz
|
||||
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace }}/bin/ pulumi-resource-incus pulumi-tfgen-incus
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
||||
with:
|
||||
name: xyz-provider.tar.gz
|
||||
name: incus-provider.tar.gz
|
||||
path: ${{ github.workspace }}/bin/provider.tar.gz
|
||||
retention-days: 30
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
|
||||
|
||||
---
|
||||
upstream-provider-name: terraform-provider-xyz
|
||||
upstream-provider-name: terraform-provider-incus
|
||||
pulumi-infer-version: true
|
||||
remove-plugins: true
|
||||
|
||||
@@ -5,7 +5,7 @@ LICENSE or <http://www.apache.org/licenses/LICENSE-2.0>).
|
||||
This project is a larger work that combines with software written
|
||||
by third parties, licensed under their own terms.
|
||||
|
||||
Notably, this larger work combines with the Terraform XYZ Provider,
|
||||
Notably, this larger work combines with the Terraform Incus Provider,
|
||||
which is licensed under the Mozilla Public License 2.0 (see
|
||||
<https://www.mozilla.org/en-US/MPL/2.0/> or the project itself at
|
||||
<https://github.com/terraform-providers/terraform-provider-aws>).
|
||||
<https://github.com/lxc/terraform-provider-incus>).
|
||||
|
||||
2
Makefile
2
Makefile
@@ -163,7 +163,7 @@ build_nodejs: .make/build_nodejs
|
||||
.make/build_nodejs: .make/generate_nodejs
|
||||
cd sdk/nodejs/ && \
|
||||
pnpm install && \
|
||||
pnpm run tsc && \
|
||||
pnpm tsc && \
|
||||
cp ../../README.md ../../LICENSE package.json pnpm-lock.yaml ./bin/
|
||||
@touch $@
|
||||
.PHONY: generate_nodejs build_nodejs
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
name: basic-py
|
||||
runtime: python
|
||||
description: A basic python program for integration testing
|
||||
@@ -1,18 +0,0 @@
|
||||
# Copyright 2024, Pulumi Corporation.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import pulumi
|
||||
import pulumi_xyz
|
||||
|
||||
resource = pulumi_xyz.Resource("Resource", sample_attribute = "attr")
|
||||
@@ -1,2 +0,0 @@
|
||||
pulumi>=3.0.0,<4.0.0
|
||||
pulumi-xyz>=1.0.0,<2.0.0
|
||||
@@ -1,12 +1,25 @@
|
||||
import * as incus from "@kiterun/incus";
|
||||
|
||||
const resource = new incus.Instance("instance1", {
|
||||
name: "instance1",
|
||||
const resource = new incus.Instance("instance2", {
|
||||
name: "instance2",
|
||||
image: "images:ubuntu/24.04",
|
||||
project: "default",
|
||||
config: {
|
||||
"limits.cpu": "4",
|
||||
},
|
||||
remote: "pizazz",
|
||||
devices: [
|
||||
{
|
||||
name: "eth0",
|
||||
type: "nic",
|
||||
properties: {
|
||||
network: "production",
|
||||
}
|
||||
}
|
||||
],
|
||||
waitFors: [{
|
||||
type: "ipv4",
|
||||
}]
|
||||
})
|
||||
|
||||
export const ip1 = resource.ipv4Address;
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
// Copyright 2024, Pulumi Corporation. All rights reserved.
|
||||
//go:build dotnet || all
|
||||
// +build dotnet all
|
||||
|
||||
package examples
|
||||
@@ -1,23 +0,0 @@
|
||||
// Copyright 2024, Pulumi Corporation. All rights reserved.
|
||||
//go:build python || all
|
||||
// +build python all
|
||||
|
||||
package examples
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
|
||||
)
|
||||
|
||||
func TestBasicPy(t *testing.T) {
|
||||
t.Skip("Skipping until the provider has been implemented")
|
||||
|
||||
test := getPythonBaseOptions(t).
|
||||
With(integration.ProgramTestOptions{
|
||||
Dir: filepath.Join(getCwd(t), "basic-py"),
|
||||
})
|
||||
|
||||
integration.ProgramTest(t, &test)
|
||||
}
|
||||
@@ -64,7 +64,7 @@ func getCSBaseOptions(t *testing.T) integration.ProgramTestOptions {
|
||||
base := getBaseOptions(t)
|
||||
baseJS := base.With(integration.ProgramTestOptions{
|
||||
Dependencies: []string{
|
||||
"Pulumi.Xyz",
|
||||
"Pulumi.Incus",
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
1
sdk/go/.gitattributes
generated
vendored
Normal file
1
sdk/go/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* linguist-generated
|
||||
10
sdk/go/incus/certificate.go
generated
10
sdk/go/incus/certificate.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -49,6 +48,9 @@ func NewCertificate(ctx *pulumi.Context,
|
||||
if args.Certificate == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Certificate'")
|
||||
}
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Certificate
|
||||
err := ctx.RegisterResource("incus:index/certificate:Certificate", name, args, &resource, opts...)
|
||||
@@ -123,7 +125,7 @@ type certificateArgs struct {
|
||||
// *Optional* - Description of the certificate.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the certificate.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - List of projects to restrict the certificate to.
|
||||
Projects []string `pulumi:"projects"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -143,7 +145,7 @@ type CertificateArgs struct {
|
||||
// *Optional* - Description of the certificate.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the certificate.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - List of projects to restrict the certificate to.
|
||||
Projects pulumi.StringArrayInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
34
sdk/go/incus/clusterGroup.go
generated
34
sdk/go/incus/clusterGroup.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -16,8 +17,9 @@ type ClusterGroup struct {
|
||||
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
Description pulumi.StringOutput `pulumi:"description"`
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
// *Optional* - Description of the cluster group.
|
||||
Description pulumi.StringOutput `pulumi:"description"`
|
||||
// **Required** - Name of the cluster group.
|
||||
Name pulumi.StringOutput `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -29,9 +31,12 @@ type ClusterGroup struct {
|
||||
func NewClusterGroup(ctx *pulumi.Context,
|
||||
name string, args *ClusterGroupArgs, opts ...pulumi.ResourceOption) (*ClusterGroup, error) {
|
||||
if args == nil {
|
||||
args = &ClusterGroupArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource ClusterGroup
|
||||
err := ctx.RegisterResource("incus:index/clusterGroup:ClusterGroup", name, args, &resource, opts...)
|
||||
@@ -57,8 +62,9 @@ func GetClusterGroup(ctx *pulumi.Context,
|
||||
type clusterGroupState struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
Description *string `pulumi:"description"`
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the cluster group.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the cluster group.
|
||||
Name *string `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -69,7 +75,8 @@ type clusterGroupState struct {
|
||||
type ClusterGroupState struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
Config pulumi.StringMapInput
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the cluster group.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the cluster group.
|
||||
Name pulumi.StringPtrInput
|
||||
@@ -85,10 +92,11 @@ func (ClusterGroupState) ElementType() reflect.Type {
|
||||
type clusterGroupArgs struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
Description *string `pulumi:"description"`
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the cluster group.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the cluster group.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
@@ -98,10 +106,11 @@ type clusterGroupArgs struct {
|
||||
type ClusterGroupArgs struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
Config pulumi.StringMapInput
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the cluster group.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the cluster group.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
@@ -200,6 +209,7 @@ func (o ClusterGroupOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v *ClusterGroup) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Description of the cluster group.
|
||||
func (o ClusterGroupOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *ClusterGroup) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
258
sdk/go/incus/clusterGroupAssignment.go
generated
258
sdk/go/incus/clusterGroupAssignment.go
generated
@@ -1,258 +0,0 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type ClusterGroupAssignment struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup pulumi.StringOutput `pulumi:"clusterGroup"`
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member pulumi.StringOutput `pulumi:"member"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrOutput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// NewClusterGroupAssignment registers a new resource with the given unique name, arguments, and options.
|
||||
func NewClusterGroupAssignment(ctx *pulumi.Context,
|
||||
name string, args *ClusterGroupAssignmentArgs, opts ...pulumi.ResourceOption) (*ClusterGroupAssignment, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.ClusterGroup == nil {
|
||||
return nil, errors.New("invalid value for required argument 'ClusterGroup'")
|
||||
}
|
||||
if args.Member == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Member'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource ClusterGroupAssignment
|
||||
err := ctx.RegisterResource("incus:index/clusterGroupAssignment:ClusterGroupAssignment", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetClusterGroupAssignment gets an existing ClusterGroupAssignment resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetClusterGroupAssignment(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *ClusterGroupAssignmentState, opts ...pulumi.ResourceOption) (*ClusterGroupAssignment, error) {
|
||||
var resource ClusterGroupAssignment
|
||||
err := ctx.ReadResource("incus:index/clusterGroupAssignment:ClusterGroupAssignment", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering ClusterGroupAssignment resources.
|
||||
type clusterGroupAssignmentState struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup *string `pulumi:"clusterGroup"`
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member *string `pulumi:"member"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
type ClusterGroupAssignmentState struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup pulumi.StringPtrInput
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ClusterGroupAssignmentState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*clusterGroupAssignmentState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type clusterGroupAssignmentArgs struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup string `pulumi:"clusterGroup"`
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member string `pulumi:"member"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a ClusterGroupAssignment resource.
|
||||
type ClusterGroupAssignmentArgs struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup pulumi.StringInput
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member pulumi.StringInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ClusterGroupAssignmentArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*clusterGroupAssignmentArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ClusterGroupAssignmentInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToClusterGroupAssignmentOutput() ClusterGroupAssignmentOutput
|
||||
ToClusterGroupAssignmentOutputWithContext(ctx context.Context) ClusterGroupAssignmentOutput
|
||||
}
|
||||
|
||||
func (*ClusterGroupAssignment) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**ClusterGroupAssignment)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *ClusterGroupAssignment) ToClusterGroupAssignmentOutput() ClusterGroupAssignmentOutput {
|
||||
return i.ToClusterGroupAssignmentOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *ClusterGroupAssignment) ToClusterGroupAssignmentOutputWithContext(ctx context.Context) ClusterGroupAssignmentOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupAssignmentOutput)
|
||||
}
|
||||
|
||||
// ClusterGroupAssignmentArrayInput is an input type that accepts ClusterGroupAssignmentArray and ClusterGroupAssignmentArrayOutput values.
|
||||
// You can construct a concrete instance of `ClusterGroupAssignmentArrayInput` via:
|
||||
//
|
||||
// ClusterGroupAssignmentArray{ ClusterGroupAssignmentArgs{...} }
|
||||
type ClusterGroupAssignmentArrayInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToClusterGroupAssignmentArrayOutput() ClusterGroupAssignmentArrayOutput
|
||||
ToClusterGroupAssignmentArrayOutputWithContext(context.Context) ClusterGroupAssignmentArrayOutput
|
||||
}
|
||||
|
||||
type ClusterGroupAssignmentArray []ClusterGroupAssignmentInput
|
||||
|
||||
func (ClusterGroupAssignmentArray) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*ClusterGroupAssignment)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ClusterGroupAssignmentArray) ToClusterGroupAssignmentArrayOutput() ClusterGroupAssignmentArrayOutput {
|
||||
return i.ToClusterGroupAssignmentArrayOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ClusterGroupAssignmentArray) ToClusterGroupAssignmentArrayOutputWithContext(ctx context.Context) ClusterGroupAssignmentArrayOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupAssignmentArrayOutput)
|
||||
}
|
||||
|
||||
// ClusterGroupAssignmentMapInput is an input type that accepts ClusterGroupAssignmentMap and ClusterGroupAssignmentMapOutput values.
|
||||
// You can construct a concrete instance of `ClusterGroupAssignmentMapInput` via:
|
||||
//
|
||||
// ClusterGroupAssignmentMap{ "key": ClusterGroupAssignmentArgs{...} }
|
||||
type ClusterGroupAssignmentMapInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToClusterGroupAssignmentMapOutput() ClusterGroupAssignmentMapOutput
|
||||
ToClusterGroupAssignmentMapOutputWithContext(context.Context) ClusterGroupAssignmentMapOutput
|
||||
}
|
||||
|
||||
type ClusterGroupAssignmentMap map[string]ClusterGroupAssignmentInput
|
||||
|
||||
func (ClusterGroupAssignmentMap) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*ClusterGroupAssignment)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ClusterGroupAssignmentMap) ToClusterGroupAssignmentMapOutput() ClusterGroupAssignmentMapOutput {
|
||||
return i.ToClusterGroupAssignmentMapOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ClusterGroupAssignmentMap) ToClusterGroupAssignmentMapOutputWithContext(ctx context.Context) ClusterGroupAssignmentMapOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupAssignmentMapOutput)
|
||||
}
|
||||
|
||||
type ClusterGroupAssignmentOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ClusterGroupAssignmentOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**ClusterGroupAssignment)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentOutput) ToClusterGroupAssignmentOutput() ClusterGroupAssignmentOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentOutput) ToClusterGroupAssignmentOutputWithContext(ctx context.Context) ClusterGroupAssignmentOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// **Required** - Name of the cluster group.
|
||||
func (o ClusterGroupAssignmentOutput) ClusterGroup() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *ClusterGroupAssignment) pulumi.StringOutput { return v.ClusterGroup }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// **Required** - Name of the cluster group member.
|
||||
func (o ClusterGroupAssignmentOutput) Member() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *ClusterGroupAssignment) pulumi.StringOutput { return v.Member }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
func (o ClusterGroupAssignmentOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *ClusterGroupAssignment) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type ClusterGroupAssignmentArrayOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ClusterGroupAssignmentArrayOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*ClusterGroupAssignment)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentArrayOutput) ToClusterGroupAssignmentArrayOutput() ClusterGroupAssignmentArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentArrayOutput) ToClusterGroupAssignmentArrayOutputWithContext(ctx context.Context) ClusterGroupAssignmentArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentArrayOutput) Index(i pulumi.IntInput) ClusterGroupAssignmentOutput {
|
||||
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterGroupAssignment {
|
||||
return vs[0].([]*ClusterGroupAssignment)[vs[1].(int)]
|
||||
}).(ClusterGroupAssignmentOutput)
|
||||
}
|
||||
|
||||
type ClusterGroupAssignmentMapOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ClusterGroupAssignmentMapOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*ClusterGroupAssignment)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentMapOutput) ToClusterGroupAssignmentMapOutput() ClusterGroupAssignmentMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentMapOutput) ToClusterGroupAssignmentMapOutputWithContext(ctx context.Context) ClusterGroupAssignmentMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupAssignmentMapOutput) MapIndex(k pulumi.StringInput) ClusterGroupAssignmentOutput {
|
||||
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterGroupAssignment {
|
||||
return vs[0].(map[string]*ClusterGroupAssignment)[vs[1].(string)]
|
||||
}).(ClusterGroupAssignmentOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupAssignmentInput)(nil)).Elem(), &ClusterGroupAssignment{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupAssignmentArrayInput)(nil)).Elem(), ClusterGroupAssignmentArray{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupAssignmentMapInput)(nil)).Elem(), ClusterGroupAssignmentMap{})
|
||||
pulumi.RegisterOutputType(ClusterGroupAssignmentOutput{})
|
||||
pulumi.RegisterOutputType(ClusterGroupAssignmentArrayOutput{})
|
||||
pulumi.RegisterOutputType(ClusterGroupAssignmentMapOutput{})
|
||||
}
|
||||
257
sdk/go/incus/clusterGroupMember.go
generated
Normal file
257
sdk/go/incus/clusterGroupMember.go
generated
Normal file
@@ -0,0 +1,257 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type ClusterGroupMember struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup pulumi.StringOutput `pulumi:"clusterGroup"`
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member pulumi.StringOutput `pulumi:"member"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrOutput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// NewClusterGroupMember registers a new resource with the given unique name, arguments, and options.
|
||||
func NewClusterGroupMember(ctx *pulumi.Context,
|
||||
name string, args *ClusterGroupMemberArgs, opts ...pulumi.ResourceOption) (*ClusterGroupMember, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.ClusterGroup == nil {
|
||||
return nil, errors.New("invalid value for required argument 'ClusterGroup'")
|
||||
}
|
||||
if args.Member == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Member'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource ClusterGroupMember
|
||||
err := ctx.RegisterResource("incus:index/clusterGroupMember:ClusterGroupMember", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetClusterGroupMember gets an existing ClusterGroupMember resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetClusterGroupMember(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *ClusterGroupMemberState, opts ...pulumi.ResourceOption) (*ClusterGroupMember, error) {
|
||||
var resource ClusterGroupMember
|
||||
err := ctx.ReadResource("incus:index/clusterGroupMember:ClusterGroupMember", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering ClusterGroupMember resources.
|
||||
type clusterGroupMemberState struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup *string `pulumi:"clusterGroup"`
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member *string `pulumi:"member"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
type ClusterGroupMemberState struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup pulumi.StringPtrInput
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ClusterGroupMemberState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*clusterGroupMemberState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type clusterGroupMemberArgs struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup string `pulumi:"clusterGroup"`
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member string `pulumi:"member"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a ClusterGroupMember resource.
|
||||
type ClusterGroupMemberArgs struct {
|
||||
// **Required** - Name of the cluster group.
|
||||
ClusterGroup pulumi.StringInput
|
||||
// **Required** - Name of the cluster group member.
|
||||
Member pulumi.StringInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ClusterGroupMemberArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*clusterGroupMemberArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ClusterGroupMemberInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToClusterGroupMemberOutput() ClusterGroupMemberOutput
|
||||
ToClusterGroupMemberOutputWithContext(ctx context.Context) ClusterGroupMemberOutput
|
||||
}
|
||||
|
||||
func (*ClusterGroupMember) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**ClusterGroupMember)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *ClusterGroupMember) ToClusterGroupMemberOutput() ClusterGroupMemberOutput {
|
||||
return i.ToClusterGroupMemberOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *ClusterGroupMember) ToClusterGroupMemberOutputWithContext(ctx context.Context) ClusterGroupMemberOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupMemberOutput)
|
||||
}
|
||||
|
||||
// ClusterGroupMemberArrayInput is an input type that accepts ClusterGroupMemberArray and ClusterGroupMemberArrayOutput values.
|
||||
// You can construct a concrete instance of `ClusterGroupMemberArrayInput` via:
|
||||
//
|
||||
// ClusterGroupMemberArray{ ClusterGroupMemberArgs{...} }
|
||||
type ClusterGroupMemberArrayInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToClusterGroupMemberArrayOutput() ClusterGroupMemberArrayOutput
|
||||
ToClusterGroupMemberArrayOutputWithContext(context.Context) ClusterGroupMemberArrayOutput
|
||||
}
|
||||
|
||||
type ClusterGroupMemberArray []ClusterGroupMemberInput
|
||||
|
||||
func (ClusterGroupMemberArray) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*ClusterGroupMember)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ClusterGroupMemberArray) ToClusterGroupMemberArrayOutput() ClusterGroupMemberArrayOutput {
|
||||
return i.ToClusterGroupMemberArrayOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ClusterGroupMemberArray) ToClusterGroupMemberArrayOutputWithContext(ctx context.Context) ClusterGroupMemberArrayOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupMemberArrayOutput)
|
||||
}
|
||||
|
||||
// ClusterGroupMemberMapInput is an input type that accepts ClusterGroupMemberMap and ClusterGroupMemberMapOutput values.
|
||||
// You can construct a concrete instance of `ClusterGroupMemberMapInput` via:
|
||||
//
|
||||
// ClusterGroupMemberMap{ "key": ClusterGroupMemberArgs{...} }
|
||||
type ClusterGroupMemberMapInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToClusterGroupMemberMapOutput() ClusterGroupMemberMapOutput
|
||||
ToClusterGroupMemberMapOutputWithContext(context.Context) ClusterGroupMemberMapOutput
|
||||
}
|
||||
|
||||
type ClusterGroupMemberMap map[string]ClusterGroupMemberInput
|
||||
|
||||
func (ClusterGroupMemberMap) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*ClusterGroupMember)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ClusterGroupMemberMap) ToClusterGroupMemberMapOutput() ClusterGroupMemberMapOutput {
|
||||
return i.ToClusterGroupMemberMapOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ClusterGroupMemberMap) ToClusterGroupMemberMapOutputWithContext(ctx context.Context) ClusterGroupMemberMapOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupMemberMapOutput)
|
||||
}
|
||||
|
||||
type ClusterGroupMemberOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ClusterGroupMemberOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**ClusterGroupMember)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberOutput) ToClusterGroupMemberOutput() ClusterGroupMemberOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberOutput) ToClusterGroupMemberOutputWithContext(ctx context.Context) ClusterGroupMemberOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// **Required** - Name of the cluster group.
|
||||
func (o ClusterGroupMemberOutput) ClusterGroup() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *ClusterGroupMember) pulumi.StringOutput { return v.ClusterGroup }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// **Required** - Name of the cluster group member.
|
||||
func (o ClusterGroupMemberOutput) Member() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *ClusterGroupMember) pulumi.StringOutput { return v.Member }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
func (o ClusterGroupMemberOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *ClusterGroupMember) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type ClusterGroupMemberArrayOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ClusterGroupMemberArrayOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*ClusterGroupMember)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberArrayOutput) ToClusterGroupMemberArrayOutput() ClusterGroupMemberArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberArrayOutput) ToClusterGroupMemberArrayOutputWithContext(ctx context.Context) ClusterGroupMemberArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberArrayOutput) Index(i pulumi.IntInput) ClusterGroupMemberOutput {
|
||||
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterGroupMember {
|
||||
return vs[0].([]*ClusterGroupMember)[vs[1].(int)]
|
||||
}).(ClusterGroupMemberOutput)
|
||||
}
|
||||
|
||||
type ClusterGroupMemberMapOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ClusterGroupMemberMapOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*ClusterGroupMember)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberMapOutput) ToClusterGroupMemberMapOutput() ClusterGroupMemberMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberMapOutput) ToClusterGroupMemberMapOutputWithContext(ctx context.Context) ClusterGroupMemberMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ClusterGroupMemberMapOutput) MapIndex(k pulumi.StringInput) ClusterGroupMemberOutput {
|
||||
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterGroupMember {
|
||||
return vs[0].(map[string]*ClusterGroupMember)[vs[1].(string)]
|
||||
}).(ClusterGroupMemberOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupMemberInput)(nil)).Elem(), &ClusterGroupMember{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupMemberArrayInput)(nil)).Elem(), ClusterGroupMemberArray{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupMemberMapInput)(nil)).Elem(), ClusterGroupMemberMap{})
|
||||
pulumi.RegisterOutputType(ClusterGroupMemberOutput{})
|
||||
pulumi.RegisterOutputType(ClusterGroupMemberArrayOutput{})
|
||||
pulumi.RegisterOutputType(ClusterGroupMemberMapOutput{})
|
||||
}
|
||||
10
sdk/go/incus/config/config.go
generated
10
sdk/go/incus/config/config.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package config
|
||||
@@ -21,13 +21,17 @@ func GetConfigDir(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "incus:configDir")
|
||||
}
|
||||
|
||||
// The default remote to use when no other remote is defined in a resource.
|
||||
func GetDefaultRemote(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "incus:defaultRemote")
|
||||
}
|
||||
|
||||
// Automatically generate the Incus client certificates if they don't exist.
|
||||
func GetGenerateClientCertificates(ctx *pulumi.Context) bool {
|
||||
return config.GetBool(ctx, "incus:generateClientCertificates")
|
||||
}
|
||||
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
// default)
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
func GetProject(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "incus:project")
|
||||
}
|
||||
|
||||
62
sdk/go/incus/config/pulumiTypes.go
generated
62
sdk/go/incus/config/pulumiTypes.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package config
|
||||
@@ -14,17 +14,17 @@ import (
|
||||
var _ = internal.GetEnvOrDefault
|
||||
|
||||
type Remotes struct {
|
||||
// The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
|
||||
// The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
|
||||
Address *string `pulumi:"address"`
|
||||
// Set this remote as default.
|
||||
Default *bool `pulumi:"default"`
|
||||
// Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
|
||||
// Server authentication type, tls or oidc. ( Only for the `incus` protocol )
|
||||
AuthenticationType *string `pulumi:"authenticationType"`
|
||||
// Name of the Incus remote.
|
||||
Name string `pulumi:"name"`
|
||||
// Port Incus Daemon API is listening on. (default = 8443)
|
||||
Port *string `pulumi:"port"`
|
||||
// Unix (unix) or HTTPs (https). (default = unix)
|
||||
Scheme *string `pulumi:"scheme"`
|
||||
// The trust token for the remote.
|
||||
// Server protocol ( incus, oci or simplestreams )
|
||||
Protocol *string `pulumi:"protocol"`
|
||||
// Public image server
|
||||
Public *bool `pulumi:"public"`
|
||||
// The trust token used for initial authentication with the Incus remote.
|
||||
Token *string `pulumi:"token"`
|
||||
}
|
||||
|
||||
@@ -40,17 +40,17 @@ type RemotesInput interface {
|
||||
}
|
||||
|
||||
type RemotesArgs struct {
|
||||
// The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
|
||||
// The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
|
||||
Address pulumi.StringPtrInput `pulumi:"address"`
|
||||
// Set this remote as default.
|
||||
Default pulumi.BoolPtrInput `pulumi:"default"`
|
||||
// Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
|
||||
// Server authentication type, tls or oidc. ( Only for the `incus` protocol )
|
||||
AuthenticationType pulumi.StringPtrInput `pulumi:"authenticationType"`
|
||||
// Name of the Incus remote.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// Port Incus Daemon API is listening on. (default = 8443)
|
||||
Port pulumi.StringPtrInput `pulumi:"port"`
|
||||
// Unix (unix) or HTTPs (https). (default = unix)
|
||||
Scheme pulumi.StringPtrInput `pulumi:"scheme"`
|
||||
// The trust token for the remote.
|
||||
// Server protocol ( incus, oci or simplestreams )
|
||||
Protocol pulumi.StringPtrInput `pulumi:"protocol"`
|
||||
// Public image server
|
||||
Public pulumi.BoolPtrInput `pulumi:"public"`
|
||||
// The trust token used for initial authentication with the Incus remote.
|
||||
Token pulumi.StringPtrInput `pulumi:"token"`
|
||||
}
|
||||
|
||||
@@ -105,32 +105,32 @@ func (o RemotesOutput) ToRemotesOutputWithContext(ctx context.Context) RemotesOu
|
||||
return o
|
||||
}
|
||||
|
||||
// The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
|
||||
// The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
|
||||
func (o RemotesOutput) Address() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *string { return v.Address }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Set this remote as default.
|
||||
func (o RemotesOutput) Default() pulumi.BoolPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *bool { return v.Default }).(pulumi.BoolPtrOutput)
|
||||
// Server authentication type, tls or oidc. ( Only for the `incus` protocol )
|
||||
func (o RemotesOutput) AuthenticationType() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *string { return v.AuthenticationType }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
|
||||
// Name of the Incus remote.
|
||||
func (o RemotesOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v Remotes) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Port Incus Daemon API is listening on. (default = 8443)
|
||||
func (o RemotesOutput) Port() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *string { return v.Port }).(pulumi.StringPtrOutput)
|
||||
// Server protocol ( incus, oci or simplestreams )
|
||||
func (o RemotesOutput) Protocol() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *string { return v.Protocol }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Unix (unix) or HTTPs (https). (default = unix)
|
||||
func (o RemotesOutput) Scheme() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *string { return v.Scheme }).(pulumi.StringPtrOutput)
|
||||
// Public image server
|
||||
func (o RemotesOutput) Public() pulumi.BoolPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *bool { return v.Public }).(pulumi.BoolPtrOutput)
|
||||
}
|
||||
|
||||
// The trust token for the remote.
|
||||
// The trust token used for initial authentication with the Incus remote.
|
||||
func (o RemotesOutput) Token() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v Remotes) *string { return v.Token }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
204
sdk/go/incus/getCluster.go
generated
Normal file
204
sdk/go/incus/getCluster.go
generated
Normal file
@@ -0,0 +1,204 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # getCluster
|
||||
//
|
||||
// Provides information about an Incus cluster.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// _, err := incus.GetCluster(ctx, &incus.GetClusterArgs{}, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
//
|
||||
// ## Example prevent execution if any cluster member is not online
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// _, err := incus.GetCluster(ctx, &incus.GetClusterArgs{
|
||||
// Remote: pulumi.StringRef("cluster"),
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
//
|
||||
// ## Example create resource for each cluster member
|
||||
//
|
||||
// In this example, we define the server configuration [`core.bgp_address`](https://linuxcontainers.org/incus/docs/main/server_config/#core-configuration),
|
||||
//
|
||||
// which has scope `local`, on each cluster member.
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.GetCluster(ctx, &incus.GetClusterArgs{}, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// var tmp0 pulumi.String
|
||||
// if this.IsClustered {
|
||||
// tmp0 = pulumi.String(key0)
|
||||
// } else {
|
||||
// tmp0 = nil
|
||||
// }
|
||||
// var nodes []*incus.Server
|
||||
// for key0, _ := range this.Members {
|
||||
// __res, err := incus.NewServer(ctx, fmt.Sprintf("nodes-%v", key0), &incus.ServerArgs{
|
||||
// Target: pulumi.String(tmp0),
|
||||
// Config: pulumi.StringMap{
|
||||
// "core.bgp_address": pulumi.String(":179"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// nodes = append(nodes, __res)
|
||||
// }
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
//
|
||||
// ## Notes
|
||||
//
|
||||
// * For non-clustered setups, the `members` attribute will be `null`.
|
||||
func GetCluster(ctx *pulumi.Context, args *GetClusterArgs, opts ...pulumi.InvokeOption) (*GetClusterResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv GetClusterResult
|
||||
err := ctx.Invoke("incus:index/getCluster:getCluster", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getCluster.
|
||||
type GetClusterArgs struct {
|
||||
// *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 `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getCluster.
|
||||
type GetClusterResult struct {
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
// Whether this is a clustered setup.
|
||||
IsClustered bool `pulumi:"isClustered"`
|
||||
// A map of cluster members. The key is the member name and the value
|
||||
// is a member object. See reference below.
|
||||
Members map[string]GetClusterMembers `pulumi:"members"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func GetClusterOutput(ctx *pulumi.Context, args GetClusterOutputArgs, opts ...pulumi.InvokeOption) GetClusterResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (GetClusterResultOutput, error) {
|
||||
args := v.(GetClusterArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getCluster:getCluster", args, GetClusterResultOutput{}, options).(GetClusterResultOutput), nil
|
||||
}).(GetClusterResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getCluster.
|
||||
type GetClusterOutputArgs struct {
|
||||
// *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.StringPtrInput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func (GetClusterOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*GetClusterArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getCluster.
|
||||
type GetClusterResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (GetClusterResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*GetClusterResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o GetClusterResultOutput) ToGetClusterResultOutput() GetClusterResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o GetClusterResultOutput) ToGetClusterResultOutputWithContext(ctx context.Context) GetClusterResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o GetClusterResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v GetClusterResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Whether this is a clustered setup.
|
||||
func (o GetClusterResultOutput) IsClustered() pulumi.BoolOutput {
|
||||
return o.ApplyT(func(v GetClusterResult) bool { return v.IsClustered }).(pulumi.BoolOutput)
|
||||
}
|
||||
|
||||
// A map of cluster members. The key is the member name and the value
|
||||
// is a member object. See reference below.
|
||||
func (o GetClusterResultOutput) Members() GetClusterMembersMapOutput {
|
||||
return o.ApplyT(func(v GetClusterResult) map[string]GetClusterMembers { return v.Members }).(GetClusterMembersMapOutput)
|
||||
}
|
||||
|
||||
func (o GetClusterResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v GetClusterResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(GetClusterResultOutput{})
|
||||
}
|
||||
2
sdk/go/incus/getImage.go
generated
2
sdk/go/incus/getImage.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
247
sdk/go/incus/getInstance.go
generated
Normal file
247
sdk/go/incus/getInstance.go
generated
Normal file
@@ -0,0 +1,247 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # Instance
|
||||
//
|
||||
// Provides information about an Incus instance.
|
||||
// See Incus instance [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/instance_config/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupInstance(ctx, &incus.LookupInstanceArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("instanceName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupInstance(ctx *pulumi.Context, args *LookupInstanceArgs, opts ...pulumi.InvokeOption) (*LookupInstanceResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupInstanceResult
|
||||
err := ctx.Invoke("incus:index/getInstance:getInstance", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getInstance.
|
||||
type LookupInstanceArgs struct {
|
||||
// Architecture name.
|
||||
Architecture *string `pulumi:"architecture"`
|
||||
// Description of the instance.
|
||||
Description *string `pulumi:"description"`
|
||||
// Device definitions. See reference below.
|
||||
Devices []GetInstanceDevice `pulumi:"devices"`
|
||||
// Whether the instance is ephemeral (deleted on shutdown).
|
||||
Ephemeral *bool `pulumi:"ephemeral"`
|
||||
// Location of the instance.
|
||||
Location *string `pulumi:"location"`
|
||||
// **Required** - Name of the instance.
|
||||
Name string `pulumi:"name"`
|
||||
// List of profiles applied to the instance.
|
||||
Profiles []string `pulumi:"profiles"`
|
||||
// *Optional* - Name of the project where the instance is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Whether the instance is stateful.
|
||||
Stateful *bool `pulumi:"stateful"`
|
||||
// Status of the instance.
|
||||
Status *string `pulumi:"status"`
|
||||
// Type of the device Must be one of none, disk, nic,
|
||||
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
Type *string `pulumi:"type"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getInstance.
|
||||
type LookupInstanceResult struct {
|
||||
// Architecture name.
|
||||
Architecture string `pulumi:"architecture"`
|
||||
// Map of key/value pairs of config settings.
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the instance.
|
||||
Description string `pulumi:"description"`
|
||||
// Device definitions. See reference below.
|
||||
Devices []GetInstanceDevice `pulumi:"devices"`
|
||||
// Whether the instance is ephemeral (deleted on shutdown).
|
||||
Ephemeral bool `pulumi:"ephemeral"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
// Location of the instance.
|
||||
Location string `pulumi:"location"`
|
||||
// Name of the device.
|
||||
Name string `pulumi:"name"`
|
||||
// List of profiles applied to the instance.
|
||||
Profiles []string `pulumi:"profiles"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Whether the instance is stateful.
|
||||
Stateful bool `pulumi:"stateful"`
|
||||
// Status of the instance.
|
||||
Status string `pulumi:"status"`
|
||||
// Type of the device Must be one of none, disk, nic,
|
||||
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
Type string `pulumi:"type"`
|
||||
}
|
||||
|
||||
func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) {
|
||||
args := v.(LookupInstanceArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil
|
||||
}).(LookupInstanceResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getInstance.
|
||||
type LookupInstanceOutputArgs struct {
|
||||
// Architecture name.
|
||||
Architecture pulumi.StringPtrInput `pulumi:"architecture"`
|
||||
// Description of the instance.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// Device definitions. See reference below.
|
||||
Devices GetInstanceDeviceArrayInput `pulumi:"devices"`
|
||||
// Whether the instance is ephemeral (deleted on shutdown).
|
||||
Ephemeral pulumi.BoolPtrInput `pulumi:"ephemeral"`
|
||||
// Location of the instance.
|
||||
Location pulumi.StringPtrInput `pulumi:"location"`
|
||||
// **Required** - Name of the instance.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// List of profiles applied to the instance.
|
||||
Profiles pulumi.StringArrayInput `pulumi:"profiles"`
|
||||
// *Optional* - Name of the project where the instance is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// Whether the instance is stateful.
|
||||
Stateful pulumi.BoolPtrInput `pulumi:"stateful"`
|
||||
// Status of the instance.
|
||||
Status pulumi.StringPtrInput `pulumi:"status"`
|
||||
// Type of the device Must be one of none, disk, nic,
|
||||
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
Type pulumi.StringPtrInput `pulumi:"type"`
|
||||
}
|
||||
|
||||
func (LookupInstanceOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupInstanceArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getInstance.
|
||||
type LookupInstanceResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupInstanceResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupInstanceResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupInstanceResultOutput) ToLookupInstanceResultOutput() LookupInstanceResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupInstanceResultOutput) ToLookupInstanceResultOutputWithContext(ctx context.Context) LookupInstanceResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Architecture name.
|
||||
func (o LookupInstanceResultOutput) Architecture() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) string { return v.Architecture }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
func (o LookupInstanceResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the instance.
|
||||
func (o LookupInstanceResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Device definitions. See reference below.
|
||||
func (o LookupInstanceResultOutput) Devices() GetInstanceDeviceArrayOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) []GetInstanceDevice { return v.Devices }).(GetInstanceDeviceArrayOutput)
|
||||
}
|
||||
|
||||
// Whether the instance is ephemeral (deleted on shutdown).
|
||||
func (o LookupInstanceResultOutput) Ephemeral() pulumi.BoolOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) bool { return v.Ephemeral }).(pulumi.BoolOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupInstanceResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Location of the instance.
|
||||
func (o LookupInstanceResultOutput) Location() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) string { return v.Location }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Name of the device.
|
||||
func (o LookupInstanceResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// List of profiles applied to the instance.
|
||||
func (o LookupInstanceResultOutput) Profiles() pulumi.StringArrayOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) []string { return v.Profiles }).(pulumi.StringArrayOutput)
|
||||
}
|
||||
|
||||
func (o LookupInstanceResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupInstanceResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Whether the instance is stateful.
|
||||
func (o LookupInstanceResultOutput) Stateful() pulumi.BoolOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) bool { return v.Stateful }).(pulumi.BoolOutput)
|
||||
}
|
||||
|
||||
// Status of the instance.
|
||||
func (o LookupInstanceResultOutput) Status() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) string { return v.Status }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Type of the device Must be one of none, disk, nic,
|
||||
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
func (o LookupInstanceResultOutput) Type() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupInstanceResult) string { return v.Type }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupInstanceResultOutput{})
|
||||
}
|
||||
210
sdk/go/incus/getNetwork.go
generated
Normal file
210
sdk/go/incus/getNetwork.go
generated
Normal file
@@ -0,0 +1,210 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # Network
|
||||
//
|
||||
// Provides information about an Incus network.
|
||||
// See Incus network [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/networks/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetwork(ctx, &incus.LookupNetworkArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetwork(ctx *pulumi.Context, args *LookupNetworkArgs, opts ...pulumi.InvokeOption) (*LookupNetworkResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkResult
|
||||
err := ctx.Invoke("incus:index/getNetwork:getNetwork", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetwork.
|
||||
type LookupNetworkArgs struct {
|
||||
// Description of the network.
|
||||
Description *string `pulumi:"description"`
|
||||
// Locations of the network.
|
||||
Locations []string `pulumi:"locations"`
|
||||
// Whether the network is managed by Incus.
|
||||
Managed *bool `pulumi:"managed"`
|
||||
// **Required** - Name of the network.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Status of the network.
|
||||
Status *string `pulumi:"status"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target *string `pulumi:"target"`
|
||||
// Network type.
|
||||
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
Type *string `pulumi:"type"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetwork.
|
||||
type LookupNetworkResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
// [network config settings](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the network.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
// Locations of the network.
|
||||
Locations []string `pulumi:"locations"`
|
||||
// Whether the network is managed by Incus.
|
||||
Managed bool `pulumi:"managed"`
|
||||
Name string `pulumi:"name"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Status of the network.
|
||||
Status string `pulumi:"status"`
|
||||
Target *string `pulumi:"target"`
|
||||
// Network type.
|
||||
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
Type string `pulumi:"type"`
|
||||
}
|
||||
|
||||
func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkResultOutput, error) {
|
||||
args := v.(LookupNetworkArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetwork:getNetwork", args, LookupNetworkResultOutput{}, options).(LookupNetworkResultOutput), nil
|
||||
}).(LookupNetworkResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetwork.
|
||||
type LookupNetworkOutputArgs struct {
|
||||
// Description of the network.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// Locations of the network.
|
||||
Locations pulumi.StringArrayInput `pulumi:"locations"`
|
||||
// Whether the network is managed by Incus.
|
||||
Managed pulumi.BoolPtrInput `pulumi:"managed"`
|
||||
// **Required** - Name of the network.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// Status of the network.
|
||||
Status pulumi.StringPtrInput `pulumi:"status"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target pulumi.StringPtrInput `pulumi:"target"`
|
||||
// Network type.
|
||||
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
Type pulumi.StringPtrInput `pulumi:"type"`
|
||||
}
|
||||
|
||||
func (LookupNetworkOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetwork.
|
||||
type LookupNetworkResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkResultOutput) ToLookupNetworkResultOutput() LookupNetworkResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkResultOutput) ToLookupNetworkResultOutputWithContext(ctx context.Context) LookupNetworkResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
// [network config settings](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
func (o LookupNetworkResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the network.
|
||||
func (o LookupNetworkResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Locations of the network.
|
||||
func (o LookupNetworkResultOutput) Locations() pulumi.StringArrayOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) []string { return v.Locations }).(pulumi.StringArrayOutput)
|
||||
}
|
||||
|
||||
// Whether the network is managed by Incus.
|
||||
func (o LookupNetworkResultOutput) Managed() pulumi.BoolOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) bool { return v.Managed }).(pulumi.BoolOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Status of the network.
|
||||
func (o LookupNetworkResultOutput) Status() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) string { return v.Status }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkResultOutput) Target() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) *string { return v.Target }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Network type.
|
||||
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
|
||||
func (o LookupNetworkResultOutput) Type() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkResult) string { return v.Type }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkResultOutput{})
|
||||
}
|
||||
173
sdk/go/incus/getNetworkAcl.go
generated
Normal file
173
sdk/go/incus/getNetworkAcl.go
generated
Normal file
@@ -0,0 +1,173 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # NetworkAcl
|
||||
//
|
||||
// Provides information about an Incus network ACL.
|
||||
// See Incus network ACL [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_acls/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetworkAcl(ctx, &incus.LookupNetworkAclArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkAclName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetworkAcl(ctx *pulumi.Context, args *LookupNetworkAclArgs, opts ...pulumi.InvokeOption) (*LookupNetworkAclResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkAclResult
|
||||
err := ctx.Invoke("incus:index/getNetworkAcl:getNetworkAcl", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkAcl.
|
||||
type LookupNetworkAclArgs struct {
|
||||
// Description of the rule.
|
||||
Description *string `pulumi:"description"`
|
||||
// List of egress rules.
|
||||
Egresses []GetNetworkAclEgress `pulumi:"egresses"`
|
||||
// List of ingress rules.
|
||||
Ingresses []GetNetworkAclIngress `pulumi:"ingresses"`
|
||||
// **Required** - Name of the network ACL.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network ACL is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkAcl.
|
||||
type LookupNetworkAclResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the rule.
|
||||
Description string `pulumi:"description"`
|
||||
// List of egress rules.
|
||||
Egresses []GetNetworkAclEgress `pulumi:"egresses"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
// List of ingress rules.
|
||||
Ingresses []GetNetworkAclIngress `pulumi:"ingresses"`
|
||||
Name string `pulumi:"name"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func LookupNetworkAclOutput(ctx *pulumi.Context, args LookupNetworkAclOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkAclResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkAclResultOutput, error) {
|
||||
args := v.(LookupNetworkAclArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetworkAcl:getNetworkAcl", args, LookupNetworkAclResultOutput{}, options).(LookupNetworkAclResultOutput), nil
|
||||
}).(LookupNetworkAclResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkAcl.
|
||||
type LookupNetworkAclOutputArgs struct {
|
||||
// Description of the rule.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// List of egress rules.
|
||||
Egresses GetNetworkAclEgressArrayInput `pulumi:"egresses"`
|
||||
// List of ingress rules.
|
||||
Ingresses GetNetworkAclIngressArrayInput `pulumi:"ingresses"`
|
||||
// **Required** - Name of the network ACL.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network ACL is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func (LookupNetworkAclOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkAclArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkAcl.
|
||||
type LookupNetworkAclResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkAclResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkAclResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkAclResultOutput) ToLookupNetworkAclResultOutput() LookupNetworkAclResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkAclResultOutput) ToLookupNetworkAclResultOutputWithContext(ctx context.Context) LookupNetworkAclResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
func (o LookupNetworkAclResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the rule.
|
||||
func (o LookupNetworkAclResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// List of egress rules.
|
||||
func (o LookupNetworkAclResultOutput) Egresses() GetNetworkAclEgressArrayOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) []GetNetworkAclEgress { return v.Egresses }).(GetNetworkAclEgressArrayOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkAclResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// List of ingress rules.
|
||||
func (o LookupNetworkAclResultOutput) Ingresses() GetNetworkAclIngressArrayOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) []GetNetworkAclIngress { return v.Ingresses }).(GetNetworkAclIngressArrayOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkAclResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkAclResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkAclResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAclResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkAclResultOutput{})
|
||||
}
|
||||
162
sdk/go/incus/getNetworkAddressSet.go
generated
Normal file
162
sdk/go/incus/getNetworkAddressSet.go
generated
Normal file
@@ -0,0 +1,162 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # NetworkAddressSet
|
||||
//
|
||||
// Provides information about an Incus network address set.
|
||||
// See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetworkAddressSet(ctx, &incus.LookupNetworkAddressSetArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkAddressSetName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetworkAddressSet(ctx *pulumi.Context, args *LookupNetworkAddressSetArgs, opts ...pulumi.InvokeOption) (*LookupNetworkAddressSetResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkAddressSetResult
|
||||
err := ctx.Invoke("incus:index/getNetworkAddressSet:getNetworkAddressSet", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkAddressSet.
|
||||
type LookupNetworkAddressSetArgs struct {
|
||||
// List of network addresses.
|
||||
Addresses []string `pulumi:"addresses"`
|
||||
// Description of the network address set.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network address set.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network address set is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkAddressSet.
|
||||
type LookupNetworkAddressSetResult struct {
|
||||
// List of network addresses.
|
||||
Addresses []string `pulumi:"addresses"`
|
||||
// Map of key/value pairs of config settings.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the network address set.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
Name string `pulumi:"name"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func LookupNetworkAddressSetOutput(ctx *pulumi.Context, args LookupNetworkAddressSetOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkAddressSetResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkAddressSetResultOutput, error) {
|
||||
args := v.(LookupNetworkAddressSetArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetworkAddressSet:getNetworkAddressSet", args, LookupNetworkAddressSetResultOutput{}, options).(LookupNetworkAddressSetResultOutput), nil
|
||||
}).(LookupNetworkAddressSetResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkAddressSet.
|
||||
type LookupNetworkAddressSetOutputArgs struct {
|
||||
// List of network addresses.
|
||||
Addresses pulumi.StringArrayInput `pulumi:"addresses"`
|
||||
// Description of the network address set.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Name of the network address set.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network address set is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func (LookupNetworkAddressSetOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkAddressSetArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkAddressSet.
|
||||
type LookupNetworkAddressSetResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkAddressSetResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkAddressSetResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkAddressSetResultOutput) ToLookupNetworkAddressSetResultOutput() LookupNetworkAddressSetResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkAddressSetResultOutput) ToLookupNetworkAddressSetResultOutputWithContext(ctx context.Context) LookupNetworkAddressSetResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// List of network addresses.
|
||||
func (o LookupNetworkAddressSetResultOutput) Addresses() pulumi.StringArrayOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAddressSetResult) []string { return v.Addresses }).(pulumi.StringArrayOutput)
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
func (o LookupNetworkAddressSetResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAddressSetResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the network address set.
|
||||
func (o LookupNetworkAddressSetResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAddressSetResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkAddressSetResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAddressSetResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkAddressSetResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAddressSetResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkAddressSetResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAddressSetResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkAddressSetResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkAddressSetResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkAddressSetResultOutput{})
|
||||
}
|
||||
192
sdk/go/incus/getNetworkForward.go
generated
Normal file
192
sdk/go/incus/getNetworkForward.go
generated
Normal file
@@ -0,0 +1,192 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # NetworkForward
|
||||
//
|
||||
// Provides information about an Incus network forward.
|
||||
// See Incus network forward [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_forwards/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetworkForward(ctx, &incus.LookupNetworkForwardArgs{
|
||||
// ListenAddress: "127.0.0.1",
|
||||
// Network: "parent",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkForwardListenAddress", this.ListenAddress)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetworkForward(ctx *pulumi.Context, args *LookupNetworkForwardArgs, opts ...pulumi.InvokeOption) (*LookupNetworkForwardResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkForwardResult
|
||||
err := ctx.Invoke("incus:index/getNetworkForward:getNetworkForward", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkForward.
|
||||
type LookupNetworkForwardArgs struct {
|
||||
// Description of the forward port.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Listen Address of the network forward.
|
||||
ListenAddress string `pulumi:"listenAddress"`
|
||||
// Location of the network forward.
|
||||
Location *string `pulumi:"location"`
|
||||
// **Required** - Name of the parent network.
|
||||
Network string `pulumi:"network"`
|
||||
// List of ports to forward.
|
||||
Ports []GetNetworkForwardPort `pulumi:"ports"`
|
||||
// *Optional* - Name of the project where the network forward is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkForward.
|
||||
type LookupNetworkForwardResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the forward port.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
ListenAddress string `pulumi:"listenAddress"`
|
||||
// Location of the network forward.
|
||||
Location string `pulumi:"location"`
|
||||
Network string `pulumi:"network"`
|
||||
// List of ports to forward.
|
||||
Ports []GetNetworkForwardPort `pulumi:"ports"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
func LookupNetworkForwardOutput(ctx *pulumi.Context, args LookupNetworkForwardOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkForwardResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkForwardResultOutput, error) {
|
||||
args := v.(LookupNetworkForwardArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetworkForward:getNetworkForward", args, LookupNetworkForwardResultOutput{}, options).(LookupNetworkForwardResultOutput), nil
|
||||
}).(LookupNetworkForwardResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkForward.
|
||||
type LookupNetworkForwardOutputArgs struct {
|
||||
// Description of the forward port.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Listen Address of the network forward.
|
||||
ListenAddress pulumi.StringInput `pulumi:"listenAddress"`
|
||||
// Location of the network forward.
|
||||
Location pulumi.StringPtrInput `pulumi:"location"`
|
||||
// **Required** - Name of the parent network.
|
||||
Network pulumi.StringInput `pulumi:"network"`
|
||||
// List of ports to forward.
|
||||
Ports GetNetworkForwardPortArrayInput `pulumi:"ports"`
|
||||
// *Optional* - Name of the project where the network forward is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target pulumi.StringPtrInput `pulumi:"target"`
|
||||
}
|
||||
|
||||
func (LookupNetworkForwardOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkForwardArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkForward.
|
||||
type LookupNetworkForwardResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkForwardResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkForwardResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkForwardResultOutput) ToLookupNetworkForwardResultOutput() LookupNetworkForwardResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkForwardResultOutput) ToLookupNetworkForwardResultOutputWithContext(ctx context.Context) LookupNetworkForwardResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
func (o LookupNetworkForwardResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the forward port.
|
||||
func (o LookupNetworkForwardResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkForwardResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkForwardResultOutput) ListenAddress() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.ListenAddress }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Location of the network forward.
|
||||
func (o LookupNetworkForwardResultOutput) Location() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Location }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkForwardResultOutput) Network() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Network }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// List of ports to forward.
|
||||
func (o LookupNetworkForwardResultOutput) Ports() GetNetworkForwardPortArrayOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) []GetNetworkForwardPort { return v.Ports }).(GetNetworkForwardPortArrayOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkForwardResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkForwardResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkForwardResultOutput) Target() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkForwardResult) *string { return v.Target }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkForwardResultOutput{})
|
||||
}
|
||||
153
sdk/go/incus/getNetworkIntegration.go
generated
Normal file
153
sdk/go/incus/getNetworkIntegration.go
generated
Normal file
@@ -0,0 +1,153 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # NetworkIntegration
|
||||
//
|
||||
// Provides information about an Incus network integration.
|
||||
// See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetworkIntegration(ctx, &incus.LookupNetworkIntegrationArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkIntegrationName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetworkIntegration(ctx *pulumi.Context, args *LookupNetworkIntegrationArgs, opts ...pulumi.InvokeOption) (*LookupNetworkIntegrationResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkIntegrationResult
|
||||
err := ctx.Invoke("incus:index/getNetworkIntegration:getNetworkIntegration", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkIntegration.
|
||||
type LookupNetworkIntegrationArgs struct {
|
||||
// Description of the network integration.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network integration.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Integration type.
|
||||
Type *string `pulumi:"type"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkIntegration.
|
||||
type LookupNetworkIntegrationResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the network integration.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
Name string `pulumi:"name"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Integration type.
|
||||
Type string `pulumi:"type"`
|
||||
}
|
||||
|
||||
func LookupNetworkIntegrationOutput(ctx *pulumi.Context, args LookupNetworkIntegrationOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkIntegrationResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkIntegrationResultOutput, error) {
|
||||
args := v.(LookupNetworkIntegrationArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetworkIntegration:getNetworkIntegration", args, LookupNetworkIntegrationResultOutput{}, options).(LookupNetworkIntegrationResultOutput), nil
|
||||
}).(LookupNetworkIntegrationResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkIntegration.
|
||||
type LookupNetworkIntegrationOutputArgs struct {
|
||||
// Description of the network integration.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Name of the network integration.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// Integration type.
|
||||
Type pulumi.StringPtrInput `pulumi:"type"`
|
||||
}
|
||||
|
||||
func (LookupNetworkIntegrationOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkIntegrationArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkIntegration.
|
||||
type LookupNetworkIntegrationResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkIntegrationResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkIntegrationResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkIntegrationResultOutput) ToLookupNetworkIntegrationResultOutput() LookupNetworkIntegrationResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkIntegrationResultOutput) ToLookupNetworkIntegrationResultOutputWithContext(ctx context.Context) LookupNetworkIntegrationResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
func (o LookupNetworkIntegrationResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkIntegrationResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the network integration.
|
||||
func (o LookupNetworkIntegrationResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkIntegrationResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkIntegrationResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkIntegrationResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkIntegrationResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Integration type.
|
||||
func (o LookupNetworkIntegrationResultOutput) Type() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Type }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkIntegrationResultOutput{})
|
||||
}
|
||||
194
sdk/go/incus/getNetworkLoadBalancer.go
generated
Normal file
194
sdk/go/incus/getNetworkLoadBalancer.go
generated
Normal file
@@ -0,0 +1,194 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # getNetworkLoadBalancer
|
||||
//
|
||||
// Provides information about an Incus network load balancer.
|
||||
// See Incus network load balancer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_load_balancers/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetworkLoadBalancer(ctx, &incus.LookupNetworkLoadBalancerArgs{
|
||||
// ListenAddress: "127.0.0.1",
|
||||
// Network: "parent",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkLoadBalancerListenAddress", this.ListenAddress)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetworkLoadBalancer(ctx *pulumi.Context, args *LookupNetworkLoadBalancerArgs, opts ...pulumi.InvokeOption) (*LookupNetworkLoadBalancerResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkLoadBalancerResult
|
||||
err := ctx.Invoke("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkLoadBalancer.
|
||||
type LookupNetworkLoadBalancerArgs struct {
|
||||
// List of load balancer backends.
|
||||
Backends []GetNetworkLoadBalancerBackend `pulumi:"backends"`
|
||||
// Description of the load balancer port.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Listen Address of the network load balancer.
|
||||
ListenAddress string `pulumi:"listenAddress"`
|
||||
// Location of the network load balancer.
|
||||
Location *string `pulumi:"location"`
|
||||
// **Required** - Name of the parent network.
|
||||
Network string `pulumi:"network"`
|
||||
// List of load balancer ports.
|
||||
Ports []GetNetworkLoadBalancerPort `pulumi:"ports"`
|
||||
// *Optional* - Name of the project where the network load balancer is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkLoadBalancer.
|
||||
type LookupNetworkLoadBalancerResult struct {
|
||||
// List of load balancer backends.
|
||||
Backends []GetNetworkLoadBalancerBackend `pulumi:"backends"`
|
||||
// Map of key/value pairs of config settings.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the load balancer port.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
ListenAddress string `pulumi:"listenAddress"`
|
||||
// Location of the network load balancer.
|
||||
Location string `pulumi:"location"`
|
||||
Network string `pulumi:"network"`
|
||||
// List of load balancer ports.
|
||||
Ports []GetNetworkLoadBalancerPort `pulumi:"ports"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func LookupNetworkLoadBalancerOutput(ctx *pulumi.Context, args LookupNetworkLoadBalancerOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkLoadBalancerResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkLoadBalancerResultOutput, error) {
|
||||
args := v.(LookupNetworkLoadBalancerArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", args, LookupNetworkLoadBalancerResultOutput{}, options).(LookupNetworkLoadBalancerResultOutput), nil
|
||||
}).(LookupNetworkLoadBalancerResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkLoadBalancer.
|
||||
type LookupNetworkLoadBalancerOutputArgs struct {
|
||||
// List of load balancer backends.
|
||||
Backends GetNetworkLoadBalancerBackendArrayInput `pulumi:"backends"`
|
||||
// Description of the load balancer port.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Listen Address of the network load balancer.
|
||||
ListenAddress pulumi.StringInput `pulumi:"listenAddress"`
|
||||
// Location of the network load balancer.
|
||||
Location pulumi.StringPtrInput `pulumi:"location"`
|
||||
// **Required** - Name of the parent network.
|
||||
Network pulumi.StringInput `pulumi:"network"`
|
||||
// List of load balancer ports.
|
||||
Ports GetNetworkLoadBalancerPortArrayInput `pulumi:"ports"`
|
||||
// *Optional* - Name of the project where the network load balancer is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func (LookupNetworkLoadBalancerOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkLoadBalancerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkLoadBalancer.
|
||||
type LookupNetworkLoadBalancerResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkLoadBalancerResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkLoadBalancerResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkLoadBalancerResultOutput) ToLookupNetworkLoadBalancerResultOutput() LookupNetworkLoadBalancerResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkLoadBalancerResultOutput) ToLookupNetworkLoadBalancerResultOutputWithContext(ctx context.Context) LookupNetworkLoadBalancerResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// List of load balancer backends.
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Backends() GetNetworkLoadBalancerBackendArrayOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) []GetNetworkLoadBalancerBackend { return v.Backends }).(GetNetworkLoadBalancerBackendArrayOutput)
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the load balancer port.
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkLoadBalancerResultOutput) ListenAddress() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.ListenAddress }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Location of the network load balancer.
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Location() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Location }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Network() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Network }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// List of load balancer ports.
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Ports() GetNetworkLoadBalancerPortArrayOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) []GetNetworkLoadBalancerPort { return v.Ports }).(GetNetworkLoadBalancerPortArrayOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkLoadBalancerResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkLoadBalancerResultOutput{})
|
||||
}
|
||||
216
sdk/go/incus/getNetworkPeer.go
generated
Normal file
216
sdk/go/incus/getNetworkPeer.go
generated
Normal file
@@ -0,0 +1,216 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # NetworkPeer
|
||||
//
|
||||
// Provides information about an Incus network peer.
|
||||
// See Incus network peer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_peers/https://linuxcontainers.org/incus/docs/main/howto/network_ovn_peers/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetworkPeer(ctx, &incus.LookupNetworkPeerArgs{
|
||||
// Name: "default",
|
||||
// Network: "parent",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkPeerName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetworkPeer(ctx *pulumi.Context, args *LookupNetworkPeerArgs, opts ...pulumi.InvokeOption) (*LookupNetworkPeerResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkPeerResult
|
||||
err := ctx.Invoke("incus:index/getNetworkPeer:getNetworkPeer", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkPeer.
|
||||
type LookupNetworkPeerArgs struct {
|
||||
// Description of the network peer.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network peer.
|
||||
Name string `pulumi:"name"`
|
||||
// **Required** - Name of the parent network.
|
||||
Network string `pulumi:"network"`
|
||||
// *Optional* - Name of the project where the network peer is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Status of the network peer.
|
||||
Status *string `pulumi:"status"`
|
||||
// Target integration for the network peer.
|
||||
TargetIntegration *string `pulumi:"targetIntegration"`
|
||||
// Target network for the network peer.
|
||||
TargetNetwork *string `pulumi:"targetNetwork"`
|
||||
// Target project for the network peer.
|
||||
TargetProject *string `pulumi:"targetProject"`
|
||||
// Network peer type.
|
||||
Type *string `pulumi:"type"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkPeer.
|
||||
type LookupNetworkPeerResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the network peer.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
Name string `pulumi:"name"`
|
||||
Network string `pulumi:"network"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Status of the network peer.
|
||||
Status string `pulumi:"status"`
|
||||
// Target integration for the network peer.
|
||||
TargetIntegration string `pulumi:"targetIntegration"`
|
||||
// Target network for the network peer.
|
||||
TargetNetwork string `pulumi:"targetNetwork"`
|
||||
// Target project for the network peer.
|
||||
TargetProject string `pulumi:"targetProject"`
|
||||
// Network peer type.
|
||||
Type string `pulumi:"type"`
|
||||
}
|
||||
|
||||
func LookupNetworkPeerOutput(ctx *pulumi.Context, args LookupNetworkPeerOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPeerResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkPeerResultOutput, error) {
|
||||
args := v.(LookupNetworkPeerArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetworkPeer:getNetworkPeer", args, LookupNetworkPeerResultOutput{}, options).(LookupNetworkPeerResultOutput), nil
|
||||
}).(LookupNetworkPeerResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkPeer.
|
||||
type LookupNetworkPeerOutputArgs struct {
|
||||
// Description of the network peer.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Name of the network peer.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// **Required** - Name of the parent network.
|
||||
Network pulumi.StringInput `pulumi:"network"`
|
||||
// *Optional* - Name of the project where the network peer is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// Status of the network peer.
|
||||
Status pulumi.StringPtrInput `pulumi:"status"`
|
||||
// Target integration for the network peer.
|
||||
TargetIntegration pulumi.StringPtrInput `pulumi:"targetIntegration"`
|
||||
// Target network for the network peer.
|
||||
TargetNetwork pulumi.StringPtrInput `pulumi:"targetNetwork"`
|
||||
// Target project for the network peer.
|
||||
TargetProject pulumi.StringPtrInput `pulumi:"targetProject"`
|
||||
// Network peer type.
|
||||
Type pulumi.StringPtrInput `pulumi:"type"`
|
||||
}
|
||||
|
||||
func (LookupNetworkPeerOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkPeerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkPeer.
|
||||
type LookupNetworkPeerResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkPeerResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkPeerResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkPeerResultOutput) ToLookupNetworkPeerResultOutput() LookupNetworkPeerResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkPeerResultOutput) ToLookupNetworkPeerResultOutputWithContext(ctx context.Context) LookupNetworkPeerResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
func (o LookupNetworkPeerResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the network peer.
|
||||
func (o LookupNetworkPeerResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkPeerResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkPeerResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkPeerResultOutput) Network() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Network }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkPeerResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkPeerResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Status of the network peer.
|
||||
func (o LookupNetworkPeerResultOutput) Status() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Status }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Target integration for the network peer.
|
||||
func (o LookupNetworkPeerResultOutput) TargetIntegration() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.TargetIntegration }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Target network for the network peer.
|
||||
func (o LookupNetworkPeerResultOutput) TargetNetwork() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.TargetNetwork }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Target project for the network peer.
|
||||
func (o LookupNetworkPeerResultOutput) TargetProject() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.TargetProject }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Network peer type.
|
||||
func (o LookupNetworkPeerResultOutput) Type() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Type }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkPeerResultOutput{})
|
||||
}
|
||||
151
sdk/go/incus/getNetworkZone.go
generated
Normal file
151
sdk/go/incus/getNetworkZone.go
generated
Normal file
@@ -0,0 +1,151 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # NetworkZone
|
||||
//
|
||||
// Provides information about an Incus network zone.
|
||||
// See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupNetworkZone(ctx, &incus.LookupNetworkZoneArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("networkZoneName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupNetworkZone(ctx *pulumi.Context, args *LookupNetworkZoneArgs, opts ...pulumi.InvokeOption) (*LookupNetworkZoneResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupNetworkZoneResult
|
||||
err := ctx.Invoke("incus:index/getNetworkZone:getNetworkZone", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkZone.
|
||||
type LookupNetworkZoneArgs struct {
|
||||
// Description of the network zone.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network zone.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network zone is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkZone.
|
||||
type LookupNetworkZoneResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the network zone.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
Name string `pulumi:"name"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func LookupNetworkZoneOutput(ctx *pulumi.Context, args LookupNetworkZoneOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkZoneResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupNetworkZoneResultOutput, error) {
|
||||
args := v.(LookupNetworkZoneArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getNetworkZone:getNetworkZone", args, LookupNetworkZoneResultOutput{}, options).(LookupNetworkZoneResultOutput), nil
|
||||
}).(LookupNetworkZoneResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getNetworkZone.
|
||||
type LookupNetworkZoneOutputArgs struct {
|
||||
// Description of the network zone.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Name of the network zone.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network zone is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
func (LookupNetworkZoneOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkZoneArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getNetworkZone.
|
||||
type LookupNetworkZoneResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupNetworkZoneResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupNetworkZoneResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupNetworkZoneResultOutput) ToLookupNetworkZoneResultOutput() LookupNetworkZoneResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupNetworkZoneResultOutput) ToLookupNetworkZoneResultOutputWithContext(ctx context.Context) LookupNetworkZoneResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
func (o LookupNetworkZoneResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupNetworkZoneResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the network zone.
|
||||
func (o LookupNetworkZoneResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkZoneResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupNetworkZoneResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkZoneResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkZoneResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupNetworkZoneResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkZoneResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkZoneResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupNetworkZoneResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupNetworkZoneResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupNetworkZoneResultOutput{})
|
||||
}
|
||||
46
sdk/go/incus/getProfile.go
generated
46
sdk/go/incus/getProfile.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -14,6 +14,7 @@ import (
|
||||
// ## # Profile
|
||||
//
|
||||
// Provides information about an Incus profile.
|
||||
// See Incus profile [configuration reference](https://linuxcontainers.org/incus/docs/main/profiles/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
@@ -29,22 +30,13 @@ import (
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// _default, err := incus.LookupProfile(ctx, &incus.LookupProfileArgs{
|
||||
// this, err := incus.LookupProfile(ctx, &incus.LookupProfileArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// _, err = incus.NewInstance(ctx, "d1", &incus.InstanceArgs{
|
||||
// Profiles: pulumi.StringArray{
|
||||
// pulumi.String(_default.Name),
|
||||
// },
|
||||
// Image: pulumi.String("images:debian/12"),
|
||||
// Name: pulumi.String("d1"),
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("profileName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
@@ -62,11 +54,13 @@ func LookupProfile(ctx *pulumi.Context, args *LookupProfileArgs, opts ...pulumi.
|
||||
|
||||
// A collection of arguments for invoking getProfile.
|
||||
type LookupProfileArgs struct {
|
||||
// Device definition. See reference below.
|
||||
// Description of the profile.
|
||||
Description *string `pulumi:"description"`
|
||||
// Device definitions. See reference below.
|
||||
Devices []GetProfileDevice `pulumi:"devices"`
|
||||
// **Required** - Name of the profile.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the profile will be stored.
|
||||
// *Optional* - Name of the project where the profile is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
@@ -75,11 +69,12 @@ type LookupProfileArgs struct {
|
||||
|
||||
// A collection of values returned by getProfile.
|
||||
type LookupProfileResult struct {
|
||||
// Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
Description string `pulumi:"description"`
|
||||
// Device definition. See reference below.
|
||||
// Map of key/value pairs of config settings.
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the profile.
|
||||
Description string `pulumi:"description"`
|
||||
// Device definitions. See reference below.
|
||||
Devices []GetProfileDevice `pulumi:"devices"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
@@ -100,11 +95,13 @@ func LookupProfileOutput(ctx *pulumi.Context, args LookupProfileOutputArgs, opts
|
||||
|
||||
// A collection of arguments for invoking getProfile.
|
||||
type LookupProfileOutputArgs struct {
|
||||
// Device definition. See reference below.
|
||||
// Description of the profile.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// Device definitions. See reference below.
|
||||
Devices GetProfileDeviceArrayInput `pulumi:"devices"`
|
||||
// **Required** - Name of the profile.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the profile will be stored.
|
||||
// *Optional* - Name of the project where the profile is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
@@ -130,17 +127,18 @@ func (o LookupProfileResultOutput) ToLookupProfileResultOutputWithContext(ctx co
|
||||
return o
|
||||
}
|
||||
|
||||
// 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/)
|
||||
func (o LookupProfileResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupProfileResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the profile.
|
||||
func (o LookupProfileResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupProfileResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Device definition. See reference below.
|
||||
// Device definitions. See reference below.
|
||||
func (o LookupProfileResultOutput) Devices() GetProfileDeviceArrayOutput {
|
||||
return o.ApplyT(func(v LookupProfileResult) []GetProfileDevice { return v.Devices }).(GetProfileDeviceArrayOutput)
|
||||
}
|
||||
|
||||
27
sdk/go/incus/getProject.go
generated
27
sdk/go/incus/getProject.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -29,20 +29,13 @@ import (
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// _default, err := incus.LookupProject(ctx, &incus.LookupProjectArgs{
|
||||
// this, err := incus.LookupProject(ctx, &incus.LookupProjectArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// _, err = incus.NewInstance(ctx, "d1", &incus.InstanceArgs{
|
||||
// Project: pulumi.String(_default.Name),
|
||||
// Image: pulumi.String("images:debian/12"),
|
||||
// Name: pulumi.String("d1"),
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("projectName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
@@ -60,9 +53,6 @@ func LookupProject(ctx *pulumi.Context, args *LookupProjectArgs, opts ...pulumi.
|
||||
|
||||
// A collection of arguments for invoking getProject.
|
||||
type LookupProjectArgs struct {
|
||||
// Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the project.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the project.
|
||||
@@ -74,8 +64,8 @@ type LookupProjectArgs struct {
|
||||
|
||||
// A collection of values returned by getProject.
|
||||
type LookupProjectResult struct {
|
||||
// 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/)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the project.
|
||||
Description string `pulumi:"description"`
|
||||
@@ -96,9 +86,6 @@ func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts
|
||||
|
||||
// A collection of arguments for invoking getProject.
|
||||
type LookupProjectOutputArgs struct {
|
||||
// Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapInput `pulumi:"config"`
|
||||
// Description of the project.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Name of the project.
|
||||
@@ -127,8 +114,8 @@ func (o LookupProjectResultOutput) ToLookupProjectResultOutputWithContext(ctx co
|
||||
return o
|
||||
}
|
||||
|
||||
// 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/)
|
||||
func (o LookupProjectResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupProjectResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
194
sdk/go/incus/getStorageBucket.go
generated
Normal file
194
sdk/go/incus/getStorageBucket.go
generated
Normal file
@@ -0,0 +1,194 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # StorageBucket
|
||||
//
|
||||
// Provides information about an Incus storage bucket.
|
||||
// See Incus storage bucket [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupStorageBucket(ctx, &incus.LookupStorageBucketArgs{
|
||||
// Name: "default",
|
||||
// StoragePool: "parent",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("storageBucketName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupStorageBucket(ctx *pulumi.Context, args *LookupStorageBucketArgs, opts ...pulumi.InvokeOption) (*LookupStorageBucketResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupStorageBucketResult
|
||||
err := ctx.Invoke("incus:index/getStorageBucket:getStorageBucket", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getStorageBucket.
|
||||
type LookupStorageBucketArgs struct {
|
||||
// Description of the storage bucket.
|
||||
Description *string `pulumi:"description"`
|
||||
// Location of the storage bucket.
|
||||
Location *string `pulumi:"location"`
|
||||
// **Required** - Name of the storage bucket.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the storage bucket is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Storage Bucket S3 URL.
|
||||
S3Url *string `pulumi:"s3Url"`
|
||||
// **Required** - Name of the parent storage pool.
|
||||
StoragePool string `pulumi:"storagePool"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getStorageBucket.
|
||||
type LookupStorageBucketResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
// [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the storage bucket.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
// Location of the storage bucket.
|
||||
Location string `pulumi:"location"`
|
||||
Name string `pulumi:"name"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Storage Bucket S3 URL.
|
||||
S3Url string `pulumi:"s3Url"`
|
||||
StoragePool string `pulumi:"storagePool"`
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
func LookupStorageBucketOutput(ctx *pulumi.Context, args LookupStorageBucketOutputArgs, opts ...pulumi.InvokeOption) LookupStorageBucketResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupStorageBucketResultOutput, error) {
|
||||
args := v.(LookupStorageBucketArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getStorageBucket:getStorageBucket", args, LookupStorageBucketResultOutput{}, options).(LookupStorageBucketResultOutput), nil
|
||||
}).(LookupStorageBucketResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getStorageBucket.
|
||||
type LookupStorageBucketOutputArgs struct {
|
||||
// Description of the storage bucket.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// Location of the storage bucket.
|
||||
Location pulumi.StringPtrInput `pulumi:"location"`
|
||||
// **Required** - Name of the storage bucket.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the storage bucket is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// Storage Bucket S3 URL.
|
||||
S3Url pulumi.StringPtrInput `pulumi:"s3Url"`
|
||||
// **Required** - Name of the parent storage pool.
|
||||
StoragePool pulumi.StringInput `pulumi:"storagePool"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target pulumi.StringPtrInput `pulumi:"target"`
|
||||
}
|
||||
|
||||
func (LookupStorageBucketOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupStorageBucketArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getStorageBucket.
|
||||
type LookupStorageBucketResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupStorageBucketResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupStorageBucketResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupStorageBucketResultOutput) ToLookupStorageBucketResultOutput() LookupStorageBucketResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupStorageBucketResultOutput) ToLookupStorageBucketResultOutputWithContext(ctx context.Context) LookupStorageBucketResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
// [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
func (o LookupStorageBucketResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the storage bucket.
|
||||
func (o LookupStorageBucketResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupStorageBucketResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Location of the storage bucket.
|
||||
func (o LookupStorageBucketResultOutput) Location() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Location }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageBucketResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageBucketResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageBucketResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Storage Bucket S3 URL.
|
||||
func (o LookupStorageBucketResultOutput) S3Url() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.S3Url }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageBucketResultOutput) StoragePool() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.StoragePool }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageBucketResultOutput) Target() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStorageBucketResult) *string { return v.Target }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupStorageBucketResultOutput{})
|
||||
}
|
||||
175
sdk/go/incus/getStoragePool.go
generated
Normal file
175
sdk/go/incus/getStoragePool.go
generated
Normal file
@@ -0,0 +1,175 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # StoragePool
|
||||
//
|
||||
// Provides information about an Incus storage pool.
|
||||
// See Incus storage pool [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_pools/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupStoragePool(ctx, &incus.LookupStoragePoolArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("storagePoolName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupStoragePool(ctx *pulumi.Context, args *LookupStoragePoolArgs, opts ...pulumi.InvokeOption) (*LookupStoragePoolResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupStoragePoolResult
|
||||
err := ctx.Invoke("incus:index/getStoragePool:getStoragePool", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getStoragePool.
|
||||
type LookupStoragePoolArgs struct {
|
||||
// Description of the storage pool.
|
||||
Description *string `pulumi:"description"`
|
||||
// Storage Pool driver.
|
||||
Driver *string `pulumi:"driver"`
|
||||
// **Required** - Name of the storage pool.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Status of the storage pool.
|
||||
Status *string `pulumi:"status"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getStoragePool.
|
||||
type LookupStoragePoolResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the storage pool.
|
||||
Description string `pulumi:"description"`
|
||||
// Storage Pool driver.
|
||||
Driver string `pulumi:"driver"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
Name string `pulumi:"name"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
// Status of the storage pool.
|
||||
Status string `pulumi:"status"`
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
func LookupStoragePoolOutput(ctx *pulumi.Context, args LookupStoragePoolOutputArgs, opts ...pulumi.InvokeOption) LookupStoragePoolResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupStoragePoolResultOutput, error) {
|
||||
args := v.(LookupStoragePoolArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getStoragePool:getStoragePool", args, LookupStoragePoolResultOutput{}, options).(LookupStoragePoolResultOutput), nil
|
||||
}).(LookupStoragePoolResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getStoragePool.
|
||||
type LookupStoragePoolOutputArgs struct {
|
||||
// Description of the storage pool.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// Storage Pool driver.
|
||||
Driver pulumi.StringPtrInput `pulumi:"driver"`
|
||||
// **Required** - Name of the storage pool.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// Status of the storage pool.
|
||||
Status pulumi.StringPtrInput `pulumi:"status"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target pulumi.StringPtrInput `pulumi:"target"`
|
||||
}
|
||||
|
||||
func (LookupStoragePoolOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupStoragePoolArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getStoragePool.
|
||||
type LookupStoragePoolResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupStoragePoolResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupStoragePoolResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupStoragePoolResultOutput) ToLookupStoragePoolResultOutput() LookupStoragePoolResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupStoragePoolResultOutput) ToLookupStoragePoolResultOutputWithContext(ctx context.Context) LookupStoragePoolResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
func (o LookupStoragePoolResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Description of the storage pool.
|
||||
func (o LookupStoragePoolResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Storage Pool driver.
|
||||
func (o LookupStoragePoolResultOutput) Driver() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Driver }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupStoragePoolResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStoragePoolResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStoragePoolResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Status of the storage pool.
|
||||
func (o LookupStoragePoolResultOutput) Status() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Status }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStoragePoolResultOutput) Target() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStoragePoolResult) *string { return v.Target }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupStoragePoolResultOutput{})
|
||||
}
|
||||
204
sdk/go/incus/getStorageVolume.go
generated
Normal file
204
sdk/go/incus/getStorageVolume.go
generated
Normal file
@@ -0,0 +1,204 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # StorageVolume
|
||||
//
|
||||
// Provides information about an Incus storage volume.
|
||||
// See Incus storage volume [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_volumes/) for more details.
|
||||
//
|
||||
// ## Example Usage
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.LookupStorageVolume(ctx, &incus.LookupStorageVolumeArgs{
|
||||
// Name: "default",
|
||||
// Type: "custom",
|
||||
// StoragePool: "parent",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("storageVolumeName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
func LookupStorageVolume(ctx *pulumi.Context, args *LookupStorageVolumeArgs, opts ...pulumi.InvokeOption) (*LookupStorageVolumeResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv LookupStorageVolumeResult
|
||||
err := ctx.Invoke("incus:index/getStorageVolume:getStorageVolume", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getStorageVolume.
|
||||
type LookupStorageVolumeArgs struct {
|
||||
// Storage Volume content type.
|
||||
ContentType *string `pulumi:"contentType"`
|
||||
// Description of the storage volume.
|
||||
Description *string `pulumi:"description"`
|
||||
// Location of the storage volume.
|
||||
Location *string `pulumi:"location"`
|
||||
// **Required** - Name of the storage volume.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the storage volume is be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// **Required** - Name of the parent storage pool.
|
||||
StoragePool string `pulumi:"storagePool"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target *string `pulumi:"target"`
|
||||
// **Required** - Storage Volume type.
|
||||
Type string `pulumi:"type"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getStorageVolume.
|
||||
type LookupStorageVolumeResult struct {
|
||||
// Map of key/value pairs of config settings.
|
||||
// [storage volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Storage Volume content type.
|
||||
ContentType string `pulumi:"contentType"`
|
||||
// Description of the storage volume.
|
||||
Description string `pulumi:"description"`
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
// Location of the storage volume.
|
||||
Location string `pulumi:"location"`
|
||||
Name string `pulumi:"name"`
|
||||
Project *string `pulumi:"project"`
|
||||
Remote *string `pulumi:"remote"`
|
||||
StoragePool string `pulumi:"storagePool"`
|
||||
Target *string `pulumi:"target"`
|
||||
Type string `pulumi:"type"`
|
||||
}
|
||||
|
||||
func LookupStorageVolumeOutput(ctx *pulumi.Context, args LookupStorageVolumeOutputArgs, opts ...pulumi.InvokeOption) LookupStorageVolumeResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (LookupStorageVolumeResultOutput, error) {
|
||||
args := v.(LookupStorageVolumeArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("incus:index/getStorageVolume:getStorageVolume", args, LookupStorageVolumeResultOutput{}, options).(LookupStorageVolumeResultOutput), nil
|
||||
}).(LookupStorageVolumeResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getStorageVolume.
|
||||
type LookupStorageVolumeOutputArgs struct {
|
||||
// Storage Volume content type.
|
||||
ContentType pulumi.StringPtrInput `pulumi:"contentType"`
|
||||
// Description of the storage volume.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// Location of the storage volume.
|
||||
Location pulumi.StringPtrInput `pulumi:"location"`
|
||||
// **Required** - Name of the storage volume.
|
||||
Name pulumi.StringInput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the storage volume is be stored.
|
||||
Project pulumi.StringPtrInput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource was created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput `pulumi:"remote"`
|
||||
// **Required** - Name of the parent storage pool.
|
||||
StoragePool pulumi.StringInput `pulumi:"storagePool"`
|
||||
// *Optional* - Specify a target node in a cluster.
|
||||
Target pulumi.StringPtrInput `pulumi:"target"`
|
||||
// **Required** - Storage Volume type.
|
||||
Type pulumi.StringInput `pulumi:"type"`
|
||||
}
|
||||
|
||||
func (LookupStorageVolumeOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupStorageVolumeArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getStorageVolume.
|
||||
type LookupStorageVolumeResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (LookupStorageVolumeResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*LookupStorageVolumeResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) ToLookupStorageVolumeResultOutput() LookupStorageVolumeResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) ToLookupStorageVolumeResultOutputWithContext(ctx context.Context) LookupStorageVolumeResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Map of key/value pairs of config settings.
|
||||
// [storage volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
func (o LookupStorageVolumeResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// Storage Volume content type.
|
||||
func (o LookupStorageVolumeResultOutput) ContentType() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.ContentType }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Description of the storage volume.
|
||||
func (o LookupStorageVolumeResultOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o LookupStorageVolumeResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Location of the storage volume.
|
||||
func (o LookupStorageVolumeResultOutput) Location() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Location }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) *string { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) StoragePool() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.StoragePool }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) Target() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) *string { return v.Target }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func (o LookupStorageVolumeResultOutput) Type() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Type }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(LookupStorageVolumeResultOutput{})
|
||||
}
|
||||
73
sdk/go/incus/image.go
generated
73
sdk/go/incus/image.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -52,15 +52,53 @@ import (
|
||||
//
|
||||
// ```
|
||||
//
|
||||
// ## Image alias Example
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// _, err := incus.NewImage(ctx, "alpine", &incus.ImageArgs{
|
||||
// SourceImage: &incus.ImageSourceImageArgs{
|
||||
// Remote: pulumi.String("images"),
|
||||
// Name: pulumi.String("alpine/edge"),
|
||||
// },
|
||||
// Aliases: incus.ImageAliasArray{
|
||||
// &incus.ImageAliasArgs{
|
||||
// Name: pulumi.String("alpine"),
|
||||
// Description: pulumi.String("Alpine Linux"),
|
||||
// },
|
||||
// &incus.ImageAliasArgs{
|
||||
// Name: pulumi.String("alpine-edge"),
|
||||
// Description: pulumi.String("Alpine Linux Edge"),
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
//
|
||||
// ## Notes
|
||||
//
|
||||
// * See the Incus [documentation](https://linuxcontainers.org/incus/docs/main/howto/images_remote) for more info on default image remotes.
|
||||
type Image struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// *Optional* - A list of aliases to assign to the image after
|
||||
// pulling.
|
||||
Aliases pulumi.StringArrayOutput `pulumi:"aliases"`
|
||||
// Image alias
|
||||
Aliases ImageAliasArrayOutput `pulumi:"aliases"`
|
||||
// The list of aliases that were copied from the
|
||||
// `sourceImage`.
|
||||
CopiedAliases pulumi.StringArrayOutput `pulumi:"copiedAliases"`
|
||||
@@ -112,9 +150,8 @@ func GetImage(ctx *pulumi.Context,
|
||||
|
||||
// Input properties used for looking up and filtering Image resources.
|
||||
type imageState struct {
|
||||
// *Optional* - A list of aliases to assign to the image after
|
||||
// pulling.
|
||||
Aliases []string `pulumi:"aliases"`
|
||||
// Image alias
|
||||
Aliases []ImageAlias `pulumi:"aliases"`
|
||||
// The list of aliases that were copied from the
|
||||
// `sourceImage`.
|
||||
CopiedAliases []string `pulumi:"copiedAliases"`
|
||||
@@ -137,9 +174,8 @@ type imageState struct {
|
||||
}
|
||||
|
||||
type ImageState struct {
|
||||
// *Optional* - A list of aliases to assign to the image after
|
||||
// pulling.
|
||||
Aliases pulumi.StringArrayInput
|
||||
// Image alias
|
||||
Aliases ImageAliasArrayInput
|
||||
// The list of aliases that were copied from the
|
||||
// `sourceImage`.
|
||||
CopiedAliases pulumi.StringArrayInput
|
||||
@@ -166,9 +202,8 @@ func (ImageState) ElementType() reflect.Type {
|
||||
}
|
||||
|
||||
type imageArgs struct {
|
||||
// *Optional* - A list of aliases to assign to the image after
|
||||
// pulling.
|
||||
Aliases []string `pulumi:"aliases"`
|
||||
// Image alias
|
||||
Aliases []ImageAlias `pulumi:"aliases"`
|
||||
// *Optional* - Name of the project where the image will be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -184,9 +219,8 @@ type imageArgs struct {
|
||||
|
||||
// The set of arguments for constructing a Image resource.
|
||||
type ImageArgs struct {
|
||||
// *Optional* - A list of aliases to assign to the image after
|
||||
// pulling.
|
||||
Aliases pulumi.StringArrayInput
|
||||
// Image alias
|
||||
Aliases ImageAliasArrayInput
|
||||
// *Optional* - Name of the project where the image will be stored.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -287,10 +321,9 @@ func (o ImageOutput) ToImageOutputWithContext(ctx context.Context) ImageOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// *Optional* - A list of aliases to assign to the image after
|
||||
// pulling.
|
||||
func (o ImageOutput) Aliases() pulumi.StringArrayOutput {
|
||||
return o.ApplyT(func(v *Image) pulumi.StringArrayOutput { return v.Aliases }).(pulumi.StringArrayOutput)
|
||||
// Image alias
|
||||
func (o ImageOutput) Aliases() ImageAliasArrayOutput {
|
||||
return o.ApplyT(func(v *Image) ImageAliasArrayOutput { return v.Aliases }).(ImageAliasArrayOutput)
|
||||
}
|
||||
|
||||
// The list of aliases that were copied from the
|
||||
|
||||
22
sdk/go/incus/init.go
generated
22
sdk/go/incus/init.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -25,8 +25,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
|
||||
r = &Certificate{}
|
||||
case "incus:index/clusterGroup:ClusterGroup":
|
||||
r = &ClusterGroup{}
|
||||
case "incus:index/clusterGroupAssignment:ClusterGroupAssignment":
|
||||
r = &ClusterGroupAssignment{}
|
||||
case "incus:index/clusterGroupMember:ClusterGroupMember":
|
||||
r = &ClusterGroupMember{}
|
||||
case "incus:index/image:Image":
|
||||
r = &Image{}
|
||||
case "incus:index/instance:Instance":
|
||||
@@ -37,6 +37,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
|
||||
r = &Network{}
|
||||
case "incus:index/networkAcl:NetworkAcl":
|
||||
r = &NetworkAcl{}
|
||||
case "incus:index/networkAddressSet:NetworkAddressSet":
|
||||
r = &NetworkAddressSet{}
|
||||
case "incus:index/networkForward:NetworkForward":
|
||||
r = &NetworkForward{}
|
||||
case "incus:index/networkIntegration:NetworkIntegration":
|
||||
@@ -53,6 +55,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
|
||||
r = &Profile{}
|
||||
case "incus:index/project:Project":
|
||||
r = &Project{}
|
||||
case "incus:index/server:Server":
|
||||
r = &Server{}
|
||||
case "incus:index/storageBucket:StorageBucket":
|
||||
r = &StorageBucket{}
|
||||
case "incus:index/storageBucketKey:StorageBucketKey":
|
||||
@@ -104,7 +108,7 @@ func init() {
|
||||
)
|
||||
pulumi.RegisterResourceModule(
|
||||
"incus",
|
||||
"index/clusterGroupAssignment",
|
||||
"index/clusterGroupMember",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourceModule(
|
||||
@@ -132,6 +136,11 @@ func init() {
|
||||
"index/networkAcl",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourceModule(
|
||||
"incus",
|
||||
"index/networkAddressSet",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourceModule(
|
||||
"incus",
|
||||
"index/networkForward",
|
||||
@@ -172,6 +181,11 @@ func init() {
|
||||
"index/project",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourceModule(
|
||||
"incus",
|
||||
"index/server",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourceModule(
|
||||
"incus",
|
||||
"index/storageBucket",
|
||||
|
||||
27
sdk/go/incus/instance.go
generated
27
sdk/go/incus/instance.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -14,6 +15,8 @@ import (
|
||||
type Instance struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture pulumi.StringOutput `pulumi:"architecture"`
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
@@ -69,9 +72,12 @@ type Instance struct {
|
||||
func NewInstance(ctx *pulumi.Context,
|
||||
name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error) {
|
||||
if args == nil {
|
||||
args = &InstanceArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -98,6 +104,8 @@ func GetInstance(ctx *pulumi.Context,
|
||||
|
||||
// Input properties used for looking up and filtering Instance resources.
|
||||
type instanceState struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture *string `pulumi:"architecture"`
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
@@ -150,6 +158,8 @@ type instanceState struct {
|
||||
}
|
||||
|
||||
type InstanceState struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture pulumi.StringPtrInput
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapInput
|
||||
@@ -206,6 +216,8 @@ func (InstanceState) ElementType() reflect.Type {
|
||||
}
|
||||
|
||||
type instanceArgs struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture *string `pulumi:"architecture"`
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
@@ -221,7 +233,7 @@ type instanceArgs struct {
|
||||
// specify [an image accessible from the provider remote](https://linuxcontainers.org/incus/docs/main/reference/image_servers/).
|
||||
Image *string `pulumi:"image"`
|
||||
// **Required** - Name of the instance.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - List of Incus config profiles to apply to the new
|
||||
// instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
// However, if an empty array (`[]`) is set as a value, no profiles will be applied.
|
||||
@@ -248,6 +260,8 @@ type instanceArgs struct {
|
||||
|
||||
// The set of arguments for constructing a Instance resource.
|
||||
type InstanceArgs struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture pulumi.StringPtrInput
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapInput
|
||||
@@ -263,7 +277,7 @@ type InstanceArgs struct {
|
||||
// specify [an image accessible from the provider remote](https://linuxcontainers.org/incus/docs/main/reference/image_servers/).
|
||||
Image pulumi.StringPtrInput
|
||||
// **Required** - Name of the instance.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - List of Incus config profiles to apply to the new
|
||||
// instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
// However, if an empty array (`[]`) is set as a value, no profiles will be applied.
|
||||
@@ -375,6 +389,11 @@ func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) Instanc
|
||||
return o
|
||||
}
|
||||
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
func (o InstanceOutput) Architecture() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.Architecture }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
func (o InstanceOutput) Config() pulumi.StringMapOutput {
|
||||
|
||||
10
sdk/go/incus/instanceSnapshot.go
generated
10
sdk/go/incus/instanceSnapshot.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -82,6 +81,9 @@ func NewInstanceSnapshot(ctx *pulumi.Context,
|
||||
if args.Instance == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Instance'")
|
||||
}
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -153,7 +155,7 @@ type instanceSnapshotArgs struct {
|
||||
// **Required** - The name of the instance to snapshot.
|
||||
Instance string `pulumi:"instance"`
|
||||
// **Required** - Name of the snapshot.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the snapshot will be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -170,7 +172,7 @@ type InstanceSnapshotArgs struct {
|
||||
// **Required** - The name of the instance to snapshot.
|
||||
Instance pulumi.StringInput
|
||||
// **Required** - Name of the snapshot.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the snapshot will be stored.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
2
sdk/go/incus/internal/pulumiUtilities.go
generated
2
sdk/go/incus/internal/pulumiUtilities.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package internal
|
||||
|
||||
2
sdk/go/incus/internal/pulumiVersion.go
generated
2
sdk/go/incus/internal/pulumiVersion.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package internal
|
||||
|
||||
24
sdk/go/incus/network.go
generated
24
sdk/go/incus/network.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -17,7 +18,7 @@ type Network struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
// *Optional* - Description of the network.
|
||||
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description pulumi.StringOutput `pulumi:"description"`
|
||||
// Whether or not the network is managed.
|
||||
Managed pulumi.BoolOutput `pulumi:"managed"`
|
||||
@@ -41,9 +42,12 @@ type Network struct {
|
||||
func NewNetwork(ctx *pulumi.Context,
|
||||
name string, args *NetworkArgs, opts ...pulumi.ResourceOption) (*Network, error) {
|
||||
if args == nil {
|
||||
args = &NetworkArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -73,7 +77,7 @@ type networkState struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the network.
|
||||
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description *string `pulumi:"description"`
|
||||
// Whether or not the network is managed.
|
||||
Managed *bool `pulumi:"managed"`
|
||||
@@ -97,7 +101,7 @@ type NetworkState struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the network.
|
||||
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description pulumi.StringPtrInput
|
||||
// Whether or not the network is managed.
|
||||
Managed pulumi.BoolPtrInput
|
||||
@@ -125,11 +129,11 @@ type networkArgs struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the network.
|
||||
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network. This is usually the device the
|
||||
// network will appear as to instances.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network will be created.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -148,11 +152,11 @@ type NetworkArgs struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the network.
|
||||
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the network. This is usually the device the
|
||||
// network will appear as to instances.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the network will be created.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -259,7 +263,7 @@ func (o NetworkOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v *Network) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Description of the network.
|
||||
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
func (o NetworkOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Network) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
12
sdk/go/incus/networkAcl.go
generated
12
sdk/go/incus/networkAcl.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -38,9 +39,12 @@ type NetworkAcl struct {
|
||||
func NewNetworkAcl(ctx *pulumi.Context,
|
||||
name string, args *NetworkAclArgs, opts ...pulumi.ResourceOption) (*NetworkAcl, error) {
|
||||
if args == nil {
|
||||
args = &NetworkAclArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -125,7 +129,7 @@ type networkAclArgs struct {
|
||||
// The network ACL rule supports:
|
||||
Ingresses []NetworkAclIngress `pulumi:"ingresses"`
|
||||
// **Required** - Name of the network ACL.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network ACL will be created.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -147,7 +151,7 @@ type NetworkAclArgs struct {
|
||||
// The network ACL rule supports:
|
||||
Ingresses NetworkAclIngressArrayInput
|
||||
// **Required** - Name of the network ACL.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the network ACL will be created.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
387
sdk/go/incus/networkAddressSet.go
generated
Normal file
387
sdk/go/incus/networkAddressSet.go
generated
Normal file
@@ -0,0 +1,387 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// ## # NetworkAddressSet
|
||||
//
|
||||
// Network address sets are a list of either IPv4, IPv6 addresses with or without CIDR suffix. They can be used in source or destination fields of [ACLs](https://linuxcontainers.org/incus/docs/main/howto/network_acls/#network-acls-rules-properties).
|
||||
//
|
||||
// ## Basic Example
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// _, err := incus.NewNetworkAddressSet(ctx, "this", &incus.NetworkAddressSetArgs{
|
||||
// Name: pulumi.String("Network Address Set"),
|
||||
// Description: pulumi.String("Network Address Set description"),
|
||||
// Addresses: pulumi.StringArray{
|
||||
// pulumi.String("10.0.0.2"),
|
||||
// pulumi.String("10.0.0.3"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
//
|
||||
// ## ACL Example
|
||||
//
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "fmt"
|
||||
//
|
||||
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// this, err := incus.NewNetworkAddressSet(ctx, "this", &incus.NetworkAddressSetArgs{
|
||||
// Name: pulumi.String("network_address_set"),
|
||||
// Description: pulumi.String("Network Address Set description"),
|
||||
// Addresses: pulumi.StringArray{
|
||||
// pulumi.String("10.0.0.2"),
|
||||
// pulumi.String("10.0.0.3"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// _, err = incus.NewNetworkAcl(ctx, "this", &incus.NetworkAclArgs{
|
||||
// Name: pulumi.String("network_acl"),
|
||||
// Ingresses: incus.NetworkAclIngressArray{
|
||||
// &incus.NetworkAclIngressArgs{
|
||||
// Action: pulumi.String("allow"),
|
||||
// Source: pulumi.String("${incus_network_address_set.this.name}"),
|
||||
// Destination_port: "22",
|
||||
// Protocol: pulumi.String("tcp"),
|
||||
// Description: this.Name.ApplyT(func(name string) (string, error) {
|
||||
// return fmt.Sprintf("Incoming SSH connections from %v", name), nil
|
||||
// }).(pulumi.StringOutput),
|
||||
// State: pulumi.String("logged"),
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
type NetworkAddressSet struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// **Required** - IP addresses of the address set.
|
||||
Addresses pulumi.StringArrayOutput `pulumi:"addresses"`
|
||||
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
// *Optional* - Description of the network address set.
|
||||
Description pulumi.StringOutput `pulumi:"description"`
|
||||
// **Required** - Name of the network address set.
|
||||
Name pulumi.StringOutput `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network address set will be created.
|
||||
Project pulumi.StringPtrOutput `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrOutput `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// NewNetworkAddressSet registers a new resource with the given unique name, arguments, and options.
|
||||
func NewNetworkAddressSet(ctx *pulumi.Context,
|
||||
name string, args *NetworkAddressSetArgs, opts ...pulumi.ResourceOption) (*NetworkAddressSet, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Addresses == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Addresses'")
|
||||
}
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource NetworkAddressSet
|
||||
err := ctx.RegisterResource("incus:index/networkAddressSet:NetworkAddressSet", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetNetworkAddressSet gets an existing NetworkAddressSet resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetNetworkAddressSet(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *NetworkAddressSetState, opts ...pulumi.ResourceOption) (*NetworkAddressSet, error) {
|
||||
var resource NetworkAddressSet
|
||||
err := ctx.ReadResource("incus:index/networkAddressSet:NetworkAddressSet", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering NetworkAddressSet resources.
|
||||
type networkAddressSetState struct {
|
||||
// **Required** - IP addresses of the address set.
|
||||
Addresses []string `pulumi:"addresses"`
|
||||
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the network address set.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network address set.
|
||||
Name *string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network address set will be created.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
type NetworkAddressSetState struct {
|
||||
// **Required** - IP addresses of the address set.
|
||||
Addresses pulumi.StringArrayInput
|
||||
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the network address set.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the network address set.
|
||||
Name pulumi.StringPtrInput
|
||||
// *Optional* - Name of the project where the network address set will be created.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (NetworkAddressSetState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*networkAddressSetState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type networkAddressSetArgs struct {
|
||||
// **Required** - IP addresses of the address set.
|
||||
Addresses []string `pulumi:"addresses"`
|
||||
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the network address set.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network address set.
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network address set will be created.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a NetworkAddressSet resource.
|
||||
type NetworkAddressSetArgs struct {
|
||||
// **Required** - IP addresses of the address set.
|
||||
Addresses pulumi.StringArrayInput
|
||||
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the network address set.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the network address set.
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the network address set will be created.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (NetworkAddressSetArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*networkAddressSetArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type NetworkAddressSetInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToNetworkAddressSetOutput() NetworkAddressSetOutput
|
||||
ToNetworkAddressSetOutputWithContext(ctx context.Context) NetworkAddressSetOutput
|
||||
}
|
||||
|
||||
func (*NetworkAddressSet) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**NetworkAddressSet)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *NetworkAddressSet) ToNetworkAddressSetOutput() NetworkAddressSetOutput {
|
||||
return i.ToNetworkAddressSetOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *NetworkAddressSet) ToNetworkAddressSetOutputWithContext(ctx context.Context) NetworkAddressSetOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(NetworkAddressSetOutput)
|
||||
}
|
||||
|
||||
// NetworkAddressSetArrayInput is an input type that accepts NetworkAddressSetArray and NetworkAddressSetArrayOutput values.
|
||||
// You can construct a concrete instance of `NetworkAddressSetArrayInput` via:
|
||||
//
|
||||
// NetworkAddressSetArray{ NetworkAddressSetArgs{...} }
|
||||
type NetworkAddressSetArrayInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToNetworkAddressSetArrayOutput() NetworkAddressSetArrayOutput
|
||||
ToNetworkAddressSetArrayOutputWithContext(context.Context) NetworkAddressSetArrayOutput
|
||||
}
|
||||
|
||||
type NetworkAddressSetArray []NetworkAddressSetInput
|
||||
|
||||
func (NetworkAddressSetArray) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*NetworkAddressSet)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i NetworkAddressSetArray) ToNetworkAddressSetArrayOutput() NetworkAddressSetArrayOutput {
|
||||
return i.ToNetworkAddressSetArrayOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i NetworkAddressSetArray) ToNetworkAddressSetArrayOutputWithContext(ctx context.Context) NetworkAddressSetArrayOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(NetworkAddressSetArrayOutput)
|
||||
}
|
||||
|
||||
// NetworkAddressSetMapInput is an input type that accepts NetworkAddressSetMap and NetworkAddressSetMapOutput values.
|
||||
// You can construct a concrete instance of `NetworkAddressSetMapInput` via:
|
||||
//
|
||||
// NetworkAddressSetMap{ "key": NetworkAddressSetArgs{...} }
|
||||
type NetworkAddressSetMapInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToNetworkAddressSetMapOutput() NetworkAddressSetMapOutput
|
||||
ToNetworkAddressSetMapOutputWithContext(context.Context) NetworkAddressSetMapOutput
|
||||
}
|
||||
|
||||
type NetworkAddressSetMap map[string]NetworkAddressSetInput
|
||||
|
||||
func (NetworkAddressSetMap) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*NetworkAddressSet)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i NetworkAddressSetMap) ToNetworkAddressSetMapOutput() NetworkAddressSetMapOutput {
|
||||
return i.ToNetworkAddressSetMapOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i NetworkAddressSetMap) ToNetworkAddressSetMapOutputWithContext(ctx context.Context) NetworkAddressSetMapOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(NetworkAddressSetMapOutput)
|
||||
}
|
||||
|
||||
type NetworkAddressSetOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (NetworkAddressSetOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**NetworkAddressSet)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetOutput) ToNetworkAddressSetOutput() NetworkAddressSetOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetOutput) ToNetworkAddressSetOutputWithContext(ctx context.Context) NetworkAddressSetOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// **Required** - IP addresses of the address set.
|
||||
func (o NetworkAddressSetOutput) Addresses() pulumi.StringArrayOutput {
|
||||
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringArrayOutput { return v.Addresses }).(pulumi.StringArrayOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
func (o NetworkAddressSetOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Description of the network address set.
|
||||
func (o NetworkAddressSetOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// **Required** - Name of the network address set.
|
||||
func (o NetworkAddressSetOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Name of the project where the network address set will be created.
|
||||
func (o NetworkAddressSetOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringPtrOutput { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
func (o NetworkAddressSetOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type NetworkAddressSetArrayOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (NetworkAddressSetArrayOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*NetworkAddressSet)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetArrayOutput) ToNetworkAddressSetArrayOutput() NetworkAddressSetArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetArrayOutput) ToNetworkAddressSetArrayOutputWithContext(ctx context.Context) NetworkAddressSetArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetArrayOutput) Index(i pulumi.IntInput) NetworkAddressSetOutput {
|
||||
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NetworkAddressSet {
|
||||
return vs[0].([]*NetworkAddressSet)[vs[1].(int)]
|
||||
}).(NetworkAddressSetOutput)
|
||||
}
|
||||
|
||||
type NetworkAddressSetMapOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (NetworkAddressSetMapOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*NetworkAddressSet)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetMapOutput) ToNetworkAddressSetMapOutput() NetworkAddressSetMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetMapOutput) ToNetworkAddressSetMapOutputWithContext(ctx context.Context) NetworkAddressSetMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkAddressSetMapOutput) MapIndex(k pulumi.StringInput) NetworkAddressSetOutput {
|
||||
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NetworkAddressSet {
|
||||
return vs[0].(map[string]*NetworkAddressSet)[vs[1].(string)]
|
||||
}).(NetworkAddressSetOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*NetworkAddressSetInput)(nil)).Elem(), &NetworkAddressSet{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*NetworkAddressSetArrayInput)(nil)).Elem(), NetworkAddressSetArray{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*NetworkAddressSetMapInput)(nil)).Elem(), NetworkAddressSetMap{})
|
||||
pulumi.RegisterOutputType(NetworkAddressSetOutput{})
|
||||
pulumi.RegisterOutputType(NetworkAddressSetArrayOutput{})
|
||||
pulumi.RegisterOutputType(NetworkAddressSetMapOutput{})
|
||||
}
|
||||
3
sdk/go/incus/networkForward.go
generated
3
sdk/go/incus/networkForward.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
10
sdk/go/incus/networkIntegration.go
generated
10
sdk/go/incus/networkIntegration.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -123,6 +122,9 @@ func NewNetworkIntegration(ctx *pulumi.Context,
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Type == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Type'")
|
||||
}
|
||||
@@ -193,7 +195,7 @@ type networkIntegrationArgs struct {
|
||||
// *Optional* - Description of the network integration.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network integration.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network will be created.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -210,7 +212,7 @@ type NetworkIntegrationArgs struct {
|
||||
// *Optional* - Description of the network integration.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the network integration.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the network will be created.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
3
sdk/go/incus/networkLoadBalancer.go
generated
3
sdk/go/incus/networkLoadBalancer.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
12
sdk/go/incus/networkPeer.go
generated
12
sdk/go/incus/networkPeer.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -109,9 +110,12 @@ type NetworkPeer struct {
|
||||
func NewNetworkPeer(ctx *pulumi.Context,
|
||||
name string, args *NetworkPeerArgs, opts ...pulumi.ResourceOption) (*NetworkPeer, error) {
|
||||
if args == nil {
|
||||
args = &NetworkPeerArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -195,7 +199,7 @@ type networkPeerArgs struct {
|
||||
// *Optional* - Description of the network peering
|
||||
Description *string `pulumi:"description"`
|
||||
// **required** - Name of the network peering on the local network
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// **Required** - Name of the local network.
|
||||
Network *string `pulumi:"network"`
|
||||
// *Optional* - Name of the project where the network is located.
|
||||
@@ -219,7 +223,7 @@ type NetworkPeerArgs struct {
|
||||
// *Optional* - Description of the network peering
|
||||
Description pulumi.StringPtrInput
|
||||
// **required** - Name of the network peering on the local network
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// **Required** - Name of the local network.
|
||||
Network pulumi.StringPtrInput
|
||||
// *Optional* - Name of the project where the network is located.
|
||||
|
||||
12
sdk/go/incus/networkZone.go
generated
12
sdk/go/incus/networkZone.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -32,9 +33,12 @@ type NetworkZone struct {
|
||||
func NewNetworkZone(ctx *pulumi.Context,
|
||||
name string, args *NetworkZoneArgs, opts ...pulumi.ResourceOption) (*NetworkZone, error) {
|
||||
if args == nil {
|
||||
args = &NetworkZoneArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -101,7 +105,7 @@ type networkZoneArgs struct {
|
||||
// *Optional* - Description of the network zone.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the network zone.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network zone will be created.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -117,7 +121,7 @@ type NetworkZoneArgs struct {
|
||||
// *Optional* - Description of the network zone.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the network zone.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the network zone will be created.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
10
sdk/go/incus/networkZoneRecord.go
generated
10
sdk/go/incus/networkZoneRecord.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -41,6 +40,9 @@ func NewNetworkZoneRecord(ctx *pulumi.Context,
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Zone == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Zone'")
|
||||
}
|
||||
@@ -120,7 +122,7 @@ type networkZoneRecordArgs struct {
|
||||
// *Optional* - Entry in network zone record - see below.
|
||||
Entries []NetworkZoneRecordEntry `pulumi:"entries"`
|
||||
// **Required** - Name of the network zone record.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the network zone record will be created.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -140,7 +142,7 @@ type NetworkZoneRecordArgs struct {
|
||||
// *Optional* - Entry in network zone record - see below.
|
||||
Entries NetworkZoneRecordEntryArrayInput
|
||||
// **Required** - Name of the network zone record.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the network zone record will be created.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
12
sdk/go/incus/profile.go
generated
12
sdk/go/incus/profile.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -34,9 +35,12 @@ type Profile struct {
|
||||
func NewProfile(ctx *pulumi.Context,
|
||||
name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, error) {
|
||||
if args == nil {
|
||||
args = &ProfileArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -109,7 +113,7 @@ type profileArgs struct {
|
||||
// *Optional* - Device definition. See reference below.
|
||||
Devices []ProfileDevice `pulumi:"devices"`
|
||||
// **Required** - Name of the profile.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the profile will be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -127,7 +131,7 @@ type ProfileArgs struct {
|
||||
// *Optional* - Device definition. See reference below.
|
||||
Devices ProfileDeviceArrayInput
|
||||
// **Required** - Name of the profile.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the profile will be stored.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
27
sdk/go/incus/project.go
generated
27
sdk/go/incus/project.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -18,6 +19,8 @@ type Project struct {
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
// *Optional* - Description of the project.
|
||||
Description pulumi.StringOutput `pulumi:"description"`
|
||||
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
ForceDestroy pulumi.BoolOutput `pulumi:"forceDestroy"`
|
||||
// **Required** - Name of the project.
|
||||
Name pulumi.StringOutput `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -29,9 +32,12 @@ type Project struct {
|
||||
func NewProject(ctx *pulumi.Context,
|
||||
name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error) {
|
||||
if args == nil {
|
||||
args = &ProjectArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Project
|
||||
err := ctx.RegisterResource("incus:index/project:Project", name, args, &resource, opts...)
|
||||
@@ -59,6 +65,8 @@ type projectState struct {
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the project.
|
||||
Description *string `pulumi:"description"`
|
||||
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
ForceDestroy *bool `pulumi:"forceDestroy"`
|
||||
// **Required** - Name of the project.
|
||||
Name *string `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -71,6 +79,8 @@ type ProjectState struct {
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the project.
|
||||
Description pulumi.StringPtrInput
|
||||
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
ForceDestroy pulumi.BoolPtrInput
|
||||
// **Required** - Name of the project.
|
||||
Name pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -87,8 +97,10 @@ type projectArgs struct {
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the project.
|
||||
Description *string `pulumi:"description"`
|
||||
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
ForceDestroy *bool `pulumi:"forceDestroy"`
|
||||
// **Required** - Name of the project.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
@@ -100,8 +112,10 @@ type ProjectArgs struct {
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the project.
|
||||
Description pulumi.StringPtrInput
|
||||
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
ForceDestroy pulumi.BoolPtrInput
|
||||
// **Required** - Name of the project.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
@@ -204,6 +218,11 @@ func (o ProjectOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Project) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
func (o ProjectOutput) ForceDestroy() pulumi.BoolOutput {
|
||||
return o.ApplyT(func(v *Project) pulumi.BoolOutput { return v.ForceDestroy }).(pulumi.BoolOutput)
|
||||
}
|
||||
|
||||
// **Required** - Name of the project.
|
||||
func (o ProjectOutput) Name() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Project) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
|
||||
|
||||
49
sdk/go/incus/provider.go
generated
49
sdk/go/incus/provider.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -20,8 +20,9 @@ type Provider struct {
|
||||
|
||||
// The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
|
||||
ConfigDir pulumi.StringPtrOutput `pulumi:"configDir"`
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
// default)
|
||||
// The default remote to use when no other remote is defined in a resource.
|
||||
DefaultRemote pulumi.StringPtrOutput `pulumi:"defaultRemote"`
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
Project pulumi.StringPtrOutput `pulumi:"project"`
|
||||
}
|
||||
|
||||
@@ -46,10 +47,11 @@ type providerArgs struct {
|
||||
AcceptRemoteCertificate *bool `pulumi:"acceptRemoteCertificate"`
|
||||
// The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
|
||||
ConfigDir *string `pulumi:"configDir"`
|
||||
// The default remote to use when no other remote is defined in a resource.
|
||||
DefaultRemote *string `pulumi:"defaultRemote"`
|
||||
// Automatically generate the Incus client certificates if they don't exist.
|
||||
GenerateClientCertificates *bool `pulumi:"generateClientCertificates"`
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
// default)
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
Project *string `pulumi:"project"`
|
||||
// Incus Remote
|
||||
Remotes []ProviderRemote `pulumi:"remotes"`
|
||||
@@ -61,10 +63,11 @@ type ProviderArgs struct {
|
||||
AcceptRemoteCertificate pulumi.BoolPtrInput
|
||||
// The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
|
||||
ConfigDir pulumi.StringPtrInput
|
||||
// The default remote to use when no other remote is defined in a resource.
|
||||
DefaultRemote pulumi.StringPtrInput
|
||||
// Automatically generate the Incus client certificates if they don't exist.
|
||||
GenerateClientCertificates pulumi.BoolPtrInput
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
// default)
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
Project pulumi.StringPtrInput
|
||||
// Incus Remote
|
||||
Remotes ProviderRemoteArrayInput
|
||||
@@ -74,6 +77,29 @@ func (ProviderArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*providerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
||||
func (r *Provider) TerraformConfig(ctx *pulumi.Context) (ProviderTerraformConfigResultOutput, error) {
|
||||
out, err := ctx.Call("pulumi:providers:incus/terraformConfig", nil, ProviderTerraformConfigResultOutput{}, r)
|
||||
if err != nil {
|
||||
return ProviderTerraformConfigResultOutput{}, err
|
||||
}
|
||||
return out.(ProviderTerraformConfigResultOutput), nil
|
||||
}
|
||||
|
||||
type ProviderTerraformConfigResult struct {
|
||||
Result map[string]interface{} `pulumi:"result"`
|
||||
}
|
||||
|
||||
type ProviderTerraformConfigResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ProviderTerraformConfigResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*ProviderTerraformConfigResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ProviderTerraformConfigResultOutput) Result() pulumi.MapOutput {
|
||||
return o.ApplyT(func(v ProviderTerraformConfigResult) map[string]interface{} { return v.Result }).(pulumi.MapOutput)
|
||||
}
|
||||
|
||||
type ProviderInput interface {
|
||||
pulumi.Input
|
||||
|
||||
@@ -112,8 +138,12 @@ func (o ProviderOutput) ConfigDir() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.ConfigDir }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
// default)
|
||||
// The default remote to use when no other remote is defined in a resource.
|
||||
func (o ProviderOutput) DefaultRemote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.DefaultRemote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
func (o ProviderOutput) Project() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Project }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
@@ -121,4 +151,5 @@ func (o ProviderOutput) Project() pulumi.StringPtrOutput {
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{})
|
||||
pulumi.RegisterOutputType(ProviderOutput{})
|
||||
pulumi.RegisterOutputType(ProviderTerraformConfigResultOutput{})
|
||||
}
|
||||
|
||||
1227
sdk/go/incus/pulumiTypes.go
generated
1227
sdk/go/incus/pulumiTypes.go
generated
File diff suppressed because it is too large
Load Diff
268
sdk/go/incus/server.go
generated
Normal file
268
sdk/go/incus/server.go
generated
Normal file
@@ -0,0 +1,268 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrOutput `pulumi:"remote"`
|
||||
// *Optional* - Specify a target node in a cluster where the config
|
||||
// options should be applied. This is in particular important for config options
|
||||
// with `local` scope.
|
||||
Target pulumi.StringPtrOutput `pulumi:"target"`
|
||||
}
|
||||
|
||||
// NewServer registers a new resource with the given unique name, arguments, and options.
|
||||
func NewServer(ctx *pulumi.Context,
|
||||
name string, args *ServerArgs, opts ...pulumi.ResourceOption) (*Server, error) {
|
||||
if args == nil {
|
||||
args = &ServerArgs{}
|
||||
}
|
||||
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Server
|
||||
err := ctx.RegisterResource("incus:index/server:Server", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetServer gets an existing Server resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetServer(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *ServerState, opts ...pulumi.ResourceOption) (*Server, error) {
|
||||
var resource Server
|
||||
err := ctx.ReadResource("incus:index/server:Server", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Server resources.
|
||||
type serverState struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// *Optional* - Specify a target node in a cluster where the config
|
||||
// options should be applied. This is in particular important for config options
|
||||
// with `local` scope.
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
type ServerState struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
// *Optional* - Specify a target node in a cluster where the config
|
||||
// options should be applied. This is in particular important for config options
|
||||
// with `local` scope.
|
||||
Target pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ServerState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*serverState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type serverArgs struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote *string `pulumi:"remote"`
|
||||
// *Optional* - Specify a target node in a cluster where the config
|
||||
// options should be applied. This is in particular important for config options
|
||||
// with `local` scope.
|
||||
Target *string `pulumi:"target"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Server resource.
|
||||
type ServerArgs struct {
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
Remote pulumi.StringPtrInput
|
||||
// *Optional* - Specify a target node in a cluster where the config
|
||||
// options should be applied. This is in particular important for config options
|
||||
// with `local` scope.
|
||||
Target pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ServerArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*serverArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ServerInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToServerOutput() ServerOutput
|
||||
ToServerOutputWithContext(ctx context.Context) ServerOutput
|
||||
}
|
||||
|
||||
func (*Server) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Server)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *Server) ToServerOutput() ServerOutput {
|
||||
return i.ToServerOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *Server) ToServerOutputWithContext(ctx context.Context) ServerOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ServerOutput)
|
||||
}
|
||||
|
||||
// ServerArrayInput is an input type that accepts ServerArray and ServerArrayOutput values.
|
||||
// You can construct a concrete instance of `ServerArrayInput` via:
|
||||
//
|
||||
// ServerArray{ ServerArgs{...} }
|
||||
type ServerArrayInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToServerArrayOutput() ServerArrayOutput
|
||||
ToServerArrayOutputWithContext(context.Context) ServerArrayOutput
|
||||
}
|
||||
|
||||
type ServerArray []ServerInput
|
||||
|
||||
func (ServerArray) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*Server)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ServerArray) ToServerArrayOutput() ServerArrayOutput {
|
||||
return i.ToServerArrayOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ServerArray) ToServerArrayOutputWithContext(ctx context.Context) ServerArrayOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ServerArrayOutput)
|
||||
}
|
||||
|
||||
// ServerMapInput is an input type that accepts ServerMap and ServerMapOutput values.
|
||||
// You can construct a concrete instance of `ServerMapInput` via:
|
||||
//
|
||||
// ServerMap{ "key": ServerArgs{...} }
|
||||
type ServerMapInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToServerMapOutput() ServerMapOutput
|
||||
ToServerMapOutputWithContext(context.Context) ServerMapOutput
|
||||
}
|
||||
|
||||
type ServerMap map[string]ServerInput
|
||||
|
||||
func (ServerMap) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*Server)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ServerMap) ToServerMapOutput() ServerMapOutput {
|
||||
return i.ToServerMapOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ServerMap) ToServerMapOutputWithContext(ctx context.Context) ServerMapOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ServerMapOutput)
|
||||
}
|
||||
|
||||
type ServerOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ServerOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Server)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ServerOutput) ToServerOutput() ServerOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ServerOutput) ToServerOutputWithContext(ctx context.Context) ServerOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
func (o ServerOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v *Server) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
// not provided, the provider's default remote will be used.
|
||||
func (o ServerOutput) Remote() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Server) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Specify a target node in a cluster where the config
|
||||
// options should be applied. This is in particular important for config options
|
||||
// with `local` scope.
|
||||
func (o ServerOutput) Target() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Server) pulumi.StringPtrOutput { return v.Target }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type ServerArrayOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ServerArrayOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*Server)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ServerArrayOutput) ToServerArrayOutput() ServerArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ServerArrayOutput) ToServerArrayOutputWithContext(ctx context.Context) ServerArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ServerArrayOutput) Index(i pulumi.IntInput) ServerOutput {
|
||||
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Server {
|
||||
return vs[0].([]*Server)[vs[1].(int)]
|
||||
}).(ServerOutput)
|
||||
}
|
||||
|
||||
type ServerMapOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ServerMapOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*Server)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ServerMapOutput) ToServerMapOutput() ServerMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ServerMapOutput) ToServerMapOutputWithContext(ctx context.Context) ServerMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ServerMapOutput) MapIndex(k pulumi.StringInput) ServerOutput {
|
||||
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Server {
|
||||
return vs[0].(map[string]*Server)[vs[1].(string)]
|
||||
}).(ServerOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ServerInput)(nil)).Elem(), &Server{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ServerArrayInput)(nil)).Elem(), ServerArray{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ServerMapInput)(nil)).Elem(), ServerMap{})
|
||||
pulumi.RegisterOutputType(ServerOutput{})
|
||||
pulumi.RegisterOutputType(ServerArrayOutput{})
|
||||
pulumi.RegisterOutputType(ServerMapOutput{})
|
||||
}
|
||||
10
sdk/go/incus/storageBucket.go
generated
10
sdk/go/incus/storageBucket.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -46,6 +45,9 @@ func NewStorageBucket(ctx *pulumi.Context,
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Pool == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Pool'")
|
||||
}
|
||||
@@ -134,7 +136,7 @@ type storageBucketArgs struct {
|
||||
// *Optional* - Description of the storage bucket.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the storage bucket.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// **Required** - Name of storage pool to host the storage bucket.
|
||||
Pool string `pulumi:"pool"`
|
||||
// *Optional* - Name of the project where the storage bucket will be stored.
|
||||
@@ -157,7 +159,7 @@ type StorageBucketArgs struct {
|
||||
// *Optional* - Description of the storage bucket.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the storage bucket.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// **Required** - Name of storage pool to host the storage bucket.
|
||||
Pool pulumi.StringInput
|
||||
// *Optional* - Name of the project where the storage bucket will be stored.
|
||||
|
||||
10
sdk/go/incus/storageBucketKey.go
generated
10
sdk/go/incus/storageBucketKey.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -45,6 +44,9 @@ func NewStorageBucketKey(ctx *pulumi.Context,
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Pool == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Pool'")
|
||||
}
|
||||
@@ -135,7 +137,7 @@ type storageBucketKeyArgs struct {
|
||||
// *Optional* - Description of the storage bucket key.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the storage bucket key.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// **Required** - Name of storage pool to host the storage bucket key.
|
||||
Pool string `pulumi:"pool"`
|
||||
// *Optional* - Name of the project where the storage bucket key will be stored.
|
||||
@@ -155,7 +157,7 @@ type StorageBucketKeyArgs struct {
|
||||
// *Optional* - Description of the storage bucket key.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the storage bucket key.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// **Required** - Name of storage pool to host the storage bucket key.
|
||||
Pool pulumi.StringInput
|
||||
// *Optional* - Name of the project where the storage bucket key will be stored.
|
||||
|
||||
34
sdk/go/incus/storagePool.go
generated
34
sdk/go/incus/storagePool.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -20,9 +19,9 @@ type StoragePool struct {
|
||||
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
// Config settings vary from driver to driver.
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
// *Optional* - Description of the storage pool.
|
||||
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description pulumi.StringOutput `pulumi:"description"`
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
Driver pulumi.StringOutput `pulumi:"driver"`
|
||||
// **Required** - Name of the storage pool.
|
||||
Name pulumi.StringOutput `pulumi:"name"`
|
||||
@@ -45,6 +44,9 @@ func NewStoragePool(ctx *pulumi.Context,
|
||||
if args.Driver == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Driver'")
|
||||
}
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -75,9 +77,9 @@ type storagePoolState struct {
|
||||
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
// Config settings vary from driver to driver.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the storage pool.
|
||||
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
Driver *string `pulumi:"driver"`
|
||||
// **Required** - Name of the storage pool.
|
||||
Name *string `pulumi:"name"`
|
||||
@@ -95,9 +97,9 @@ type StoragePoolState struct {
|
||||
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
// Config settings vary from driver to driver.
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the storage pool.
|
||||
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
Driver pulumi.StringPtrInput
|
||||
// **Required** - Name of the storage pool.
|
||||
Name pulumi.StringPtrInput
|
||||
@@ -119,12 +121,12 @@ type storagePoolArgs struct {
|
||||
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
// Config settings vary from driver to driver.
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// *Optional* - Description of the storage pool.
|
||||
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
Driver string `pulumi:"driver"`
|
||||
// **Required** - Name of the storage pool.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the storage pool will be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -140,12 +142,12 @@ type StoragePoolArgs struct {
|
||||
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
// Config settings vary from driver to driver.
|
||||
Config pulumi.StringMapInput
|
||||
// *Optional* - Description of the storage pool.
|
||||
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
Driver pulumi.StringInput
|
||||
// **Required** - Name of the storage pool.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the storage pool will be stored.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -249,12 +251,12 @@ func (o StoragePoolOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v *StoragePool) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Description of the storage pool.
|
||||
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
func (o StoragePoolOutput) Description() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *StoragePool) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
func (o StoragePoolOutput) Driver() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *StoragePool) pulumi.StringOutput { return v.Driver }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
10
sdk/go/incus/storageVolume.go
generated
10
sdk/go/incus/storageVolume.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -53,6 +52,9 @@ func NewStorageVolume(ctx *pulumi.Context,
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Pool == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Pool'")
|
||||
}
|
||||
@@ -157,7 +159,7 @@ type storageVolumeArgs struct {
|
||||
// *Optional* - Description of the volume.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the storage volume.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// **Required** - Name of storage pool to host the volume.
|
||||
Pool string `pulumi:"pool"`
|
||||
// *Optional* - Name of the project where the volume will be stored.
|
||||
@@ -187,7 +189,7 @@ type StorageVolumeArgs struct {
|
||||
// *Optional* - Description of the volume.
|
||||
Description pulumi.StringPtrInput
|
||||
// **Required** - Name of the storage volume.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// **Required** - Name of storage pool to host the volume.
|
||||
Pool pulumi.StringInput
|
||||
// *Optional* - Name of the project where the volume will be stored.
|
||||
|
||||
1
sdk/nodejs/.gitattributes
generated
vendored
Normal file
1
sdk/nodejs/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* linguist-generated
|
||||
2
sdk/nodejs/.gitignore
generated
vendored
Normal file
2
sdk/nodejs/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
bin/
|
||||
55
sdk/nodejs/certificate.ts
generated
55
sdk/nodejs/certificate.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";
|
||||
@@ -40,37 +40,37 @@ export class Certificate extends pulumi.CustomResource {
|
||||
/**
|
||||
* **Required** - The certificate.
|
||||
*/
|
||||
public readonly certificate!: pulumi.Output<string>;
|
||||
declare public readonly certificate: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Description of the certificate.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* The fingerprint of the certificate.
|
||||
*/
|
||||
public /*out*/ readonly fingerprint!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly fingerprint: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the certificate.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of projects to restrict the certificate to.
|
||||
*/
|
||||
public readonly projects!: pulumi.Output<string[]>;
|
||||
declare public readonly projects: pulumi.Output<string[]>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Restrict the certificate to one or more projects.
|
||||
*/
|
||||
public readonly restricted!: pulumi.Output<boolean>;
|
||||
declare public readonly restricted: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - The type of certificate to create. Can be one of: client,
|
||||
* or metrics. If no type is specified, a client certificate is created.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a Certificate resource with the given unique name, arguments, and options.
|
||||
@@ -85,26 +85,29 @@ export class Certificate extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as CertificateState | undefined;
|
||||
resourceInputs["certificate"] = state ? state.certificate : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["fingerprint"] = state ? state.fingerprint : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["projects"] = state ? state.projects : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["restricted"] = state ? state.restricted : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["certificate"] = state?.certificate;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["fingerprint"] = state?.fingerprint;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["projects"] = state?.projects;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["restricted"] = state?.restricted;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as CertificateArgs | undefined;
|
||||
if ((!args || args.certificate === undefined) && !opts.urn) {
|
||||
if (args?.certificate === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'certificate'");
|
||||
}
|
||||
resourceInputs["certificate"] = args ? args.certificate : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["projects"] = args ? args.projects : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["restricted"] = args ? args.restricted : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["certificate"] = args?.certificate;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["projects"] = args?.projects;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["restricted"] = args?.restricted;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["fingerprint"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -167,7 +170,7 @@ export interface CertificateArgs {
|
||||
/**
|
||||
* **Required** - Name of the certificate.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - List of projects to restrict the certificate to.
|
||||
*/
|
||||
|
||||
42
sdk/nodejs/clusterGroup.ts
generated
42
sdk/nodejs/clusterGroup.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";
|
||||
@@ -36,17 +36,20 @@ export class ClusterGroup extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the cluster group.
|
||||
*/
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a ClusterGroup resource with the given unique name, arguments, and options.
|
||||
@@ -55,22 +58,25 @@ export class ClusterGroup extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: ClusterGroupArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: ClusterGroupArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ClusterGroupArgs | ClusterGroupState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ClusterGroupState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ClusterGroupArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(ClusterGroup.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -86,6 +92,9 @@ export interface ClusterGroupState {
|
||||
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the cluster group.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
@@ -107,11 +116,14 @@ export interface ClusterGroupArgs {
|
||||
* [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the cluster group.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
export class ClusterGroupAssignment extends pulumi.CustomResource {
|
||||
export class ClusterGroupMember extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing ClusterGroupAssignment resource's state with the given name, ID, and optional extra
|
||||
* Get an existing ClusterGroupMember resource's state with the given name, ID, and optional extra
|
||||
* properties used to qualify the lookup.
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
@@ -14,75 +14,75 @@ export class ClusterGroupAssignment extends pulumi.CustomResource {
|
||||
* @param state Any extra arguments used during the lookup.
|
||||
* @param opts Optional settings to control the behavior of the CustomResource.
|
||||
*/
|
||||
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterGroupAssignmentState, opts?: pulumi.CustomResourceOptions): ClusterGroupAssignment {
|
||||
return new ClusterGroupAssignment(name, <any>state, { ...opts, id: id });
|
||||
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterGroupMemberState, opts?: pulumi.CustomResourceOptions): ClusterGroupMember {
|
||||
return new ClusterGroupMember(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'incus:index/clusterGroupAssignment:ClusterGroupAssignment';
|
||||
public static readonly __pulumiType = 'incus:index/clusterGroupMember:ClusterGroupMember';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of ClusterGroupAssignment. This is designed to work even
|
||||
* Returns true if the given object is an instance of ClusterGroupMember. This is designed to work even
|
||||
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
||||
*/
|
||||
public static isInstance(obj: any): obj is ClusterGroupAssignment {
|
||||
public static isInstance(obj: any): obj is ClusterGroupMember {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === ClusterGroupAssignment.__pulumiType;
|
||||
return obj['__pulumiType'] === ClusterGroupMember.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
public readonly clusterGroup!: pulumi.Output<string>;
|
||||
declare public readonly clusterGroup: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the cluster group member.
|
||||
*/
|
||||
public readonly member!: pulumi.Output<string>;
|
||||
declare public readonly member: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a ClusterGroupAssignment resource with the given unique name, arguments, and options.
|
||||
* Create a ClusterGroupMember resource with the given unique name, arguments, and options.
|
||||
*
|
||||
* @param name The _unique_ name of the resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args: ClusterGroupAssignmentArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ClusterGroupAssignmentArgs | ClusterGroupAssignmentState, opts?: pulumi.CustomResourceOptions) {
|
||||
constructor(name: string, args: ClusterGroupMemberArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ClusterGroupMemberArgs | ClusterGroupMemberState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ClusterGroupAssignmentState | undefined;
|
||||
resourceInputs["clusterGroup"] = state ? state.clusterGroup : undefined;
|
||||
resourceInputs["member"] = state ? state.member : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
const state = argsOrState as ClusterGroupMemberState | undefined;
|
||||
resourceInputs["clusterGroup"] = state?.clusterGroup;
|
||||
resourceInputs["member"] = state?.member;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ClusterGroupAssignmentArgs | undefined;
|
||||
if ((!args || args.clusterGroup === undefined) && !opts.urn) {
|
||||
const args = argsOrState as ClusterGroupMemberArgs | undefined;
|
||||
if (args?.clusterGroup === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'clusterGroup'");
|
||||
}
|
||||
if ((!args || args.member === undefined) && !opts.urn) {
|
||||
if (args?.member === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'member'");
|
||||
}
|
||||
resourceInputs["clusterGroup"] = args ? args.clusterGroup : undefined;
|
||||
resourceInputs["member"] = args ? args.member : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["clusterGroup"] = args?.clusterGroup;
|
||||
resourceInputs["member"] = args?.member;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(ClusterGroupAssignment.__pulumiType, name, resourceInputs, opts);
|
||||
super(ClusterGroupMember.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering ClusterGroupAssignment resources.
|
||||
* Input properties used for looking up and filtering ClusterGroupMember resources.
|
||||
*/
|
||||
export interface ClusterGroupAssignmentState {
|
||||
export interface ClusterGroupMemberState {
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
@@ -99,9 +99,9 @@ export interface ClusterGroupAssignmentState {
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a ClusterGroupAssignment resource.
|
||||
* The set of arguments for constructing a ClusterGroupMember resource.
|
||||
*/
|
||||
export interface ClusterGroupAssignmentArgs {
|
||||
export interface ClusterGroupMemberArgs {
|
||||
/**
|
||||
* **Required** - Name of the cluster group.
|
||||
*/
|
||||
2
sdk/nodejs/config/index.ts
generated
2
sdk/nodejs/config/index.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! ***
|
||||
|
||||
// Export members:
|
||||
|
||||
16
sdk/nodejs/config/vars.ts
generated
16
sdk/nodejs/config/vars.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";
|
||||
@@ -31,6 +31,17 @@ Object.defineProperty(exports, "configDir", {
|
||||
enumerable: true,
|
||||
});
|
||||
|
||||
/**
|
||||
* The default remote to use when no other remote is defined in a resource.
|
||||
*/
|
||||
export declare const defaultRemote: string | undefined;
|
||||
Object.defineProperty(exports, "defaultRemote", {
|
||||
get() {
|
||||
return __config.get("defaultRemote");
|
||||
},
|
||||
enumerable: true,
|
||||
});
|
||||
|
||||
/**
|
||||
* Automatically generate the Incus client certificates if they don't exist.
|
||||
*/
|
||||
@@ -43,8 +54,7 @@ Object.defineProperty(exports, "generateClientCertificates", {
|
||||
});
|
||||
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
* default)
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
*/
|
||||
export declare const project: string | undefined;
|
||||
Object.defineProperty(exports, "project", {
|
||||
|
||||
168
sdk/nodejs/getCluster.ts
generated
Normal file
168
sdk/nodejs/getCluster.ts
generated
Normal file
@@ -0,0 +1,168 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.getCluster
|
||||
*
|
||||
* Provides information about an Incus cluster.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({});
|
||||
* ```
|
||||
*
|
||||
* ## Example prevent execution if any cluster member is not online
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({
|
||||
* remote: "cluster",
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Example create resource for each cluster member
|
||||
*
|
||||
* In this example, we define the server configuration [`core.bgp_address`](https://linuxcontainers.org/incus/docs/main/server_config/#core-configuration),
|
||||
* which has scope `local`, on each cluster member.
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* export = async () => {
|
||||
* const _this = await incus.getCluster({});
|
||||
* const nodes: incus.Server[] = [];
|
||||
* for (const range of Object.entries(_this.members).map(([k, v]) => ({key: k, value: v}))) {
|
||||
* nodes.push(new incus.Server(`nodes-${range.key}`, {
|
||||
* target: _this.isClustered ? range.key : null,
|
||||
* config: {
|
||||
* "core.bgp_address": ":179",
|
||||
* },
|
||||
* }));
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* ## Notes
|
||||
*
|
||||
* * 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* ## # incus.getCluster
|
||||
*
|
||||
* Provides information about an Incus cluster.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({});
|
||||
* ```
|
||||
*
|
||||
* ## Example prevent execution if any cluster member is not online
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getCluster({
|
||||
* remote: "cluster",
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Example create resource for each cluster member
|
||||
*
|
||||
* In this example, we define the server configuration [`core.bgp_address`](https://linuxcontainers.org/incus/docs/main/server_config/#core-configuration),
|
||||
* which has scope `local`, on each cluster member.
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* export = async () => {
|
||||
* const _this = await incus.getCluster({});
|
||||
* const nodes: incus.Server[] = [];
|
||||
* for (const range of Object.entries(_this.members).map(([k, v]) => ({key: k, value: v}))) {
|
||||
* nodes.push(new incus.Server(`nodes-${range.key}`, {
|
||||
* target: _this.isClustered ? range.key : null,
|
||||
* config: {
|
||||
* "core.bgp_address": ":179",
|
||||
* },
|
||||
* }));
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* ## Notes
|
||||
*
|
||||
* * 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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>;
|
||||
}
|
||||
4
sdk/nodejs/getImage.ts
generated
4
sdk/nodejs/getImage.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,7 +14,6 @@ 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 debianCustom = incus.getImage({
|
||||
* name: "debian_custom",
|
||||
@@ -102,7 +101,6 @@ export interface GetImageResult {
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const debianCustom = incus.getImage({
|
||||
* name: "debian_custom",
|
||||
|
||||
248
sdk/nodejs/getInstance.ts
generated
Normal file
248
sdk/nodejs/getInstance.ts
generated
Normal file
@@ -0,0 +1,248 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.Instance
|
||||
*
|
||||
* Provides information about an Incus instance.
|
||||
* See Incus instance [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/instance_config/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getInstance({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const instanceName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getInstance:getInstance", {
|
||||
"architecture": args.architecture,
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"ephemeral": args.ephemeral,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"profiles": args.profiles,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"stateful": args.stateful,
|
||||
"status": args.status,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getInstance.
|
||||
*/
|
||||
export interface GetInstanceArgs {
|
||||
/**
|
||||
* Architecture name.
|
||||
*/
|
||||
architecture?: string;
|
||||
/**
|
||||
* Description of the instance.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: inputs.GetInstanceDevice[];
|
||||
/**
|
||||
* Whether the instance is ephemeral (deleted on shutdown).
|
||||
*/
|
||||
ephemeral?: boolean;
|
||||
/**
|
||||
* Location of the instance.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* List of profiles applied to the instance.
|
||||
*/
|
||||
profiles?: string[];
|
||||
/**
|
||||
* *Optional* - Name of the project where the instance 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;
|
||||
/**
|
||||
* Whether the instance is stateful.
|
||||
*/
|
||||
stateful?: boolean;
|
||||
/**
|
||||
* Status of the instance.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getInstance.
|
||||
*/
|
||||
export interface GetInstanceResult {
|
||||
/**
|
||||
* Architecture name.
|
||||
*/
|
||||
readonly architecture: 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 instance.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
readonly devices?: outputs.GetInstanceDevice[];
|
||||
/**
|
||||
* Whether the instance is ephemeral (deleted on shutdown).
|
||||
*/
|
||||
readonly ephemeral: boolean;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Location of the instance.
|
||||
*/
|
||||
readonly location: string;
|
||||
/**
|
||||
* Name of the device.
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
* List of profiles applied to the instance.
|
||||
*/
|
||||
readonly profiles: string[];
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Whether the instance is stateful.
|
||||
*/
|
||||
readonly stateful: boolean;
|
||||
/**
|
||||
* Status of the instance.
|
||||
*/
|
||||
readonly status: string;
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.Instance
|
||||
*
|
||||
* Provides information about an Incus instance.
|
||||
* See Incus instance [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/instance_config/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getInstance({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const instanceName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getInstance:getInstance", {
|
||||
"architecture": args.architecture,
|
||||
"description": args.description,
|
||||
"devices": args.devices,
|
||||
"ephemeral": args.ephemeral,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"profiles": args.profiles,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"stateful": args.stateful,
|
||||
"status": args.status,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getInstance.
|
||||
*/
|
||||
export interface GetInstanceOutputArgs {
|
||||
/**
|
||||
* Architecture name.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* Description of the instance.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: pulumi.Input<pulumi.Input<inputs.GetInstanceDeviceArgs>[]>;
|
||||
/**
|
||||
* Whether the instance is ephemeral (deleted on shutdown).
|
||||
*/
|
||||
ephemeral?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* Location of the instance.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* List of profiles applied to the instance.
|
||||
*/
|
||||
profiles?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the instance 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>;
|
||||
/**
|
||||
* Whether the instance is stateful.
|
||||
*/
|
||||
stateful?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* Status of the instance.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* Type of the device Must be one of none, disk, nic,
|
||||
* unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
198
sdk/nodejs/getNetwork.ts
generated
Normal file
198
sdk/nodejs/getNetwork.ts
generated
Normal file
@@ -0,0 +1,198 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.Network
|
||||
*
|
||||
* Provides information about an Incus network.
|
||||
* See Incus network [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/networks/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetwork({
|
||||
* name: "default",
|
||||
* });
|
||||
* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* ## # incus.Network
|
||||
*
|
||||
* Provides information about an Incus network.
|
||||
* See Incus network [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/networks/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetwork({
|
||||
* name: "default",
|
||||
* });
|
||||
* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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>;
|
||||
}
|
||||
157
sdk/nodejs/getNetworkAcl.ts
generated
Normal file
157
sdk/nodejs/getNetworkAcl.ts
generated
Normal file
@@ -0,0 +1,157 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkAcl
|
||||
*
|
||||
* Provides information about an Incus network ACL.
|
||||
* See Incus network ACL [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_acls/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAcl({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAclName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAcl(args: GetNetworkAclArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkAclResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkAcl:getNetworkAcl", {
|
||||
"description": args.description,
|
||||
"egresses": args.egresses,
|
||||
"ingresses": args.ingresses,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAcl.
|
||||
*/
|
||||
export interface GetNetworkAclArgs {
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* List of egress rules.
|
||||
*/
|
||||
egresses?: inputs.GetNetworkAclEgress[];
|
||||
/**
|
||||
* List of ingress rules.
|
||||
*/
|
||||
ingresses?: inputs.GetNetworkAclIngress[];
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL 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 getNetworkAcl.
|
||||
*/
|
||||
export interface GetNetworkAclResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* List of egress rules.
|
||||
*/
|
||||
readonly egresses: outputs.GetNetworkAclEgress[];
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* List of ingress rules.
|
||||
*/
|
||||
readonly ingresses: outputs.GetNetworkAclIngress[];
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkAcl
|
||||
*
|
||||
* Provides information about an Incus network ACL.
|
||||
* See Incus network ACL [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_acls/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAcl({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAclName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAclOutput(args: GetNetworkAclOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkAclResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkAcl:getNetworkAcl", {
|
||||
"description": args.description,
|
||||
"egresses": args.egresses,
|
||||
"ingresses": args.ingresses,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAcl.
|
||||
*/
|
||||
export interface GetNetworkAclOutputArgs {
|
||||
/**
|
||||
* Description of the rule.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* List of egress rules.
|
||||
*/
|
||||
egresses?: pulumi.Input<pulumi.Input<inputs.GetNetworkAclEgressArgs>[]>;
|
||||
/**
|
||||
* List of ingress rules.
|
||||
*/
|
||||
ingresses?: pulumi.Input<pulumi.Input<inputs.GetNetworkAclIngressArgs>[]>;
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL 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>;
|
||||
}
|
||||
141
sdk/nodejs/getNetworkAddressSet.ts
generated
Normal file
141
sdk/nodejs/getNetworkAddressSet.ts
generated
Normal file
@@ -0,0 +1,141 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkAddressSet
|
||||
*
|
||||
* Provides information about an Incus network address set.
|
||||
* See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAddressSet({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAddressSetName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAddressSet(args: GetNetworkAddressSetArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkAddressSetResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkAddressSet:getNetworkAddressSet", {
|
||||
"addresses": args.addresses,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAddressSet.
|
||||
*/
|
||||
export interface GetNetworkAddressSetArgs {
|
||||
/**
|
||||
* List of network addresses.
|
||||
*/
|
||||
addresses?: string[];
|
||||
/**
|
||||
* Description of the network address set.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set 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 getNetworkAddressSet.
|
||||
*/
|
||||
export interface GetNetworkAddressSetResult {
|
||||
/**
|
||||
* List of network addresses.
|
||||
*/
|
||||
readonly addresses: string[];
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network address set.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkAddressSet
|
||||
*
|
||||
* Provides information about an Incus network address set.
|
||||
* See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkAddressSet({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkAddressSetName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkAddressSetOutput(args: GetNetworkAddressSetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkAddressSetResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkAddressSet:getNetworkAddressSet", {
|
||||
"addresses": args.addresses,
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkAddressSet.
|
||||
*/
|
||||
export interface GetNetworkAddressSetOutputArgs {
|
||||
/**
|
||||
* List of network addresses.
|
||||
*/
|
||||
addresses?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* Description of the network address set.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set 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>;
|
||||
}
|
||||
181
sdk/nodejs/getNetworkForward.ts
generated
Normal file
181
sdk/nodejs/getNetworkForward.ts
generated
Normal file
@@ -0,0 +1,181 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkForward
|
||||
*
|
||||
* Provides information about an Incus network forward.
|
||||
* See Incus network forward [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_forwards/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkForward({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkForwardListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkForward(args: GetNetworkForwardArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkForwardResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkForward:getNetworkForward", {
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkForward.
|
||||
*/
|
||||
export interface GetNetworkForwardArgs {
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Listen Address of the network forward.
|
||||
*/
|
||||
listenAddress: string;
|
||||
/**
|
||||
* Location of the network forward.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: string;
|
||||
/**
|
||||
* List of ports to forward.
|
||||
*/
|
||||
ports?: inputs.GetNetworkForwardPort[];
|
||||
/**
|
||||
* *Optional* - Name of the project where the network forward 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;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkForward.
|
||||
*/
|
||||
export interface GetNetworkForwardResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly listenAddress: string;
|
||||
/**
|
||||
* Location of the network forward.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly network: string;
|
||||
/**
|
||||
* List of ports to forward.
|
||||
*/
|
||||
readonly ports: outputs.GetNetworkForwardPort[];
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
readonly target?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkForward
|
||||
*
|
||||
* Provides information about an Incus network forward.
|
||||
* See Incus network forward [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_forwards/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkForward({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkForwardListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkForwardOutput(args: GetNetworkForwardOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkForwardResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkForward:getNetworkForward", {
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkForward.
|
||||
*/
|
||||
export interface GetNetworkForwardOutputArgs {
|
||||
/**
|
||||
* Description of the forward port.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Listen Address of the network forward.
|
||||
*/
|
||||
listenAddress: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the network forward.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: pulumi.Input<string>;
|
||||
/**
|
||||
* List of ports to forward.
|
||||
*/
|
||||
ports?: pulumi.Input<pulumi.Input<inputs.GetNetworkForwardPortArgs>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network forward 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>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
130
sdk/nodejs/getNetworkIntegration.ts
generated
Normal file
130
sdk/nodejs/getNetworkIntegration.ts
generated
Normal file
@@ -0,0 +1,130 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkIntegration
|
||||
*
|
||||
* Provides information about an Incus network integration.
|
||||
* See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkIntegration({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkIntegrationName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkIntegration(args: GetNetworkIntegrationArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkIntegrationResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkIntegration:getNetworkIntegration", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkIntegration.
|
||||
*/
|
||||
export interface GetNetworkIntegrationArgs {
|
||||
/**
|
||||
* Description of the network integration.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource was created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: string;
|
||||
/**
|
||||
* Integration type.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkIntegration.
|
||||
*/
|
||||
export interface GetNetworkIntegrationResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network integration.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Integration type.
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkIntegration
|
||||
*
|
||||
* Provides information about an Incus network integration.
|
||||
* See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkIntegration({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkIntegrationName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkIntegrationOutput(args: GetNetworkIntegrationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkIntegrationResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkIntegration:getNetworkIntegration", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkIntegration.
|
||||
*/
|
||||
export interface GetNetworkIntegrationOutputArgs {
|
||||
/**
|
||||
* Description of the network integration.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
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>;
|
||||
/**
|
||||
* Integration type.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
184
sdk/nodejs/getNetworkLoadBalancer.ts
generated
Normal file
184
sdk/nodejs/getNetworkLoadBalancer.ts
generated
Normal file
@@ -0,0 +1,184 @@
|
||||
// *** 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";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.getNetworkLoadBalancer
|
||||
*
|
||||
* Provides information about an Incus network load balancer.
|
||||
* See Incus network load balancer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_load_balancers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkLoadBalancer({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkLoadBalancerListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkLoadBalancer(args: GetNetworkLoadBalancerArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkLoadBalancerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", {
|
||||
"backends": args.backends,
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkLoadBalancer.
|
||||
*/
|
||||
export interface GetNetworkLoadBalancerArgs {
|
||||
/**
|
||||
* List of load balancer backends.
|
||||
*/
|
||||
backends?: inputs.GetNetworkLoadBalancerBackend[];
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Listen Address of the network load balancer.
|
||||
*/
|
||||
listenAddress: string;
|
||||
/**
|
||||
* Location of the network load balancer.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: string;
|
||||
/**
|
||||
* List of load balancer ports.
|
||||
*/
|
||||
ports?: inputs.GetNetworkLoadBalancerPort[];
|
||||
/**
|
||||
* *Optional* - Name of the project where the network load balancer 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 getNetworkLoadBalancer.
|
||||
*/
|
||||
export interface GetNetworkLoadBalancerResult {
|
||||
/**
|
||||
* List of load balancer backends.
|
||||
*/
|
||||
readonly backends: outputs.GetNetworkLoadBalancerBackend[];
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly listenAddress: string;
|
||||
/**
|
||||
* Location of the network load balancer.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly network: string;
|
||||
/**
|
||||
* List of load balancer ports.
|
||||
*/
|
||||
readonly ports: outputs.GetNetworkLoadBalancerPort[];
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.getNetworkLoadBalancer
|
||||
*
|
||||
* Provides information about an Incus network load balancer.
|
||||
* See Incus network load balancer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_load_balancers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkLoadBalancer({
|
||||
* listenAddress: "127.0.0.1",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkLoadBalancerListenAddress = _this.then(_this => _this.listenAddress);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkLoadBalancerOutput(args: GetNetworkLoadBalancerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkLoadBalancerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", {
|
||||
"backends": args.backends,
|
||||
"description": args.description,
|
||||
"listenAddress": args.listenAddress,
|
||||
"location": args.location,
|
||||
"network": args.network,
|
||||
"ports": args.ports,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkLoadBalancer.
|
||||
*/
|
||||
export interface GetNetworkLoadBalancerOutputArgs {
|
||||
/**
|
||||
* List of load balancer backends.
|
||||
*/
|
||||
backends?: pulumi.Input<pulumi.Input<inputs.GetNetworkLoadBalancerBackendArgs>[]>;
|
||||
/**
|
||||
* Description of the load balancer port.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Listen Address of the network load balancer.
|
||||
*/
|
||||
listenAddress: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the network load balancer.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: pulumi.Input<string>;
|
||||
/**
|
||||
* List of load balancer ports.
|
||||
*/
|
||||
ports?: pulumi.Input<pulumi.Input<inputs.GetNetworkLoadBalancerPortArgs>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network load balancer 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>;
|
||||
}
|
||||
210
sdk/nodejs/getNetworkPeer.ts
generated
Normal file
210
sdk/nodejs/getNetworkPeer.ts
generated
Normal file
@@ -0,0 +1,210 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkPeer
|
||||
*
|
||||
* Provides information about an Incus network peer.
|
||||
* See Incus network peer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_peers/https://linuxcontainers.org/incus/docs/main/howto/network_ovn_peers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkPeer({
|
||||
* name: "default",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkPeerName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkPeer(args: GetNetworkPeerArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkPeerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkPeer:getNetworkPeer", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"network": args.network,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"targetIntegration": args.targetIntegration,
|
||||
"targetNetwork": args.targetNetwork,
|
||||
"targetProject": args.targetProject,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkPeer.
|
||||
*/
|
||||
export interface GetNetworkPeerArgs {
|
||||
/**
|
||||
* Description of the network peer.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network peer.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network peer 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 peer.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* Target integration for the network peer.
|
||||
*/
|
||||
targetIntegration?: string;
|
||||
/**
|
||||
* Target network for the network peer.
|
||||
*/
|
||||
targetNetwork?: string;
|
||||
/**
|
||||
* Target project for the network peer.
|
||||
*/
|
||||
targetProject?: string;
|
||||
/**
|
||||
* Network peer type.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getNetworkPeer.
|
||||
*/
|
||||
export interface GetNetworkPeerResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network peer.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly network: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Status of the network peer.
|
||||
*/
|
||||
readonly status: string;
|
||||
/**
|
||||
* Target integration for the network peer.
|
||||
*/
|
||||
readonly targetIntegration: string;
|
||||
/**
|
||||
* Target network for the network peer.
|
||||
*/
|
||||
readonly targetNetwork: string;
|
||||
/**
|
||||
* Target project for the network peer.
|
||||
*/
|
||||
readonly targetProject: string;
|
||||
/**
|
||||
* Network peer type.
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkPeer
|
||||
*
|
||||
* Provides information about an Incus network peer.
|
||||
* See Incus network peer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_peers/https://linuxcontainers.org/incus/docs/main/howto/network_ovn_peers/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkPeer({
|
||||
* name: "default",
|
||||
* network: "parent",
|
||||
* });
|
||||
* export const networkPeerName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkPeerOutput(args: GetNetworkPeerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkPeerResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkPeer:getNetworkPeer", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"network": args.network,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"targetIntegration": args.targetIntegration,
|
||||
"targetNetwork": args.targetNetwork,
|
||||
"targetProject": args.targetProject,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkPeer.
|
||||
*/
|
||||
export interface GetNetworkPeerOutputArgs {
|
||||
/**
|
||||
* Description of the network peer.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network peer.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent network.
|
||||
*/
|
||||
network: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network peer 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 peer.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* Target integration for the network peer.
|
||||
*/
|
||||
targetIntegration?: pulumi.Input<string>;
|
||||
/**
|
||||
* Target network for the network peer.
|
||||
*/
|
||||
targetNetwork?: pulumi.Input<string>;
|
||||
/**
|
||||
* Target project for the network peer.
|
||||
*/
|
||||
targetProject?: pulumi.Input<string>;
|
||||
/**
|
||||
* Network peer type.
|
||||
*/
|
||||
type?: pulumi.Input<string>;
|
||||
}
|
||||
127
sdk/nodejs/getNetworkZone.ts
generated
Normal file
127
sdk/nodejs/getNetworkZone.ts
generated
Normal file
@@ -0,0 +1,127 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkZone
|
||||
*
|
||||
* Provides information about an Incus network zone.
|
||||
* See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkZone({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkZoneName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkZone(args: GetNetworkZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkZoneResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getNetworkZone:getNetworkZone", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkZone.
|
||||
*/
|
||||
export interface GetNetworkZoneArgs {
|
||||
/**
|
||||
* Description of the network zone.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone 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 getNetworkZone.
|
||||
*/
|
||||
export interface GetNetworkZoneResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the network zone.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.NetworkZone
|
||||
*
|
||||
* Provides information about an Incus network zone.
|
||||
* See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getNetworkZone({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const networkZoneName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getNetworkZoneOutput(args: GetNetworkZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkZoneResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getNetworkZone:getNetworkZone", {
|
||||
"description": args.description,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getNetworkZone.
|
||||
*/
|
||||
export interface GetNetworkZoneOutputArgs {
|
||||
/**
|
||||
* Description of the network zone.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone 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>;
|
||||
}
|
||||
49
sdk/nodejs/getProfile.ts
generated
49
sdk/nodejs/getProfile.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";
|
||||
@@ -10,27 +10,24 @@ import * as utilities from "./utilities";
|
||||
* ## # incus.Profile
|
||||
*
|
||||
* Provides information about an Incus profile.
|
||||
* See Incus profile [configuration reference](https://linuxcontainers.org/incus/docs/main/profiles/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProfile({
|
||||
* const _this = incus.getProfile({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* profiles: [_default.then(_default => _default.name)],
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* 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,
|
||||
@@ -43,7 +40,11 @@ export function getProfile(args: GetProfileArgs, opts?: pulumi.InvokeOptions): P
|
||||
*/
|
||||
export interface GetProfileArgs {
|
||||
/**
|
||||
* Device definition. See reference below.
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: inputs.GetProfileDevice[];
|
||||
/**
|
||||
@@ -51,7 +52,7 @@ export interface GetProfileArgs {
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
* *Optional* - Name of the project where the profile is be stored.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
@@ -66,13 +67,16 @@ export interface GetProfileArgs {
|
||||
*/
|
||||
export interface GetProfileResult {
|
||||
/**
|
||||
* 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};
|
||||
/**
|
||||
* Description of the profile.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Device definition. See reference below.
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
readonly devices?: outputs.GetProfileDevice[];
|
||||
/**
|
||||
@@ -90,27 +94,24 @@ export interface GetProfileResult {
|
||||
* ## # incus.Profile
|
||||
*
|
||||
* Provides information about an Incus profile.
|
||||
* See Incus profile [configuration reference](https://linuxcontainers.org/incus/docs/main/profiles/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
* import * as incus from "@pulumi/incus";
|
||||
*
|
||||
* const _default = incus.getProfile({
|
||||
* const _this = incus.getProfile({
|
||||
* name: "default",
|
||||
* });
|
||||
* const d1 = new incus.Instance("d1", {
|
||||
* profiles: [_default.then(_default => _default.name)],
|
||||
* image: "images:debian/12",
|
||||
* name: "d1",
|
||||
* });
|
||||
* 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,
|
||||
@@ -123,7 +124,11 @@ export function getProfileOutput(args: GetProfileOutputArgs, opts?: pulumi.Invok
|
||||
*/
|
||||
export interface GetProfileOutputArgs {
|
||||
/**
|
||||
* Device definition. See reference below.
|
||||
* Description of the profile.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Device definitions. See reference below.
|
||||
*/
|
||||
devices?: pulumi.Input<pulumi.Input<inputs.GetProfileDeviceArgs>[]>;
|
||||
/**
|
||||
@@ -131,7 +136,7 @@ export interface GetProfileOutputArgs {
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
* *Optional* - Name of the project where the profile is be stored.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
180
sdk/nodejs/getStorageBucket.ts
generated
Normal file
180
sdk/nodejs/getStorageBucket.ts
generated
Normal file
@@ -0,0 +1,180 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.StorageBucket
|
||||
*
|
||||
* Provides information about an Incus storage bucket.
|
||||
* See Incus storage bucket [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageBucket({
|
||||
* name: "default",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageBucketName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageBucket(args: GetStorageBucketArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageBucketResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getStorageBucket:getStorageBucket", {
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"s3Url": args.s3Url,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageBucket.
|
||||
*/
|
||||
export interface GetStorageBucketArgs {
|
||||
/**
|
||||
* Description of the storage bucket.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Location of the storage bucket.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket 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;
|
||||
/**
|
||||
* Storage Bucket S3 URL.
|
||||
*/
|
||||
s3Url?: string;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getStorageBucket.
|
||||
*/
|
||||
export interface GetStorageBucketResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the storage bucket.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Location of the storage bucket.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Storage Bucket S3 URL.
|
||||
*/
|
||||
readonly s3Url: string;
|
||||
readonly storagePool: string;
|
||||
readonly target?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.StorageBucket
|
||||
*
|
||||
* Provides information about an Incus storage bucket.
|
||||
* See Incus storage bucket [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageBucket({
|
||||
* name: "default",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageBucketName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageBucketOutput(args: GetStorageBucketOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageBucketResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getStorageBucket:getStorageBucket", {
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"s3Url": args.s3Url,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageBucket.
|
||||
*/
|
||||
export interface GetStorageBucketOutputArgs {
|
||||
/**
|
||||
* Description of the storage bucket.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the storage bucket.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket 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>;
|
||||
/**
|
||||
* Storage Bucket S3 URL.
|
||||
*/
|
||||
s3Url?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
156
sdk/nodejs/getStoragePool.ts
generated
Normal file
156
sdk/nodejs/getStoragePool.ts
generated
Normal file
@@ -0,0 +1,156 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.StoragePool
|
||||
*
|
||||
* Provides information about an Incus storage pool.
|
||||
* See Incus storage pool [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_pools/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStoragePool({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const storagePoolName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStoragePool(args: GetStoragePoolArgs, opts?: pulumi.InvokeOptions): Promise<GetStoragePoolResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getStoragePool:getStoragePool", {
|
||||
"description": args.description,
|
||||
"driver": args.driver,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStoragePool.
|
||||
*/
|
||||
export interface GetStoragePoolArgs {
|
||||
/**
|
||||
* Description of the storage pool.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Storage Pool driver.
|
||||
*/
|
||||
driver?: string;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
name: 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 storage pool.
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getStoragePool.
|
||||
*/
|
||||
export interface GetStoragePoolResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Description of the storage pool.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* Storage Pool driver.
|
||||
*/
|
||||
readonly driver: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly remote?: string;
|
||||
/**
|
||||
* Status of the storage pool.
|
||||
*/
|
||||
readonly status: string;
|
||||
readonly target?: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.StoragePool
|
||||
*
|
||||
* Provides information about an Incus storage pool.
|
||||
* See Incus storage pool [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_pools/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStoragePool({
|
||||
* name: "default",
|
||||
* });
|
||||
* export const storagePoolName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStoragePoolOutput(args: GetStoragePoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStoragePoolResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getStoragePool:getStoragePool", {
|
||||
"description": args.description,
|
||||
"driver": args.driver,
|
||||
"name": args.name,
|
||||
"remote": args.remote,
|
||||
"status": args.status,
|
||||
"target": args.target,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStoragePool.
|
||||
*/
|
||||
export interface GetStoragePoolOutputArgs {
|
||||
/**
|
||||
* Description of the storage pool.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Storage Pool driver.
|
||||
*/
|
||||
driver?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
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>;
|
||||
/**
|
||||
* Status of the storage pool.
|
||||
*/
|
||||
status?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
193
sdk/nodejs/getStorageVolume.ts
generated
Normal file
193
sdk/nodejs/getStorageVolume.ts
generated
Normal file
@@ -0,0 +1,193 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.StorageVolume
|
||||
*
|
||||
* Provides information about an Incus storage volume.
|
||||
* See Incus storage volume [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_volumes/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageVolume({
|
||||
* name: "default",
|
||||
* type: "custom",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageVolumeName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageVolume(args: GetStorageVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageVolumeResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("incus:index/getStorageVolume:getStorageVolume", {
|
||||
"contentType": args.contentType,
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageVolume.
|
||||
*/
|
||||
export interface GetStorageVolumeArgs {
|
||||
/**
|
||||
* Storage Volume content type.
|
||||
*/
|
||||
contentType?: string;
|
||||
/**
|
||||
* Description of the storage volume.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Location of the storage volume.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* **Required** - Name of the storage volume.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage volume 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;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: string;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: string;
|
||||
/**
|
||||
* **Required** - Storage Volume type.
|
||||
*/
|
||||
type: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getStorageVolume.
|
||||
*/
|
||||
export interface GetStorageVolumeResult {
|
||||
/**
|
||||
* Map of key/value pairs of config settings.
|
||||
* [storage volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
|
||||
*/
|
||||
readonly config: {[key: string]: string};
|
||||
/**
|
||||
* Storage Volume content type.
|
||||
*/
|
||||
readonly contentType: string;
|
||||
/**
|
||||
* Description of the storage volume.
|
||||
*/
|
||||
readonly description: string;
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
/**
|
||||
* Location of the storage volume.
|
||||
*/
|
||||
readonly location: string;
|
||||
readonly name: string;
|
||||
readonly project?: string;
|
||||
readonly remote?: string;
|
||||
readonly storagePool: string;
|
||||
readonly target?: string;
|
||||
readonly type: string;
|
||||
}
|
||||
/**
|
||||
* ## # incus.StorageVolume
|
||||
*
|
||||
* Provides information about an Incus storage volume.
|
||||
* See Incus storage volume [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_volumes/) for more details.
|
||||
*
|
||||
* ## Example Usage
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = incus.getStorageVolume({
|
||||
* name: "default",
|
||||
* type: "custom",
|
||||
* storagePool: "parent",
|
||||
* });
|
||||
* export const storageVolumeName = _this.then(_this => _this.name);
|
||||
* ```
|
||||
*/
|
||||
export function getStorageVolumeOutput(args: GetStorageVolumeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageVolumeResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("incus:index/getStorageVolume:getStorageVolume", {
|
||||
"contentType": args.contentType,
|
||||
"description": args.description,
|
||||
"location": args.location,
|
||||
"name": args.name,
|
||||
"project": args.project,
|
||||
"remote": args.remote,
|
||||
"storagePool": args.storagePool,
|
||||
"target": args.target,
|
||||
"type": args.type,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getStorageVolume.
|
||||
*/
|
||||
export interface GetStorageVolumeOutputArgs {
|
||||
/**
|
||||
* Storage Volume content type.
|
||||
*/
|
||||
contentType?: pulumi.Input<string>;
|
||||
/**
|
||||
* Description of the storage volume.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* Location of the storage volume.
|
||||
*/
|
||||
location?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage volume.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage volume 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>;
|
||||
/**
|
||||
* **Required** - Name of the parent storage pool.
|
||||
*/
|
||||
storagePool: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Storage Volume type.
|
||||
*/
|
||||
type: pulumi.Input<string>;
|
||||
}
|
||||
2
sdk/nodejs/go.mod
generated
2
sdk/nodejs/go.mod
generated
@@ -1,3 +1,3 @@
|
||||
module fake_nodejs_module // Exclude this directory from Go tools
|
||||
|
||||
go 1.25
|
||||
go 1.17
|
||||
|
||||
91
sdk/nodejs/image.ts
generated
91
sdk/nodejs/image.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";
|
||||
@@ -28,6 +28,30 @@ import * as utilities from "./utilities";
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Image alias Example
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const alpine = new incus.Image("alpine", {
|
||||
* sourceImage: {
|
||||
* remote: "images",
|
||||
* name: "alpine/edge",
|
||||
* },
|
||||
* aliases: [
|
||||
* {
|
||||
* name: "alpine",
|
||||
* description: "Alpine Linux",
|
||||
* },
|
||||
* {
|
||||
* name: "alpine-edge",
|
||||
* description: "Alpine Linux Edge",
|
||||
* },
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## Notes
|
||||
*
|
||||
* * See the Incus [documentation](https://linuxcontainers.org/incus/docs/main/howto/images_remote) for more info on default image remotes.
|
||||
@@ -61,45 +85,44 @@ export class Image extends pulumi.CustomResource {
|
||||
}
|
||||
|
||||
/**
|
||||
* *Optional* - A list of aliases to assign to the image after
|
||||
* pulling.
|
||||
* Image alias
|
||||
*/
|
||||
public readonly aliases!: pulumi.Output<string[] | undefined>;
|
||||
declare public readonly aliases: pulumi.Output<outputs.ImageAlias[] | undefined>;
|
||||
/**
|
||||
* The list of aliases that were copied from the
|
||||
* `sourceImage`.
|
||||
*/
|
||||
public /*out*/ readonly copiedAliases!: pulumi.Output<string[]>;
|
||||
declare public /*out*/ readonly copiedAliases: pulumi.Output<string[]>;
|
||||
/**
|
||||
* The datetime of image creation, in Unix time.
|
||||
*/
|
||||
public /*out*/ readonly createdAt!: pulumi.Output<number>;
|
||||
declare public /*out*/ readonly createdAt: pulumi.Output<number>;
|
||||
/**
|
||||
* The unique hash fingperint of the image.
|
||||
*/
|
||||
public /*out*/ readonly fingerprint!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly fingerprint: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the image will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
public /*out*/ readonly resourceId!: pulumi.Output<string>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
declare public /*out*/ readonly resourceId: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The image file from the local file system from which the image will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<outputs.ImageSourceFile | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<outputs.ImageSourceFile | undefined>;
|
||||
/**
|
||||
* *Optional* - The source image from which the image will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceImage!: pulumi.Output<outputs.ImageSourceImage | undefined>;
|
||||
declare public readonly sourceImage: pulumi.Output<outputs.ImageSourceImage | undefined>;
|
||||
/**
|
||||
* *Optional* - The source instance from which the image will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceInstance!: pulumi.Output<outputs.ImageSourceInstance | undefined>;
|
||||
declare public readonly sourceInstance: pulumi.Output<outputs.ImageSourceInstance | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Image resource with the given unique name, arguments, and options.
|
||||
@@ -114,24 +137,24 @@ export class Image extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ImageState | undefined;
|
||||
resourceInputs["aliases"] = state ? state.aliases : undefined;
|
||||
resourceInputs["copiedAliases"] = state ? state.copiedAliases : undefined;
|
||||
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
||||
resourceInputs["fingerprint"] = state ? state.fingerprint : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["resourceId"] = state ? state.resourceId : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["sourceImage"] = state ? state.sourceImage : undefined;
|
||||
resourceInputs["sourceInstance"] = state ? state.sourceInstance : undefined;
|
||||
resourceInputs["aliases"] = state?.aliases;
|
||||
resourceInputs["copiedAliases"] = state?.copiedAliases;
|
||||
resourceInputs["createdAt"] = state?.createdAt;
|
||||
resourceInputs["fingerprint"] = state?.fingerprint;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["resourceId"] = state?.resourceId;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["sourceImage"] = state?.sourceImage;
|
||||
resourceInputs["sourceInstance"] = state?.sourceInstance;
|
||||
} else {
|
||||
const args = argsOrState as ImageArgs | undefined;
|
||||
resourceInputs["aliases"] = args ? args.aliases : undefined;
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["sourceImage"] = args ? args.sourceImage : undefined;
|
||||
resourceInputs["sourceInstance"] = args ? args.sourceInstance : undefined;
|
||||
resourceInputs["aliases"] = args?.aliases;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["sourceImage"] = args?.sourceImage;
|
||||
resourceInputs["sourceInstance"] = args?.sourceInstance;
|
||||
resourceInputs["copiedAliases"] = undefined /*out*/;
|
||||
resourceInputs["createdAt"] = undefined /*out*/;
|
||||
resourceInputs["fingerprint"] = undefined /*out*/;
|
||||
@@ -147,10 +170,9 @@ export class Image extends pulumi.CustomResource {
|
||||
*/
|
||||
export interface ImageState {
|
||||
/**
|
||||
* *Optional* - A list of aliases to assign to the image after
|
||||
* pulling.
|
||||
* Image alias
|
||||
*/
|
||||
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
|
||||
/**
|
||||
* The list of aliases that were copied from the
|
||||
* `sourceImage`.
|
||||
@@ -193,10 +215,9 @@ export interface ImageState {
|
||||
*/
|
||||
export interface ImageArgs {
|
||||
/**
|
||||
* *Optional* - A list of aliases to assign to the image after
|
||||
* pulling.
|
||||
* Image alias
|
||||
*/
|
||||
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
aliases?: pulumi.Input<pulumi.Input<inputs.ImageAlias>[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the image will be stored.
|
||||
*/
|
||||
|
||||
103
sdk/nodejs/index.ts
generated
103
sdk/nodejs/index.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";
|
||||
@@ -15,16 +15,66 @@ export type ClusterGroup = import("./clusterGroup").ClusterGroup;
|
||||
export const ClusterGroup: typeof import("./clusterGroup").ClusterGroup = null as any;
|
||||
utilities.lazyLoad(exports, ["ClusterGroup"], () => require("./clusterGroup"));
|
||||
|
||||
export { ClusterGroupAssignmentArgs, ClusterGroupAssignmentState } from "./clusterGroupAssignment";
|
||||
export type ClusterGroupAssignment = import("./clusterGroupAssignment").ClusterGroupAssignment;
|
||||
export const ClusterGroupAssignment: typeof import("./clusterGroupAssignment").ClusterGroupAssignment = null as any;
|
||||
utilities.lazyLoad(exports, ["ClusterGroupAssignment"], () => require("./clusterGroupAssignment"));
|
||||
export { ClusterGroupMemberArgs, ClusterGroupMemberState } from "./clusterGroupMember";
|
||||
export type ClusterGroupMember = import("./clusterGroupMember").ClusterGroupMember;
|
||||
export const ClusterGroupMember: typeof import("./clusterGroupMember").ClusterGroupMember = null as any;
|
||||
utilities.lazyLoad(exports, ["ClusterGroupMember"], () => require("./clusterGroupMember"));
|
||||
|
||||
export { GetClusterArgs, GetClusterResult, GetClusterOutputArgs } from "./getCluster";
|
||||
export const getCluster: typeof import("./getCluster").getCluster = null as any;
|
||||
export const getClusterOutput: typeof import("./getCluster").getClusterOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getCluster","getClusterOutput"], () => require("./getCluster"));
|
||||
|
||||
export { GetImageArgs, GetImageResult, GetImageOutputArgs } from "./getImage";
|
||||
export const getImage: typeof import("./getImage").getImage = null as any;
|
||||
export const getImageOutput: typeof import("./getImage").getImageOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getImage","getImageOutput"], () => require("./getImage"));
|
||||
|
||||
export { GetInstanceArgs, GetInstanceResult, GetInstanceOutputArgs } from "./getInstance";
|
||||
export const getInstance: typeof import("./getInstance").getInstance = null as any;
|
||||
export const getInstanceOutput: typeof import("./getInstance").getInstanceOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getInstance","getInstanceOutput"], () => require("./getInstance"));
|
||||
|
||||
export { GetNetworkArgs, GetNetworkResult, GetNetworkOutputArgs } from "./getNetwork";
|
||||
export const getNetwork: typeof import("./getNetwork").getNetwork = null as any;
|
||||
export const getNetworkOutput: typeof import("./getNetwork").getNetworkOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetwork","getNetworkOutput"], () => require("./getNetwork"));
|
||||
|
||||
export { GetNetworkAclArgs, GetNetworkAclResult, GetNetworkAclOutputArgs } from "./getNetworkAcl";
|
||||
export const getNetworkAcl: typeof import("./getNetworkAcl").getNetworkAcl = null as any;
|
||||
export const getNetworkAclOutput: typeof import("./getNetworkAcl").getNetworkAclOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkAcl","getNetworkAclOutput"], () => require("./getNetworkAcl"));
|
||||
|
||||
export { GetNetworkAddressSetArgs, GetNetworkAddressSetResult, GetNetworkAddressSetOutputArgs } from "./getNetworkAddressSet";
|
||||
export const getNetworkAddressSet: typeof import("./getNetworkAddressSet").getNetworkAddressSet = null as any;
|
||||
export const getNetworkAddressSetOutput: typeof import("./getNetworkAddressSet").getNetworkAddressSetOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkAddressSet","getNetworkAddressSetOutput"], () => require("./getNetworkAddressSet"));
|
||||
|
||||
export { GetNetworkForwardArgs, GetNetworkForwardResult, GetNetworkForwardOutputArgs } from "./getNetworkForward";
|
||||
export const getNetworkForward: typeof import("./getNetworkForward").getNetworkForward = null as any;
|
||||
export const getNetworkForwardOutput: typeof import("./getNetworkForward").getNetworkForwardOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkForward","getNetworkForwardOutput"], () => require("./getNetworkForward"));
|
||||
|
||||
export { GetNetworkIntegrationArgs, GetNetworkIntegrationResult, GetNetworkIntegrationOutputArgs } from "./getNetworkIntegration";
|
||||
export const getNetworkIntegration: typeof import("./getNetworkIntegration").getNetworkIntegration = null as any;
|
||||
export const getNetworkIntegrationOutput: typeof import("./getNetworkIntegration").getNetworkIntegrationOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkIntegration","getNetworkIntegrationOutput"], () => require("./getNetworkIntegration"));
|
||||
|
||||
export { GetNetworkLoadBalancerArgs, GetNetworkLoadBalancerResult, GetNetworkLoadBalancerOutputArgs } from "./getNetworkLoadBalancer";
|
||||
export const getNetworkLoadBalancer: typeof import("./getNetworkLoadBalancer").getNetworkLoadBalancer = null as any;
|
||||
export const getNetworkLoadBalancerOutput: typeof import("./getNetworkLoadBalancer").getNetworkLoadBalancerOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkLoadBalancer","getNetworkLoadBalancerOutput"], () => require("./getNetworkLoadBalancer"));
|
||||
|
||||
export { GetNetworkPeerArgs, GetNetworkPeerResult, GetNetworkPeerOutputArgs } from "./getNetworkPeer";
|
||||
export const getNetworkPeer: typeof import("./getNetworkPeer").getNetworkPeer = null as any;
|
||||
export const getNetworkPeerOutput: typeof import("./getNetworkPeer").getNetworkPeerOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkPeer","getNetworkPeerOutput"], () => require("./getNetworkPeer"));
|
||||
|
||||
export { GetNetworkZoneArgs, GetNetworkZoneResult, GetNetworkZoneOutputArgs } from "./getNetworkZone";
|
||||
export const getNetworkZone: typeof import("./getNetworkZone").getNetworkZone = null as any;
|
||||
export const getNetworkZoneOutput: typeof import("./getNetworkZone").getNetworkZoneOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getNetworkZone","getNetworkZoneOutput"], () => require("./getNetworkZone"));
|
||||
|
||||
export { GetProfileArgs, GetProfileResult, GetProfileOutputArgs } from "./getProfile";
|
||||
export const getProfile: typeof import("./getProfile").getProfile = null as any;
|
||||
export const getProfileOutput: typeof import("./getProfile").getProfileOutput = null as any;
|
||||
@@ -35,6 +85,21 @@ export const getProject: typeof import("./getProject").getProject = null as any;
|
||||
export const getProjectOutput: typeof import("./getProject").getProjectOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getProject","getProjectOutput"], () => require("./getProject"));
|
||||
|
||||
export { GetStorageBucketArgs, GetStorageBucketResult, GetStorageBucketOutputArgs } from "./getStorageBucket";
|
||||
export const getStorageBucket: typeof import("./getStorageBucket").getStorageBucket = null as any;
|
||||
export const getStorageBucketOutput: typeof import("./getStorageBucket").getStorageBucketOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getStorageBucket","getStorageBucketOutput"], () => require("./getStorageBucket"));
|
||||
|
||||
export { GetStoragePoolArgs, GetStoragePoolResult, GetStoragePoolOutputArgs } from "./getStoragePool";
|
||||
export const getStoragePool: typeof import("./getStoragePool").getStoragePool = null as any;
|
||||
export const getStoragePoolOutput: typeof import("./getStoragePool").getStoragePoolOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getStoragePool","getStoragePoolOutput"], () => require("./getStoragePool"));
|
||||
|
||||
export { GetStorageVolumeArgs, GetStorageVolumeResult, GetStorageVolumeOutputArgs } from "./getStorageVolume";
|
||||
export const getStorageVolume: typeof import("./getStorageVolume").getStorageVolume = null as any;
|
||||
export const getStorageVolumeOutput: typeof import("./getStorageVolume").getStorageVolumeOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getStorageVolume","getStorageVolumeOutput"], () => require("./getStorageVolume"));
|
||||
|
||||
export { ImageArgs, ImageState } from "./image";
|
||||
export type Image = import("./image").Image;
|
||||
export const Image: typeof import("./image").Image = null as any;
|
||||
@@ -60,6 +125,11 @@ export type NetworkAcl = import("./networkAcl").NetworkAcl;
|
||||
export const NetworkAcl: typeof import("./networkAcl").NetworkAcl = null as any;
|
||||
utilities.lazyLoad(exports, ["NetworkAcl"], () => require("./networkAcl"));
|
||||
|
||||
export { NetworkAddressSetArgs, NetworkAddressSetState } from "./networkAddressSet";
|
||||
export type NetworkAddressSet = import("./networkAddressSet").NetworkAddressSet;
|
||||
export const NetworkAddressSet: typeof import("./networkAddressSet").NetworkAddressSet = null as any;
|
||||
utilities.lazyLoad(exports, ["NetworkAddressSet"], () => require("./networkAddressSet"));
|
||||
|
||||
export { NetworkForwardArgs, NetworkForwardState } from "./networkForward";
|
||||
export type NetworkForward = import("./networkForward").NetworkForward;
|
||||
export const NetworkForward: typeof import("./networkForward").NetworkForward = null as any;
|
||||
@@ -100,10 +170,13 @@ export type Project = import("./project").Project;
|
||||
export const Project: typeof import("./project").Project = null as any;
|
||||
utilities.lazyLoad(exports, ["Project"], () => require("./project"));
|
||||
|
||||
export { ProviderArgs } from "./provider";
|
||||
export type Provider = import("./provider").Provider;
|
||||
export const Provider: typeof import("./provider").Provider = null as any;
|
||||
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
||||
export * from "./provider";
|
||||
import { Provider } from "./provider";
|
||||
|
||||
export { ServerArgs, ServerState } from "./server";
|
||||
export type Server = import("./server").Server;
|
||||
export const Server: typeof import("./server").Server = null as any;
|
||||
utilities.lazyLoad(exports, ["Server"], () => require("./server"));
|
||||
|
||||
export { StorageBucketArgs, StorageBucketState } from "./storageBucket";
|
||||
export type StorageBucket = import("./storageBucket").StorageBucket;
|
||||
@@ -143,8 +216,8 @@ const _module = {
|
||||
return new Certificate(name, <any>undefined, { urn })
|
||||
case "incus:index/clusterGroup:ClusterGroup":
|
||||
return new ClusterGroup(name, <any>undefined, { urn })
|
||||
case "incus:index/clusterGroupAssignment:ClusterGroupAssignment":
|
||||
return new ClusterGroupAssignment(name, <any>undefined, { urn })
|
||||
case "incus:index/clusterGroupMember:ClusterGroupMember":
|
||||
return new ClusterGroupMember(name, <any>undefined, { urn })
|
||||
case "incus:index/image:Image":
|
||||
return new Image(name, <any>undefined, { urn })
|
||||
case "incus:index/instance:Instance":
|
||||
@@ -155,6 +228,8 @@ const _module = {
|
||||
return new Network(name, <any>undefined, { urn })
|
||||
case "incus:index/networkAcl:NetworkAcl":
|
||||
return new NetworkAcl(name, <any>undefined, { urn })
|
||||
case "incus:index/networkAddressSet:NetworkAddressSet":
|
||||
return new NetworkAddressSet(name, <any>undefined, { urn })
|
||||
case "incus:index/networkForward:NetworkForward":
|
||||
return new NetworkForward(name, <any>undefined, { urn })
|
||||
case "incus:index/networkIntegration:NetworkIntegration":
|
||||
@@ -171,6 +246,8 @@ const _module = {
|
||||
return new Profile(name, <any>undefined, { urn })
|
||||
case "incus:index/project:Project":
|
||||
return new Project(name, <any>undefined, { urn })
|
||||
case "incus:index/server:Server":
|
||||
return new Server(name, <any>undefined, { urn })
|
||||
case "incus:index/storageBucket:StorageBucket":
|
||||
return new StorageBucket(name, <any>undefined, { urn })
|
||||
case "incus:index/storageBucketKey:StorageBucketKey":
|
||||
@@ -186,12 +263,13 @@ const _module = {
|
||||
};
|
||||
pulumi.runtime.registerResourceModule("incus", "index/certificate", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/clusterGroup", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/clusterGroupAssignment", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/clusterGroupMember", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/image", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/instance", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/instanceSnapshot", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/network", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkAcl", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkAddressSet", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkForward", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkIntegration", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkLoadBalancer", _module)
|
||||
@@ -200,6 +278,7 @@ pulumi.runtime.registerResourceModule("incus", "index/networkZone", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/networkZoneRecord", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/profile", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/project", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/server", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/storageBucket", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/storageBucketKey", _module)
|
||||
pulumi.runtime.registerResourceModule("incus", "index/storagePool", _module)
|
||||
|
||||
135
sdk/nodejs/instance.ts
generated
135
sdk/nodejs/instance.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";
|
||||
@@ -34,95 +34,99 @@ export class Instance extends pulumi.CustomResource {
|
||||
return obj['__pulumiType'] === Instance.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
declare public readonly architecture: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the instance.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Device definition. See reference below.
|
||||
*/
|
||||
public readonly devices!: pulumi.Output<outputs.InstanceDevice[] | undefined>;
|
||||
declare public readonly devices: pulumi.Output<outputs.InstanceDevice[] | undefined>;
|
||||
/**
|
||||
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
|
||||
*/
|
||||
public readonly ephemeral!: pulumi.Output<boolean>;
|
||||
declare public readonly ephemeral: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - File to upload to the instance. See reference below.
|
||||
*/
|
||||
public readonly files!: pulumi.Output<outputs.InstanceFile[] | undefined>;
|
||||
declare public readonly files: pulumi.Output<outputs.InstanceFile[] | undefined>;
|
||||
/**
|
||||
* *Optional* - Base image from which the instance will be created. Must
|
||||
* specify [an image accessible from the provider remote](https://linuxcontainers.org/incus/docs/main/reference/image_servers/).
|
||||
*/
|
||||
public readonly image!: pulumi.Output<string | undefined>;
|
||||
declare public readonly image: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* The IPv4 Address of the instance. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly ipv4Address!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly ipv4Address: pulumi.Output<string>;
|
||||
/**
|
||||
* The IPv6 Address of the instance. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly ipv6Address!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly ipv6Address: pulumi.Output<string>;
|
||||
/**
|
||||
* The MAC address of the detected NIC. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly macAddress!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly macAddress: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of Incus config profiles to apply to the new
|
||||
* instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
* However, if an empty array (`[]`) is set as a value, no profiles will be applied.
|
||||
*/
|
||||
public readonly profiles!: pulumi.Output<string[]>;
|
||||
declare public readonly profiles: pulumi.Output<string[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the instance will be spawned.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
|
||||
*/
|
||||
public readonly running!: pulumi.Output<boolean>;
|
||||
declare public readonly running: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<string | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The source instance from which the instance will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceInstance!: pulumi.Output<outputs.InstanceSourceInstance | undefined>;
|
||||
declare public readonly sourceInstance: pulumi.Output<outputs.InstanceSourceInstance | undefined>;
|
||||
/**
|
||||
* The status of the instance.
|
||||
*/
|
||||
public /*out*/ readonly status!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly status: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string>;
|
||||
declare public readonly target: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - WaitFor definition. See reference below.
|
||||
* If `running` is set to false or instance is already running (on update), this value has no effect.
|
||||
*/
|
||||
public readonly waitFors!: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
|
||||
declare public readonly waitFors: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Instance resource with the given unique name, arguments, and options.
|
||||
@@ -131,50 +135,55 @@ export class Instance extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: InstanceArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: InstanceArgs | InstanceState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as InstanceState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["devices"] = state ? state.devices : undefined;
|
||||
resourceInputs["ephemeral"] = state ? state.ephemeral : undefined;
|
||||
resourceInputs["files"] = state ? state.files : undefined;
|
||||
resourceInputs["image"] = state ? state.image : undefined;
|
||||
resourceInputs["ipv4Address"] = state ? state.ipv4Address : undefined;
|
||||
resourceInputs["ipv6Address"] = state ? state.ipv6Address : undefined;
|
||||
resourceInputs["macAddress"] = state ? state.macAddress : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["profiles"] = state ? state.profiles : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["running"] = state ? state.running : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["sourceInstance"] = state ? state.sourceInstance : undefined;
|
||||
resourceInputs["status"] = state ? state.status : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["waitFors"] = state ? state.waitFors : undefined;
|
||||
resourceInputs["architecture"] = state?.architecture;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["devices"] = state?.devices;
|
||||
resourceInputs["ephemeral"] = state?.ephemeral;
|
||||
resourceInputs["files"] = state?.files;
|
||||
resourceInputs["image"] = state?.image;
|
||||
resourceInputs["ipv4Address"] = state?.ipv4Address;
|
||||
resourceInputs["ipv6Address"] = state?.ipv6Address;
|
||||
resourceInputs["macAddress"] = state?.macAddress;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["profiles"] = state?.profiles;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["running"] = state?.running;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["sourceInstance"] = state?.sourceInstance;
|
||||
resourceInputs["status"] = state?.status;
|
||||
resourceInputs["target"] = state?.target;
|
||||
resourceInputs["type"] = state?.type;
|
||||
resourceInputs["waitFors"] = state?.waitFors;
|
||||
} else {
|
||||
const args = argsOrState as InstanceArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["devices"] = args ? args.devices : undefined;
|
||||
resourceInputs["ephemeral"] = args ? args.ephemeral : undefined;
|
||||
resourceInputs["files"] = args ? args.files : undefined;
|
||||
resourceInputs["image"] = args ? args.image : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["profiles"] = args ? args.profiles : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["running"] = args ? args.running : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["sourceInstance"] = args ? args.sourceInstance : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
resourceInputs["waitFors"] = args ? args.waitFors : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["architecture"] = args?.architecture;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["devices"] = args?.devices;
|
||||
resourceInputs["ephemeral"] = args?.ephemeral;
|
||||
resourceInputs["files"] = args?.files;
|
||||
resourceInputs["image"] = args?.image;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["profiles"] = args?.profiles;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["running"] = args?.running;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["sourceInstance"] = args?.sourceInstance;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["waitFors"] = args?.waitFors;
|
||||
resourceInputs["ipv4Address"] = undefined /*out*/;
|
||||
resourceInputs["ipv6Address"] = undefined /*out*/;
|
||||
resourceInputs["macAddress"] = undefined /*out*/;
|
||||
@@ -189,6 +198,10 @@ export class Instance extends pulumi.CustomResource {
|
||||
* Input properties used for looking up and filtering Instance resources.
|
||||
*/
|
||||
export interface InstanceState {
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
@@ -284,6 +297,10 @@ export interface InstanceState {
|
||||
* The set of arguments for constructing a Instance resource.
|
||||
*/
|
||||
export interface InstanceArgs {
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
@@ -313,7 +330,7 @@ export interface InstanceArgs {
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - List of Incus config profiles to apply to the new
|
||||
* instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
|
||||
43
sdk/nodejs/instanceSnapshot.ts
generated
43
sdk/nodejs/instanceSnapshot.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";
|
||||
@@ -58,30 +58,30 @@ export class InstanceSnapshot extends pulumi.CustomResource {
|
||||
* The time Incus reported the snapshot was successfully created,
|
||||
* in UTC.
|
||||
*/
|
||||
public /*out*/ readonly createdAt!: pulumi.Output<number>;
|
||||
declare public /*out*/ readonly createdAt: pulumi.Output<number>;
|
||||
/**
|
||||
* **Required** - The name of the instance to snapshot.
|
||||
*/
|
||||
public readonly instance!: pulumi.Output<string>;
|
||||
declare public readonly instance: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the snapshot.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the snapshot will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Set to `true` to create a stateful snapshot,
|
||||
* `false` for stateless. Stateful snapshots include runtime state. Defaults to
|
||||
* `false`.
|
||||
*/
|
||||
public readonly stateful!: pulumi.Output<boolean>;
|
||||
declare public readonly stateful: pulumi.Output<boolean>;
|
||||
|
||||
/**
|
||||
* Create a InstanceSnapshot resource with the given unique name, arguments, and options.
|
||||
@@ -96,22 +96,25 @@ export class InstanceSnapshot extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as InstanceSnapshotState | undefined;
|
||||
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
||||
resourceInputs["instance"] = state ? state.instance : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["stateful"] = state ? state.stateful : undefined;
|
||||
resourceInputs["createdAt"] = state?.createdAt;
|
||||
resourceInputs["instance"] = state?.instance;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["stateful"] = state?.stateful;
|
||||
} else {
|
||||
const args = argsOrState as InstanceSnapshotArgs | undefined;
|
||||
if ((!args || args.instance === undefined) && !opts.urn) {
|
||||
if (args?.instance === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'instance'");
|
||||
}
|
||||
resourceInputs["instance"] = args ? args.instance : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["stateful"] = args ? args.stateful : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["instance"] = args?.instance;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["stateful"] = args?.stateful;
|
||||
resourceInputs["createdAt"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -164,7 +167,7 @@ export interface InstanceSnapshotArgs {
|
||||
/**
|
||||
* **Required** - Name of the snapshot.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the snapshot will be stored.
|
||||
*/
|
||||
|
||||
61
sdk/nodejs/network.ts
generated
61
sdk/nodejs/network.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";
|
||||
@@ -36,39 +36,39 @@ export class Network extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network.
|
||||
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* Whether or not the network is managed.
|
||||
*/
|
||||
public /*out*/ readonly managed!: pulumi.Output<boolean>;
|
||||
declare public /*out*/ readonly managed: pulumi.Output<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the network. This is usually the device the
|
||||
* network will appear as to instances.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string | undefined>;
|
||||
declare public readonly target: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The type of network to create. Can be one of: bridge,
|
||||
* macvlan, sriov, ovn, or physical. If no type is specified, a bridge network
|
||||
* is created.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a Network resource with the given unique name, arguments, and options.
|
||||
@@ -77,29 +77,32 @@ export class Network extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: NetworkArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkArgs | NetworkState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["managed"] = state ? state.managed : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["managed"] = state?.managed;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["target"] = state?.target;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as NetworkArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["managed"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -117,7 +120,7 @@ export interface NetworkState {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network.
|
||||
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
@@ -160,14 +163,14 @@ export interface NetworkArgs {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network.
|
||||
* *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network. This is usually the device the
|
||||
* network will appear as to instances.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
|
||||
51
sdk/nodejs/networkAcl.ts
generated
51
sdk/nodejs/networkAcl.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";
|
||||
@@ -38,34 +38,34 @@ export class NetworkAcl extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* network ACL config settings.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network ACL rule.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of network ACL rules for egress traffic. See reference below.
|
||||
*/
|
||||
public readonly egresses!: pulumi.Output<outputs.NetworkAclEgress[]>;
|
||||
declare public readonly egresses: pulumi.Output<outputs.NetworkAclEgress[]>;
|
||||
/**
|
||||
* *Optional* - List of network ACL rules for ingress traffic. See reference below.
|
||||
*
|
||||
* The network ACL rule supports:
|
||||
*/
|
||||
public readonly ingresses!: pulumi.Output<outputs.NetworkAclIngress[]>;
|
||||
declare public readonly ingresses: pulumi.Output<outputs.NetworkAclIngress[]>;
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkAcl resource with the given unique name, arguments, and options.
|
||||
@@ -74,28 +74,31 @@ export class NetworkAcl extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: NetworkAclArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkAclArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkAclArgs | NetworkAclState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkAclState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["egresses"] = state ? state.egresses : undefined;
|
||||
resourceInputs["ingresses"] = state ? state.ingresses : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["egresses"] = state?.egresses;
|
||||
resourceInputs["ingresses"] = state?.ingresses;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkAclArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["egresses"] = args ? args.egresses : undefined;
|
||||
resourceInputs["ingresses"] = args ? args.ingresses : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["egresses"] = args?.egresses;
|
||||
resourceInputs["ingresses"] = args?.ingresses;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkAcl.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -166,7 +169,7 @@ export interface NetworkAclArgs {
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL will be created.
|
||||
*/
|
||||
|
||||
208
sdk/nodejs/networkAddressSet.ts
generated
Normal file
208
sdk/nodejs/networkAddressSet.ts
generated
Normal file
@@ -0,0 +1,208 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* ## # incus.NetworkAddressSet
|
||||
*
|
||||
* Network address sets are a list of either IPv4, IPv6 addresses with or without CIDR suffix. They can be used in source or destination fields of [ACLs](https://linuxcontainers.org/incus/docs/main/howto/network_acls/#network-acls-rules-properties).
|
||||
*
|
||||
* ## Basic Example
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = new incus.NetworkAddressSet("this", {
|
||||
* name: "Network Address Set",
|
||||
* description: "Network Address Set description",
|
||||
* addresses: [
|
||||
* "10.0.0.2",
|
||||
* "10.0.0.3",
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ## ACL Example
|
||||
*
|
||||
* ```typescript
|
||||
* import * as pulumi from "@pulumi/pulumi";
|
||||
* import * as incus from "@kiterun/incus";
|
||||
*
|
||||
* const _this = new incus.NetworkAddressSet("this", {
|
||||
* name: "network_address_set",
|
||||
* description: "Network Address Set description",
|
||||
* addresses: [
|
||||
* "10.0.0.2",
|
||||
* "10.0.0.3",
|
||||
* ],
|
||||
* });
|
||||
* const thisNetworkAcl = new incus.NetworkAcl("this", {
|
||||
* name: "network_acl",
|
||||
* ingresses: [{
|
||||
* action: "allow",
|
||||
* source: "${incus_network_address_set.this.name}",
|
||||
* destination_port: "22",
|
||||
* protocol: "tcp",
|
||||
* description: pulumi.interpolate`Incoming SSH connections from ${_this.name}`,
|
||||
* state: "logged",
|
||||
* }],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export class NetworkAddressSet extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing NetworkAddressSet resource's state with the given name, ID, and optional extra
|
||||
* properties used to qualify the lookup.
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param id The _unique_ provider ID of the resource to lookup.
|
||||
* @param state Any extra arguments used during the lookup.
|
||||
* @param opts Optional settings to control the behavior of the CustomResource.
|
||||
*/
|
||||
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NetworkAddressSetState, opts?: pulumi.CustomResourceOptions): NetworkAddressSet {
|
||||
return new NetworkAddressSet(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'incus:index/networkAddressSet:NetworkAddressSet';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of NetworkAddressSet. This is designed to work even
|
||||
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
||||
*/
|
||||
public static isInstance(obj: any): obj is NetworkAddressSet {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === NetworkAddressSet.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* **Required** - IP addresses of the address set.
|
||||
*/
|
||||
declare public readonly addresses: pulumi.Output<string[]>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
*/
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network address set.
|
||||
*/
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set will be created.
|
||||
*/
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkAddressSet resource with the given unique name, arguments, and options.
|
||||
*
|
||||
* @param name The _unique_ name of the resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args: NetworkAddressSetArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkAddressSetArgs | NetworkAddressSetState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkAddressSetState | undefined;
|
||||
resourceInputs["addresses"] = state?.addresses;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkAddressSetArgs | undefined;
|
||||
if (args?.addresses === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'addresses'");
|
||||
}
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["addresses"] = args?.addresses;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkAddressSet.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering NetworkAddressSet resources.
|
||||
*/
|
||||
export interface NetworkAddressSetState {
|
||||
/**
|
||||
* **Required** - IP addresses of the address set.
|
||||
*/
|
||||
addresses?: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network address set.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set will be created.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a NetworkAddressSet resource.
|
||||
*/
|
||||
export interface NetworkAddressSetArgs {
|
||||
/**
|
||||
* **Required** - IP addresses of the address set.
|
||||
*/
|
||||
addresses: pulumi.Input<pulumi.Input<string>[]>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the network address set.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the network address set.
|
||||
*/
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network address set will be created.
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
}
|
||||
48
sdk/nodejs/networkForward.ts
generated
48
sdk/nodejs/networkForward.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";
|
||||
@@ -38,34 +38,34 @@ export class NetworkForward extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* network forward config settings.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of port(s)
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - IP address to listen on.
|
||||
*/
|
||||
public readonly listenAddress!: pulumi.Output<string>;
|
||||
declare public readonly listenAddress: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
public readonly network!: pulumi.Output<string>;
|
||||
declare public readonly network: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of port specifications. See reference below.
|
||||
*
|
||||
* The network forward port supports:
|
||||
*/
|
||||
public readonly ports!: pulumi.Output<outputs.NetworkForwardPort[]>;
|
||||
declare public readonly ports: pulumi.Output<outputs.NetworkForwardPort[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network forward will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkForward resource with the given unique name, arguments, and options.
|
||||
@@ -80,28 +80,28 @@ export class NetworkForward extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkForwardState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["listenAddress"] = state ? state.listenAddress : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["ports"] = state ? state.ports : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["listenAddress"] = state?.listenAddress;
|
||||
resourceInputs["network"] = state?.network;
|
||||
resourceInputs["ports"] = state?.ports;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkForwardArgs | undefined;
|
||||
if ((!args || args.listenAddress === undefined) && !opts.urn) {
|
||||
if (args?.listenAddress === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'listenAddress'");
|
||||
}
|
||||
if ((!args || args.network === undefined) && !opts.urn) {
|
||||
if (args?.network === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'network'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["listenAddress"] = args ? args.listenAddress : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["ports"] = args ? args.ports : undefined;
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["listenAddress"] = args?.listenAddress;
|
||||
resourceInputs["network"] = args?.network;
|
||||
resourceInputs["ports"] = args?.ports;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkForward.__pulumiType, name, resourceInputs, opts);
|
||||
|
||||
45
sdk/nodejs/networkIntegration.ts
generated
45
sdk/nodejs/networkIntegration.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";
|
||||
@@ -86,28 +86,28 @@ export class NetworkIntegration extends pulumi.CustomResource {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/)
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network integration.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* **Required** - The type of the network integration. Currently, only supports `ovn` type.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a NetworkIntegration resource with the given unique name, arguments, and options.
|
||||
@@ -122,23 +122,26 @@ export class NetworkIntegration extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkIntegrationState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as NetworkIntegrationArgs | undefined;
|
||||
if ((!args || args.type === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.type === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'type'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["type"] = args?.type;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkIntegration.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -191,7 +194,7 @@ export interface NetworkIntegrationArgs {
|
||||
/**
|
||||
* **Required** - Name of the network integration.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network will be created.
|
||||
*/
|
||||
|
||||
54
sdk/nodejs/networkLoadBalancer.ts
generated
54
sdk/nodejs/networkLoadBalancer.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";
|
||||
@@ -37,17 +37,17 @@ export class NetworkLoadBalancer extends pulumi.CustomResource {
|
||||
/**
|
||||
* Network load balancer backend
|
||||
*/
|
||||
public readonly backends!: pulumi.Output<outputs.NetworkLoadBalancerBackend[] | undefined>;
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
public readonly listenAddress!: pulumi.Output<string>;
|
||||
public readonly network!: pulumi.Output<string>;
|
||||
declare public readonly backends: pulumi.Output<outputs.NetworkLoadBalancerBackend[] | undefined>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
declare public readonly listenAddress: pulumi.Output<string>;
|
||||
declare public readonly network: pulumi.Output<string>;
|
||||
/**
|
||||
* Network load balancer port
|
||||
*/
|
||||
public readonly ports!: pulumi.Output<outputs.NetworkLoadBalancerPort[] | undefined>;
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly ports: pulumi.Output<outputs.NetworkLoadBalancerPort[] | undefined>;
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkLoadBalancer resource with the given unique name, arguments, and options.
|
||||
@@ -62,30 +62,30 @@ export class NetworkLoadBalancer extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkLoadBalancerState | undefined;
|
||||
resourceInputs["backends"] = state ? state.backends : undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["listenAddress"] = state ? state.listenAddress : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["ports"] = state ? state.ports : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["backends"] = state?.backends;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["listenAddress"] = state?.listenAddress;
|
||||
resourceInputs["network"] = state?.network;
|
||||
resourceInputs["ports"] = state?.ports;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkLoadBalancerArgs | undefined;
|
||||
if ((!args || args.listenAddress === undefined) && !opts.urn) {
|
||||
if (args?.listenAddress === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'listenAddress'");
|
||||
}
|
||||
if ((!args || args.network === undefined) && !opts.urn) {
|
||||
if (args?.network === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'network'");
|
||||
}
|
||||
resourceInputs["backends"] = args ? args.backends : undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["listenAddress"] = args ? args.listenAddress : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["ports"] = args ? args.ports : undefined;
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["backends"] = args?.backends;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["listenAddress"] = args?.listenAddress;
|
||||
resourceInputs["network"] = args?.network;
|
||||
resourceInputs["ports"] = args?.ports;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkLoadBalancer.__pulumiType, name, resourceInputs, opts);
|
||||
|
||||
73
sdk/nodejs/networkPeer.ts
generated
73
sdk/nodejs/networkPeer.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";
|
||||
@@ -81,42 +81,42 @@ export class NetworkPeer extends pulumi.CustomResource {
|
||||
/**
|
||||
* *Optional* - Configuration options as key/value pairs (only user.* custom keys supported)
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network peering
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **required** - Name of the network peering on the local network
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the local network.
|
||||
*/
|
||||
public readonly network!: pulumi.Output<string | undefined>;
|
||||
declare public readonly network: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network is located.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
public /*out*/ readonly status!: pulumi.Output<string>;
|
||||
public readonly targetIntegration!: pulumi.Output<string>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
declare public /*out*/ readonly status: pulumi.Output<string>;
|
||||
declare public readonly targetIntegration: pulumi.Output<string>;
|
||||
/**
|
||||
* **required** - Which network to create a peering with (required at create time for local peers)
|
||||
*/
|
||||
public readonly targetNetwork!: pulumi.Output<string>;
|
||||
declare public readonly targetNetwork: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Which project the target network exists in (required at create time for local peers)
|
||||
*/
|
||||
public readonly targetProject!: pulumi.Output<string>;
|
||||
declare public readonly targetProject: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Type of network peering
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a NetworkPeer resource with the given unique name, arguments, and options.
|
||||
@@ -125,35 +125,38 @@ export class NetworkPeer extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: NetworkPeerArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkPeerArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkPeerArgs | NetworkPeerState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkPeerState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["status"] = state ? state.status : undefined;
|
||||
resourceInputs["targetIntegration"] = state ? state.targetIntegration : undefined;
|
||||
resourceInputs["targetNetwork"] = state ? state.targetNetwork : undefined;
|
||||
resourceInputs["targetProject"] = state ? state.targetProject : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["network"] = state?.network;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["status"] = state?.status;
|
||||
resourceInputs["targetIntegration"] = state?.targetIntegration;
|
||||
resourceInputs["targetNetwork"] = state?.targetNetwork;
|
||||
resourceInputs["targetProject"] = state?.targetProject;
|
||||
resourceInputs["type"] = state?.type;
|
||||
} else {
|
||||
const args = argsOrState as NetworkPeerArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["targetIntegration"] = args ? args.targetIntegration : undefined;
|
||||
resourceInputs["targetNetwork"] = args ? args.targetNetwork : undefined;
|
||||
resourceInputs["targetProject"] = args ? args.targetProject : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["network"] = args?.network;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["targetIntegration"] = args?.targetIntegration;
|
||||
resourceInputs["targetNetwork"] = args?.targetNetwork;
|
||||
resourceInputs["targetProject"] = args?.targetProject;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["status"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -221,7 +224,7 @@ export interface NetworkPeerArgs {
|
||||
/**
|
||||
* **required** - Name of the network peering on the local network
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the local network.
|
||||
*/
|
||||
|
||||
39
sdk/nodejs/networkZone.ts
generated
39
sdk/nodejs/networkZone.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";
|
||||
@@ -36,24 +36,24 @@ export class NetworkZone extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network zone.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkZone resource with the given unique name, arguments, and options.
|
||||
@@ -62,24 +62,27 @@ export class NetworkZone extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: NetworkZoneArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkZoneArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkZoneArgs | NetworkZoneState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkZoneState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkZoneArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkZone.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -130,7 +133,7 @@ export interface NetworkZoneArgs {
|
||||
/**
|
||||
* **Required** - Name of the network zone.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone will be created.
|
||||
*/
|
||||
|
||||
51
sdk/nodejs/networkZoneRecord.ts
generated
51
sdk/nodejs/networkZoneRecord.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";
|
||||
@@ -38,32 +38,32 @@ export class NetworkZoneRecord extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network zone.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Entry in network zone record - see below.
|
||||
*/
|
||||
public readonly entries!: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
|
||||
declare public readonly entries: pulumi.Output<outputs.NetworkZoneRecordEntry[] | undefined>;
|
||||
/**
|
||||
* **Required** - Name of the network zone record.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone record will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* **Required** - Name of the zone to add the entries of this record.
|
||||
*/
|
||||
public readonly zone!: pulumi.Output<string>;
|
||||
declare public readonly zone: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a NetworkZoneRecord resource with the given unique name, arguments, and options.
|
||||
@@ -78,25 +78,28 @@ export class NetworkZoneRecord extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkZoneRecordState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["entries"] = state ? state.entries : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["zone"] = state ? state.zone : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["entries"] = state?.entries;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["zone"] = state?.zone;
|
||||
} else {
|
||||
const args = argsOrState as NetworkZoneRecordArgs | undefined;
|
||||
if ((!args || args.zone === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.zone === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'zone'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["entries"] = args ? args.entries : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["zone"] = args ? args.zone : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["entries"] = args?.entries;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["zone"] = args?.zone;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkZoneRecord.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -159,7 +162,7 @@ export interface NetworkZoneRecordArgs {
|
||||
/**
|
||||
* **Required** - Name of the network zone record.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network zone record will be created.
|
||||
*/
|
||||
|
||||
45
sdk/nodejs/profile.ts
generated
45
sdk/nodejs/profile.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";
|
||||
@@ -38,28 +38,28 @@ export class Profile extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the profile.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Device definition. See reference below.
|
||||
*/
|
||||
public readonly devices!: pulumi.Output<outputs.ProfileDevice[] | undefined>;
|
||||
declare public readonly devices: pulumi.Output<outputs.ProfileDevice[] | undefined>;
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Profile resource with the given unique name, arguments, and options.
|
||||
@@ -68,26 +68,29 @@ export class Profile extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: ProfileArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: ProfileArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ProfileArgs | ProfileState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ProfileState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["devices"] = state ? state.devices : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["devices"] = state?.devices;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ProfileArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["devices"] = args ? args.devices : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["devices"] = args?.devices;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Profile.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -146,7 +149,7 @@ export interface ProfileArgs {
|
||||
/**
|
||||
* **Required** - Name of the profile.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the profile will be stored.
|
||||
*/
|
||||
|
||||
47
sdk/nodejs/project.ts
generated
47
sdk/nodejs/project.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";
|
||||
@@ -35,20 +35,24 @@ export class Project extends pulumi.CustomResource {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the project.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
*/
|
||||
declare public readonly forceDestroy: pulumi.Output<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Project resource with the given unique name, arguments, and options.
|
||||
@@ -57,22 +61,27 @@ export class Project extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: ProjectArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: ProjectArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ProjectArgs | ProjectState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ProjectState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["forceDestroy"] = state?.forceDestroy;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as ProjectArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["forceDestroy"] = args?.forceDestroy;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Project.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -91,6 +100,10 @@ export interface ProjectState {
|
||||
* *Optional* - Description of the project.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
*/
|
||||
forceDestroy?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
@@ -114,10 +127,14 @@ export interface ProjectArgs {
|
||||
* *Optional* - Description of the project.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
|
||||
*/
|
||||
forceDestroy?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* **Required** - Name of the project.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
|
||||
50
sdk/nodejs/provider.ts
generated
50
sdk/nodejs/provider.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";
|
||||
@@ -30,12 +30,15 @@ export class Provider extends pulumi.ProviderResource {
|
||||
/**
|
||||
* The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
|
||||
*/
|
||||
public readonly configDir!: pulumi.Output<string | undefined>;
|
||||
declare public readonly configDir: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
* default)
|
||||
* The default remote to use when no other remote is defined in a resource.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
declare public readonly defaultRemote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
*/
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Provider resource with the given unique name, arguments, and options.
|
||||
@@ -48,15 +51,25 @@ export class Provider extends pulumi.ProviderResource {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
{
|
||||
resourceInputs["acceptRemoteCertificate"] = pulumi.output(args ? args.acceptRemoteCertificate : undefined).apply(JSON.stringify);
|
||||
resourceInputs["configDir"] = args ? args.configDir : undefined;
|
||||
resourceInputs["generateClientCertificates"] = pulumi.output(args ? args.generateClientCertificates : undefined).apply(JSON.stringify);
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remotes"] = pulumi.output(args ? args.remotes : undefined).apply(JSON.stringify);
|
||||
resourceInputs["acceptRemoteCertificate"] = pulumi.output(args?.acceptRemoteCertificate).apply(JSON.stringify);
|
||||
resourceInputs["configDir"] = args?.configDir;
|
||||
resourceInputs["defaultRemote"] = args?.defaultRemote;
|
||||
resourceInputs["generateClientCertificates"] = pulumi.output(args?.generateClientCertificates).apply(JSON.stringify);
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remotes"] = pulumi.output(args?.remotes).apply(JSON.stringify);
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Provider.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
||||
*/
|
||||
terraformConfig(): pulumi.Output<Provider.TerraformConfigResult> {
|
||||
return pulumi.runtime.call("pulumi:providers:incus/terraformConfig", {
|
||||
"__self__": this,
|
||||
}, this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,13 +84,16 @@ export interface ProviderArgs {
|
||||
* The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
|
||||
*/
|
||||
configDir?: pulumi.Input<string>;
|
||||
/**
|
||||
* The default remote to use when no other remote is defined in a resource.
|
||||
*/
|
||||
defaultRemote?: pulumi.Input<string>;
|
||||
/**
|
||||
* Automatically generate the Incus client certificates if they don't exist.
|
||||
*/
|
||||
generateClientCertificates?: pulumi.Input<boolean>;
|
||||
/**
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
|
||||
* default)
|
||||
* The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
|
||||
*/
|
||||
project?: pulumi.Input<string>;
|
||||
/**
|
||||
@@ -85,3 +101,13 @@ export interface ProviderArgs {
|
||||
*/
|
||||
remotes?: pulumi.Input<pulumi.Input<inputs.ProviderRemote>[]>;
|
||||
}
|
||||
|
||||
export namespace Provider {
|
||||
/**
|
||||
* The results of the Provider.terraformConfig method.
|
||||
*/
|
||||
export interface TerraformConfigResult {
|
||||
readonly result: {[key: string]: any};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
121
sdk/nodejs/server.ts
generated
Normal file
121
sdk/nodejs/server.ts
generated
Normal file
@@ -0,0 +1,121 @@
|
||||
// *** 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";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
export class Server extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing Server resource's state with the given name, ID, and optional extra
|
||||
* properties used to qualify the lookup.
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param id The _unique_ provider ID of the resource to lookup.
|
||||
* @param state Any extra arguments used during the lookup.
|
||||
* @param opts Optional settings to control the behavior of the CustomResource.
|
||||
*/
|
||||
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServerState, opts?: pulumi.CustomResourceOptions): Server {
|
||||
return new Server(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'incus:index/server:Server';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of Server. This is designed to work even
|
||||
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
||||
*/
|
||||
public static isInstance(obj: any): obj is Server {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === Server.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
*/
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster where the config
|
||||
* options should be applied. This is in particular important for config options
|
||||
* with `local` scope.
|
||||
*/
|
||||
declare public readonly target: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Server resource with the given unique name, arguments, and options.
|
||||
*
|
||||
* @param name The _unique_ name of the resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: ServerArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ServerArgs | ServerState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ServerState | undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["target"] = state?.target;
|
||||
} else {
|
||||
const args = argsOrState as ServerArgs | undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["target"] = args?.target;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Server.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering Server resources.
|
||||
*/
|
||||
export interface ServerState {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster where the config
|
||||
* options should be applied. This is in particular important for config options
|
||||
* with `local` scope.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a Server resource.
|
||||
*/
|
||||
export interface ServerArgs {
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
remote?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster where the config
|
||||
* options should be applied. This is in particular important for config options
|
||||
* with `local` scope.
|
||||
*/
|
||||
target?: pulumi.Input<string>;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user