Add more update tests (#85) #36
Annotations
5 warnings
|
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
|
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)
|
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],
|
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
|
This job succeeded
Loading