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 28, 2023
1 parent ab3f143 commit 141b128
Show file tree
Hide file tree
Showing 7 changed files with 1,284 additions and 7,473 deletions.
4,050 changes: 588 additions & 3,462 deletions sdk/python/pulumi_rke/_inputs.py

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions sdk/python/pulumi_rke/_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
609 changes: 103 additions & 506 deletions sdk/python/pulumi_rke/cluster.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/python/pulumi_rke/config/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import copy
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

debug: bool
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pulumi_rke/config/vars.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

import types
Expand Down
Loading

0 comments on commit 141b128

Please sign in to comment.