Add more update tests (#85) #36
release.yml
on: push
publish
3m 59s
Matrix: Publish SDKs / SDKs
Annotations
16 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/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 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 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;
}
}
}
|
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/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/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
|
99.2 KB |
|
go-sdk.tar.gz
Expired
|
5.8 KB |
|
nodejs-sdk.tar.gz
Expired
|
21.3 MB |
|
provider
Expired
|
15.8 MB |
|
python-sdk.tar.gz
Expired
|
29.1 KB |
|