Skip to content

Commit

Permalink
Upgrade pulumi-terraform-bridge to v3.63.2 (#451)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-random
--kind=bridge --pr-reviewers=t0yv0`.

---

- Upgrading pulumi-terraform-bridge from v3.63.1 to v3.63.2.
- Upgrading pulumi-terraform-bridge/pf from v0.18.2 to v0.18.3.
  • Loading branch information
pulumi-bot authored Oct 28, 2023
1 parent 2878ea7 commit 0357821
Show file tree
Hide file tree
Showing 15 changed files with 125 additions and 555 deletions.
8 changes: 4 additions & 4 deletions examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ replace (

require (
github.com/pulumi/pulumi-random/provider/v4 v4.0.0-20230306191832-8c7659ab0229
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1
github.com/pulumi/pulumi/pkg/v3 v3.90.1
github.com/pulumi/pulumi/sdk/v3 v3.90.1
github.com/pulumi/pulumi/pkg/v3 v3.91.1
github.com/pulumi/pulumi/sdk/v3 v3.91.1
github.com/stretchr/testify v1.8.4

)
Expand Down Expand Up @@ -159,7 +159,7 @@ require (
github.com/pkg/term v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pulumi/esc v0.5.6 // indirect
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1 // indirect
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
Expand Down
16 changes: 8 additions & 8 deletions examples/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1504,18 +1504,18 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI=
github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2 h1:lSm5nbZETkeVNJQTcGOmuHCSXPhDj72dFC2Wan08Wpg=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2/go.mod h1:4ii0lFkIQMhCZg5du0xEtAB36Kk0WuLtDVO/ntTxRIs=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3 h1:Y41ChQl59yNIM7r2oeIAdB3ysV9uHQcIio9yEcqeEdI=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3/go.mod h1:apif6z4X21j859e6+gKmw4WoaalaF8TyKMVSa8kgjAI=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1 h1:hBgediyT2LdS5yfD5AMiCmBJ/TYP94Xxv6a4TcAfV0g=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1/go.mod h1:6YVbDo019OeHkQWo9MnUbBy6cCgCQeoXZDjmR9SYmUA=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2 h1:6JRJz3Wk7O9OhNFbxCrNvPVQAK+prBm6XBuSlIVqRnU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2/go.mod h1:ye7JUFqTNbBh6ohcr1KpyXNv+kYFYvZAIqXqts4Ialc=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug=
github.com/pulumi/pulumi/pkg/v3 v3.90.1 h1:RFC/eqTbDfIvfeVQL8WaPmyQr1KzZhAGIIDGr9jj9y8=
github.com/pulumi/pulumi/pkg/v3 v3.90.1/go.mod h1:J+WbfN30g3FfQifpLjQPI0UhPsC9ASEePLK8Nix06A8=
github.com/pulumi/pulumi/sdk/v3 v3.90.1 h1:iT4t57N92WGhEQtg+KVDEmYzgfEyri39eihQzcNmtrM=
github.com/pulumi/pulumi/sdk/v3 v3.90.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ=
github.com/pulumi/pulumi/pkg/v3 v3.91.1 h1:xHnyEwJO9we2zCiM9gHTkJxjZ6a6yi5vYCwWHCYRj9Y=
github.com/pulumi/pulumi/pkg/v3 v3.91.1/go.mod h1:dzBQDJyCOEhtBVN5INA5/i9yG9DZlsStl/mAkrhs9II=
github.com/pulumi/pulumi/sdk/v3 v3.91.1 h1:6I9GMmHv23X+G6hoduU1XE6hBWSNtB+zcb1MX17YvlA=
github.com/pulumi/pulumi/sdk/v3 v3.91.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ=
github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI=
github.com/pulumi/terraform-diff-reader v0.0.2/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4=
Expand Down
8 changes: 4 additions & 4 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/pulumi/pulumi-random/provider/v4
go 1.21

require (
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1
github.com/pulumi/pulumi/sdk/v3 v3.90.1
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2
github.com/pulumi/pulumi/sdk/v3 v3.91.1
github.com/terraform-providers/terraform-provider-random/shim v0.0.0
)

Expand Down Expand Up @@ -174,7 +174,7 @@ require (
github.com/pulumi/pulumi-java/pkg v0.9.8 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 // indirect
github.com/pulumi/pulumi-yaml v1.2.2 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.90.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.91.1 // indirect
github.com/pulumi/schema-tools v0.1.2 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
Expand Down
16 changes: 8 additions & 8 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1660,20 +1660,20 @@ github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI=
github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04=
github.com/pulumi/pulumi-java/pkg v0.9.8 h1:c8mYsalnRXA2Ibgvv6scefOn6mW1Vb0UT0mcDqjsivQ=
github.com/pulumi/pulumi-java/pkg v0.9.8/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2 h1:lSm5nbZETkeVNJQTcGOmuHCSXPhDj72dFC2Wan08Wpg=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2/go.mod h1:4ii0lFkIQMhCZg5du0xEtAB36Kk0WuLtDVO/ntTxRIs=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3 h1:Y41ChQl59yNIM7r2oeIAdB3ysV9uHQcIio9yEcqeEdI=
github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3/go.mod h1:apif6z4X21j859e6+gKmw4WoaalaF8TyKMVSa8kgjAI=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1 h1:hBgediyT2LdS5yfD5AMiCmBJ/TYP94Xxv6a4TcAfV0g=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1/go.mod h1:6YVbDo019OeHkQWo9MnUbBy6cCgCQeoXZDjmR9SYmUA=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2 h1:6JRJz3Wk7O9OhNFbxCrNvPVQAK+prBm6XBuSlIVqRnU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2/go.mod h1:ye7JUFqTNbBh6ohcr1KpyXNv+kYFYvZAIqXqts4Ialc=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug=
github.com/pulumi/pulumi-yaml v1.2.2 h1:W6BeUBLhDrJ2GSU0em1AUVelG9PBI4ABY61DdhJOO3E=
github.com/pulumi/pulumi-yaml v1.2.2/go.mod h1:EgakC7b/4+VBNnlgM1RZIea2gUstV8s/7bdFJZt0P64=
github.com/pulumi/pulumi/pkg/v3 v3.90.1 h1:RFC/eqTbDfIvfeVQL8WaPmyQr1KzZhAGIIDGr9jj9y8=
github.com/pulumi/pulumi/pkg/v3 v3.90.1/go.mod h1:J+WbfN30g3FfQifpLjQPI0UhPsC9ASEePLK8Nix06A8=
github.com/pulumi/pulumi/sdk/v3 v3.90.1 h1:iT4t57N92WGhEQtg+KVDEmYzgfEyri39eihQzcNmtrM=
github.com/pulumi/pulumi/sdk/v3 v3.90.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ=
github.com/pulumi/pulumi/pkg/v3 v3.91.1 h1:xHnyEwJO9we2zCiM9gHTkJxjZ6a6yi5vYCwWHCYRj9Y=
github.com/pulumi/pulumi/pkg/v3 v3.91.1/go.mod h1:dzBQDJyCOEhtBVN5INA5/i9yG9DZlsStl/mAkrhs9II=
github.com/pulumi/pulumi/sdk/v3 v3.91.1 h1:6I9GMmHv23X+G6hoduU1XE6hBWSNtB+zcb1MX17YvlA=
github.com/pulumi/pulumi/sdk/v3 v3.91.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ=
github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo=
github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k=
github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI=
Expand Down
2 changes: 1 addition & 1 deletion sdk/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
github.com/blang/semver v3.5.1+incompatible
github.com/pulumi/pulumi/sdk/v3 v3.90.1
github.com/pulumi/pulumi/sdk/v3 v3.91.1
)

require (
Expand Down
4 changes: 2 additions & 2 deletions sdk/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI=
github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04=
github.com/pulumi/pulumi/sdk/v3 v3.90.1 h1:iT4t57N92WGhEQtg+KVDEmYzgfEyri39eihQzcNmtrM=
github.com/pulumi/pulumi/sdk/v3 v3.90.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ=
github.com/pulumi/pulumi/sdk/v3 v3.91.1 h1:6I9GMmHv23X+G6hoduU1XE6hBWSNtB+zcb1MX17YvlA=
github.com/pulumi/pulumi/sdk/v3 v3.91.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
Expand Down
19 changes: 0 additions & 19 deletions sdk/python/pulumi_random/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,24 +246,5 @@ def lifted_func(*args, opts=None, **kwargs):

return (lambda _: lifted_func)


def configure(val, cls: type, input: bool):
def _apply(v):
if isinstance(v, typing.Mapping):
def _setter(key, value):
v[key] = value
cls._configure(_setter, **v)
return v

# Check that cls has a static _configure method. External classes may
# not have it if it was generated with older codegen.
if hasattr(cls, "_configure"):
if isinstance(val, typing.Mapping):
return _apply(val)
elif input and val is not None and not isinstance(val, cls):
return pulumi.Output.from_input(val).apply(_apply)

return val

def get_plugin_download_url():
return None
13 changes: 1 addition & 12 deletions sdk/python/pulumi_random/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, Callable, Mapping, Optional, Sequence, Union, overload
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['ProviderArgs', 'Provider']
Expand All @@ -18,13 +18,6 @@ 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,
**kwargs):
pass



class Provider(pulumi.ProviderResource):
Expand Down Expand Up @@ -64,10 +57,6 @@ 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
74 changes: 11 additions & 63 deletions sdk/python/pulumi_random/random_id.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, Callable, Mapping, Optional, Sequence, Union, overload
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['RandomIdArgs', 'RandomId']
Expand All @@ -23,30 +23,11 @@ def __init__(__self__, *,
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
:param pulumi.Input[str] prefix: Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be URL-safe or base64 encoded.
"""
RandomIdArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
byte_length=byte_length,
keepers=keepers,
prefix=prefix,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
byte_length: Optional[pulumi.Input[int]] = None,
keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
prefix: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions] = None,
**kwargs):
if byte_length is None and 'byteLength' in kwargs:
byte_length = kwargs['byteLength']
if byte_length is None:
raise TypeError("Missing 'byte_length' argument")

_setter("byte_length", byte_length)
pulumi.set(__self__, "byte_length", byte_length)
if keepers is not None:
_setter("keepers", keepers)
pulumi.set(__self__, "keepers", keepers)
if prefix is not None:
_setter("prefix", prefix)
pulumi.set(__self__, "prefix", prefix)

@property
@pulumi.getter(name="byteLength")
Expand Down Expand Up @@ -105,49 +86,20 @@ def __init__(__self__, *,
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
:param pulumi.Input[str] prefix: Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be URL-safe or base64 encoded.
"""
_RandomIdState._configure(
lambda key, value: pulumi.set(__self__, key, value),
b64_std=b64_std,
b64_url=b64_url,
byte_length=byte_length,
dec=dec,
hex=hex,
keepers=keepers,
prefix=prefix,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
b64_std: Optional[pulumi.Input[str]] = None,
b64_url: Optional[pulumi.Input[str]] = None,
byte_length: Optional[pulumi.Input[int]] = None,
dec: Optional[pulumi.Input[str]] = None,
hex: Optional[pulumi.Input[str]] = None,
keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
prefix: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions] = None,
**kwargs):
if b64_std is None and 'b64Std' in kwargs:
b64_std = kwargs['b64Std']
if b64_url is None and 'b64Url' in kwargs:
b64_url = kwargs['b64Url']
if byte_length is None and 'byteLength' in kwargs:
byte_length = kwargs['byteLength']

if b64_std is not None:
_setter("b64_std", b64_std)
pulumi.set(__self__, "b64_std", b64_std)
if b64_url is not None:
_setter("b64_url", b64_url)
pulumi.set(__self__, "b64_url", b64_url)
if byte_length is not None:
_setter("byte_length", byte_length)
pulumi.set(__self__, "byte_length", byte_length)
if dec is not None:
_setter("dec", dec)
pulumi.set(__self__, "dec", dec)
if hex is not None:
_setter("hex", hex)
pulumi.set(__self__, "hex", hex)
if keepers is not None:
_setter("keepers", keepers)
pulumi.set(__self__, "keepers", keepers)
if prefix is not None:
_setter("prefix", prefix)
pulumi.set(__self__, "prefix", prefix)

@property
@pulumi.getter(name="b64Std")
Expand Down Expand Up @@ -365,10 +317,6 @@ 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
RandomIdArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down
64 changes: 10 additions & 54 deletions sdk/python/pulumi_random/random_integer.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, Callable, Mapping, Optional, Sequence, Union, overload
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['RandomIntegerArgs', 'RandomInteger']
Expand All @@ -25,33 +25,12 @@ def __init__(__self__, *,
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
:param pulumi.Input[str] seed: A custom seed to always produce the same value.
"""
RandomIntegerArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
max=max,
min=min,
keepers=keepers,
seed=seed,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
max: Optional[pulumi.Input[int]] = None,
min: Optional[pulumi.Input[int]] = None,
keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
seed: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions] = None,
**kwargs):
if max is None:
raise TypeError("Missing 'max' argument")
if min is None:
raise TypeError("Missing 'min' argument")

_setter("max", max)
_setter("min", min)
pulumi.set(__self__, "max", max)
pulumi.set(__self__, "min", min)
if keepers is not None:
_setter("keepers", keepers)
pulumi.set(__self__, "keepers", keepers)
if seed is not None:
_setter("seed", seed)
pulumi.set(__self__, "seed", seed)

@property
@pulumi.getter
Expand Down Expand Up @@ -118,35 +97,16 @@ def __init__(__self__, *,
:param pulumi.Input[int] result: The random integer result.
:param pulumi.Input[str] seed: A custom seed to always produce the same value.
"""
_RandomIntegerState._configure(
lambda key, value: pulumi.set(__self__, key, value),
keepers=keepers,
max=max,
min=min,
result=result,
seed=seed,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
max: Optional[pulumi.Input[int]] = None,
min: Optional[pulumi.Input[int]] = None,
result: Optional[pulumi.Input[int]] = None,
seed: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions] = None,
**kwargs):

if keepers is not None:
_setter("keepers", keepers)
pulumi.set(__self__, "keepers", keepers)
if max is not None:
_setter("max", max)
pulumi.set(__self__, "max", max)
if min is not None:
_setter("min", min)
pulumi.set(__self__, "min", min)
if result is not None:
_setter("result", result)
pulumi.set(__self__, "result", result)
if seed is not None:
_setter("seed", seed)
pulumi.set(__self__, "seed", seed)

@property
@pulumi.getter
Expand Down Expand Up @@ -318,10 +278,6 @@ 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
RandomIntegerArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down
Loading

0 comments on commit 0357821

Please sign in to comment.