From c643bb5a5e7493dd0411001addb83ca6a62eaafe Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Wed, 9 Oct 2024 21:18:53 +0000 Subject: [PATCH 1/2] make tfgen --- examples/go.mod | 4 ++-- examples/go.sum | 8 ++++---- provider/go.mod | 8 ++++---- provider/go.sum | 20 ++++++++++---------- sdk/go.mod | 2 +- sdk/go.sum | 4 ++-- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 515c573..3b86f82 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-slack/examples go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.133.0 +require github.com/pulumi/pulumi/pkg/v3 v3.136.1 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.133.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.136.1 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 3cbb21d..408d628 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -342,10 +342,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= -github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= +github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= 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= diff --git a/provider/go.mod b/provider/go.mod index 3c2ca07..1a3b8ec 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,7 +11,7 @@ replace ( require ( github.com/pablovarela/terraform-provider-slack v1.2.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.2-0.20241009210200-fa7a7b989500 ) require ( @@ -170,9 +170,9 @@ require ( github.com/pulumi/inflector v0.1.1 // indirect github.com/pulumi/pulumi-java/pkg v0.16.1 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.10.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.133.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.133.0 // indirect + github.com/pulumi/pulumi-yaml v1.10.3 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.136.1 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.136.1 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index 76e760d..1716758 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1906,20 +1906,20 @@ github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= -github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8= -github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= +github.com/pulumi/providertest v0.1.2 h1:9pJS9MeNkMyGwyNeHmvh8QqLgJy39Nk2/ym5u7r13ng= +github.com/pulumi/providertest v0.1.2/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIkaa5QDGAns= github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1 h1:Twh0IKS1pGHP6LHDq1oR0vbHlV52asoUCC7spEJl3Ao= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1/go.mod h1:DvueDDtOIbf7W1Or4oH0o7F990ozp/ROmlm/vgLoe+g= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.2-0.20241009210200-fa7a7b989500 h1:rvNTC49V82BRKjPCLBWV9ChW5/69VKeXRir8gCAO9Rc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.2-0.20241009210200-fa7a7b989500/go.mod h1:aI3U3eanRcyOX05No+Nk6FuJvppx4jjcQwFelHSI8yE= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.10.0 h1:djbgMJCxJBmYMr4kOpAXH5iauxGohYjEuTLfxD3NUUI= -github.com/pulumi/pulumi-yaml v1.10.0/go.mod h1://lTvwHpgJ+WBKeMGiLrd/jinc4dl3eWV5LZ3G8iCfE= -github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= -github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi-yaml v1.10.3 h1:j5cjPiE32ILmjrWnC1cfZ0MWdqCZ8fg9wlaWk7HOtM4= +github.com/pulumi/pulumi-yaml v1.10.3/go.mod h1:MFMQXkaUP5YQUKVJ6Z/aagZDl2f8hdU9oGaJfTcMf1Y= +github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= +github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= 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= diff --git a/sdk/go.mod b/sdk/go.mod index 6908f37..6ee390c 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.133.0 + github.com/pulumi/pulumi/sdk/v3 v3.136.1 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 48fc7cf..8217cee 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= 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= From 4b079a85f66d866f2b970bb8cab2fbed537076c1 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Wed, 9 Oct 2024 21:20:32 +0000 Subject: [PATCH 2/2] make build_sdks --- docs/_index.md | 2 +- sdk/nodejs/package.json | 2 +- sdk/python/pulumi_slack/_utilities.py | 2 +- sdk/python/pulumi_slack/config/__init__.pyi | 5 ++++ sdk/python/pulumi_slack/config/vars.py | 5 ++++ sdk/python/pulumi_slack/conversation.py | 5 ++++ sdk/python/pulumi_slack/get_conversation.py | 29 ++++++++++++++++++--- sdk/python/pulumi_slack/get_user.py | 18 ++++++++++--- sdk/python/pulumi_slack/get_usergroup.py | 22 +++++++++++++--- sdk/python/pulumi_slack/provider.py | 5 ++++ sdk/python/pulumi_slack/usergroup.py | 5 ++++ sdk/python/pyproject.toml | 2 +- 12 files changed, 86 insertions(+), 16 deletions(-) diff --git a/docs/_index.md b/docs/_index.md index 3ac6e44..24b3369 100644 --- a/docs/_index.md +++ b/docs/_index.md @@ -446,7 +446,7 @@ pulumi preview In addition to generic `provider` arguments (e.g. `alias` and `version`), the following arguments are supported in the Slack -`provider` block: +provider configuration: - `token` - (Mandatory) The Slack token. It must be provided, but it can also be sourced from the `SLACK_TOKEN` environment variable. \ No newline at end of file diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index e00e422..5b35739 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -14,7 +14,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.42.0" + "@pulumi/pulumi": "^3.136.0" }, "devDependencies": { "@types/mime": "^2.0.0", diff --git a/sdk/python/pulumi_slack/_utilities.py b/sdk/python/pulumi_slack/_utilities.py index d14b49a..3ce408d 100644 --- a/sdk/python/pulumi_slack/_utilities.py +++ b/sdk/python/pulumi_slack/_utilities.py @@ -264,7 +264,7 @@ def call_plain( output = pulumi.runtime.call(tok, props, res, typ) # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency. - result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output))) + result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output))) problem = None if not known: diff --git a/sdk/python/pulumi_slack/config/__init__.pyi b/sdk/python/pulumi_slack/config/__init__.pyi index 6d6f8c9..113abab 100644 --- a/sdk/python/pulumi_slack/config/__init__.pyi +++ b/sdk/python/pulumi_slack/config/__init__.pyi @@ -4,9 +4,14 @@ 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 token: Optional[str] diff --git a/sdk/python/pulumi_slack/config/vars.py b/sdk/python/pulumi_slack/config/vars.py index 7a26d29..51b89ac 100644 --- a/sdk/python/pulumi_slack/config/vars.py +++ b/sdk/python/pulumi_slack/config/vars.py @@ -4,9 +4,14 @@ 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 import types diff --git a/sdk/python/pulumi_slack/conversation.py b/sdk/python/pulumi_slack/conversation.py index a7783aa..78602dd 100644 --- a/sdk/python/pulumi_slack/conversation.py +++ b/sdk/python/pulumi_slack/conversation.py @@ -4,9 +4,14 @@ 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__ = ['ConversationArgs', 'Conversation'] diff --git a/sdk/python/pulumi_slack/get_conversation.py b/sdk/python/pulumi_slack/get_conversation.py index 52a1184..c87710f 100644 --- a/sdk/python/pulumi_slack/get_conversation.py +++ b/sdk/python/pulumi_slack/get_conversation.py @@ -4,9 +4,14 @@ 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__ = [ @@ -250,9 +255,6 @@ def get_conversation(channel_id: Optional[str] = None, name=pulumi.get(__ret__, 'name'), purpose=pulumi.get(__ret__, 'purpose'), topic=pulumi.get(__ret__, 'topic')) - - -@_utilities.lift_output_func(get_conversation) def get_conversation_output(channel_id: Optional[pulumi.Input[Optional[str]]] = None, is_private: Optional[pulumi.Input[Optional[bool]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, @@ -294,4 +296,23 @@ def get_conversation_output(channel_id: Optional[pulumi.Input[Optional[str]]] = with `name`. :param str name: The name of the public or private channel """ - ... + __args__ = dict() + __args__['channelId'] = channel_id + __args__['isPrivate'] = is_private + __args__['name'] = name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('slack:index/getConversation:getConversation', __args__, opts=opts, typ=GetConversationResult) + return __ret__.apply(lambda __response__: GetConversationResult( + channel_id=pulumi.get(__response__, 'channel_id'), + created=pulumi.get(__response__, 'created'), + creator=pulumi.get(__response__, 'creator'), + id=pulumi.get(__response__, 'id'), + is_archived=pulumi.get(__response__, 'is_archived'), + is_ext_shared=pulumi.get(__response__, 'is_ext_shared'), + is_general=pulumi.get(__response__, 'is_general'), + is_org_shared=pulumi.get(__response__, 'is_org_shared'), + is_private=pulumi.get(__response__, 'is_private'), + is_shared=pulumi.get(__response__, 'is_shared'), + name=pulumi.get(__response__, 'name'), + purpose=pulumi.get(__response__, 'purpose'), + topic=pulumi.get(__response__, 'topic'))) diff --git a/sdk/python/pulumi_slack/get_user.py b/sdk/python/pulumi_slack/get_user.py index 96498af..96708e8 100644 --- a/sdk/python/pulumi_slack/get_user.py +++ b/sdk/python/pulumi_slack/get_user.py @@ -4,9 +4,14 @@ 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__ = [ @@ -110,9 +115,6 @@ def get_user(email: Optional[str] = None, email=pulumi.get(__ret__, 'email'), id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name')) - - -@_utilities.lift_output_func(get_user) def get_user_output(email: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserResult]: @@ -151,4 +153,12 @@ def get_user_output(email: Optional[pulumi.Input[Optional[str]]] = None, The data source expects exactly one of these fields, you can't set both. :param str name: The name of the user """ - ... + __args__ = dict() + __args__['email'] = email + __args__['name'] = name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('slack:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult) + return __ret__.apply(lambda __response__: GetUserResult( + email=pulumi.get(__response__, 'email'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'))) diff --git a/sdk/python/pulumi_slack/get_usergroup.py b/sdk/python/pulumi_slack/get_usergroup.py index e4c548b..90f4ca5 100644 --- a/sdk/python/pulumi_slack/get_usergroup.py +++ b/sdk/python/pulumi_slack/get_usergroup.py @@ -4,9 +4,14 @@ 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__ = [ @@ -161,9 +166,6 @@ def get_usergroup(name: Optional[str] = None, name=pulumi.get(__ret__, 'name'), usergroup_id=pulumi.get(__ret__, 'usergroup_id'), users=pulumi.get(__ret__, 'users')) - - -@_utilities.lift_output_func(get_usergroup) def get_usergroup_output(name: Optional[pulumi.Input[Optional[str]]] = None, usergroup_id: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUsergroupResult]: @@ -200,4 +202,16 @@ def get_usergroup_output(name: Optional[pulumi.Input[Optional[str]]] = None, The data source expects exactly one of these fields, you can't set both. """ - ... + __args__ = dict() + __args__['name'] = name + __args__['usergroupId'] = usergroup_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('slack:index/getUsergroup:getUsergroup', __args__, opts=opts, typ=GetUsergroupResult) + return __ret__.apply(lambda __response__: GetUsergroupResult( + channels=pulumi.get(__response__, 'channels'), + description=pulumi.get(__response__, 'description'), + handle=pulumi.get(__response__, 'handle'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + usergroup_id=pulumi.get(__response__, 'usergroup_id'), + users=pulumi.get(__response__, 'users'))) diff --git a/sdk/python/pulumi_slack/provider.py b/sdk/python/pulumi_slack/provider.py index ba8472d..c8a117d 100644 --- a/sdk/python/pulumi_slack/provider.py +++ b/sdk/python/pulumi_slack/provider.py @@ -4,9 +4,14 @@ 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__ = ['ProviderArgs', 'Provider'] diff --git a/sdk/python/pulumi_slack/usergroup.py b/sdk/python/pulumi_slack/usergroup.py index 6ed9f7b..1ad45b2 100644 --- a/sdk/python/pulumi_slack/usergroup.py +++ b/sdk/python/pulumi_slack/usergroup.py @@ -4,9 +4,14 @@ 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__ = ['UsergroupArgs', 'Usergroup'] diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 0da0988..b81cb26 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "pulumi_slack" description = "A Pulumi package for managing Slack workspaces." - dependencies = ["parver>=0.2.1", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1"] + dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "slack", "category/utility"] readme = "README.md" requires-python = ">=3.8"