Update
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user