pulumi/tests/testdata/codegen/simple-plain-schema-with-ro.../python/pulumi_example/outputs.py

71 lines
1.7 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
__all__ = [
'Foo',
]
@pulumi.output_type
class Foo(dict):
def __init__(__self__, *,
a: bool,
c: int,
e: str,
b: Optional[bool] = None,
d: Optional[int] = None,
f: Optional[str] = None):
pulumi.set(__self__, "a", a)
pulumi.set(__self__, "c", c)
pulumi.set(__self__, "e", e)
if b is not None:
pulumi.set(__self__, "b", b)
if d is not None:
pulumi.set(__self__, "d", d)
if f is not None:
pulumi.set(__self__, "f", f)
@property
@pulumi.getter
def a(self) -> bool:
return pulumi.get(self, "a")
@property
@pulumi.getter
def c(self) -> int:
return pulumi.get(self, "c")
@property
@pulumi.getter
def e(self) -> str:
return pulumi.get(self, "e")
@property
@pulumi.getter
def b(self) -> Optional[bool]:
return pulumi.get(self, "b")
@property
@pulumi.getter
def d(self) -> Optional[int]:
return pulumi.get(self, "d")
@property
@pulumi.getter
def f(self) -> Optional[str]:
return pulumi.get(self, "f")