Skip to content

Set up mTLS in tests (#87) #37

Set up mTLS in tests (#87)

Set up mTLS in tests (#87) #37

Triggered via push August 3, 2024 04:02
Status Success
Total duration 5m 3s
Artifacts 5

release.yml

on: push
Matrix: Publish SDKs / SDKs
Fit to window
Zoom out
Zoom in

Annotations

27 warnings
Unexpected file modified: sdk/go/baremetal/cmd/pulumiTypes.go#L1
File modified: @@ -14,196 +14,44 @@ import ( var _ = internal.GetEnvOrDefault -type TeeOpts struct { +type TeeArgsType struct { Append *bool `pulumi:"append"` Content string `pulumi:"content"` Files []string `pulumi:"files"` } -// TeeOptsInput is an input type that accepts TeeOptsArgs and TeeOptsOutput values. -// You can construct a concrete instance of `TeeOptsInput` via: -// -// TeeOptsArgs{...} -type TeeOptsInput interface { - pulumi.Input +type TeeArgsTypeOutput struct{ *pulumi.OutputState } - ToTeeOptsOutput() TeeOptsOutput - ToTeeOptsOutputWithContext(context.Context) TeeOptsOutput +func (TeeArgsTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*TeeArgsType)(nil)).Elem() } -type TeeOptsArgs struct { - Append pulumi.BoolPtrInput `pulumi:"append"` - Content pulumi.StringInput `pulumi:"content"` - Files pulumi.StringArrayInput `pulumi:"files"` -} - -func (TeeOptsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*TeeOpts)(nil)).Elem() -} - -func (i TeeOptsArgs) ToTeeOptsOutput() TeeOptsOutput { - return i.ToTeeOptsOutputWithContext(context.Background()) -} - -func (i TeeOptsArgs) ToTeeOptsOutputWithContext(ctx context.Context) TeeOptsOutput { - return pulumi.ToOutputWithContext(ctx, i).(TeeOptsOutput) -} - -func (i TeeOptsArgs) ToOutput(ctx context.Context) pulumix.Output[TeeOpts] { - return pulumix.Output[TeeOpts]{ - OutputState: i.ToTeeOptsOutputWithContext(ctx).OutputState, - } -} - -func (i TeeOptsArgs) ToTeeOptsPtrOutput() TeeOptsPtrOutput { - return i.ToTeeOptsPtrOutputWithContext(context.Background()) -} - -func (i TeeOptsArgs) ToTeeOptsPtrOutputWithContext(ctx context.Context) TeeOptsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TeeOptsOutput).ToTeeOptsPtrOutputWithContext(ctx) -} - -// TeeOptsPtrInput is an input type that accepts TeeOptsArgs, TeeOptsPtr and TeeOptsPtrOutput values. -// You can construct a concrete instance of `TeeOptsPtrInput` via: -// -// TeeOptsArgs{...} -// -// or: -// -// nil -type TeeOptsPtrInput interface { - pulumi.Input - - ToTeeOptsPtrOutput() TeeOptsPtrOutput - ToTeeOptsPtrOutputWithContext(context.Context) TeeOptsPtrOutput -} - -type teeOptsPtrType TeeOptsArgs - -func TeeOptsPtr(v *TeeOptsArgs) TeeOptsPtrInput { - return (*teeOptsPtrType)(v) -} - -func (*teeOptsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**TeeOpts)(nil)).Elem() -} - -func (i *teeOptsPtrType) ToTeeOptsPtrOutput() TeeOptsPtrOutput { - return i.ToTeeOptsPtrOutputWithContext(context.Background()) -} - -func (i *teeOptsPtrType) ToTeeOptsPtrOutputWithContext(ctx context.Context) TeeOptsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TeeOptsPtrOutput) -} - -func (i *teeOptsPtrType) ToOutput(ctx context.Context) pulumix.Output[*TeeOpts] { - return pulumix.Output[*TeeOpts]{ - OutputState: i.ToTeeOptsPtrOutputWithContext(ctx).OutputState, - } -} - -type TeeOptsOutput struct{ *pulumi.OutputState } - -func (TeeOptsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TeeOpts)(nil)).Elem() -} - -func (o TeeOptsOutput) ToTeeOptsOutput() TeeOptsOutput { +func (o TeeArgsTypeOutput) ToTeeArgsTypeOutput() TeeArgsTypeOutput { return o } -func (o TeeOptsOutput) ToTeeOptsOutputWithContext(ctx context.Context) TeeOptsOutput { +func (o TeeArgsTypeOutput) ToTeeArgsTypeOutputWithContext(ctx context.Context) TeeArgsTypeOutput { return o } -func (o TeeOptsOutput) ToTeeOptsPtrOutput() TeeOptsPtrOutput { - return o.ToTeeOptsPtrOutputWithContext(context.Background()) -} - -func (o TeeOptsOutput) ToTeeOptsPtrOutputWithContext(ctx context.Context) TeeOptsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v TeeOpts) *TeeOpts { - return &v - }).(TeeOptsPtrOutput) -} - -func (o TeeOptsOutput) ToOutput(ctx context.Context) pulumix.Output[TeeOpts] { - return pulumix.Output[TeeOpts]{ +func (o TeeArgsTypeOutput) ToOutput(ctx context.Context) pulumix.Output[TeeArgsType] { + return pulumix.Output[TeeArgsType]{ OutputState: o.OutputState, } } -func (o TeeOptsOutput) Append() pulumi.BoolPtr
Unexpected file modified: sdk/go/baremetal/cmd/tee.go#L1
File modified: @@ -7,6 +7,7 @@ import ( "context" "reflect" + "errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumix" "github.com/unmango/pulumi-baremetal/sdk/go/baremetal/internal" @@ -84,8 +85,9 @@ import ( type Tee struct { pulumi.CustomResourceState - CreateOpts TeeOptsPtrOutput `pulumi:"createOpts"` + Args TeeArgsTypeOutput `pulumi:"args"` CreatedFiles pulumi.StringArrayOutput `pulumi:"createdFiles"` + ExitCode pulumi.IntOutput `pulumi:"exitCode"` Stderr pulumi.StringOutput `pulumi:"stderr"` Stdout pulumi.StringOutput `pulumi:"stdout"` } @@ -94,9 +96,15 @@ type Tee struct { func NewTee(ctx *pulumi.Context, name string, args *TeeArgs, opts ...pulumi.ResourceOption) (*Tee, error) { if args == nil { - args = &TeeArgs{} + return nil, errors.New("missing one or more required arguments") } + if args.Content == nil { + return nil, errors.New("invalid value for required argument 'Content'") + } + if args.Files == nil { + return nil, errors.New("invalid value for required argument 'Files'") + } opts = internal.PkgResourceDefaultOpts(opts) var resource Tee err := ctx.RegisterResource("baremetal:cmd:Tee", name, args, &resource, opts...) @@ -130,12 +138,16 @@ func (TeeState) ElementType() reflect.Type { } type teeArgs struct { - Create *TeeOpts `pulumi:"create"` + Append *bool `pulumi:"append"` + Content string `pulumi:"content"` + Files []string `pulumi:"files"` } // The set of arguments for constructing a Tee resource. type TeeArgs struct { - Create TeeOptsPtrInput + Append pulumi.BoolPtrInput + Content pulumi.StringInput + Files pulumi.StringArrayInput } func (TeeArgs) ElementType() reflect.Type { @@ -187,14 +199,18 @@ func (o TeeOutput) ToOutput(ctx context.Context) pulumix.Output[*Tee] { } } -func (o TeeOutput) CreateOpts() TeeOptsPtrOutput { - return o.ApplyT(func(v *Tee) TeeOptsPtrOutput { return v.CreateOpts }).(TeeOptsPtrOutput) +func (o TeeOutput) Args() TeeArgsTypeOutput { + return o.ApplyT(func(v *Tee) TeeArgsTypeOutput { return v.Args }).(TeeArgsTypeOutput) } func (o TeeOutput) CreatedFiles() pulumi.StringArrayOutput { return o.ApplyT(func(v *Tee) pulumi.StringArrayOutput { return v.CreatedFiles }).(pulumi.StringArrayOutput) } +func (o TeeOutput) ExitCode() pulumi.IntOutput { + return o.ApplyT(func(v *Tee) pulumi.IntOutput { return v.ExitCode }).(pulumi.IntOutput) +} + func (o TeeOutput) Stderr() pulumi.StringOutput { return o.ApplyT(func(v *Tee) pulumi.StringOutput { return v.Stderr }).(pulumi.StringOutput) }
Unexpected file modified: sdk/go/baremetal/config/config.go#L1
File modified: @@ -14,6 +14,15 @@ var _ = internal.GetEnvOrDefault func GetAddress(ctx *pulumi.Context) string { return config.Get(ctx, "baremetal:address") } +func GetCaPem(ctx *pulumi.Context) string { + return config.Get(ctx, "baremetal:caPem") +} +func GetCertPem(ctx *pulumi.Context) string { + return config.Get(ctx, "baremetal:certPem") +} +func GetKeyPem(ctx *pulumi.Context) string { + return config.Get(ctx, "baremetal:keyPem") +} func GetPort(ctx *pulumi.Context) string { return config.Get(ctx, "baremetal:port") }
Unexpected file modified: sdk/go/baremetal/provider.go#L1
File modified: @@ -17,6 +17,9 @@ type Provider struct { pulumi.ProviderResourceState Address pulumi.StringOutput `pulumi:"address"` + CaPem pulumi.StringPtrOutput `pulumi:"caPem"` + CertPem pulumi.StringPtrOutput `pulumi:"certPem"` + KeyPem pulumi.StringPtrOutput `pulumi:"keyPem"` Port pulumi.StringPtrOutput `pulumi:"port"` } @@ -41,12 +44,18 @@ func NewProvider(ctx *pulumi.Context, type providerArgs struct { Address string `pulumi:"address"` + CaPem *string `pulumi:"caPem"` + CertPem *string `pulumi:"certPem"` + KeyPem *string `pulumi:"keyPem"` Port *string `pulumi:"port"` } // The set of arguments for constructing a Provider resource. type ProviderArgs struct { Address pulumi.StringInput + CaPem pulumi.StringPtrInput + CertPem pulumi.StringPtrInput + KeyPem pulumi.StringPtrInput Port pulumi.StringPtrInput } @@ -103,6 +112,18 @@ func (o ProviderOutput) Address() pulumi.StringOutput { return o.ApplyT(func(v *Provider) pulumi.StringOutput { return v.Address }).(pulumi.StringOutput) } +func (o ProviderOutput) CaPem() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.CaPem }).(pulumi.StringPtrOutput) +} + +func (o ProviderOutput) CertPem() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.CertPem }).(pulumi.StringPtrOutput) +} + +func (o ProviderOutput) KeyPem() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.KeyPem }).(pulumi.StringPtrOutput) +} + func (o ProviderOutput) Port() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Port }).(pulumi.StringPtrOutput) }
Unexpected file modified: sdk/go/baremetal/x/cmd/pulumiTypes.go#L1
File modified: @@ -14,67 +14,45 @@ import ( var _ = internal.GetEnvOrDefault -type TeeOpts struct { +type TeeArgsType struct { Append *bool `pulumi:"append"` Content string `pulumi:"content"` Files []string `pulumi:"files"` } -type TeeOptsArgs struct { - Append pulumix.Input[*bool] `pulumi:"append"` - Content pulumix.Input[string] `pulumi:"content"` - Files pulumix.Input[[]string] `pulumi:"files"` -} - -func (TeeOptsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*TeeOpts)(nil)).Elem() -} - -func (i TeeOptsArgs) ToTeeOptsOutput() TeeOptsOutput { - return i.ToTeeOptsOutputWithContext(context.Background()) -} - -func (i TeeOptsArgs) ToTeeOptsOutputWithContext(ctx context.Context) TeeOptsOutput { - return pulumi.ToOutputWithContext(ctx, i).(TeeOptsOutput) -} - -func (i *TeeOptsArgs) ToOutput(ctx context.Context) pulumix.Output[*TeeOptsArgs] { - return pulumix.Val(i) -} - -type TeeOptsOutput struct{ *pulumi.OutputState } +type TeeArgsTypeOutput struct{ *pulumi.OutputState } -func (TeeOptsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TeeOpts)(nil)).Elem() +func (TeeArgsTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*TeeArgsType)(nil)).Elem() } -func (o TeeOptsOutput) ToTeeOptsOutput() TeeOptsOutput { +func (o TeeArgsTypeOutput) ToTeeArgsTypeOutput() TeeArgsTypeOutput { return o } -func (o TeeOptsOutput) ToTeeOptsOutputWithContext(ctx context.Context) TeeOptsOutput { +func (o TeeArgsTypeOutput) ToTeeArgsTypeOutputWithContext(ctx context.Context) TeeArgsTypeOutput { return o } -func (o TeeOptsOutput) ToOutput(ctx context.Context) pulumix.Output[TeeOpts] { - return pulumix.Output[TeeOpts]{ +func (o TeeArgsTypeOutput) ToOutput(ctx context.Context) pulumix.Output[TeeArgsType] { + return pulumix.Output[TeeArgsType]{ OutputState: o.OutputState, } } -func (o TeeOptsOutput) Append() pulumix.Output[*bool] { - return pulumix.Apply[TeeOpts](o, func(v TeeOpts) *bool { return v.Append }) +func (o TeeArgsTypeOutput) Append() pulumix.Output[*bool] { + return pulumix.Apply[TeeArgsType](o, func(v TeeArgsType) *bool { return v.Append }) } -func (o TeeOptsOutput) Content() pulumix.Output[string] { - return pulumix.Apply[TeeOpts](o, func(v TeeOpts) string { return v.Content }) +func (o TeeArgsTypeOutput) Content() pulumix.Output[string] { + return pulumix.Apply[TeeArgsType](o, func(v TeeArgsType) string { return v.Content }) } -func (o TeeOptsOutput) Files() pulumix.ArrayOutput[string] { - value := pulumix.Apply[TeeOpts](o, func(v TeeOpts) []string { return v.Files }) +func (o TeeArgsTypeOutput) Files() pulumix.ArrayOutput[string] { + value := pulumix.Apply[TeeArgsType](o, func(v TeeArgsType) []string { return v.Files }) return pulumix.ArrayOutput[string]{OutputState: value.OutputState} } func init() { - pulumi.RegisterOutputType(TeeOptsOutput{}) + pulumi.RegisterOutputType(TeeArgsTypeOutput{}) }
Unexpected file modified: sdk/go/baremetal/x/cmd/tee.go#L1
File modified: @@ -7,6 +7,7 @@ import ( "context" "reflect" + "errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumix" "github.com/unmango/pulumi-baremetal/sdk/go/baremetal/internal" @@ -84,19 +85,26 @@ import ( type Tee struct { pulumi.CustomResourceState - CreateOpts pulumix.GPtrOutput[TeeOpts, TeeOptsOutput] `pulumi:"createOpts"` - CreatedFiles pulumix.ArrayOutput[string] `pulumi:"createdFiles"` - Stderr pulumix.Output[string] `pulumi:"stderr"` - Stdout pulumix.Output[string] `pulumi:"stdout"` + Args pulumix.GPtrOutput[TeeArgsType, TeeArgsTypeOutput] `pulumi:"args"` + CreatedFiles pulumix.ArrayOutput[string] `pulumi:"createdFiles"` + ExitCode pulumix.Output[int] `pulumi:"exitCode"` + Stderr pulumix.Output[string] `pulumi:"stderr"` + Stdout pulumix.Output[string] `pulumi:"stdout"` } // NewTee registers a new resource with the given unique name, arguments, and options. func NewTee(ctx *pulumi.Context, name string, args *TeeArgs, opts ...pulumi.ResourceOption) (*Tee, error) { if args == nil { - args = &TeeArgs{} + return nil, errors.New("missing one or more required arguments") } + if args.Content == nil { + return nil, errors.New("invalid value for required argument 'Content'") + } + if args.Files == nil { + return nil, errors.New("invalid value for required argument 'Files'") + } opts = internal.PkgResourceDefaultOpts(opts) var resource Tee err := ctx.RegisterResource("baremetal:cmd:Tee", name, args, &resource, opts...) @@ -130,12 +138,16 @@ func (TeeState) ElementType() reflect.Type { } type teeArgs struct { - Create *TeeOpts `pulumi:"create"` + Append *bool `pulumi:"append"` + Content string `pulumi:"content"` + Files []string `pulumi:"files"` } // The set of arguments for constructing a Tee resource. type TeeArgs struct { - Create pulumix.Input[*TeeOptsArgs] + Append pulumix.Input[*bool] + Content pulumix.Input[string] + Files pulumix.Input[[]string] } func (TeeArgs) ElementType() reflect.Type { @@ -162,10 +174,10 @@ func (o TeeOutput) ToOutput(ctx context.Context) pulumix.Output[Tee] { } } -func (o TeeOutput) CreateOpts() pulumix.GPtrOutput[TeeOpts, TeeOptsOutput] { - value := pulumix.Apply[Tee](o, func(v Tee) pulumix.GPtrOutput[TeeOpts, TeeOptsOutput] { return v.CreateOpts }) - unwrapped := pulumix.Flatten[*TeeOpts, pulumix.GPtrOutput[TeeOpts, TeeOptsOutput]](value) - return pulumix.GPtrOutput[TeeOpts, TeeOptsOutput]{OutputState: unwrapped.OutputState} +func (o TeeOutput) Args() pulumix.GPtrOutput[TeeArgsType, TeeArgsTypeOutput] { + value := pulumix.Apply[Tee](o, func(v Tee) pulumix.GPtrOutput[TeeArgsType, TeeArgsTypeOutput] { return v.Args }) + unwrapped := pulumix.Flatten[*TeeArgsType, pulumix.GPtrOutput[TeeArgsType, TeeArgsTypeOutput]](value) + return pulumix.GPtrOutput[TeeArgsType, TeeArgsTypeOutput]{OutputState: unwrapped.OutputState} } func (o TeeOutput) CreatedFiles() pulumix.ArrayOutput[string] { @@ -174,6 +186,11 @@ func (o TeeOutput) CreatedFiles() pulumix.ArrayOutput[string] { return pulumix.ArrayOutput[string]{OutputState: unwrapped.OutputState} } +func (o TeeOutput) ExitCode() pulumix.Output[int] { + value := pulumix.Apply[Tee](o, func(v Tee) pulumix.Output[int] { return v.ExitCode }) + return pulumix.Flatten[int, pulumix.Output[int]](value) +} + func (o TeeOutput) Stderr() pulumix.Output[string] { value := pulumix.Apply[Tee](o, func(v Tee) pulumix.Output[string] { return v.Stderr }) return pulumix.Flatten[string, pulumix.Output[string]](value)
Unexpected file modified: sdk/go/baremetal/x/config/config.go#L1
File modified: @@ -14,6 +14,15 @@ var _ = internal.GetEnvOrDefault func GetAddress(ctx *pulumi.Context) string { return config.Get(ctx, "baremetal:address") } +func GetCaPem(ctx *pulumi.Context) string { + return config.Get(ctx, "baremetal:caPem") +} +func GetCertPem(ctx *pulumi.Context) string { + return config.Get(ctx, "baremetal:certPem") +} +func GetKeyPem(ctx *pulumi.Context) string { + return config.Get(ctx, "baremetal:keyPem") +} func GetPort(ctx *pulumi.Context) string { return config.Get(ctx, "baremetal:port") }
Unexpected file modified: sdk/go/baremetal/x/provider.go#L1
File modified: @@ -17,6 +17,9 @@ type Provider struct { pulumi.ProviderResourceState Address pulumix.Output[string] `pulumi:"address"` + CaPem pulumix.Output[*string] `pulumi:"caPem"` + CertPem pulumix.Output[*string] `pulumi:"certPem"` + KeyPem pulumix.Output[*string] `pulumi:"keyPem"` Port pulumix.Output[*string] `pulumi:"port"` } @@ -41,12 +44,18 @@ func NewProvider(ctx *pulumi.Context, type providerArgs struct { Address string `pulumi:"address"` + CaPem *string `pulumi:"caPem"` + CertPem *string `pulumi:"certPem"` + KeyPem *string `pulumi:"keyPem"` Port *string `pulumi:"port"` } // The set of arguments for constructing a Provider resource. type ProviderArgs struct { Address pulumix.Input[string] + CaPem pulumix.Input[*string] + CertPem pulumix.Input[*string] + KeyPem pulumix.Input[*string] Port pulumix.Input[*string] } @@ -79,6 +88,21 @@ func (o ProviderOutput) Address() pulumix.Output[string] { return pulumix.Flatten[string, pulumix.Output[string]](value) } +func (o ProviderOutput) CaPem() pulumix.Output[*string] { + value := pulumix.Apply[Provider](o, func(v Provider) pulumix.Output[*string] { return v.CaPem }) + return pulumix.Flatten[*string, pulumix.Output[*string]](value) +} + +func (o ProviderOutput) CertPem() pulumix.Output[*string] { + value := pulumix.Apply[Provider](o, func(v Provider) pulumix.Output[*string] { return v.CertPem }) + return pulumix.Flatten[*string, pulumix.Output[*string]](value) +} + +func (o ProviderOutput) KeyPem() pulumix.Output[*string] { + value := pulumix.Apply[Provider](o, func(v Provider) pulumix.Output[*string] { return v.KeyPem }) + return pulumix.Flatten[*string, pulumix.Output[*string]](value) +} + func (o ProviderOutput) Port() pulumix.Output[*string] { value := pulumix.Apply[Provider](o, func(v Provider) pulumix.Output[*string] { return v.Port }) return pulumix.Flatten[*string, pulumix.Output[*string]](value)
Upgrade to Trusted Publishing
Trusted Publishers allows publishing packages to PyPI from automated environments like GitHub Actions without needing to use username/password combinations or API tokens to authenticate with PyPI. Read more: https://docs.pypi.org/trusted-publishers
Unexpected file modified: sdk/python/unmango_baremetal/cmd/__init__.py#L1
File modified: @@ -6,5 +6,4 @@ from .. import _utilities import typing # Export this package's modules as members: from .tee import * -from ._inputs import * from . import outputs
Unexpected file deleted: sdk/python/unmango_baremetal/cmd/_inputs.py#L1
File deleted: # coding=utf-8 # *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'TeeOptsArgs', ] @pulumi.input_type class TeeOptsArgs: def __init__(__self__, *, content: pulumi.Input[str], files: pulumi.Input[Sequence[pulumi.Input[str]]], append: Optional[pulumi.Input[bool]] = None): pulumi.set(__self__, "content", content) pulumi.set(__self__, "files", files) if append is not None: pulumi.set(__self__, "append", append) @Property @pulumi.getter def content(self) -> pulumi.Input[str]: return pulumi.get(self, "content") @content.setter def content(self, value: pulumi.Input[str]): pulumi.set(self, "content", value) @Property @pulumi.getter def files(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: return pulumi.get(self, "files") @files.setter def files(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): pulumi.set(self, "files", value) @Property @pulumi.getter def append(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "append") @append.setter def append(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "append", value)
Unexpected file modified: sdk/python/unmango_baremetal/cmd/outputs.py#L1
File modified: @@ -10,11 +10,11 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ - 'TeeOpts', + 'TeeArgs', ] @pulumi.output_type -class TeeOpts(dict): +class TeeArgs(dict): def __init__(__self__, *, content: str, files: Sequence[str],
Unexpected file modified: sdk/python/unmango_baremetal/cmd/tee.py#L1
File modified: @@ -9,28 +9,49 @@ import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs -from ._inputs import * __all__ = ['TeeArgs', 'Tee'] @pulumi.input_type class TeeArgs: def __init__(__self__, *, - create: Optional[pulumi.Input['TeeOptsArgs']] = None): + content: pulumi.Input[str], + files: pulumi.Input[Sequence[pulumi.Input[str]]], + append: Optional[pulumi.Input[bool]] = None): """ The set of arguments for constructing a Tee resource. """ - if create is not None: - pulumi.set(__self__, "create", create) + pulumi.set(__self__, "content", content) + pulumi.set(__self__, "files", files) + if append is not None: + pulumi.set(__self__, "append", append) @Property @pulumi.getter - def create(self) -> Optional[pulumi.Input['TeeOptsArgs']]: - return pulumi.get(self, "create") + def content(self) -> pulumi.Input[str]: + return pulumi.get(self, "content") - @create.setter - def create(self, value: Optional[pulumi.Input['TeeOptsArgs']]): - pulumi.set(self, "create", value) + @content.setter + def content(self, value: pulumi.Input[str]): + pulumi.set(self, "content", value) + + @Property + @pulumi.getter + def files(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + return pulumi.get(self, "files") + + @files.setter + def files(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "files", value) + + @Property + @pulumi.getter + def append(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "append") + + @append.setter + def append(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "append", value) class Tee(pulumi.CustomResource): @@ -38,7 +59,9 @@ class Tee(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - create: Optional[pulumi.Input[Union['TeeOptsArgs', 'TeeOptsArgsDict']]] = None, + append: Optional[pulumi.Input[bool]] = None, + content: Optional[pulumi.Input[str]] = None, + files: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ TEE(1) User Commands TEE(1) @@ -111,7 +134,7 @@ class Tee(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, - args: Optional[TeeArgs] = None, + args: TeeArgs, opts: Optional[pulumi.ResourceOptions] = None): """ TEE(1) User Commands TEE(1) @@ -192,7 +215,9 @@ class Tee(pulumi.CustomResource): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - create: Optional[pulumi.Input[Union['TeeOptsArgs', 'TeeOptsArgsDict']]] = None, + append: Optional[pulumi.Input[bool]] = None, + content: Optional[pulumi.Input[str]] = None, + files: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -202,9 +227,16 @@ class Tee(pulumi.CustomResource): raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = TeeArgs.__new__(TeeArgs) - __props__.__dict__["create"] = create - __props__.__dict__["create_opts"] = None + __props__.__dict__["append"] = append + if content is None a
Unexpected file modified: sdk/python/unmango_baremetal/config/__init__.pyi#L1
File modified: @@ -11,5 +11,11 @@ from .. import _utilities address: Optional[str] +caPem: Optional[str] + +certPem: Optional[str] + +keyPem: Optional[str] + port: Optional[str]
Unexpected file modified: sdk/python/unmango_baremetal/config/vars.py#L1
File modified: @@ -19,6 +19,18 @@ class _ExportableConfig(types.ModuleType): def address(self) -> Optional[str]: return __config__.get('address') + @Property + def ca_pem(self) -> Optional[str]: + return __config__.get('caPem') + + @Property + def cert_pem(self) -> Optional[str]: + return __config__.get('certPem') + + @Property + def key_pem(self) -> Optional[str]: + return __config__.get('keyPem') + @Property def port(self) -> Optional[str]: return __config__.get('port')
Unexpected file modified: sdk/python/unmango_baremetal/provider.py#L1
File modified: @@ -15,11 +15,20 @@ __all__ = ['ProviderArgs', 'Provider'] class ProviderArgs: def __init__(__self__, *, address: pulumi.Input[str], + ca_pem: Optional[pulumi.Input[str]] = None, + cert_pem: Optional[pulumi.Input[str]] = None, + key_pem: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Provider resource. """ pulumi.set(__self__, "address", address) + if ca_pem is not None: + pulumi.set(__self__, "ca_pem", ca_pem) + if cert_pem is not None: + pulumi.set(__self__, "cert_pem", cert_pem) + if key_pem is not None: + pulumi.set(__self__, "key_pem", key_pem) if port is not None: pulumi.set(__self__, "port", port) @@ -32,6 +41,33 @@ class ProviderArgs: def address(self, value: pulumi.Input[str]): pulumi.set(self, "address", value) + @Property + @pulumi.getter(name="caPem") + def ca_pem(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "ca_pem") + + @ca_pem.setter + def ca_pem(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ca_pem", value) + + @Property + @pulumi.getter(name="certPem") + def cert_pem(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "cert_pem") + + @cert_pem.setter + def cert_pem(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "cert_pem", value) + + @Property + @pulumi.getter(name="keyPem") + def key_pem(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "key_pem") + + @key_pem.setter + def key_pem(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "key_pem", value) + @Property @pulumi.getter def port(self) -> Optional[pulumi.Input[str]]: @@ -48,6 +84,9 @@ class Provider(pulumi.ProviderResource): resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, address: Optional[pulumi.Input[str]] = None, + ca_pem: Optional[pulumi.Input[str]] = None, + cert_pem: Optional[pulumi.Input[str]] = None, + key_pem: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -79,6 +118,9 @@ class Provider(pulumi.ProviderResource): resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, address: Optional[pulumi.Input[str]] = None, + ca_pem: Optional[pulumi.Input[str]] = None, + cert_pem: Optional[pulumi.Input[str]] = None, + key_pem: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -92,6 +134,9 @@ class Provider(pulumi.ProviderResource): if address is None and not opts.urn: raise TypeError("Missing required property 'address'") __props__.__dict__["address"] = address + __props__.__dict__["ca_pem"] = ca_pem + __props__.__dict__["cert_pem"] = cert_pem + __props__.__dict__["key_pem"] = key_pem __props__.__dict__["port"] = port super(Provider, __self__).__init__( 'baremetal', @@ -104,6 +149,21 @@ class Provider(pulumi.ProviderResource): def address(self) -> pulumi.Output[str]: return pulumi.get(self, "address") + @Property + @pulumi.getter(name="caPem") + def ca_pem(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "ca_pem") + + @Property + @pulumi.getter(name="certPem") + def cert_pem(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "cert_pem") + + @Property + @pulumi.getter(name
Unexpected file deleted: sdk/dotnet/Cmd/Inputs/TeeOptsArgs.cs#L1
File deleted: // *** WARNING: this file was generated by pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; using Pulumi; namespace UnMango.Baremetal.Cmd.Inputs { public sealed class TeeOptsArgs : global::Pulumi.ResourceArgs { [Input("append")] public Input<bool>? Append { get; set; } [Input("content", required: true)] public Input<string> Content { get; set; } = null!; [Input("files", required: true)] private InputList<string>? _files; public InputList<string> Files { get => _files ?? (_files = new InputList<string>()); set => _files = value; } public TeeOptsArgs() { } public static new TeeOptsArgs Empty => new TeeOptsArgs(); } }
Unexpected file deleted: sdk/dotnet/Cmd/Outputs/TeeOpts.cs#L1
File deleted: // *** WARNING: this file was generated by pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; using Pulumi; namespace UnMango.Baremetal.Cmd.Outputs { [OutputType] public sealed class TeeOpts { public readonly bool? Append; public readonly string Content; public readonly ImmutableArray<string> Files; [OutputConstructor] private TeeOpts( bool? append, string content, ImmutableArray<string> files) { Append = append; Content = content; Files = files; } } }
Unexpected file modified: sdk/dotnet/Cmd/Tee.cs#L1
File modified: @@ -77,12 +77,15 @@ namespace UnMango.Baremetal.Cmd [BaremetalResourceType("baremetal:cmd:Tee")] public partial class Tee : global::Pulumi.CustomResource { - [Output("createOpts")] - public Output<Outputs.TeeOpts?> CreateOpts { get; private set; } = null!; + [Output("args")] + public Output<Outputs.TeeArgs> Args { get; private set; } = null!; [Output("createdFiles")] public Output<ImmutableArray<string>> CreatedFiles { get; private set; } = null!; + [Output("exitCode")] + public Output<int> ExitCode { get; private set; } = null!; + [Output("stderr")] public Output<string> Stderr { get; private set; } = null!; @@ -97,7 +100,7 @@ namespace UnMango.Baremetal.Cmd /// <param name="name">The unique name of the resource</param> /// <param name="args">The arguments used to populate this resource's properties</param> /// <param name="options">A bag of options that control this resource's behavior</param> - public Tee(string name, TeeArgs? args = null, CustomResourceOptions? options = null) + public Tee(string name, TeeArgs args, CustomResourceOptions? options = null) : base("baremetal:cmd:Tee", name, args ?? new TeeArgs(), MakeResourceOptions(options, "")) { } @@ -135,8 +138,19 @@ namespace UnMango.Baremetal.Cmd public sealed class TeeArgs : global::Pulumi.ResourceArgs { - [Input("create")] - public Input<Inputs.TeeOptsArgs>? Create { get; set; } + [Input("append")] + public Input<bool>? Append { get; set; } + + [Input("content", required: true)] + public Input<string> Content { get; set; } = null!; + + [Input("files", required: true)] + private InputList<string>? _files; + public InputList<string> Files + { + get => _files ?? (_files = new InputList<string>()); + set => _files = value; + } public TeeArgs() {
Unexpected file modified: sdk/dotnet/Config/Config.cs#L1
File modified: @@ -39,6 +39,27 @@ namespace UnMango.Baremetal set => _address.Set(value); } + private static readonly __Value<string?> _caPem = new __Value<string?>(() => __config.Get("caPem")); + public static string? CaPem + { + get => _caPem.Get(); + set => _caPem.Set(value); + } + + private static readonly __Value<string?> _certPem = new __Value<string?>(() => __config.Get("certPem")); + public static string? CertPem + { + get => _certPem.Get(); + set => _certPem.Set(value); + } + + private static readonly __Value<string?> _keyPem = new __Value<string?>(() => __config.Get("keyPem")); + public static string? KeyPem + { + get => _keyPem.Get(); + set => _keyPem.Set(value); + } + private static readonly __Value<string?> _port = new __Value<string?>(() => __config.Get("port")); public static string? Port {
Unexpected file modified: sdk/dotnet/Provider.cs#L1
File modified: @@ -16,6 +16,15 @@ namespace UnMango.Baremetal [Output("address")] public Output<string> Address { get; private set; } = null!; + [Output("caPem")] + public Output<string?> CaPem { get; private set; } = null!; + + [Output("certPem")] + public Output<string?> CertPem { get; private set; } = null!; + + [Output("keyPem")] + public Output<string?> KeyPem { get; private set; } = null!; + [Output("port")] public Output<string?> Port { get; private set; } = null!; @@ -51,6 +60,15 @@ namespace UnMango.Baremetal [Input("address", required: true)] public Input<string> Address { get; set; } = null!; + [Input("caPem")] + public Input<string>? CaPem { get; set; } + + [Input("certPem")] + public Input<string>? CertPem { get; set; } + + [Input("keyPem")] + public Input<string>? KeyPem { get; set; } + [Input("port")] public Input<string>? Port { get; set; }
Unexpected file added: sdk/dotnet/Cmd/Outputs/TeeArgs.cs#L1
File added: // *** WARNING: this file was generated by pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; using Pulumi; namespace UnMango.Baremetal.Cmd.Outputs { [OutputType] public sealed class TeeArgs { public readonly bool? Append; public readonly string Content; public readonly ImmutableArray<string> Files; [OutputConstructor] private TeeArgs( bool? append, string content, ImmutableArray<string> files) { Append = append; Content = content; Files = files; } } }
Unexpected file modified: sdk/nodejs/cmd/tee.ts#L1
File modified: @@ -97,8 +97,9 @@ export class Tee extends pulumi.CustomResource { return obj['__pulumiType'] === Tee.__pulumiType; } - public /*out*/ readonly createOpts!: pulumi.Output<outputs.cmd.TeeOpts | undefined>; + public /*out*/ readonly args!: pulumi.Output<outputs.cmd.TeeArgs>; public /*out*/ readonly createdFiles!: pulumi.Output<string[]>; + public /*out*/ readonly exitCode!: pulumi.Output<number>; public /*out*/ readonly stderr!: pulumi.Output<string>; public /*out*/ readonly stdout!: pulumi.Output<string>; @@ -109,18 +110,28 @@ export class Tee 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?: TeeArgs, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: TeeArgs, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (!opts.id) { - resourceInputs["create"] = args ? args.create : undefined; - resourceInputs["createOpts"] = undefined /*out*/; + if ((!args || args.content === undefined) && !opts.urn) { + throw new Error("Missing required property 'content'"); + } + if ((!args || args.files === undefined) && !opts.urn) { + throw new Error("Missing required property 'files'"); + } + resourceInputs["append"] = args ? args.append : undefined; + resourceInputs["content"] = args ? args.content : undefined; + resourceInputs["files"] = args ? args.files : undefined; + resourceInputs["args"] = undefined /*out*/; resourceInputs["createdFiles"] = undefined /*out*/; + resourceInputs["exitCode"] = undefined /*out*/; resourceInputs["stderr"] = undefined /*out*/; resourceInputs["stdout"] = undefined /*out*/; } else { - resourceInputs["createOpts"] = undefined /*out*/; + resourceInputs["args"] = undefined /*out*/; resourceInputs["createdFiles"] = undefined /*out*/; + resourceInputs["exitCode"] = undefined /*out*/; resourceInputs["stderr"] = undefined /*out*/; resourceInputs["stdout"] = undefined /*out*/; } @@ -133,5 +144,7 @@ export class Tee extends pulumi.CustomResource { * The set of arguments for constructing a Tee resource. */ export interface TeeArgs { - create?: pulumi.Input<inputs.cmd.TeeOptsArgs>; + append?: pulumi.Input<boolean>; + content: pulumi.Input<string>; + files: pulumi.Input<pulumi.Input<string>[]>; }
Unexpected file modified: sdk/nodejs/config/vars.ts#L1
File modified: @@ -15,6 +15,30 @@ Object.defineProperty(exports, "address", { enumerable: true, }); +export declare const caPem: string | undefined; +Object.defineProperty(exports, "caPem", { + get() { + return __config.get("caPem"); + }, + enumerable: true, +}); + +export declare const certPem: string | undefined; +Object.defineProperty(exports, "certPem", { + get() { + return __config.get("certPem"); + }, + enumerable: true, +}); + +export declare const keyPem: string | undefined; +Object.defineProperty(exports, "keyPem", { + get() { + return __config.get("keyPem"); + }, + enumerable: true, +}); + export declare const port: string | undefined; Object.defineProperty(exports, "port", { get() {
Unexpected file modified: sdk/nodejs/provider.ts#L1
File modified: @@ -20,6 +20,9 @@ export class Provider extends pulumi.ProviderResource { } public readonly address!: pulumi.Output<string>; + public readonly caPem!: pulumi.Output<string | undefined>; + public readonly certPem!: pulumi.Output<string | undefined>; + public readonly keyPem!: pulumi.Output<string | undefined>; public readonly port!: pulumi.Output<string | undefined>; /** @@ -37,6 +40,9 @@ export class Provider extends pulumi.ProviderResource { throw new Error("Missing required property 'address'"); } resourceInputs["address"] = args ? args.address : undefined; + resourceInputs["caPem"] = args ? args.caPem : undefined; + resourceInputs["certPem"] = args ? args.certPem : undefined; + resourceInputs["keyPem"] = args ? args.keyPem : undefined; resourceInputs["port"] = args ? args.port : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -49,5 +55,8 @@ export class Provider extends pulumi.ProviderResource { */ export interface ProviderArgs { address: pulumi.Input<string>; + caPem?: pulumi.Input<string>; + certPem?: pulumi.Input<string>; + keyPem?: pulumi.Input<string>; port?: pulumi.Input<string>; }
Unexpected file modified: sdk/nodejs/types/input.ts#L1
File modified: @@ -6,9 +6,4 @@ import * as inputs from "../types/input"; import * as outputs from "../types/output"; export namespace cmd { - export interface TeeOptsArgs { - append?: pulumi.Input<boolean>; - content: pulumi.Input<string>; - files: pulumi.Input<pulumi.Input<string>[]>; - } }
Unexpected file modified: sdk/nodejs/types/output.ts#L1
File modified: @@ -6,7 +6,7 @@ import * as inputs from "../types/input"; import * as outputs from "../types/output"; export namespace cmd { - export interface TeeOpts { + export interface TeeArgs { append?: boolean; content: string; files: string[];

Artifacts

Produced during runtime
Name Size
dotnet-sdk.tar.gz Expired
103 KB
go-sdk.tar.gz Expired
6.03 KB
nodejs-sdk.tar.gz Expired
21.3 MB
provider Expired
16 MB
python-sdk.tar.gz Expired
29.8 KB