From b9880d2bf99165c3408b07ad20d03d1f27f7d8db Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:46:58 -0800 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.97.0 (#459) This PR was generated via `$ upgrade-provider pulumi/pulumi-slack --kind=bridge --pr-reviewers=iwahbe`. --- - Updating Java Gen version from 0.17.0 to 0.18.0. - Upgrading pulumi-terraform-bridge from v3.96.0 to v3.97.0. --- .pulumi-java-gen.version | 2 +- examples/go.mod | 4 ++-- examples/go.sum | 8 ++++---- .../cmd/pulumi-resource-slack/schema.json | 6 +++--- provider/go.mod | 10 +++++----- provider/go.sum | 20 +++++++++---------- sdk/go.mod | 2 +- sdk/go.sum | 4 ++-- sdk/java/build.gradle | 4 ++-- sdk/nodejs/getConversation.ts | 2 +- sdk/nodejs/getUser.ts | 2 +- sdk/nodejs/getUsergroup.ts | 2 +- sdk/python/pulumi_slack/get_conversation.py | 4 ++-- sdk/python/pulumi_slack/get_user.py | 4 ++-- sdk/python/pulumi_slack/get_usergroup.py | 4 ++-- 15 files changed, 39 insertions(+), 39 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 07feb82..47d04a5 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.17.0 \ No newline at end of file +0.18.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 8aaee8e..ea7171e 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.140.0 +require github.com/pulumi/pulumi/pkg/v3 v3.142.0 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.140.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.142.0 // 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 e2374cd..304740d 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,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.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/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/cmd/pulumi-resource-slack/schema.json b/provider/cmd/pulumi-resource-slack/schema.json index c4b51c7..aad218b 100644 --- a/provider/cmd/pulumi-resource-slack/schema.json +++ b/provider/cmd/pulumi-resource-slack/schema.json @@ -367,7 +367,7 @@ }, "functions": { "slack:index/getConversation:getConversation": { - "description": "Use this data source to get information about a Slack conversation for use in other\nresources.\n\n## Required scopes\n\nThis resource requires the following scopes:\n\n- [channels:read](https://api.slack.com/scopes/channels:read) (public channels)\n- [groups:read](https://api.slack.com/scopes/groups:read) (private channels)\n\nThe Slack API methods used by the resource are:\n\n- [conversations.info](https://api.slack.com/methods/conversations.info)\n- [conversations.members](https://api.slack.com/methods/conversations.members)\n\nIf you get `missing_scope` errors while using this resource check the scopes against\nthe documentation for the methods above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as slack from \"@pulumi/slack\";\n\nconst test = slack.getConversation({\n channelId: \"my-channel\",\n});\nconst test-name = slack.getConversation({\n name: \"my-channel-name\",\n});\n```\n```python\nimport pulumi\nimport pulumi_slack as slack\n\ntest = slack.get_conversation(channel_id=\"my-channel\")\ntest_name = slack.get_conversation(name=\"my-channel-name\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Slack = Pulumi.Slack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Slack.GetConversation.Invoke(new()\n {\n ChannelId = \"my-channel\",\n });\n\n var test_name = Slack.GetConversation.Invoke(new()\n {\n Name = \"my-channel-name\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-slack/sdk/go/slack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := slack.LookupConversation(ctx, \u0026slack.LookupConversationArgs{\n\t\t\tChannelId: pulumi.StringRef(\"my-channel\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = slack.LookupConversation(ctx, \u0026slack.LookupConversationArgs{\n\t\t\tName: pulumi.StringRef(\"my-channel-name\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.slack.SlackFunctions;\nimport com.pulumi.slack.inputs.GetConversationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = SlackFunctions.getConversation(GetConversationArgs.builder()\n .channelId(\"my-channel\")\n .build());\n\n final var test-name = SlackFunctions.getConversation(GetConversationArgs.builder()\n .name(\"my-channel-name\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: slack:getConversation\n Arguments:\n channelId: my-channel\n test-name:\n fn::invoke:\n Function: slack:getConversation\n Arguments:\n name: my-channel-name\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information about a Slack conversation for use in other\nresources.\n\n## Required scopes\n\nThis resource requires the following scopes:\n\n- [channels:read](https://api.slack.com/scopes/channels:read) (public channels)\n- [groups:read](https://api.slack.com/scopes/groups:read) (private channels)\n\nThe Slack API methods used by the resource are:\n\n- [conversations.info](https://api.slack.com/methods/conversations.info)\n- [conversations.members](https://api.slack.com/methods/conversations.members)\n\nIf you get `missing_scope` errors while using this resource check the scopes against\nthe documentation for the methods above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as slack from \"@pulumi/slack\";\n\nconst test = slack.getConversation({\n channelId: \"my-channel\",\n});\nconst test-name = slack.getConversation({\n name: \"my-channel-name\",\n});\n```\n```python\nimport pulumi\nimport pulumi_slack as slack\n\ntest = slack.get_conversation(channel_id=\"my-channel\")\ntest_name = slack.get_conversation(name=\"my-channel-name\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Slack = Pulumi.Slack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Slack.GetConversation.Invoke(new()\n {\n ChannelId = \"my-channel\",\n });\n\n var test_name = Slack.GetConversation.Invoke(new()\n {\n Name = \"my-channel-name\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-slack/sdk/go/slack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := slack.LookupConversation(ctx, \u0026slack.LookupConversationArgs{\n\t\t\tChannelId: pulumi.StringRef(\"my-channel\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = slack.LookupConversation(ctx, \u0026slack.LookupConversationArgs{\n\t\t\tName: pulumi.StringRef(\"my-channel-name\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.slack.SlackFunctions;\nimport com.pulumi.slack.inputs.GetConversationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = SlackFunctions.getConversation(GetConversationArgs.builder()\n .channelId(\"my-channel\")\n .build());\n\n final var test-name = SlackFunctions.getConversation(GetConversationArgs.builder()\n .name(\"my-channel-name\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n function: slack:getConversation\n arguments:\n channelId: my-channel\n test-name:\n fn::invoke:\n function: slack:getConversation\n arguments:\n name: my-channel-name\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getConversation.\n", "properties": { @@ -457,7 +457,7 @@ } }, "slack:index/getUser:getUser": { - "description": "Use this data source to get information about a user for use in other\nresources.\n\n## Required scopes\n\nThis resource requires the following scopes:\n\n- [users:read](https://api.slack.com/scopes/users:read)\n- [users:read.email](https://api.slack.com/scopes/users:read.email)\n\nThe Slack API methods used by the resource are:\n\n- [users.lookupByEmail](https://api.slack.com/methods/users.lookupByEmail)\n- [users.list](https://api.slack.com/methods/users.list)\n\nIf you get `missing_scope` errors while using this resource check the scopes against\nthe documentation for the methods above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as slack from \"@pulumi/slack\";\n\nconst byName = slack.getUser({\n name: \"my-user\",\n});\nconst byEmail = slack.getUser({\n email: \"my-user@example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_slack as slack\n\nby_name = slack.get_user(name=\"my-user\")\nby_email = slack.get_user(email=\"my-user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Slack = Pulumi.Slack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var byName = Slack.GetUser.Invoke(new()\n {\n Name = \"my-user\",\n });\n\n var byEmail = Slack.GetUser.Invoke(new()\n {\n Email = \"my-user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-slack/sdk/go/slack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := slack.GetUser(ctx, \u0026slack.GetUserArgs{\n\t\t\tName: pulumi.StringRef(\"my-user\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = slack.GetUser(ctx, \u0026slack.GetUserArgs{\n\t\t\tEmail: pulumi.StringRef(\"my-user@example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.slack.SlackFunctions;\nimport com.pulumi.slack.inputs.GetUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var byName = SlackFunctions.getUser(GetUserArgs.builder()\n .name(\"my-user\")\n .build());\n\n final var byEmail = SlackFunctions.getUser(GetUserArgs.builder()\n .email(\"my-user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n byName:\n fn::invoke:\n Function: slack:getUser\n Arguments:\n name: my-user\n byEmail:\n fn::invoke:\n Function: slack:getUser\n Arguments:\n email: my-user@example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information about a user for use in other\nresources.\n\n## Required scopes\n\nThis resource requires the following scopes:\n\n- [users:read](https://api.slack.com/scopes/users:read)\n- [users:read.email](https://api.slack.com/scopes/users:read.email)\n\nThe Slack API methods used by the resource are:\n\n- [users.lookupByEmail](https://api.slack.com/methods/users.lookupByEmail)\n- [users.list](https://api.slack.com/methods/users.list)\n\nIf you get `missing_scope` errors while using this resource check the scopes against\nthe documentation for the methods above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as slack from \"@pulumi/slack\";\n\nconst byName = slack.getUser({\n name: \"my-user\",\n});\nconst byEmail = slack.getUser({\n email: \"my-user@example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_slack as slack\n\nby_name = slack.get_user(name=\"my-user\")\nby_email = slack.get_user(email=\"my-user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Slack = Pulumi.Slack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var byName = Slack.GetUser.Invoke(new()\n {\n Name = \"my-user\",\n });\n\n var byEmail = Slack.GetUser.Invoke(new()\n {\n Email = \"my-user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-slack/sdk/go/slack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := slack.GetUser(ctx, \u0026slack.GetUserArgs{\n\t\t\tName: pulumi.StringRef(\"my-user\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = slack.GetUser(ctx, \u0026slack.GetUserArgs{\n\t\t\tEmail: pulumi.StringRef(\"my-user@example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.slack.SlackFunctions;\nimport com.pulumi.slack.inputs.GetUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var byName = SlackFunctions.getUser(GetUserArgs.builder()\n .name(\"my-user\")\n .build());\n\n final var byEmail = SlackFunctions.getUser(GetUserArgs.builder()\n .email(\"my-user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n byName:\n fn::invoke:\n function: slack:getUser\n arguments:\n name: my-user\n byEmail:\n fn::invoke:\n function: slack:getUser\n arguments:\n email: my-user@example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getUser.\n", "properties": { @@ -493,7 +493,7 @@ } }, "slack:index/getUsergroup:getUsergroup": { - "description": "Use this data source to get information about a usergroups for use in other\nresources. The data source returns enabled groups only.\n\n## Required scopes\n\nThis resource requires the following scopes:\n\n- [usergroups:read](https://api.slack.com/scopes/usergroups:read)\n\nThe Slack API methods used by the resource are:\n\n- [usergroups.list](https://api.slack.com/methods/usergroups.list)\n\nIf you get `missing_scope` errors while using this resource check the scopes against\nthe documentation for the methods above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as slack from \"@pulumi/slack\";\n\nconst byName = slack.getUsergroup({\n name: \"my-usergroup\",\n});\nconst byId = slack.getUsergroup({\n usergroupId: \"USERGROUP00\",\n});\n```\n```python\nimport pulumi\nimport pulumi_slack as slack\n\nby_name = slack.get_usergroup(name=\"my-usergroup\")\nby_id = slack.get_usergroup(usergroup_id=\"USERGROUP00\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Slack = Pulumi.Slack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var byName = Slack.GetUsergroup.Invoke(new()\n {\n Name = \"my-usergroup\",\n });\n\n var byId = Slack.GetUsergroup.Invoke(new()\n {\n UsergroupId = \"USERGROUP00\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-slack/sdk/go/slack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := slack.LookupUsergroup(ctx, \u0026slack.LookupUsergroupArgs{\n\t\t\tName: pulumi.StringRef(\"my-usergroup\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = slack.LookupUsergroup(ctx, \u0026slack.LookupUsergroupArgs{\n\t\t\tUsergroupId: pulumi.StringRef(\"USERGROUP00\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.slack.SlackFunctions;\nimport com.pulumi.slack.inputs.GetUsergroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var byName = SlackFunctions.getUsergroup(GetUsergroupArgs.builder()\n .name(\"my-usergroup\")\n .build());\n\n final var byId = SlackFunctions.getUsergroup(GetUsergroupArgs.builder()\n .usergroupId(\"USERGROUP00\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n byName:\n fn::invoke:\n Function: slack:getUsergroup\n Arguments:\n name: my-usergroup\n byId:\n fn::invoke:\n Function: slack:getUsergroup\n Arguments:\n usergroupId: USERGROUP00\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information about a usergroups for use in other\nresources. The data source returns enabled groups only.\n\n## Required scopes\n\nThis resource requires the following scopes:\n\n- [usergroups:read](https://api.slack.com/scopes/usergroups:read)\n\nThe Slack API methods used by the resource are:\n\n- [usergroups.list](https://api.slack.com/methods/usergroups.list)\n\nIf you get `missing_scope` errors while using this resource check the scopes against\nthe documentation for the methods above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as slack from \"@pulumi/slack\";\n\nconst byName = slack.getUsergroup({\n name: \"my-usergroup\",\n});\nconst byId = slack.getUsergroup({\n usergroupId: \"USERGROUP00\",\n});\n```\n```python\nimport pulumi\nimport pulumi_slack as slack\n\nby_name = slack.get_usergroup(name=\"my-usergroup\")\nby_id = slack.get_usergroup(usergroup_id=\"USERGROUP00\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Slack = Pulumi.Slack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var byName = Slack.GetUsergroup.Invoke(new()\n {\n Name = \"my-usergroup\",\n });\n\n var byId = Slack.GetUsergroup.Invoke(new()\n {\n UsergroupId = \"USERGROUP00\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-slack/sdk/go/slack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := slack.LookupUsergroup(ctx, \u0026slack.LookupUsergroupArgs{\n\t\t\tName: pulumi.StringRef(\"my-usergroup\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = slack.LookupUsergroup(ctx, \u0026slack.LookupUsergroupArgs{\n\t\t\tUsergroupId: pulumi.StringRef(\"USERGROUP00\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.slack.SlackFunctions;\nimport com.pulumi.slack.inputs.GetUsergroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var byName = SlackFunctions.getUsergroup(GetUsergroupArgs.builder()\n .name(\"my-usergroup\")\n .build());\n\n final var byId = SlackFunctions.getUsergroup(GetUsergroupArgs.builder()\n .usergroupId(\"USERGROUP00\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n byName:\n fn::invoke:\n function: slack:getUsergroup\n arguments:\n name: my-usergroup\n byId:\n fn::invoke:\n function: slack:getUsergroup\n arguments:\n usergroupId: USERGROUP00\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getUsergroup.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index ec83e24..86e4875 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.96.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.0 ) require ( @@ -129,10 +129,10 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.17.0 // indirect - github.com/pulumi/pulumi-yaml v1.11.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.140.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.140.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-yaml v1.12.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.142.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.142.0 // 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 273b243..5744103 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1892,16 +1892,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.17.0 h1:KmaVLrVmlkzShOfaJNJDlckorbFm8dM/C7L4hj6LX8U= -github.com/pulumi/pulumi-java/pkg v0.17.0/go.mod h1:ji4U4H7t81X4aaE88D9+z5CmKH/QoLwQi9N1iGl+2KQ= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 h1:uJB3tM1j+9SKeXLCAx3DBVHsYk4ddXNrVoiqpgXal2Q= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0/go.mod h1:WnOTAfdtm5+kW3rIU0rLhxFSEHtJIMf19FdOU6NFXG0= -github.com/pulumi/pulumi-yaml v1.11.2 h1:MU7TTNbruGCSgNHhaBygjIbLWm3WSbd1q98GpMIgQzE= -github.com/pulumi/pulumi-yaml v1.11.2/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= +github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.0 h1:/Y/9hffZp2CFUfInVbv/9rWnZETiiOgKju1Ua512Ke8= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.0/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= +github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/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 982dd49..d9db6a0 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.140.0 + github.com/pulumi/pulumi/sdk/v3 v3.142.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 7fb5b07..129c0aa 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.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/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/sdk/java/build.gradle b/sdk/java/build.gradle index bfcb37f..d7c4b59 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -5,7 +5,7 @@ plugins { id("signing") id("java-library") id("maven-publish") - id("io.github.gradle-nexus.publish-plugin") version "1.1.0" + id("io.github.gradle-nexus.publish-plugin") version "2.0.0" } group = "com.pulumi" @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.17.0") + implementation("com.pulumi:pulumi:0.18.0") } task sourcesJar(type: Jar) { diff --git a/sdk/nodejs/getConversation.ts b/sdk/nodejs/getConversation.ts index 7055036..728af33 100644 --- a/sdk/nodejs/getConversation.ts +++ b/sdk/nodejs/getConversation.ts @@ -158,7 +158,7 @@ export interface GetConversationResult { * }); * ``` */ -export function getConversationOutput(args?: GetConversationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getConversationOutput(args?: GetConversationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("slack:index/getConversation:getConversation", { diff --git a/sdk/nodejs/getUser.ts b/sdk/nodejs/getUser.ts index be7711e..36cda94 100644 --- a/sdk/nodejs/getUser.ts +++ b/sdk/nodejs/getUser.ts @@ -106,7 +106,7 @@ export interface GetUserResult { * }); * ``` */ -export function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("slack:index/getUser:getUser", { diff --git a/sdk/nodejs/getUsergroup.ts b/sdk/nodejs/getUsergroup.ts index e4294fd..cc1259e 100644 --- a/sdk/nodejs/getUsergroup.ts +++ b/sdk/nodejs/getUsergroup.ts @@ -119,7 +119,7 @@ export interface GetUsergroupResult { * }); * ``` */ -export function getUsergroupOutput(args?: GetUsergroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getUsergroupOutput(args?: GetUsergroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("slack:index/getUsergroup:getUsergroup", { diff --git a/sdk/python/pulumi_slack/get_conversation.py b/sdk/python/pulumi_slack/get_conversation.py index c87710f..6192623 100644 --- a/sdk/python/pulumi_slack/get_conversation.py +++ b/sdk/python/pulumi_slack/get_conversation.py @@ -258,7 +258,7 @@ def get_conversation(channel_id: Optional[str] = None, 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, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConversationResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConversationResult]: """ Use this data source to get information about a Slack conversation for use in other resources. @@ -300,7 +300,7 @@ def get_conversation_output(channel_id: Optional[pulumi.Input[Optional[str]]] = __args__['channelId'] = channel_id __args__['isPrivate'] = is_private __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.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'), diff --git a/sdk/python/pulumi_slack/get_user.py b/sdk/python/pulumi_slack/get_user.py index 96708e8..41fa46a 100644 --- a/sdk/python/pulumi_slack/get_user.py +++ b/sdk/python/pulumi_slack/get_user.py @@ -117,7 +117,7 @@ def get_user(email: Optional[str] = None, name=pulumi.get(__ret__, 'name')) 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]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserResult]: """ Use this data source to get information about a user for use in other resources. @@ -156,7 +156,7 @@ def get_user_output(email: Optional[pulumi.Input[Optional[str]]] = None, __args__ = dict() __args__['email'] = email __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.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'), diff --git a/sdk/python/pulumi_slack/get_usergroup.py b/sdk/python/pulumi_slack/get_usergroup.py index 90f4ca5..1b93ca3 100644 --- a/sdk/python/pulumi_slack/get_usergroup.py +++ b/sdk/python/pulumi_slack/get_usergroup.py @@ -168,7 +168,7 @@ def get_usergroup(name: Optional[str] = None, users=pulumi.get(__ret__, 'users')) 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]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUsergroupResult]: """ Use this data source to get information about a usergroups for use in other resources. The data source returns enabled groups only. @@ -205,7 +205,7 @@ def get_usergroup_output(name: Optional[pulumi.Input[Optional[str]]] = None, __args__ = dict() __args__['name'] = name __args__['usergroupId'] = usergroup_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.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'),