pulumi/tests/testdata/codegen/replace-on-change/python/pulumi_example/outputs.py

129 lines
3.1 KiB
Python

# coding=utf-8
# *** WARNING: this file was generated by test. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
from typing import NotRequired, TypedDict, TypeAlias
else:
from typing_extensions import NotRequired, TypedDict, TypeAlias
from . import _utilities
from . import outputs
from .cat import Cat
from .dog import Dog
__all__ = [
'Chew',
'Laser',
'Rec',
'Toy',
]
@pulumi.output_type
class Chew(dict):
"""
A toy for a dog
"""
def __init__(__self__, *,
owner: Optional['Dog'] = None):
"""
A toy for a dog
"""
if owner is not None:
pulumi.set(__self__, "owner", owner)
@property
@pulumi.getter
def owner(self) -> Optional['Dog']:
return pulumi.get(self, "owner")
@pulumi.output_type
class Laser(dict):
"""
A Toy for a cat
"""
def __init__(__self__, *,
animal: Optional['Cat'] = None,
batteries: Optional[bool] = None,
light: Optional[float] = None):
"""
A Toy for a cat
"""
if animal is not None:
pulumi.set(__self__, "animal", animal)
if batteries is not None:
pulumi.set(__self__, "batteries", batteries)
if light is not None:
pulumi.set(__self__, "light", light)
@property
@pulumi.getter
def animal(self) -> Optional['Cat']:
return pulumi.get(self, "animal")
@property
@pulumi.getter
def batteries(self) -> Optional[bool]:
return pulumi.get(self, "batteries")
@property
@pulumi.getter
def light(self) -> Optional[float]:
return pulumi.get(self, "light")
@pulumi.output_type
class Rec(dict):
def __init__(__self__, *,
rec1: Optional['outputs.Rec'] = None):
if rec1 is not None:
pulumi.set(__self__, "rec1", rec1)
@property
@pulumi.getter
def rec1(self) -> Optional['outputs.Rec']:
return pulumi.get(self, "rec1")
@pulumi.output_type
class Toy(dict):
"""
This is a toy
"""
def __init__(__self__, *,
associated: Optional['outputs.Toy'] = None,
color: Optional[str] = None,
wear: Optional[float] = None):
"""
This is a toy
"""
if associated is not None:
pulumi.set(__self__, "associated", associated)
if color is not None:
pulumi.set(__self__, "color", color)
if wear is not None:
pulumi.set(__self__, "wear", wear)
@property
@pulumi.getter
def associated(self) -> Optional['outputs.Toy']:
return pulumi.get(self, "associated")
@property
@pulumi.getter
def color(self) -> Optional[str]:
return pulumi.get(self, "color")
@property
@pulumi.getter
def wear(self) -> Optional[float]:
return pulumi.get(self, "wear")