Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Oct 3, 2023
1 parent 84ace57 commit 60a9c9b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/python/pulumi_null/get_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = [
Expand Down
11 changes: 10 additions & 1 deletion sdk/python/pulumi_null/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['ProviderArgs', 'Provider']
Expand All @@ -18,6 +18,11 @@ def __init__(__self__):
The set of arguments for constructing a Provider resource.
"""
pass
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
opts: Optional[pulumi.ResourceOptions]=None):
pass


class Provider(pulumi.ProviderResource):
Expand Down Expand Up @@ -57,6 +62,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs):
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
kwargs = kwargs or {}
def _setter(key, value):
kwargs[key] = value
ProviderArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down
28 changes: 25 additions & 3 deletions sdk/python/pulumi_null/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['ResourceArgs', 'Resource']
Expand All @@ -19,8 +19,17 @@ def __init__(__self__, *,
The set of arguments for constructing a Resource resource.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] triggers: A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
"""
ResourceArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
triggers=triggers,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
triggers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[pulumi.ResourceOptions]=None):
if triggers is not None:
pulumi.set(__self__, "triggers", triggers)
_setter("triggers", triggers)

@property
@pulumi.getter
Expand All @@ -43,8 +52,17 @@ def __init__(__self__, *,
Input properties used for looking up and filtering Resource resources.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] triggers: A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
"""
_ResourceState._configure(
lambda key, value: pulumi.set(__self__, key, value),
triggers=triggers,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
triggers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[pulumi.ResourceOptions]=None):
if triggers is not None:
pulumi.set(__self__, "triggers", triggers)
_setter("triggers", triggers)

@property
@pulumi.getter
Expand Down Expand Up @@ -90,6 +108,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs):
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
kwargs = kwargs or {}
def _setter(key, value):
kwargs[key] = value
ResourceArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down

0 comments on commit 60a9c9b

Please sign in to comment.