<filename>sdk/python/lib/test/langhost/invoke_types/outputs.py
# Copyright 2016-2020, Pulumi Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import pulumi

import outputs


@pulumi.output_type
class MyFunctionNestedResult:
    first_value: str = pulumi.property("firstValue")
    second_value: float = pulumi.property("secondValue")

@pulumi.output_type
class MyFunctionResult:
    # Deliberately using a qualified (with `outputs.`) forward reference
    # to mimic our provider codegen, to ensure the type can be resolved.
    nested: 'outputs.MyFunctionNestedResult'

@pulumi.output_type
class MyOtherFunctionNestedResult:
    def __init__(self, first_value: str, second_value: float):
        pulumi.set(self, "first_value", first_value)
        pulumi.set(self, "second_value", second_value)

    @property
    @pulumi.getter(name="firstValue")
    def first_value(self) -> str:
        ...

    @property
    @pulumi.getter(name="secondValue")
    def second_value(self) -> float:
        ...

@pulumi.output_type
class MyOtherFunctionResult:
    def __init__(self, nested: 'outputs.MyOtherFunctionNestedResult'):
        pulumi.set(self, "nested", nested)

    @property
    @pulumi.getter
    # Deliberately using a qualified (with `outputs.`) forward reference
    # to mimic our provider codegen, to ensure the type can be resolved.
    def nested(self) -> 'outputs.MyOtherFunctionNestedResult':
        ...
