diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index d33c3a21..0548fb4e 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.12.0 \ No newline at end of file +0.14.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 2b14ec67..dcab228a 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -3,7 +3,7 @@ module github.com/pulumi/pulumi-github/examples/v4 go 1.21 require ( - github.com/pulumi/pulumi/pkg/v3 v3.126.0 + github.com/pulumi/pulumi/pkg/v3 v3.128.0 github.com/stretchr/testify v1.9.0 ) @@ -126,7 +126,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.9.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.126.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.128.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 8ef90117..01fb8a55 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.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/pkg/v3 v3.126.0 h1:XaZU1ehjHN2I5ihkfwxK/UFMDiCDM9FSt2TBnbldAx4= -github.com/pulumi/pulumi/pkg/v3 v3.126.0/go.mod h1:1P4/oK9zceOJUm48QQl/TqjDN68lfsdnTR1FITTFddw= -github.com/pulumi/pulumi/sdk/v3 v3.126.0 h1:6GQVhwG2jgnG7wjRiWgrq0/sU39onctAiBcvTlqb20s= -github.com/pulumi/pulumi/sdk/v3 v3.126.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.128.0 h1:K3qtJYjHg4DkA7LxknY/MoQZ+QHdHQDh/k2njjmjHXM= +github.com/pulumi/pulumi/pkg/v3 v3.128.0/go.mod h1:/spoJXy/mqQ8fBLgXBEbUrAnL7pHdfXOviIo5fZROEY= +github.com/pulumi/pulumi/sdk/v3 v3.128.0 h1:5VPFfygxt6rva0bEYVQZXxsGAo2/D1wsb9erGOtXxzk= +github.com/pulumi/pulumi/sdk/v3 v3.128.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= 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-github/schema.json b/provider/cmd/pulumi-resource-github/schema.json index c208c71f..1b84281d 100644 --- a/provider/cmd/pulumi-resource-github/schema.json +++ b/provider/cmd/pulumi-resource-github/schema.json @@ -3246,7 +3246,7 @@ } }, "github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions": { - "description": "This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.\nYou must have admin access to an organization to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {name: \"my-repository\"});\nconst test = new github.ActionsOrganizationPermissions(\"test\", {\n allowedActions: \"selected\",\n enabledRepositories: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n enabledRepositoriesConfig: {\n repositoryIds: [example.repoId],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\", name=\"my-repository\")\ntest = github.ActionsOrganizationPermissions(\"test\",\n allowed_actions=\"selected\",\n enabled_repositories=\"selected\",\n allowed_actions_config=github.ActionsOrganizationPermissionsAllowedActionsConfigArgs(\n github_owned_allowed=True,\n patterns_alloweds=[\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verified_allowed=True,\n ),\n enabled_repositories_config=github.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs(\n repository_ids=[example.repo_id],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"my-repository\",\n });\n\n var test = new Github.ActionsOrganizationPermissions(\"test\", new()\n {\n AllowedActions = \"selected\",\n EnabledRepositories = \"selected\",\n AllowedActionsConfig = new Github.Inputs.ActionsOrganizationPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n EnabledRepositoriesConfig = new Github.Inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs\n {\n RepositoryIds = new[]\n {\n example.RepoId,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"my-repository\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationPermissions(ctx, \"test\", \u0026github.ActionsOrganizationPermissionsArgs{\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tEnabledRepositories: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.ActionsOrganizationPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tEnabledRepositoriesConfig: \u0026github.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs{\n\t\t\t\tRepositoryIds: pulumi.IntArray{\n\t\t\t\t\texample.RepoId,\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationPermissions;\nimport com.pulumi.github.ActionsOrganizationPermissionsArgs;\nimport com.pulumi.github.inputs.ActionsOrganizationPermissionsAllowedActionsConfigArgs;\nimport com.pulumi.github.inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"my-repository\")\n .build());\n\n var test = new ActionsOrganizationPermissions(\"test\", ActionsOrganizationPermissionsArgs.builder()\n .allowedActions(\"selected\")\n .enabledRepositories(\"selected\")\n .allowedActionsConfig(ActionsOrganizationPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .enabledRepositoriesConfig(ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs.builder()\n .repositoryIds(example.repoId())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: my-repository\n test:\n type: github:ActionsOrganizationPermissions\n properties:\n allowedActions: selected\n enabledRepositories: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n enabledRepositoriesConfig:\n repositoryIds:\n - ${example.repoId}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub organization:\n\n```sh\n$ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test github_organization_name\n```\n", + "description": "This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.\nYou must have admin access to an organization to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {name: \"my-repository\"});\nconst test = new github.ActionsOrganizationPermissions(\"test\", {\n allowedActions: \"selected\",\n enabledRepositories: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n enabledRepositoriesConfig: {\n repositoryIds: [example.repoId],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\", name=\"my-repository\")\ntest = github.ActionsOrganizationPermissions(\"test\",\n allowed_actions=\"selected\",\n enabled_repositories=\"selected\",\n allowed_actions_config={\n \"github_owned_allowed\": True,\n \"patterns_alloweds\": [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n \"verified_allowed\": True,\n },\n enabled_repositories_config={\n \"repository_ids\": [example.repo_id],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"my-repository\",\n });\n\n var test = new Github.ActionsOrganizationPermissions(\"test\", new()\n {\n AllowedActions = \"selected\",\n EnabledRepositories = \"selected\",\n AllowedActionsConfig = new Github.Inputs.ActionsOrganizationPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n EnabledRepositoriesConfig = new Github.Inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs\n {\n RepositoryIds = new[]\n {\n example.RepoId,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"my-repository\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsOrganizationPermissions(ctx, \"test\", \u0026github.ActionsOrganizationPermissionsArgs{\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tEnabledRepositories: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.ActionsOrganizationPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tEnabledRepositoriesConfig: \u0026github.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs{\n\t\t\t\tRepositoryIds: pulumi.IntArray{\n\t\t\t\t\texample.RepoId,\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.ActionsOrganizationPermissions;\nimport com.pulumi.github.ActionsOrganizationPermissionsArgs;\nimport com.pulumi.github.inputs.ActionsOrganizationPermissionsAllowedActionsConfigArgs;\nimport com.pulumi.github.inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"my-repository\")\n .build());\n\n var test = new ActionsOrganizationPermissions(\"test\", ActionsOrganizationPermissionsArgs.builder()\n .allowedActions(\"selected\")\n .enabledRepositories(\"selected\")\n .allowedActionsConfig(ActionsOrganizationPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .enabledRepositoriesConfig(ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs.builder()\n .repositoryIds(example.repoId())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: my-repository\n test:\n type: github:ActionsOrganizationPermissions\n properties:\n allowedActions: selected\n enabledRepositories: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n enabledRepositoriesConfig:\n repositoryIds:\n - ${example.repoId}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub organization:\n\n```sh\n$ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test github_organization_name\n```\n", "properties": { "allowedActions": { "type": "string", @@ -3706,7 +3706,7 @@ } }, "github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions": { - "description": "This resource allows you to enable and manage GitHub Actions permissions for a given repository.\nYou must have admin access to an repository to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {name: \"my-repository\"});\nconst test = new github.ActionsRepositoryPermissions(\"test\", {\n allowedActions: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n repository: example.name,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\", name=\"my-repository\")\ntest = github.ActionsRepositoryPermissions(\"test\",\n allowed_actions=\"selected\",\n allowed_actions_config=github.ActionsRepositoryPermissionsAllowedActionsConfigArgs(\n github_owned_allowed=True,\n patterns_alloweds=[\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verified_allowed=True,\n ),\n repository=example.name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"my-repository\",\n });\n\n var test = new Github.ActionsRepositoryPermissions(\"test\", new()\n {\n AllowedActions = \"selected\",\n AllowedActionsConfig = new Github.Inputs.ActionsRepositoryPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n Repository = example.Name,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"my-repository\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsRepositoryPermissions(ctx, \"test\", \u0026github.ActionsRepositoryPermissionsArgs{\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.ActionsRepositoryPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tRepository: example.Name,\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.ActionsRepositoryPermissions;\nimport com.pulumi.github.ActionsRepositoryPermissionsArgs;\nimport com.pulumi.github.inputs.ActionsRepositoryPermissionsAllowedActionsConfigArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"my-repository\")\n .build());\n\n var test = new ActionsRepositoryPermissions(\"test\", ActionsRepositoryPermissionsArgs.builder()\n .allowedActions(\"selected\")\n .allowedActionsConfig(ActionsRepositoryPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .repository(example.name())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: my-repository\n test:\n type: github:ActionsRepositoryPermissions\n properties:\n allowedActions: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n repository: ${example.name}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub repository:\n\n```sh\n$ pulumi import github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions test my-repository\n```\n", + "description": "This resource allows you to enable and manage GitHub Actions permissions for a given repository.\nYou must have admin access to an repository to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {name: \"my-repository\"});\nconst test = new github.ActionsRepositoryPermissions(\"test\", {\n allowedActions: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n repository: example.name,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\", name=\"my-repository\")\ntest = github.ActionsRepositoryPermissions(\"test\",\n allowed_actions=\"selected\",\n allowed_actions_config={\n \"github_owned_allowed\": True,\n \"patterns_alloweds\": [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n \"verified_allowed\": True,\n },\n repository=example.name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"my-repository\",\n });\n\n var test = new Github.ActionsRepositoryPermissions(\"test\", new()\n {\n AllowedActions = \"selected\",\n AllowedActionsConfig = new Github.Inputs.ActionsRepositoryPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n Repository = example.Name,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"my-repository\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewActionsRepositoryPermissions(ctx, \"test\", \u0026github.ActionsRepositoryPermissionsArgs{\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.ActionsRepositoryPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tRepository: example.Name,\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.ActionsRepositoryPermissions;\nimport com.pulumi.github.ActionsRepositoryPermissionsArgs;\nimport com.pulumi.github.inputs.ActionsRepositoryPermissionsAllowedActionsConfigArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"my-repository\")\n .build());\n\n var test = new ActionsRepositoryPermissions(\"test\", ActionsRepositoryPermissionsArgs.builder()\n .allowedActions(\"selected\")\n .allowedActionsConfig(ActionsRepositoryPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .repository(example.name())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: my-repository\n test:\n type: github:ActionsRepositoryPermissions\n properties:\n allowedActions: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n repository: ${example.name}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub repository:\n\n```sh\n$ pulumi import github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions test my-repository\n```\n", "properties": { "allowedActions": { "type": "string", @@ -4406,7 +4406,7 @@ } }, "github:index/branchProtection:BranchProtection": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleRepository = new github.Repository(\"example\", {name: \"test\"});\nconst example = github.getUser({\n username: \"example\",\n});\nconst exampleTeam = new github.Team(\"example\", {name: \"Example Name\"});\n// Protect the main branch of the foo repository. Additionally, require that\n// the \"ci/travis\" context to be passing and only allow the engineers team merge\n// to the branch.\nconst exampleBranchProtection = new github.BranchProtection(\"example\", {\n repositoryId: exampleRepository.nodeId,\n pattern: \"main\",\n enforceAdmins: true,\n allowsDeletions: true,\n requiredStatusChecks: [{\n strict: false,\n contexts: [\"ci/travis\"],\n }],\n requiredPullRequestReviews: [{\n dismissStaleReviews: true,\n restrictDismissals: true,\n dismissalRestrictions: [\n example.then(example =\u003e example.nodeId),\n exampleTeam.nodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n restrictPushes: [{\n pushAllowances: [\n example.then(example =\u003e example.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n forcePushBypassers: [\n example.then(example =\u003e example.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n});\nconst exampleTeamRepository = new github.TeamRepository(\"example\", {\n teamId: exampleTeam.id,\n repository: exampleRepository.name,\n permission: \"pull\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_repository = github.Repository(\"example\", name=\"test\")\nexample = github.get_user(username=\"example\")\nexample_team = github.Team(\"example\", name=\"Example Name\")\n# Protect the main branch of the foo repository. Additionally, require that\n# the \"ci/travis\" context to be passing and only allow the engineers team merge\n# to the branch.\nexample_branch_protection = github.BranchProtection(\"example\",\n repository_id=example_repository.node_id,\n pattern=\"main\",\n enforce_admins=True,\n allows_deletions=True,\n required_status_checks=[github.BranchProtectionRequiredStatusCheckArgs(\n strict=False,\n contexts=[\"ci/travis\"],\n )],\n required_pull_request_reviews=[github.BranchProtectionRequiredPullRequestReviewArgs(\n dismiss_stale_reviews=True,\n restrict_dismissals=True,\n dismissal_restrictions=[\n example.node_id,\n example_team.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n )],\n restrict_pushes=[github.BranchProtectionRestrictPushArgs(\n push_allowances=[\n example.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n )],\n force_push_bypassers=[\n example.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ])\nexample_team_repository = github.TeamRepository(\"example\",\n team_id=example_team.id,\n repository=example_repository.name,\n permission=\"pull\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleRepository = new Github.Repository(\"example\", new()\n {\n Name = \"test\",\n });\n\n var example = Github.GetUser.Invoke(new()\n {\n Username = \"example\",\n });\n\n var exampleTeam = new Github.Team(\"example\", new()\n {\n Name = \"Example Name\",\n });\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/travis\" context to be passing and only allow the engineers team merge\n // to the branch.\n var exampleBranchProtection = new Github.BranchProtection(\"example\", new()\n {\n RepositoryId = exampleRepository.NodeId,\n Pattern = \"main\",\n EnforceAdmins = true,\n AllowsDeletions = true,\n RequiredStatusChecks = new[]\n {\n new Github.Inputs.BranchProtectionRequiredStatusCheckArgs\n {\n Strict = false,\n Contexts = new[]\n {\n \"ci/travis\",\n },\n },\n },\n RequiredPullRequestReviews = new[]\n {\n new Github.Inputs.BranchProtectionRequiredPullRequestReviewArgs\n {\n DismissStaleReviews = true,\n RestrictDismissals = true,\n DismissalRestrictions = new[]\n {\n example.Apply(getUserResult =\u003e getUserResult.NodeId),\n exampleTeam.NodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n RestrictPushes = new[]\n {\n new Github.Inputs.BranchProtectionRestrictPushArgs\n {\n PushAllowances = new[]\n {\n example.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n ForcePushBypassers = new[]\n {\n example.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n });\n\n var exampleTeamRepository = new Github.TeamRepository(\"example\", new()\n {\n TeamId = exampleTeam.Id,\n Repository = exampleRepository.Name,\n Permission = \"pull\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleRepository, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"test\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTeam, err := github.NewTeam(ctx, \"example\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"Example Name\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Protect the main branch of the foo repository. Additionally, require that\n\t\t// the \"ci/travis\" context to be passing and only allow the engineers team merge\n\t\t// to the branch.\n\t\t_, err = github.NewBranchProtection(ctx, \"example\", \u0026github.BranchProtectionArgs{\n\t\t\tRepositoryId: exampleRepository.NodeId,\n\t\t\tPattern: pulumi.String(\"main\"),\n\t\t\tEnforceAdmins: pulumi.Bool(true),\n\t\t\tAllowsDeletions: pulumi.Bool(true),\n\t\t\tRequiredStatusChecks: github.BranchProtectionRequiredStatusCheckArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredStatusCheckArgs{\n\t\t\t\t\tStrict: pulumi.Bool(false),\n\t\t\t\t\tContexts: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"ci/travis\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRequiredPullRequestReviews: github.BranchProtectionRequiredPullRequestReviewArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredPullRequestReviewArgs{\n\t\t\t\t\tDismissStaleReviews: pulumi.Bool(true),\n\t\t\t\t\tRestrictDismissals: pulumi.Bool(true),\n\t\t\t\t\tDismissalRestrictions: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(example.NodeId),\n\t\t\t\t\t\texampleTeam.NodeId,\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRestrictPushes: github.BranchProtectionRestrictPushArray{\n\t\t\t\t\u0026github.BranchProtectionRestrictPushArgs{\n\t\t\t\t\tPushAllowances: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(example.NodeId),\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tForcePushBypassers: pulumi.StringArray{\n\t\t\t\tpulumi.String(example.NodeId),\n\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamRepository(ctx, \"example\", \u0026github.TeamRepositoryArgs{\n\t\t\tTeamId: exampleTeam.ID(),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tPermission: pulumi.String(\"pull\"),\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.BranchProtection;\nimport com.pulumi.github.BranchProtectionArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredStatusCheckArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredPullRequestReviewArgs;\nimport com.pulumi.github.inputs.BranchProtectionRestrictPushArgs;\nimport com.pulumi.github.TeamRepository;\nimport com.pulumi.github.TeamRepositoryArgs;\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 var exampleRepository = new Repository(\"exampleRepository\", RepositoryArgs.builder()\n .name(\"test\")\n .build());\n\n final var example = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"example\")\n .build());\n\n var exampleTeam = new Team(\"exampleTeam\", TeamArgs.builder()\n .name(\"Example Name\")\n .build());\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/travis\" context to be passing and only allow the engineers team merge\n // to the branch.\n var exampleBranchProtection = new BranchProtection(\"exampleBranchProtection\", BranchProtectionArgs.builder()\n .repositoryId(exampleRepository.nodeId())\n .pattern(\"main\")\n .enforceAdmins(true)\n .allowsDeletions(true)\n .requiredStatusChecks(BranchProtectionRequiredStatusCheckArgs.builder()\n .strict(false)\n .contexts(\"ci/travis\")\n .build())\n .requiredPullRequestReviews(BranchProtectionRequiredPullRequestReviewArgs.builder()\n .dismissStaleReviews(true)\n .restrictDismissals(true)\n .dismissalRestrictions( \n example.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n exampleTeam.nodeId(),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .restrictPushes(BranchProtectionRestrictPushArgs.builder()\n .pushAllowances( \n example.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .forcePushBypassers( \n example.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build());\n\n var exampleTeamRepository = new TeamRepository(\"exampleTeamRepository\", TeamRepositoryArgs.builder()\n .teamId(exampleTeam.id())\n .repository(exampleRepository.name())\n .permission(\"pull\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Additionally, require that\n # the \"ci/travis\" context to be passing and only allow the engineers team merge\n # to the branch.\n exampleBranchProtection:\n type: github:BranchProtection\n name: example\n properties:\n repositoryId: ${exampleRepository.nodeId}\n pattern: main\n enforceAdmins: true\n allowsDeletions: true\n requiredStatusChecks:\n - strict: false\n contexts:\n - ci/travis\n requiredPullRequestReviews:\n - dismissStaleReviews: true\n restrictDismissals: true\n dismissalRestrictions:\n - ${example.nodeId}\n - ${exampleTeam.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n restrictPushes:\n - pushAllowances:\n - ${example.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n forcePushBypassers:\n - ${example.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n exampleRepository:\n type: github:Repository\n name: example\n properties:\n name: test\n exampleTeam:\n type: github:Team\n name: example\n properties:\n name: Example Name\n exampleTeamRepository:\n type: github:TeamRepository\n name: example\n properties:\n teamId: ${exampleTeam.id}\n repository: ${exampleRepository.name}\n permission: pull\nvariables:\n example:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.\n\n```sh\n$ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main\n```\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleRepository = new github.Repository(\"example\", {name: \"test\"});\nconst example = github.getUser({\n username: \"example\",\n});\nconst exampleTeam = new github.Team(\"example\", {name: \"Example Name\"});\n// Protect the main branch of the foo repository. Additionally, require that\n// the \"ci/travis\" context to be passing and only allow the engineers team merge\n// to the branch.\nconst exampleBranchProtection = new github.BranchProtection(\"example\", {\n repositoryId: exampleRepository.nodeId,\n pattern: \"main\",\n enforceAdmins: true,\n allowsDeletions: true,\n requiredStatusChecks: [{\n strict: false,\n contexts: [\"ci/travis\"],\n }],\n requiredPullRequestReviews: [{\n dismissStaleReviews: true,\n restrictDismissals: true,\n dismissalRestrictions: [\n example.then(example =\u003e example.nodeId),\n exampleTeam.nodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n restrictPushes: [{\n pushAllowances: [\n example.then(example =\u003e example.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n forcePushBypassers: [\n example.then(example =\u003e example.nodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n});\nconst exampleTeamRepository = new github.TeamRepository(\"example\", {\n teamId: exampleTeam.id,\n repository: exampleRepository.name,\n permission: \"pull\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_repository = github.Repository(\"example\", name=\"test\")\nexample = github.get_user(username=\"example\")\nexample_team = github.Team(\"example\", name=\"Example Name\")\n# Protect the main branch of the foo repository. Additionally, require that\n# the \"ci/travis\" context to be passing and only allow the engineers team merge\n# to the branch.\nexample_branch_protection = github.BranchProtection(\"example\",\n repository_id=example_repository.node_id,\n pattern=\"main\",\n enforce_admins=True,\n allows_deletions=True,\n required_status_checks=[{\n \"strict\": False,\n \"contexts\": [\"ci/travis\"],\n }],\n required_pull_request_reviews=[{\n \"dismiss_stale_reviews\": True,\n \"restrict_dismissals\": True,\n \"dismissal_restrictions\": [\n example.node_id,\n example_team.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n restrict_pushes=[{\n \"push_allowances\": [\n example.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ],\n }],\n force_push_bypassers=[\n example.node_id,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n ])\nexample_team_repository = github.TeamRepository(\"example\",\n team_id=example_team.id,\n repository=example_repository.name,\n permission=\"pull\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleRepository = new Github.Repository(\"example\", new()\n {\n Name = \"test\",\n });\n\n var example = Github.GetUser.Invoke(new()\n {\n Username = \"example\",\n });\n\n var exampleTeam = new Github.Team(\"example\", new()\n {\n Name = \"Example Name\",\n });\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/travis\" context to be passing and only allow the engineers team merge\n // to the branch.\n var exampleBranchProtection = new Github.BranchProtection(\"example\", new()\n {\n RepositoryId = exampleRepository.NodeId,\n Pattern = \"main\",\n EnforceAdmins = true,\n AllowsDeletions = true,\n RequiredStatusChecks = new[]\n {\n new Github.Inputs.BranchProtectionRequiredStatusCheckArgs\n {\n Strict = false,\n Contexts = new[]\n {\n \"ci/travis\",\n },\n },\n },\n RequiredPullRequestReviews = new[]\n {\n new Github.Inputs.BranchProtectionRequiredPullRequestReviewArgs\n {\n DismissStaleReviews = true,\n RestrictDismissals = true,\n DismissalRestrictions = new[]\n {\n example.Apply(getUserResult =\u003e getUserResult.NodeId),\n exampleTeam.NodeId,\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n RestrictPushes = new[]\n {\n new Github.Inputs.BranchProtectionRestrictPushArgs\n {\n PushAllowances = new[]\n {\n example.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n },\n },\n ForcePushBypassers = new[]\n {\n example.Apply(getUserResult =\u003e getUserResult.NodeId),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\",\n },\n });\n\n var exampleTeamRepository = new Github.TeamRepository(\"example\", new()\n {\n TeamId = exampleTeam.Id,\n Repository = exampleRepository.Name,\n Permission = \"pull\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleRepository, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"test\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTeam, err := github.NewTeam(ctx, \"example\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"Example Name\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Protect the main branch of the foo repository. Additionally, require that\n\t\t// the \"ci/travis\" context to be passing and only allow the engineers team merge\n\t\t// to the branch.\n\t\t_, err = github.NewBranchProtection(ctx, \"example\", \u0026github.BranchProtectionArgs{\n\t\t\tRepositoryId: exampleRepository.NodeId,\n\t\t\tPattern: pulumi.String(\"main\"),\n\t\t\tEnforceAdmins: pulumi.Bool(true),\n\t\t\tAllowsDeletions: pulumi.Bool(true),\n\t\t\tRequiredStatusChecks: github.BranchProtectionRequiredStatusCheckArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredStatusCheckArgs{\n\t\t\t\t\tStrict: pulumi.Bool(false),\n\t\t\t\t\tContexts: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"ci/travis\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRequiredPullRequestReviews: github.BranchProtectionRequiredPullRequestReviewArray{\n\t\t\t\t\u0026github.BranchProtectionRequiredPullRequestReviewArgs{\n\t\t\t\t\tDismissStaleReviews: pulumi.Bool(true),\n\t\t\t\t\tRestrictDismissals: pulumi.Bool(true),\n\t\t\t\t\tDismissalRestrictions: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(example.NodeId),\n\t\t\t\t\t\texampleTeam.NodeId,\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRestrictPushes: github.BranchProtectionRestrictPushArray{\n\t\t\t\t\u0026github.BranchProtectionRestrictPushArgs{\n\t\t\t\t\tPushAllowances: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(example.NodeId),\n\t\t\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tForcePushBypassers: pulumi.StringArray{\n\t\t\t\tpulumi.String(example.NodeId),\n\t\t\t\tpulumi.String(\"/exampleuser\"),\n\t\t\t\tpulumi.String(\"exampleorganization/exampleteam\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamRepository(ctx, \"example\", \u0026github.TeamRepositoryArgs{\n\t\t\tTeamId: exampleTeam.ID(),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tPermission: pulumi.String(\"pull\"),\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.BranchProtection;\nimport com.pulumi.github.BranchProtectionArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredStatusCheckArgs;\nimport com.pulumi.github.inputs.BranchProtectionRequiredPullRequestReviewArgs;\nimport com.pulumi.github.inputs.BranchProtectionRestrictPushArgs;\nimport com.pulumi.github.TeamRepository;\nimport com.pulumi.github.TeamRepositoryArgs;\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 var exampleRepository = new Repository(\"exampleRepository\", RepositoryArgs.builder()\n .name(\"test\")\n .build());\n\n final var example = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"example\")\n .build());\n\n var exampleTeam = new Team(\"exampleTeam\", TeamArgs.builder()\n .name(\"Example Name\")\n .build());\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/travis\" context to be passing and only allow the engineers team merge\n // to the branch.\n var exampleBranchProtection = new BranchProtection(\"exampleBranchProtection\", BranchProtectionArgs.builder()\n .repositoryId(exampleRepository.nodeId())\n .pattern(\"main\")\n .enforceAdmins(true)\n .allowsDeletions(true)\n .requiredStatusChecks(BranchProtectionRequiredStatusCheckArgs.builder()\n .strict(false)\n .contexts(\"ci/travis\")\n .build())\n .requiredPullRequestReviews(BranchProtectionRequiredPullRequestReviewArgs.builder()\n .dismissStaleReviews(true)\n .restrictDismissals(true)\n .dismissalRestrictions( \n example.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n exampleTeam.nodeId(),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .restrictPushes(BranchProtectionRestrictPushArgs.builder()\n .pushAllowances( \n example.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build())\n .forcePushBypassers( \n example.applyValue(getUserResult -\u003e getUserResult.nodeId()),\n \"/exampleuser\",\n \"exampleorganization/exampleteam\")\n .build());\n\n var exampleTeamRepository = new TeamRepository(\"exampleTeamRepository\", TeamRepositoryArgs.builder()\n .teamId(exampleTeam.id())\n .repository(exampleRepository.name())\n .permission(\"pull\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Additionally, require that\n # the \"ci/travis\" context to be passing and only allow the engineers team merge\n # to the branch.\n exampleBranchProtection:\n type: github:BranchProtection\n name: example\n properties:\n repositoryId: ${exampleRepository.nodeId}\n pattern: main\n enforceAdmins: true\n allowsDeletions: true\n requiredStatusChecks:\n - strict: false\n contexts:\n - ci/travis\n requiredPullRequestReviews:\n - dismissStaleReviews: true\n restrictDismissals: true\n dismissalRestrictions:\n - ${example.nodeId}\n - ${exampleTeam.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n restrictPushes:\n - pushAllowances:\n - ${example.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n forcePushBypassers:\n - ${example.nodeId}\n - /exampleuser\n - exampleorganization/exampleteam\n exampleRepository:\n type: github:Repository\n name: example\n properties:\n name: test\n exampleTeam:\n type: github:Team\n name: example\n properties:\n name: Example Name\n exampleTeamRepository:\n type: github:TeamRepository\n name: example\n properties:\n teamId: ${exampleTeam.id}\n repository: ${exampleRepository.name}\n permission: pull\nvariables:\n example:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.\n\n```sh\n$ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main\n```\n", "properties": { "allowsDeletions": { "type": "boolean", @@ -4621,7 +4621,7 @@ } }, "github:index/branchProtectionV3:BranchProtectionV3": { - "description": "Protects a GitHub branch.\n\nThe `github.BranchProtection` resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.\n\nThis resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\nconst example = new github.BranchProtectionV3(\"example\", {\n repository: exampleGithubRepository.name,\n branch: \"main\",\n restrictions: {\n users: [\"foo-user\"],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\nexample = github.BranchProtectionV3(\"example\",\n repository=example_github_repository[\"name\"],\n branch=\"main\",\n restrictions=github.BranchProtectionV3RestrictionsArgs(\n users=[\"foo-user\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n var example = new Github.BranchProtectionV3(\"example\", new()\n {\n Repository = exampleGithubRepository.Name,\n Branch = \"main\",\n Restrictions = new Github.Inputs.BranchProtectionV3RestrictionsArgs\n {\n Users = new[]\n {\n \"foo-user\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n\t\t_, err := github.NewBranchProtectionV3(ctx, \"example\", \u0026github.BranchProtectionV3Args{\n\t\t\tRepository: pulumi.Any(exampleGithubRepository.Name),\n\t\t\tBranch: pulumi.String(\"main\"),\n\t\t\tRestrictions: \u0026github.BranchProtectionV3RestrictionsArgs{\n\t\t\t\tUsers: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"foo-user\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.BranchProtectionV3;\nimport com.pulumi.github.BranchProtectionV3Args;\nimport com.pulumi.github.inputs.BranchProtectionV3RestrictionsArgs;\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 // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n var example = new BranchProtectionV3(\"example\", BranchProtectionV3Args.builder()\n .repository(exampleGithubRepository.name())\n .branch(\"main\")\n .restrictions(BranchProtectionV3RestrictionsArgs.builder()\n .users(\"foo-user\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n example:\n type: github:BranchProtectionV3\n properties:\n repository: ${exampleGithubRepository.name}\n branch: main\n restrictions:\n users:\n - foo-user\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.BranchProtectionV3;\nimport com.pulumi.github.BranchProtectionV3Args;\nimport com.pulumi.github.inputs.BranchProtectionV3RequiredStatusChecksArgs;\nimport com.pulumi.github.inputs.BranchProtectionV3RequiredPullRequestReviewsArgs;\nimport com.pulumi.github.inputs.BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowancesArgs;\nimport com.pulumi.github.inputs.BranchProtectionV3RestrictionsArgs;\nimport com.pulumi.github.TeamRepository;\nimport com.pulumi.github.TeamRepositoryArgs;\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 var exampleRepository = new Repository(\"exampleRepository\", RepositoryArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleTeam = new Team(\"exampleTeam\", TeamArgs.builder()\n .name(\"Example Name\")\n .build());\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/check\" check ran by the Github Actions app is passing and only allow\n // the engineers team merge to the branch.\n var example = new BranchProtectionV3(\"example\", BranchProtectionV3Args.builder()\n .repository(exampleRepository.name())\n .branch(\"main\")\n .enforceAdmins(true)\n .requiredStatusChecks(BranchProtectionV3RequiredStatusChecksArgs.builder()\n .strict(false)\n .checks(\"ci/check:824642007264\")\n .build())\n .requiredPullRequestReviews(BranchProtectionV3RequiredPullRequestReviewsArgs.builder()\n .dismissStaleReviews(true)\n .dismissalUsers(\"foo-user\")\n .dismissalTeams(exampleTeam.slug())\n .dismissalApp(\"foo-app\")\n .bypassPullRequestAllowances(BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowancesArgs.builder()\n .users(\"foo-user\")\n .teams(exampleTeam.slug())\n .apps(\"foo-app\")\n .build())\n .build())\n .restrictions(BranchProtectionV3RestrictionsArgs.builder()\n .users(\"foo-user\")\n .teams(exampleTeam.slug())\n .apps(\"foo-app\")\n .build())\n .build());\n\n var exampleTeamRepository = new TeamRepository(\"exampleTeamRepository\", TeamRepositoryArgs.builder()\n .teamId(exampleTeam.id())\n .repository(exampleRepository.name())\n .permission(\"pull\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Additionally, require that\n # the \"ci/check\" check ran by the Github Actions app is passing and only allow\n # the engineers team merge to the branch.\n example:\n type: github:BranchProtectionV3\n properties:\n repository: ${exampleRepository.name}\n branch: main\n enforceAdmins: true\n requiredStatusChecks:\n strict: false\n checks:\n - ci/check:824642007264\n requiredPullRequestReviews:\n dismissStaleReviews: true\n dismissalUsers:\n - foo-user\n dismissalTeams:\n - ${exampleTeam.slug}\n dismissalApp:\n - foo-app\n bypassPullRequestAllowances:\n users:\n - foo-user\n teams:\n - ${exampleTeam.slug}\n apps:\n - foo-app\n restrictions:\n users:\n - foo-user\n teams:\n - ${exampleTeam.slug}\n apps:\n - foo-app\n exampleRepository:\n type: github:Repository\n name: example\n properties:\n name: example\n exampleTeam:\n type: github:Team\n name: example\n properties:\n name: Example Name\n exampleTeamRepository:\n type: github:TeamRepository\n name: example\n properties:\n teamId: ${exampleTeam.id}\n repository: ${exampleRepository.name}\n permission: pull\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.\n\n```sh\n$ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main\n```\n", + "description": "Protects a GitHub branch.\n\nThe `github.BranchProtection` resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.\n\nThis resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\nconst example = new github.BranchProtectionV3(\"example\", {\n repository: exampleGithubRepository.name,\n branch: \"main\",\n restrictions: {\n users: [\"foo-user\"],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\nexample = github.BranchProtectionV3(\"example\",\n repository=example_github_repository[\"name\"],\n branch=\"main\",\n restrictions={\n \"users\": [\"foo-user\"],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n var example = new Github.BranchProtectionV3(\"example\", new()\n {\n Repository = exampleGithubRepository.Name,\n Branch = \"main\",\n Restrictions = new Github.Inputs.BranchProtectionV3RestrictionsArgs\n {\n Users = new[]\n {\n \"foo-user\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n\t\t_, err := github.NewBranchProtectionV3(ctx, \"example\", \u0026github.BranchProtectionV3Args{\n\t\t\tRepository: pulumi.Any(exampleGithubRepository.Name),\n\t\t\tBranch: pulumi.String(\"main\"),\n\t\t\tRestrictions: \u0026github.BranchProtectionV3RestrictionsArgs{\n\t\t\t\tUsers: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"foo-user\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.BranchProtectionV3;\nimport com.pulumi.github.BranchProtectionV3Args;\nimport com.pulumi.github.inputs.BranchProtectionV3RestrictionsArgs;\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 // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n var example = new BranchProtectionV3(\"example\", BranchProtectionV3Args.builder()\n .repository(exampleGithubRepository.name())\n .branch(\"main\")\n .restrictions(BranchProtectionV3RestrictionsArgs.builder()\n .users(\"foo-user\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.\n example:\n type: github:BranchProtectionV3\n properties:\n repository: ${exampleGithubRepository.name}\n branch: main\n restrictions:\n users:\n - foo-user\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.BranchProtectionV3;\nimport com.pulumi.github.BranchProtectionV3Args;\nimport com.pulumi.github.inputs.BranchProtectionV3RequiredStatusChecksArgs;\nimport com.pulumi.github.inputs.BranchProtectionV3RequiredPullRequestReviewsArgs;\nimport com.pulumi.github.inputs.BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowancesArgs;\nimport com.pulumi.github.inputs.BranchProtectionV3RestrictionsArgs;\nimport com.pulumi.github.TeamRepository;\nimport com.pulumi.github.TeamRepositoryArgs;\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 var exampleRepository = new Repository(\"exampleRepository\", RepositoryArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleTeam = new Team(\"exampleTeam\", TeamArgs.builder()\n .name(\"Example Name\")\n .build());\n\n // Protect the main branch of the foo repository. Additionally, require that\n // the \"ci/check\" check ran by the Github Actions app is passing and only allow\n // the engineers team merge to the branch.\n var example = new BranchProtectionV3(\"example\", BranchProtectionV3Args.builder()\n .repository(exampleRepository.name())\n .branch(\"main\")\n .enforceAdmins(true)\n .requiredStatusChecks(BranchProtectionV3RequiredStatusChecksArgs.builder()\n .strict(false)\n .checks(\"ci/check:824642007264\")\n .build())\n .requiredPullRequestReviews(BranchProtectionV3RequiredPullRequestReviewsArgs.builder()\n .dismissStaleReviews(true)\n .dismissalUsers(\"foo-user\")\n .dismissalTeams(exampleTeam.slug())\n .dismissalApp(\"foo-app\")\n .bypassPullRequestAllowances(BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowancesArgs.builder()\n .users(\"foo-user\")\n .teams(exampleTeam.slug())\n .apps(\"foo-app\")\n .build())\n .build())\n .restrictions(BranchProtectionV3RestrictionsArgs.builder()\n .users(\"foo-user\")\n .teams(exampleTeam.slug())\n .apps(\"foo-app\")\n .build())\n .build());\n\n var exampleTeamRepository = new TeamRepository(\"exampleTeamRepository\", TeamRepositoryArgs.builder()\n .teamId(exampleTeam.id())\n .repository(exampleRepository.name())\n .permission(\"pull\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Protect the main branch of the foo repository. Additionally, require that\n # the \"ci/check\" check ran by the Github Actions app is passing and only allow\n # the engineers team merge to the branch.\n example:\n type: github:BranchProtectionV3\n properties:\n repository: ${exampleRepository.name}\n branch: main\n enforceAdmins: true\n requiredStatusChecks:\n strict: false\n checks:\n - ci/check:824642007264\n requiredPullRequestReviews:\n dismissStaleReviews: true\n dismissalUsers:\n - foo-user\n dismissalTeams:\n - ${exampleTeam.slug}\n dismissalApp:\n - foo-app\n bypassPullRequestAllowances:\n users:\n - foo-user\n teams:\n - ${exampleTeam.slug}\n apps:\n - foo-app\n restrictions:\n users:\n - foo-user\n teams:\n - ${exampleTeam.slug}\n apps:\n - foo-app\n exampleRepository:\n type: github:Repository\n name: example\n properties:\n name: example\n exampleTeam:\n type: github:Team\n name: example\n properties:\n name: Example Name\n exampleTeamRepository:\n type: github:TeamRepository\n name: example\n properties:\n teamId: ${exampleTeam.id}\n repository: ${exampleRepository.name}\n permission: pull\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.\n\n```sh\n$ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main\n```\n", "properties": { "branch": { "type": "string", @@ -5469,7 +5469,7 @@ } }, "github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions": { - "description": "This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise.\nYou must have admin access to an enterprise to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example-org = github.getOrganization({\n name: \"my-org\",\n});\nconst test = new github.EnterpriseActionsPermissions(\"test\", {\n enterpriseSlug: \"my-enterprise\",\n allowedActions: \"selected\",\n enabledOrganizations: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n enabledOrganizationsConfig: {\n organizationIds: [example_org.then(example_org =\u003e example_org.id)],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_org = github.get_organization(name=\"my-org\")\ntest = github.EnterpriseActionsPermissions(\"test\",\n enterprise_slug=\"my-enterprise\",\n allowed_actions=\"selected\",\n enabled_organizations=\"selected\",\n allowed_actions_config=github.EnterpriseActionsPermissionsAllowedActionsConfigArgs(\n github_owned_allowed=True,\n patterns_alloweds=[\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verified_allowed=True,\n ),\n enabled_organizations_config=github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs(\n organization_ids=[example_org.id],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example_org = Github.GetOrganization.Invoke(new()\n {\n Name = \"my-org\",\n });\n\n var test = new Github.EnterpriseActionsPermissions(\"test\", new()\n {\n EnterpriseSlug = \"my-enterprise\",\n AllowedActions = \"selected\",\n EnabledOrganizations = \"selected\",\n AllowedActionsConfig = new Github.Inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n EnabledOrganizationsConfig = new Github.Inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs\n {\n OrganizationIds = new[]\n {\n example_org.Apply(example_org =\u003e example_org.Apply(getOrganizationResult =\u003e getOrganizationResult.Id)),\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample_org, err := github.GetOrganization(ctx, \u0026github.GetOrganizationArgs{\n\t\t\tName: \"my-org\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewEnterpriseActionsPermissions(ctx, \"test\", \u0026github.EnterpriseActionsPermissionsArgs{\n\t\t\tEnterpriseSlug: pulumi.String(\"my-enterprise\"),\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tEnabledOrganizations: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.EnterpriseActionsPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tEnabledOrganizationsConfig: \u0026github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs{\n\t\t\t\tOrganizationIds: pulumi.IntArray{\n\t\t\t\t\tpulumi.String(example_org.Id),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetOrganizationArgs;\nimport com.pulumi.github.EnterpriseActionsPermissions;\nimport com.pulumi.github.EnterpriseActionsPermissionsArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs;\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 example-org = GithubFunctions.getOrganization(GetOrganizationArgs.builder()\n .name(\"my-org\")\n .build());\n\n var test = new EnterpriseActionsPermissions(\"test\", EnterpriseActionsPermissionsArgs.builder()\n .enterpriseSlug(\"my-enterprise\")\n .allowedActions(\"selected\")\n .enabledOrganizations(\"selected\")\n .allowedActionsConfig(EnterpriseActionsPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .enabledOrganizationsConfig(EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs.builder()\n .organizationIds(example_org.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: github:EnterpriseActionsPermissions\n properties:\n enterpriseSlug: my-enterprise\n allowedActions: selected\n enabledOrganizations: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n enabledOrganizationsConfig:\n organizationIds:\n - ${[\"example-org\"].id}\nvariables:\n example-org:\n fn::invoke:\n Function: github:getOrganization\n Arguments:\n name: my-org\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub enterprise:\n\n```sh\n$ pulumi import github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions test github_enterprise_name\n```\n", + "description": "This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise.\nYou must have admin access to an enterprise to use this resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example-org = github.getOrganization({\n name: \"my-org\",\n});\nconst test = new github.EnterpriseActionsPermissions(\"test\", {\n enterpriseSlug: \"my-enterprise\",\n allowedActions: \"selected\",\n enabledOrganizations: \"selected\",\n allowedActionsConfig: {\n githubOwnedAllowed: true,\n patternsAlloweds: [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n verifiedAllowed: true,\n },\n enabledOrganizationsConfig: {\n organizationIds: [example_org.then(example_org =\u003e example_org.id)],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_org = github.get_organization(name=\"my-org\")\ntest = github.EnterpriseActionsPermissions(\"test\",\n enterprise_slug=\"my-enterprise\",\n allowed_actions=\"selected\",\n enabled_organizations=\"selected\",\n allowed_actions_config={\n \"github_owned_allowed\": True,\n \"patterns_alloweds\": [\n \"actions/cache@*\",\n \"actions/checkout@*\",\n ],\n \"verified_allowed\": True,\n },\n enabled_organizations_config={\n \"organization_ids\": [example_org.id],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example_org = Github.GetOrganization.Invoke(new()\n {\n Name = \"my-org\",\n });\n\n var test = new Github.EnterpriseActionsPermissions(\"test\", new()\n {\n EnterpriseSlug = \"my-enterprise\",\n AllowedActions = \"selected\",\n EnabledOrganizations = \"selected\",\n AllowedActionsConfig = new Github.Inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs\n {\n GithubOwnedAllowed = true,\n PatternsAlloweds = new[]\n {\n \"actions/cache@*\",\n \"actions/checkout@*\",\n },\n VerifiedAllowed = true,\n },\n EnabledOrganizationsConfig = new Github.Inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs\n {\n OrganizationIds = new[]\n {\n example_org.Apply(example_org =\u003e example_org.Apply(getOrganizationResult =\u003e getOrganizationResult.Id)),\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample_org, err := github.GetOrganization(ctx, \u0026github.GetOrganizationArgs{\n\t\t\tName: \"my-org\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewEnterpriseActionsPermissions(ctx, \"test\", \u0026github.EnterpriseActionsPermissionsArgs{\n\t\t\tEnterpriseSlug: pulumi.String(\"my-enterprise\"),\n\t\t\tAllowedActions: pulumi.String(\"selected\"),\n\t\t\tEnabledOrganizations: pulumi.String(\"selected\"),\n\t\t\tAllowedActionsConfig: \u0026github.EnterpriseActionsPermissionsAllowedActionsConfigArgs{\n\t\t\t\tGithubOwnedAllowed: pulumi.Bool(true),\n\t\t\t\tPatternsAlloweds: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"actions/cache@*\"),\n\t\t\t\t\tpulumi.String(\"actions/checkout@*\"),\n\t\t\t\t},\n\t\t\t\tVerifiedAllowed: pulumi.Bool(true),\n\t\t\t},\n\t\t\tEnabledOrganizationsConfig: \u0026github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs{\n\t\t\t\tOrganizationIds: pulumi.IntArray{\n\t\t\t\t\tpulumi.String(example_org.Id),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetOrganizationArgs;\nimport com.pulumi.github.EnterpriseActionsPermissions;\nimport com.pulumi.github.EnterpriseActionsPermissionsArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsAllowedActionsConfigArgs;\nimport com.pulumi.github.inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs;\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 example-org = GithubFunctions.getOrganization(GetOrganizationArgs.builder()\n .name(\"my-org\")\n .build());\n\n var test = new EnterpriseActionsPermissions(\"test\", EnterpriseActionsPermissionsArgs.builder()\n .enterpriseSlug(\"my-enterprise\")\n .allowedActions(\"selected\")\n .enabledOrganizations(\"selected\")\n .allowedActionsConfig(EnterpriseActionsPermissionsAllowedActionsConfigArgs.builder()\n .githubOwnedAllowed(true)\n .patternsAlloweds( \n \"actions/cache@*\",\n \"actions/checkout@*\")\n .verifiedAllowed(true)\n .build())\n .enabledOrganizationsConfig(EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs.builder()\n .organizationIds(example_org.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: github:EnterpriseActionsPermissions\n properties:\n enterpriseSlug: my-enterprise\n allowedActions: selected\n enabledOrganizations: selected\n allowedActionsConfig:\n githubOwnedAllowed: true\n patternsAlloweds:\n - actions/cache@*\n - actions/checkout@*\n verifiedAllowed: true\n enabledOrganizationsConfig:\n organizationIds:\n - ${[\"example-org\"].id}\nvariables:\n example-org:\n fn::invoke:\n Function: github:getOrganization\n Arguments:\n name: my-org\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource can be imported using the name of the GitHub enterprise:\n\n```sh\n$ pulumi import github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions test github_enterprise_name\n```\n", "properties": { "allowedActions": { "type": "string", @@ -6056,7 +6056,7 @@ } }, "github:index/issueLabels:IssueLabels": { - "description": "Provides GitHub issue labels resource.\n\nThis resource allows you to create and manage issue labels within your\nGitHub organization.\n\n\u003e Note: github.IssueLabels cannot be used in conjunction with github.IssueLabel or they will fight over what your policy should be.\n\nThis resource is authoritative. For adding a label to a repo in a non-authoritative manner, use github.IssueLabel instead.\n\nIf you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Create a new, red colored label\nconst testRepo = new github.IssueLabels(\"test_repo\", {\n repository: \"test-repo\",\n labels: [\n {\n name: \"Urgent\",\n color: \"FF0000\",\n },\n {\n name: \"Critical\",\n color: \"FF0000\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Create a new, red colored label\ntest_repo = github.IssueLabels(\"test_repo\",\n repository=\"test-repo\",\n labels=[\n github.IssueLabelsLabelArgs(\n name=\"Urgent\",\n color=\"FF0000\",\n ),\n github.IssueLabelsLabelArgs(\n name=\"Critical\",\n color=\"FF0000\",\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new, red colored label\n var testRepo = new Github.IssueLabels(\"test_repo\", new()\n {\n Repository = \"test-repo\",\n Labels = new[]\n {\n new Github.Inputs.IssueLabelsLabelArgs\n {\n Name = \"Urgent\",\n Color = \"FF0000\",\n },\n new Github.Inputs.IssueLabelsLabelArgs\n {\n Name = \"Critical\",\n Color = \"FF0000\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Create a new, red colored label\n\t\t_, err := github.NewIssueLabels(ctx, \"test_repo\", \u0026github.IssueLabelsArgs{\n\t\t\tRepository: pulumi.String(\"test-repo\"),\n\t\t\tLabels: github.IssueLabelsLabelArray{\n\t\t\t\t\u0026github.IssueLabelsLabelArgs{\n\t\t\t\t\tName: pulumi.String(\"Urgent\"),\n\t\t\t\t\tColor: pulumi.String(\"FF0000\"),\n\t\t\t\t},\n\t\t\t\t\u0026github.IssueLabelsLabelArgs{\n\t\t\t\t\tName: pulumi.String(\"Critical\"),\n\t\t\t\t\tColor: pulumi.String(\"FF0000\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.IssueLabels;\nimport com.pulumi.github.IssueLabelsArgs;\nimport com.pulumi.github.inputs.IssueLabelsLabelArgs;\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 // Create a new, red colored label\n var testRepo = new IssueLabels(\"testRepo\", IssueLabelsArgs.builder()\n .repository(\"test-repo\")\n .labels( \n IssueLabelsLabelArgs.builder()\n .name(\"Urgent\")\n .color(\"FF0000\")\n .build(),\n IssueLabelsLabelArgs.builder()\n .name(\"Critical\")\n .color(\"FF0000\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new, red colored label\n testRepo:\n type: github:IssueLabels\n name: test_repo\n properties:\n repository: test-repo\n labels:\n - name: Urgent\n color: FF0000\n - name: Critical\n color: FF0000\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Issue Labels can be imported using the repository `name`, e.g.\n\n```sh\n$ pulumi import github:index/issueLabels:IssueLabels test_repo test_repo\n```\n", + "description": "Provides GitHub issue labels resource.\n\nThis resource allows you to create and manage issue labels within your\nGitHub organization.\n\n\u003e Note: github.IssueLabels cannot be used in conjunction with github.IssueLabel or they will fight over what your policy should be.\n\nThis resource is authoritative. For adding a label to a repo in a non-authoritative manner, use github.IssueLabel instead.\n\nIf you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Create a new, red colored label\nconst testRepo = new github.IssueLabels(\"test_repo\", {\n repository: \"test-repo\",\n labels: [\n {\n name: \"Urgent\",\n color: \"FF0000\",\n },\n {\n name: \"Critical\",\n color: \"FF0000\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Create a new, red colored label\ntest_repo = github.IssueLabels(\"test_repo\",\n repository=\"test-repo\",\n labels=[\n {\n \"name\": \"Urgent\",\n \"color\": \"FF0000\",\n },\n {\n \"name\": \"Critical\",\n \"color\": \"FF0000\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new, red colored label\n var testRepo = new Github.IssueLabels(\"test_repo\", new()\n {\n Repository = \"test-repo\",\n Labels = new[]\n {\n new Github.Inputs.IssueLabelsLabelArgs\n {\n Name = \"Urgent\",\n Color = \"FF0000\",\n },\n new Github.Inputs.IssueLabelsLabelArgs\n {\n Name = \"Critical\",\n Color = \"FF0000\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Create a new, red colored label\n\t\t_, err := github.NewIssueLabels(ctx, \"test_repo\", \u0026github.IssueLabelsArgs{\n\t\t\tRepository: pulumi.String(\"test-repo\"),\n\t\t\tLabels: github.IssueLabelsLabelArray{\n\t\t\t\t\u0026github.IssueLabelsLabelArgs{\n\t\t\t\t\tName: pulumi.String(\"Urgent\"),\n\t\t\t\t\tColor: pulumi.String(\"FF0000\"),\n\t\t\t\t},\n\t\t\t\t\u0026github.IssueLabelsLabelArgs{\n\t\t\t\t\tName: pulumi.String(\"Critical\"),\n\t\t\t\t\tColor: pulumi.String(\"FF0000\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.IssueLabels;\nimport com.pulumi.github.IssueLabelsArgs;\nimport com.pulumi.github.inputs.IssueLabelsLabelArgs;\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 // Create a new, red colored label\n var testRepo = new IssueLabels(\"testRepo\", IssueLabelsArgs.builder()\n .repository(\"test-repo\")\n .labels( \n IssueLabelsLabelArgs.builder()\n .name(\"Urgent\")\n .color(\"FF0000\")\n .build(),\n IssueLabelsLabelArgs.builder()\n .name(\"Critical\")\n .color(\"FF0000\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new, red colored label\n testRepo:\n type: github:IssueLabels\n name: test_repo\n properties:\n repository: test-repo\n labels:\n - name: Urgent\n color: FF0000\n - name: Critical\n color: FF0000\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Issue Labels can be imported using the repository `name`, e.g.\n\n```sh\n$ pulumi import github:index/issueLabels:IssueLabels test_repo test_repo\n```\n", "properties": { "labels": { "type": "array", @@ -6349,7 +6349,7 @@ } }, "github:index/organizationRuleset:OrganizationRuleset": { - "description": "Creates a GitHub organization ruleset.\n\nThis resource allows you to create and manage rulesets on the organization level. When applied, a new ruleset will be created. When destroyed, that ruleset will be removed.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.OrganizationRuleset(\"example\", {\n name: \"example\",\n target: \"branch\",\n enforcement: \"active\",\n conditions: {\n refName: {\n includes: [\"~ALL\"],\n excludes: [],\n },\n },\n bypassActors: [{\n actorId: 13473,\n actorType: \"Integration\",\n bypassMode: \"always\",\n }],\n rules: {\n creation: true,\n update: true,\n deletion: true,\n requiredLinearHistory: true,\n requiredSignatures: true,\n branchNamePattern: {\n name: \"example\",\n negate: false,\n operator: \"starts_with\",\n pattern: \"ex\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.OrganizationRuleset(\"example\",\n name=\"example\",\n target=\"branch\",\n enforcement=\"active\",\n conditions=github.OrganizationRulesetConditionsArgs(\n ref_name=github.OrganizationRulesetConditionsRefNameArgs(\n includes=[\"~ALL\"],\n excludes=[],\n ),\n ),\n bypass_actors=[github.OrganizationRulesetBypassActorArgs(\n actor_id=13473,\n actor_type=\"Integration\",\n bypass_mode=\"always\",\n )],\n rules=github.OrganizationRulesetRulesArgs(\n creation=True,\n update=True,\n deletion=True,\n required_linear_history=True,\n required_signatures=True,\n branch_name_pattern=github.OrganizationRulesetRulesBranchNamePatternArgs(\n name=\"example\",\n negate=False,\n operator=\"starts_with\",\n pattern=\"ex\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.OrganizationRuleset(\"example\", new()\n {\n Name = \"example\",\n Target = \"branch\",\n Enforcement = \"active\",\n Conditions = new Github.Inputs.OrganizationRulesetConditionsArgs\n {\n RefName = new Github.Inputs.OrganizationRulesetConditionsRefNameArgs\n {\n Includes = new[]\n {\n \"~ALL\",\n },\n Excludes = new() { },\n },\n },\n BypassActors = new[]\n {\n new Github.Inputs.OrganizationRulesetBypassActorArgs\n {\n ActorId = 13473,\n ActorType = \"Integration\",\n BypassMode = \"always\",\n },\n },\n Rules = new Github.Inputs.OrganizationRulesetRulesArgs\n {\n Creation = true,\n Update = true,\n Deletion = true,\n RequiredLinearHistory = true,\n RequiredSignatures = true,\n BranchNamePattern = new Github.Inputs.OrganizationRulesetRulesBranchNamePatternArgs\n {\n Name = \"example\",\n Negate = false,\n Operator = \"starts_with\",\n Pattern = \"ex\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewOrganizationRuleset(ctx, \"example\", \u0026github.OrganizationRulesetArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tTarget: pulumi.String(\"branch\"),\n\t\t\tEnforcement: pulumi.String(\"active\"),\n\t\t\tConditions: \u0026github.OrganizationRulesetConditionsArgs{\n\t\t\t\tRefName: \u0026github.OrganizationRulesetConditionsRefNameArgs{\n\t\t\t\t\tIncludes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"~ALL\"),\n\t\t\t\t\t},\n\t\t\t\t\tExcludes: pulumi.StringArray{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tBypassActors: github.OrganizationRulesetBypassActorArray{\n\t\t\t\t\u0026github.OrganizationRulesetBypassActorArgs{\n\t\t\t\t\tActorId: pulumi.Int(13473),\n\t\t\t\t\tActorType: pulumi.String(\"Integration\"),\n\t\t\t\t\tBypassMode: pulumi.String(\"always\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tRules: \u0026github.OrganizationRulesetRulesArgs{\n\t\t\t\tCreation: pulumi.Bool(true),\n\t\t\t\tUpdate: pulumi.Bool(true),\n\t\t\t\tDeletion: pulumi.Bool(true),\n\t\t\t\tRequiredLinearHistory: pulumi.Bool(true),\n\t\t\t\tRequiredSignatures: pulumi.Bool(true),\n\t\t\t\tBranchNamePattern: \u0026github.OrganizationRulesetRulesBranchNamePatternArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tNegate: pulumi.Bool(false),\n\t\t\t\t\tOperator: pulumi.String(\"starts_with\"),\n\t\t\t\t\tPattern: pulumi.String(\"ex\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.OrganizationRuleset;\nimport com.pulumi.github.OrganizationRulesetArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetConditionsArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetConditionsRefNameArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetBypassActorArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetRulesArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetRulesBranchNamePatternArgs;\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 var example = new OrganizationRuleset(\"example\", OrganizationRulesetArgs.builder()\n .name(\"example\")\n .target(\"branch\")\n .enforcement(\"active\")\n .conditions(OrganizationRulesetConditionsArgs.builder()\n .refName(OrganizationRulesetConditionsRefNameArgs.builder()\n .includes(\"~ALL\")\n .excludes()\n .build())\n .build())\n .bypassActors(OrganizationRulesetBypassActorArgs.builder()\n .actorId(13473)\n .actorType(\"Integration\")\n .bypassMode(\"always\")\n .build())\n .rules(OrganizationRulesetRulesArgs.builder()\n .creation(true)\n .update(true)\n .deletion(true)\n .requiredLinearHistory(true)\n .requiredSignatures(true)\n .branchNamePattern(OrganizationRulesetRulesBranchNamePatternArgs.builder()\n .name(\"example\")\n .negate(false)\n .operator(\"starts_with\")\n .pattern(\"ex\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:OrganizationRuleset\n properties:\n name: example\n target: branch\n enforcement: active\n conditions:\n refName:\n includes:\n - ~ALL\n excludes: []\n bypassActors:\n - actorId: 13473\n actorType: Integration\n bypassMode: always\n rules:\n creation: true\n update: true\n deletion: true\n requiredLinearHistory: true\n requiredSignatures: true\n branchNamePattern:\n name: example\n negate: false\n operator: starts_with\n pattern: ex\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Organization Rulesets can be imported using the GitHub ruleset ID e.g.\n\n```sh\n$ pulumi import github:index/organizationRuleset:OrganizationRuleset example 12345`\n```\n\n", + "description": "Creates a GitHub organization ruleset.\n\nThis resource allows you to create and manage rulesets on the organization level. When applied, a new ruleset will be created. When destroyed, that ruleset will be removed.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.OrganizationRuleset(\"example\", {\n name: \"example\",\n target: \"branch\",\n enforcement: \"active\",\n conditions: {\n refName: {\n includes: [\"~ALL\"],\n excludes: [],\n },\n },\n bypassActors: [{\n actorId: 13473,\n actorType: \"Integration\",\n bypassMode: \"always\",\n }],\n rules: {\n creation: true,\n update: true,\n deletion: true,\n requiredLinearHistory: true,\n requiredSignatures: true,\n branchNamePattern: {\n name: \"example\",\n negate: false,\n operator: \"starts_with\",\n pattern: \"ex\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.OrganizationRuleset(\"example\",\n name=\"example\",\n target=\"branch\",\n enforcement=\"active\",\n conditions={\n \"ref_name\": {\n \"includes\": [\"~ALL\"],\n \"excludes\": [],\n },\n },\n bypass_actors=[{\n \"actor_id\": 13473,\n \"actor_type\": \"Integration\",\n \"bypass_mode\": \"always\",\n }],\n rules={\n \"creation\": True,\n \"update\": True,\n \"deletion\": True,\n \"required_linear_history\": True,\n \"required_signatures\": True,\n \"branch_name_pattern\": {\n \"name\": \"example\",\n \"negate\": False,\n \"operator\": \"starts_with\",\n \"pattern\": \"ex\",\n },\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.OrganizationRuleset(\"example\", new()\n {\n Name = \"example\",\n Target = \"branch\",\n Enforcement = \"active\",\n Conditions = new Github.Inputs.OrganizationRulesetConditionsArgs\n {\n RefName = new Github.Inputs.OrganizationRulesetConditionsRefNameArgs\n {\n Includes = new[]\n {\n \"~ALL\",\n },\n Excludes = new() { },\n },\n },\n BypassActors = new[]\n {\n new Github.Inputs.OrganizationRulesetBypassActorArgs\n {\n ActorId = 13473,\n ActorType = \"Integration\",\n BypassMode = \"always\",\n },\n },\n Rules = new Github.Inputs.OrganizationRulesetRulesArgs\n {\n Creation = true,\n Update = true,\n Deletion = true,\n RequiredLinearHistory = true,\n RequiredSignatures = true,\n BranchNamePattern = new Github.Inputs.OrganizationRulesetRulesBranchNamePatternArgs\n {\n Name = \"example\",\n Negate = false,\n Operator = \"starts_with\",\n Pattern = \"ex\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewOrganizationRuleset(ctx, \"example\", \u0026github.OrganizationRulesetArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tTarget: pulumi.String(\"branch\"),\n\t\t\tEnforcement: pulumi.String(\"active\"),\n\t\t\tConditions: \u0026github.OrganizationRulesetConditionsArgs{\n\t\t\t\tRefName: \u0026github.OrganizationRulesetConditionsRefNameArgs{\n\t\t\t\t\tIncludes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"~ALL\"),\n\t\t\t\t\t},\n\t\t\t\t\tExcludes: pulumi.StringArray{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tBypassActors: github.OrganizationRulesetBypassActorArray{\n\t\t\t\t\u0026github.OrganizationRulesetBypassActorArgs{\n\t\t\t\t\tActorId: pulumi.Int(13473),\n\t\t\t\t\tActorType: pulumi.String(\"Integration\"),\n\t\t\t\t\tBypassMode: pulumi.String(\"always\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tRules: \u0026github.OrganizationRulesetRulesArgs{\n\t\t\t\tCreation: pulumi.Bool(true),\n\t\t\t\tUpdate: pulumi.Bool(true),\n\t\t\t\tDeletion: pulumi.Bool(true),\n\t\t\t\tRequiredLinearHistory: pulumi.Bool(true),\n\t\t\t\tRequiredSignatures: pulumi.Bool(true),\n\t\t\t\tBranchNamePattern: \u0026github.OrganizationRulesetRulesBranchNamePatternArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tNegate: pulumi.Bool(false),\n\t\t\t\t\tOperator: pulumi.String(\"starts_with\"),\n\t\t\t\t\tPattern: pulumi.String(\"ex\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.OrganizationRuleset;\nimport com.pulumi.github.OrganizationRulesetArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetConditionsArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetConditionsRefNameArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetBypassActorArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetRulesArgs;\nimport com.pulumi.github.inputs.OrganizationRulesetRulesBranchNamePatternArgs;\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 var example = new OrganizationRuleset(\"example\", OrganizationRulesetArgs.builder()\n .name(\"example\")\n .target(\"branch\")\n .enforcement(\"active\")\n .conditions(OrganizationRulesetConditionsArgs.builder()\n .refName(OrganizationRulesetConditionsRefNameArgs.builder()\n .includes(\"~ALL\")\n .excludes()\n .build())\n .build())\n .bypassActors(OrganizationRulesetBypassActorArgs.builder()\n .actorId(13473)\n .actorType(\"Integration\")\n .bypassMode(\"always\")\n .build())\n .rules(OrganizationRulesetRulesArgs.builder()\n .creation(true)\n .update(true)\n .deletion(true)\n .requiredLinearHistory(true)\n .requiredSignatures(true)\n .branchNamePattern(OrganizationRulesetRulesBranchNamePatternArgs.builder()\n .name(\"example\")\n .negate(false)\n .operator(\"starts_with\")\n .pattern(\"ex\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:OrganizationRuleset\n properties:\n name: example\n target: branch\n enforcement: active\n conditions:\n refName:\n includes:\n - ~ALL\n excludes: []\n bypassActors:\n - actorId: 13473\n actorType: Integration\n bypassMode: always\n rules:\n creation: true\n update: true\n deletion: true\n requiredLinearHistory: true\n requiredSignatures: true\n branchNamePattern:\n name: example\n negate: false\n operator: starts_with\n pattern: ex\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Organization Rulesets can be imported using the GitHub ruleset ID e.g.\n\n```sh\n$ pulumi import github:index/organizationRuleset:OrganizationRuleset example 12345`\n```\n\n", "properties": { "bypassActors": { "type": "array", @@ -7308,7 +7308,7 @@ } }, "github:index/repository:Repository": { - "description": "This resource allows you to create and manage repositories within your\nGitHub organization or personal account.\n\n\u003e Note: When used with GitHub App authentication, even GET requests must have the `contents:write` permission. Without it, the following attributes will be ignored, leading to unexpected behavior and confusing diffs:\n\n- `allow_merge_commit` (including the related `merge_commit_title` and `merge_commit_message`)\n- `allow_squash_merge` (including the related `squash_merge_commit_title` and `squash_merge_commit_message`)\n- `allow_rebase_merge`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n name: \"example\",\n description: \"My awesome codebase\",\n visibility: \"public\",\n template: {\n owner: \"github\",\n repository: \"terraform-template-module\",\n includeAllBranches: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n name=\"example\",\n description=\"My awesome codebase\",\n visibility=\"public\",\n template=github.RepositoryTemplateArgs(\n owner=\"github\",\n repository=\"terraform-template-module\",\n include_all_branches=True,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"example\",\n Description = \"My awesome codebase\",\n Visibility = \"public\",\n Template = new Github.Inputs.RepositoryTemplateArgs\n {\n Owner = \"github\",\n Repository = \"terraform-template-module\",\n IncludeAllBranches = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t\tVisibility: pulumi.String(\"public\"),\n\t\t\tTemplate: \u0026github.RepositoryTemplateArgs{\n\t\t\t\tOwner: pulumi.String(\"github\"),\n\t\t\t\tRepository: pulumi.String(\"terraform-template-module\"),\n\t\t\t\tIncludeAllBranches: pulumi.Bool(true),\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.inputs.RepositoryTemplateArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"example\")\n .description(\"My awesome codebase\")\n .visibility(\"public\")\n .template(RepositoryTemplateArgs.builder()\n .owner(\"github\")\n .repository(\"terraform-template-module\")\n .includeAllBranches(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: example\n description: My awesome codebase\n visibility: public\n template:\n owner: github\n repository: terraform-template-module\n includeAllBranches: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### With GitHub Pages Enabled\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n name: \"example\",\n description: \"My awesome web page\",\n \"private\": false,\n pages: {\n source: {\n branch: \"master\",\n path: \"/docs\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n name=\"example\",\n description=\"My awesome web page\",\n private=False,\n pages=github.RepositoryPagesArgs(\n source=github.RepositoryPagesSourceArgs(\n branch=\"master\",\n path=\"/docs\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"example\",\n Description = \"My awesome web page\",\n Private = false,\n Pages = new Github.Inputs.RepositoryPagesArgs\n {\n Source = new Github.Inputs.RepositoryPagesSourceArgs\n {\n Branch = \"master\",\n Path = \"/docs\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDescription: pulumi.String(\"My awesome web page\"),\n\t\t\tPrivate: pulumi.Bool(false),\n\t\t\tPages: \u0026github.RepositoryPagesArgs{\n\t\t\t\tSource: \u0026github.RepositoryPagesSourceArgs{\n\t\t\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\t\t\tPath: pulumi.String(\"/docs\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.inputs.RepositoryPagesArgs;\nimport com.pulumi.github.inputs.RepositoryPagesSourceArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"example\")\n .description(\"My awesome web page\")\n .private_(false)\n .pages(RepositoryPagesArgs.builder()\n .source(RepositoryPagesSourceArgs.builder()\n .branch(\"master\")\n .path(\"/docs\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: example\n description: My awesome web page\n private: false\n pages:\n source:\n branch: master\n path: /docs\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nRepositories can be imported using the `name`, e.g.\n\n```sh\n$ pulumi import github:index/repository:Repository terraform terraform\n```\n", + "description": "This resource allows you to create and manage repositories within your\nGitHub organization or personal account.\n\n\u003e Note: When used with GitHub App authentication, even GET requests must have the `contents:write` permission. Without it, the following attributes will be ignored, leading to unexpected behavior and confusing diffs:\n\n- `allow_merge_commit` (including the related `merge_commit_title` and `merge_commit_message`)\n- `allow_squash_merge` (including the related `squash_merge_commit_title` and `squash_merge_commit_message`)\n- `allow_rebase_merge`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n name: \"example\",\n description: \"My awesome codebase\",\n visibility: \"public\",\n template: {\n owner: \"github\",\n repository: \"terraform-template-module\",\n includeAllBranches: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n name=\"example\",\n description=\"My awesome codebase\",\n visibility=\"public\",\n template={\n \"owner\": \"github\",\n \"repository\": \"terraform-template-module\",\n \"include_all_branches\": True,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"example\",\n Description = \"My awesome codebase\",\n Visibility = \"public\",\n Template = new Github.Inputs.RepositoryTemplateArgs\n {\n Owner = \"github\",\n Repository = \"terraform-template-module\",\n IncludeAllBranches = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t\tVisibility: pulumi.String(\"public\"),\n\t\t\tTemplate: \u0026github.RepositoryTemplateArgs{\n\t\t\t\tOwner: pulumi.String(\"github\"),\n\t\t\t\tRepository: pulumi.String(\"terraform-template-module\"),\n\t\t\t\tIncludeAllBranches: pulumi.Bool(true),\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.inputs.RepositoryTemplateArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"example\")\n .description(\"My awesome codebase\")\n .visibility(\"public\")\n .template(RepositoryTemplateArgs.builder()\n .owner(\"github\")\n .repository(\"terraform-template-module\")\n .includeAllBranches(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: example\n description: My awesome codebase\n visibility: public\n template:\n owner: github\n repository: terraform-template-module\n includeAllBranches: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### With GitHub Pages Enabled\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n name: \"example\",\n description: \"My awesome web page\",\n \"private\": false,\n pages: {\n source: {\n branch: \"master\",\n path: \"/docs\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n name=\"example\",\n description=\"My awesome web page\",\n private=False,\n pages={\n \"source\": {\n \"branch\": \"master\",\n \"path\": \"/docs\",\n },\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"example\",\n Description = \"My awesome web page\",\n Private = false,\n Pages = new Github.Inputs.RepositoryPagesArgs\n {\n Source = new Github.Inputs.RepositoryPagesSourceArgs\n {\n Branch = \"master\",\n Path = \"/docs\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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 := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDescription: pulumi.String(\"My awesome web page\"),\n\t\t\tPrivate: pulumi.Bool(false),\n\t\t\tPages: \u0026github.RepositoryPagesArgs{\n\t\t\t\tSource: \u0026github.RepositoryPagesSourceArgs{\n\t\t\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\t\t\tPath: pulumi.String(\"/docs\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.inputs.RepositoryPagesArgs;\nimport com.pulumi.github.inputs.RepositoryPagesSourceArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"example\")\n .description(\"My awesome web page\")\n .private_(false)\n .pages(RepositoryPagesArgs.builder()\n .source(RepositoryPagesSourceArgs.builder()\n .branch(\"master\")\n .path(\"/docs\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: example\n description: My awesome web page\n private: false\n pages:\n source:\n branch: master\n path: /docs\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nRepositories can be imported using the `name`, e.g.\n\n```sh\n$ pulumi import github:index/repository:Repository terraform terraform\n```\n", "properties": { "allowAutoMerge": { "type": "boolean", @@ -8012,7 +8012,7 @@ } }, "github:index/repositoryCollaborators:RepositoryCollaborators": { - "description": "Provides a GitHub repository collaborators resource.\n\n\u003e Note: github.RepositoryCollaborators cannot be used in conjunction with github.RepositoryCollaborator and\ngithub.TeamRepository or they will fight over what your policy should be.\n\nThis resource allows you to manage all collaborators for repositories in your\norganization or personal account. For organization repositories, collaborators can\nhave explicit (and differing levels of) read, write, or administrator access to \nspecific repositories, without giving the user full organization membership. \nFor personal repositories, collaborators can only be granted write\n(implicitly includes read) permission. \n\nWhen applied, an invitation will be sent to the user to become a collaborators\non a repository. When destroyed, either the invitation will be cancelled or the\ncollaborators will be removed from the repository.\n\nThis resource is authoritative. For adding a collaborator to a repo in a non-authoritative manner, use\ngithub.RepositoryCollaborator instead.\n\nFurther documentation on GitHub collaborators:\n\n- [Adding outside collaborators to your personal repositories](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories)\n- [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)\n- [Converting an organization member to an outside collaborators](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\n \n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add collaborators to a repository\nconst someTeam = new github.Team(\"some_team\", {\n name: \"SomeTeam\",\n description: \"Some cool team\",\n});\nconst someRepo = new github.Repository(\"some_repo\", {name: \"some-repo\"});\nconst someRepoCollaborators = new github.RepositoryCollaborators(\"some_repo_collaborators\", {\n repository: someRepo.name,\n users: [{\n permission: \"admin\",\n username: \"SomeUser\",\n }],\n teams: [{\n permission: \"pull\",\n teamId: someTeam.slug,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add collaborators to a repository\nsome_team = github.Team(\"some_team\",\n name=\"SomeTeam\",\n description=\"Some cool team\")\nsome_repo = github.Repository(\"some_repo\", name=\"some-repo\")\nsome_repo_collaborators = github.RepositoryCollaborators(\"some_repo_collaborators\",\n repository=some_repo.name,\n users=[github.RepositoryCollaboratorsUserArgs(\n permission=\"admin\",\n username=\"SomeUser\",\n )],\n teams=[github.RepositoryCollaboratorsTeamArgs(\n permission=\"pull\",\n team_id=some_team.slug,\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Add collaborators to a repository\n var someTeam = new Github.Team(\"some_team\", new()\n {\n Name = \"SomeTeam\",\n Description = \"Some cool team\",\n });\n\n var someRepo = new Github.Repository(\"some_repo\", new()\n {\n Name = \"some-repo\",\n });\n\n var someRepoCollaborators = new Github.RepositoryCollaborators(\"some_repo_collaborators\", new()\n {\n Repository = someRepo.Name,\n Users = new[]\n {\n new Github.Inputs.RepositoryCollaboratorsUserArgs\n {\n Permission = \"admin\",\n Username = \"SomeUser\",\n },\n },\n Teams = new[]\n {\n new Github.Inputs.RepositoryCollaboratorsTeamArgs\n {\n Permission = \"pull\",\n TeamId = someTeam.Slug,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Add collaborators to a repository\n\t\tsomeTeam, err := github.NewTeam(ctx, \"some_team\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"SomeTeam\"),\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeRepo, err := github.NewRepository(ctx, \"some_repo\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"some-repo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryCollaborators(ctx, \"some_repo_collaborators\", \u0026github.RepositoryCollaboratorsArgs{\n\t\t\tRepository: someRepo.Name,\n\t\t\tUsers: github.RepositoryCollaboratorsUserArray{\n\t\t\t\t\u0026github.RepositoryCollaboratorsUserArgs{\n\t\t\t\t\tPermission: pulumi.String(\"admin\"),\n\t\t\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTeams: github.RepositoryCollaboratorsTeamArray{\n\t\t\t\t\u0026github.RepositoryCollaboratorsTeamArgs{\n\t\t\t\t\tPermission: pulumi.String(\"pull\"),\n\t\t\t\t\tTeamId: someTeam.Slug,\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryCollaborators;\nimport com.pulumi.github.RepositoryCollaboratorsArgs;\nimport com.pulumi.github.inputs.RepositoryCollaboratorsUserArgs;\nimport com.pulumi.github.inputs.RepositoryCollaboratorsTeamArgs;\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 // Add collaborators to a repository\n var someTeam = new Team(\"someTeam\", TeamArgs.builder()\n .name(\"SomeTeam\")\n .description(\"Some cool team\")\n .build());\n\n var someRepo = new Repository(\"someRepo\", RepositoryArgs.builder()\n .name(\"some-repo\")\n .build());\n\n var someRepoCollaborators = new RepositoryCollaborators(\"someRepoCollaborators\", RepositoryCollaboratorsArgs.builder()\n .repository(someRepo.name())\n .users(RepositoryCollaboratorsUserArgs.builder()\n .permission(\"admin\")\n .username(\"SomeUser\")\n .build())\n .teams(RepositoryCollaboratorsTeamArgs.builder()\n .permission(\"pull\")\n .teamId(someTeam.slug())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Add collaborators to a repository\n someTeam:\n type: github:Team\n name: some_team\n properties:\n name: SomeTeam\n description: Some cool team\n someRepo:\n type: github:Repository\n name: some_repo\n properties:\n name: some-repo\n someRepoCollaborators:\n type: github:RepositoryCollaborators\n name: some_repo_collaborators\n properties:\n repository: ${someRepo.name}\n users:\n - permission: admin\n username: SomeUser\n teams:\n - permission: pull\n teamId: ${someTeam.slug}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Collaborators can be imported using the name `name`, e.g.\n\n```sh\n$ pulumi import github:index/repositoryCollaborators:RepositoryCollaborators collaborators terraform\n```\n", + "description": "Provides a GitHub repository collaborators resource.\n\n\u003e Note: github.RepositoryCollaborators cannot be used in conjunction with github.RepositoryCollaborator and\ngithub.TeamRepository or they will fight over what your policy should be.\n\nThis resource allows you to manage all collaborators for repositories in your\norganization or personal account. For organization repositories, collaborators can\nhave explicit (and differing levels of) read, write, or administrator access to \nspecific repositories, without giving the user full organization membership. \nFor personal repositories, collaborators can only be granted write\n(implicitly includes read) permission. \n\nWhen applied, an invitation will be sent to the user to become a collaborators\non a repository. When destroyed, either the invitation will be cancelled or the\ncollaborators will be removed from the repository.\n\nThis resource is authoritative. For adding a collaborator to a repo in a non-authoritative manner, use\ngithub.RepositoryCollaborator instead.\n\nFurther documentation on GitHub collaborators:\n\n- [Adding outside collaborators to your personal repositories](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories)\n- [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)\n- [Converting an organization member to an outside collaborators](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\n \n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add collaborators to a repository\nconst someTeam = new github.Team(\"some_team\", {\n name: \"SomeTeam\",\n description: \"Some cool team\",\n});\nconst someRepo = new github.Repository(\"some_repo\", {name: \"some-repo\"});\nconst someRepoCollaborators = new github.RepositoryCollaborators(\"some_repo_collaborators\", {\n repository: someRepo.name,\n users: [{\n permission: \"admin\",\n username: \"SomeUser\",\n }],\n teams: [{\n permission: \"pull\",\n teamId: someTeam.slug,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add collaborators to a repository\nsome_team = github.Team(\"some_team\",\n name=\"SomeTeam\",\n description=\"Some cool team\")\nsome_repo = github.Repository(\"some_repo\", name=\"some-repo\")\nsome_repo_collaborators = github.RepositoryCollaborators(\"some_repo_collaborators\",\n repository=some_repo.name,\n users=[{\n \"permission\": \"admin\",\n \"username\": \"SomeUser\",\n }],\n teams=[{\n \"permission\": \"pull\",\n \"team_id\": some_team.slug,\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Add collaborators to a repository\n var someTeam = new Github.Team(\"some_team\", new()\n {\n Name = \"SomeTeam\",\n Description = \"Some cool team\",\n });\n\n var someRepo = new Github.Repository(\"some_repo\", new()\n {\n Name = \"some-repo\",\n });\n\n var someRepoCollaborators = new Github.RepositoryCollaborators(\"some_repo_collaborators\", new()\n {\n Repository = someRepo.Name,\n Users = new[]\n {\n new Github.Inputs.RepositoryCollaboratorsUserArgs\n {\n Permission = \"admin\",\n Username = \"SomeUser\",\n },\n },\n Teams = new[]\n {\n new Github.Inputs.RepositoryCollaboratorsTeamArgs\n {\n Permission = \"pull\",\n TeamId = someTeam.Slug,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Add collaborators to a repository\n\t\tsomeTeam, err := github.NewTeam(ctx, \"some_team\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"SomeTeam\"),\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeRepo, err := github.NewRepository(ctx, \"some_repo\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"some-repo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryCollaborators(ctx, \"some_repo_collaborators\", \u0026github.RepositoryCollaboratorsArgs{\n\t\t\tRepository: someRepo.Name,\n\t\t\tUsers: github.RepositoryCollaboratorsUserArray{\n\t\t\t\t\u0026github.RepositoryCollaboratorsUserArgs{\n\t\t\t\t\tPermission: pulumi.String(\"admin\"),\n\t\t\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTeams: github.RepositoryCollaboratorsTeamArray{\n\t\t\t\t\u0026github.RepositoryCollaboratorsTeamArgs{\n\t\t\t\t\tPermission: pulumi.String(\"pull\"),\n\t\t\t\t\tTeamId: someTeam.Slug,\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryCollaborators;\nimport com.pulumi.github.RepositoryCollaboratorsArgs;\nimport com.pulumi.github.inputs.RepositoryCollaboratorsUserArgs;\nimport com.pulumi.github.inputs.RepositoryCollaboratorsTeamArgs;\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 // Add collaborators to a repository\n var someTeam = new Team(\"someTeam\", TeamArgs.builder()\n .name(\"SomeTeam\")\n .description(\"Some cool team\")\n .build());\n\n var someRepo = new Repository(\"someRepo\", RepositoryArgs.builder()\n .name(\"some-repo\")\n .build());\n\n var someRepoCollaborators = new RepositoryCollaborators(\"someRepoCollaborators\", RepositoryCollaboratorsArgs.builder()\n .repository(someRepo.name())\n .users(RepositoryCollaboratorsUserArgs.builder()\n .permission(\"admin\")\n .username(\"SomeUser\")\n .build())\n .teams(RepositoryCollaboratorsTeamArgs.builder()\n .permission(\"pull\")\n .teamId(someTeam.slug())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Add collaborators to a repository\n someTeam:\n type: github:Team\n name: some_team\n properties:\n name: SomeTeam\n description: Some cool team\n someRepo:\n type: github:Repository\n name: some_repo\n properties:\n name: some-repo\n someRepoCollaborators:\n type: github:RepositoryCollaborators\n name: some_repo_collaborators\n properties:\n repository: ${someRepo.name}\n users:\n - permission: admin\n username: SomeUser\n teams:\n - permission: pull\n teamId: ${someTeam.slug}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Collaborators can be imported using the name `name`, e.g.\n\n```sh\n$ pulumi import github:index/repositoryCollaborators:RepositoryCollaborators collaborators terraform\n```\n", "properties": { "invitationIds": { "type": "object", @@ -8235,7 +8235,7 @@ } }, "github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy": { - "description": "This resource allows you to create and manage deployment branch policies.\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst env = new github.RepositoryEnvironment(\"env\", {\n repository: \"my_repo\",\n environment: \"my_env\",\n deploymentBranchPolicy: {\n protectedBranches: false,\n customBranchPolicies: true,\n },\n});\nconst foo = new github.RepositoryDeploymentBranchPolicy(\"foo\", {\n repository: \"my_repo\",\n environmentName: \"my_env\",\n name: \"foo\",\n}, {\n dependsOn: [env],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nenv = github.RepositoryEnvironment(\"env\",\n repository=\"my_repo\",\n environment=\"my_env\",\n deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(\n protected_branches=False,\n custom_branch_policies=True,\n ))\nfoo = github.RepositoryDeploymentBranchPolicy(\"foo\",\n repository=\"my_repo\",\n environment_name=\"my_env\",\n name=\"foo\",\n opts = pulumi.ResourceOptions(depends_on=[env]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var env = new Github.RepositoryEnvironment(\"env\", new()\n {\n Repository = \"my_repo\",\n Environment = \"my_env\",\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = false,\n CustomBranchPolicies = true,\n },\n });\n\n var foo = new Github.RepositoryDeploymentBranchPolicy(\"foo\", new()\n {\n Repository = \"my_repo\",\n EnvironmentName = \"my_env\",\n Name = \"foo\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n env,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tenv, err := github.NewRepositoryEnvironment(ctx, \"env\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: pulumi.String(\"my_repo\"),\n\t\t\tEnvironment: pulumi.String(\"my_env\"),\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(false),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryDeploymentBranchPolicy(ctx, \"foo\", \u0026github.RepositoryDeploymentBranchPolicyArgs{\n\t\t\tRepository: pulumi.String(\"my_repo\"),\n\t\t\tEnvironmentName: pulumi.String(\"my_env\"),\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tenv,\n\t\t}))\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.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport com.pulumi.github.RepositoryDeploymentBranchPolicy;\nimport com.pulumi.github.RepositoryDeploymentBranchPolicyArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 var env = new RepositoryEnvironment(\"env\", RepositoryEnvironmentArgs.builder()\n .repository(\"my_repo\")\n .environment(\"my_env\")\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(false)\n .customBranchPolicies(true)\n .build())\n .build());\n\n var foo = new RepositoryDeploymentBranchPolicy(\"foo\", RepositoryDeploymentBranchPolicyArgs.builder()\n .repository(\"my_repo\")\n .environmentName(\"my_env\")\n .name(\"foo\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(env)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n env:\n type: github:RepositoryEnvironment\n properties:\n repository: my_repo\n environment: my_env\n deploymentBranchPolicy:\n protectedBranches: false\n customBranchPolicies: true\n foo:\n type: github:RepositoryDeploymentBranchPolicy\n properties:\n repository: my_repo\n environmentName: my_env\n name: foo\n options:\n dependson:\n - ${env}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy foo repo:env:id\n```\n", + "description": "This resource allows you to create and manage deployment branch policies.\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst env = new github.RepositoryEnvironment(\"env\", {\n repository: \"my_repo\",\n environment: \"my_env\",\n deploymentBranchPolicy: {\n protectedBranches: false,\n customBranchPolicies: true,\n },\n});\nconst foo = new github.RepositoryDeploymentBranchPolicy(\"foo\", {\n repository: \"my_repo\",\n environmentName: \"my_env\",\n name: \"foo\",\n}, {\n dependsOn: [env],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nenv = github.RepositoryEnvironment(\"env\",\n repository=\"my_repo\",\n environment=\"my_env\",\n deployment_branch_policy={\n \"protected_branches\": False,\n \"custom_branch_policies\": True,\n })\nfoo = github.RepositoryDeploymentBranchPolicy(\"foo\",\n repository=\"my_repo\",\n environment_name=\"my_env\",\n name=\"foo\",\n opts = pulumi.ResourceOptions(depends_on=[env]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var env = new Github.RepositoryEnvironment(\"env\", new()\n {\n Repository = \"my_repo\",\n Environment = \"my_env\",\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = false,\n CustomBranchPolicies = true,\n },\n });\n\n var foo = new Github.RepositoryDeploymentBranchPolicy(\"foo\", new()\n {\n Repository = \"my_repo\",\n EnvironmentName = \"my_env\",\n Name = \"foo\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n env,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tenv, err := github.NewRepositoryEnvironment(ctx, \"env\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: pulumi.String(\"my_repo\"),\n\t\t\tEnvironment: pulumi.String(\"my_env\"),\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(false),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryDeploymentBranchPolicy(ctx, \"foo\", \u0026github.RepositoryDeploymentBranchPolicyArgs{\n\t\t\tRepository: pulumi.String(\"my_repo\"),\n\t\t\tEnvironmentName: pulumi.String(\"my_env\"),\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tenv,\n\t\t}))\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.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport com.pulumi.github.RepositoryDeploymentBranchPolicy;\nimport com.pulumi.github.RepositoryDeploymentBranchPolicyArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 var env = new RepositoryEnvironment(\"env\", RepositoryEnvironmentArgs.builder()\n .repository(\"my_repo\")\n .environment(\"my_env\")\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(false)\n .customBranchPolicies(true)\n .build())\n .build());\n\n var foo = new RepositoryDeploymentBranchPolicy(\"foo\", RepositoryDeploymentBranchPolicyArgs.builder()\n .repository(\"my_repo\")\n .environmentName(\"my_env\")\n .name(\"foo\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(env)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n env:\n type: github:RepositoryEnvironment\n properties:\n repository: my_repo\n environment: my_env\n deploymentBranchPolicy:\n protectedBranches: false\n customBranchPolicies: true\n foo:\n type: github:RepositoryDeploymentBranchPolicy\n properties:\n repository: my_repo\n environmentName: my_env\n name: foo\n options:\n dependson:\n - ${env}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy foo repo:env:id\n```\n", "properties": { "environmentName": { "type": "string", @@ -8306,7 +8306,7 @@ } }, "github:index/repositoryEnvironment:RepositoryEnvironment": { - "description": "This resource allows you to create and manage environments for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst example = new github.Repository(\"example\", {\n name: \"A Repository Project\",\n description: \"My awesome codebase\",\n});\nconst exampleRepositoryEnvironment = new github.RepositoryEnvironment(\"example\", {\n environment: \"example\",\n repository: example.name,\n preventSelfReview: true,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: true,\n customBranchPolicies: false,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\nexample = github.Repository(\"example\",\n name=\"A Repository Project\",\n description=\"My awesome codebase\")\nexample_repository_environment = github.RepositoryEnvironment(\"example\",\n environment=\"example\",\n repository=example.name,\n prevent_self_review=True,\n reviewers=[github.RepositoryEnvironmentReviewerArgs(\n users=[current.id],\n )],\n deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(\n protected_branches=True,\n custom_branch_policies=False,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"A Repository Project\",\n Description = \"My awesome codebase\",\n });\n\n var exampleRepositoryEnvironment = new Github.RepositoryEnvironment(\"example\", new()\n {\n Environment = \"example\",\n Repository = example.Name,\n PreventSelfReview = true,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = true,\n CustomBranchPolicies = false,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"A Repository Project\"),\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironment(ctx, \"example\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tEnvironment: pulumi.String(\"example\"),\n\t\t\tRepository: example.Name,\n\t\t\tPreventSelfReview: pulumi.Bool(true),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\tpulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(true),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(false),\n\t\t\t},\n\t\t})\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.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"A Repository Project\")\n .description(\"My awesome codebase\")\n .build());\n\n var exampleRepositoryEnvironment = new RepositoryEnvironment(\"exampleRepositoryEnvironment\", RepositoryEnvironmentArgs.builder()\n .environment(\"example\")\n .repository(example.name())\n .preventSelfReview(true)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(true)\n .customBranchPolicies(false)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: A Repository Project\n description: My awesome codebase\n exampleRepositoryEnvironment:\n type: github:RepositoryEnvironment\n name: example\n properties:\n environment: example\n repository: ${example.name}\n preventSelfReview: true\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: true\n customBranchPolicies: false\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily\n```\n", + "description": "This resource allows you to create and manage environments for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst example = new github.Repository(\"example\", {\n name: \"A Repository Project\",\n description: \"My awesome codebase\",\n});\nconst exampleRepositoryEnvironment = new github.RepositoryEnvironment(\"example\", {\n environment: \"example\",\n repository: example.name,\n preventSelfReview: true,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: true,\n customBranchPolicies: false,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\nexample = github.Repository(\"example\",\n name=\"A Repository Project\",\n description=\"My awesome codebase\")\nexample_repository_environment = github.RepositoryEnvironment(\"example\",\n environment=\"example\",\n repository=example.name,\n prevent_self_review=True,\n reviewers=[{\n \"users\": [current.id],\n }],\n deployment_branch_policy={\n \"protected_branches\": True,\n \"custom_branch_policies\": False,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"A Repository Project\",\n Description = \"My awesome codebase\",\n });\n\n var exampleRepositoryEnvironment = new Github.RepositoryEnvironment(\"example\", new()\n {\n Environment = \"example\",\n Repository = example.Name,\n PreventSelfReview = true,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = true,\n CustomBranchPolicies = false,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"A Repository Project\"),\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironment(ctx, \"example\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tEnvironment: pulumi.String(\"example\"),\n\t\t\tRepository: example.Name,\n\t\t\tPreventSelfReview: pulumi.Bool(true),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\tpulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(true),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(false),\n\t\t\t},\n\t\t})\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.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"A Repository Project\")\n .description(\"My awesome codebase\")\n .build());\n\n var exampleRepositoryEnvironment = new RepositoryEnvironment(\"exampleRepositoryEnvironment\", RepositoryEnvironmentArgs.builder()\n .environment(\"example\")\n .repository(example.name())\n .preventSelfReview(true)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(true)\n .customBranchPolicies(false)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: A Repository Project\n description: My awesome codebase\n exampleRepositoryEnvironment:\n type: github:RepositoryEnvironment\n name: example\n properties:\n environment: example\n repository: ${example.name}\n preventSelfReview: true\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: true\n customBranchPolicies: false\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily\n```\n", "properties": { "canAdminsBypass": { "type": "boolean", @@ -8424,7 +8424,7 @@ } }, "github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy": { - "description": "This resource allows you to create and manage environment deployment branch policies for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst test = new github.Repository(\"test\", {name: \"tf-acc-test-%s\"});\nconst testRepositoryEnvironment = new github.RepositoryEnvironment(\"test\", {\n repository: test.name,\n environment: \"environment/test\",\n waitTimer: 10000,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: false,\n customBranchPolicies: true,\n },\n});\nconst testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy(\"test\", {\n repository: test.name,\n environment: testRepositoryEnvironment.environment,\n branchPattern: \"releases/*\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\ntest = github.Repository(\"test\", name=\"tf-acc-test-%s\")\ntest_repository_environment = github.RepositoryEnvironment(\"test\",\n repository=test.name,\n environment=\"environment/test\",\n wait_timer=10000,\n reviewers=[github.RepositoryEnvironmentReviewerArgs(\n users=[current.id],\n )],\n deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(\n protected_branches=False,\n custom_branch_policies=True,\n ))\ntest_repository_environment_deployment_policy = github.RepositoryEnvironmentDeploymentPolicy(\"test\",\n repository=test.name,\n environment=test_repository_environment.environment,\n branch_pattern=\"releases/*\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var test = new Github.Repository(\"test\", new()\n {\n Name = \"tf-acc-test-%s\",\n });\n\n var testRepositoryEnvironment = new Github.RepositoryEnvironment(\"test\", new()\n {\n Repository = test.Name,\n Environment = \"environment/test\",\n WaitTimer = 10000,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = false,\n CustomBranchPolicies = true,\n },\n });\n\n var testRepositoryEnvironmentDeploymentPolicy = new Github.RepositoryEnvironmentDeploymentPolicy(\"test\", new()\n {\n Repository = test.Name,\n Environment = testRepositoryEnvironment.Environment,\n BranchPattern = \"releases/*\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttest, err := github.NewRepository(ctx, \"test\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"tf-acc-test-%s\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestRepositoryEnvironment, err := github.NewRepositoryEnvironment(ctx, \"test\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: test.Name,\n\t\t\tEnvironment: pulumi.String(\"environment/test\"),\n\t\t\tWaitTimer: pulumi.Int(10000),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\tpulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(false),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironmentDeploymentPolicy(ctx, \"test\", \u0026github.RepositoryEnvironmentDeploymentPolicyArgs{\n\t\t\tRepository: test.Name,\n\t\t\tEnvironment: testRepositoryEnvironment.Environment,\n\t\t\tBranchPattern: pulumi.String(\"releases/*\"),\n\t\t})\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.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicy;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicyArgs;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var test = new Repository(\"test\", RepositoryArgs.builder()\n .name(\"tf-acc-test-%s\")\n .build());\n\n var testRepositoryEnvironment = new RepositoryEnvironment(\"testRepositoryEnvironment\", RepositoryEnvironmentArgs.builder()\n .repository(test.name())\n .environment(\"environment/test\")\n .waitTimer(10000)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(false)\n .customBranchPolicies(true)\n .build())\n .build());\n\n var testRepositoryEnvironmentDeploymentPolicy = new RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", RepositoryEnvironmentDeploymentPolicyArgs.builder()\n .repository(test.name())\n .environment(testRepositoryEnvironment.environment())\n .branchPattern(\"releases/*\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: github:Repository\n properties:\n name: tf-acc-test-%s\n testRepositoryEnvironment:\n type: github:RepositoryEnvironment\n name: test\n properties:\n repository: ${test.name}\n environment: environment/test\n waitTimer: 10000\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: false\n customBranchPolicies: true\n testRepositoryEnvironmentDeploymentPolicy:\n type: github:RepositoryEnvironmentDeploymentPolicy\n name: test\n properties:\n repository: ${test.name}\n environment: ${testRepositoryEnvironment.environment}\n branchPattern: releases/*\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment Deployment Policy can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment with the `Id` of the deployment policy, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy daily terraform:daily:123456\n```\n", + "description": "This resource allows you to create and manage environment deployment branch policies for a GitHub repository.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst current = github.getUser({\n username: \"\",\n});\nconst test = new github.Repository(\"test\", {name: \"tf-acc-test-%s\"});\nconst testRepositoryEnvironment = new github.RepositoryEnvironment(\"test\", {\n repository: test.name,\n environment: \"environment/test\",\n waitTimer: 10000,\n reviewers: [{\n users: [current.then(current =\u003e current.id)],\n }],\n deploymentBranchPolicy: {\n protectedBranches: false,\n customBranchPolicies: true,\n },\n});\nconst testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy(\"test\", {\n repository: test.name,\n environment: testRepositoryEnvironment.environment,\n branchPattern: \"releases/*\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ncurrent = github.get_user(username=\"\")\ntest = github.Repository(\"test\", name=\"tf-acc-test-%s\")\ntest_repository_environment = github.RepositoryEnvironment(\"test\",\n repository=test.name,\n environment=\"environment/test\",\n wait_timer=10000,\n reviewers=[{\n \"users\": [current.id],\n }],\n deployment_branch_policy={\n \"protected_branches\": False,\n \"custom_branch_policies\": True,\n })\ntest_repository_environment_deployment_policy = github.RepositoryEnvironmentDeploymentPolicy(\"test\",\n repository=test.name,\n environment=test_repository_environment.environment,\n branch_pattern=\"releases/*\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Github.GetUser.Invoke(new()\n {\n Username = \"\",\n });\n\n var test = new Github.Repository(\"test\", new()\n {\n Name = \"tf-acc-test-%s\",\n });\n\n var testRepositoryEnvironment = new Github.RepositoryEnvironment(\"test\", new()\n {\n Repository = test.Name,\n Environment = \"environment/test\",\n WaitTimer = 10000,\n Reviewers = new[]\n {\n new Github.Inputs.RepositoryEnvironmentReviewerArgs\n {\n Users = new[]\n {\n current.Apply(getUserResult =\u003e getUserResult.Id),\n },\n },\n },\n DeploymentBranchPolicy = new Github.Inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs\n {\n ProtectedBranches = false,\n CustomBranchPolicies = true,\n },\n });\n\n var testRepositoryEnvironmentDeploymentPolicy = new Github.RepositoryEnvironmentDeploymentPolicy(\"test\", new()\n {\n Repository = test.Name,\n Environment = testRepositoryEnvironment.Environment,\n BranchPattern = \"releases/*\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttest, err := github.NewRepository(ctx, \"test\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"tf-acc-test-%s\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestRepositoryEnvironment, err := github.NewRepositoryEnvironment(ctx, \"test\", \u0026github.RepositoryEnvironmentArgs{\n\t\t\tRepository: test.Name,\n\t\t\tEnvironment: pulumi.String(\"environment/test\"),\n\t\t\tWaitTimer: pulumi.Int(10000),\n\t\t\tReviewers: github.RepositoryEnvironmentReviewerArray{\n\t\t\t\t\u0026github.RepositoryEnvironmentReviewerArgs{\n\t\t\t\t\tUsers: pulumi.IntArray{\n\t\t\t\t\t\tpulumi.String(current.Id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDeploymentBranchPolicy: \u0026github.RepositoryEnvironmentDeploymentBranchPolicyArgs{\n\t\t\t\tProtectedBranches: pulumi.Bool(false),\n\t\t\t\tCustomBranchPolicies: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryEnvironmentDeploymentPolicy(ctx, \"test\", \u0026github.RepositoryEnvironmentDeploymentPolicyArgs{\n\t\t\tRepository: test.Name,\n\t\t\tEnvironment: testRepositoryEnvironment.Environment,\n\t\t\tBranchPattern: pulumi.String(\"releases/*\"),\n\t\t})\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.github.GithubFunctions;\nimport com.pulumi.github.inputs.GetUserArgs;\nimport com.pulumi.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryEnvironment;\nimport com.pulumi.github.RepositoryEnvironmentArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentReviewerArgs;\nimport com.pulumi.github.inputs.RepositoryEnvironmentDeploymentBranchPolicyArgs;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicy;\nimport com.pulumi.github.RepositoryEnvironmentDeploymentPolicyArgs;\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 current = GithubFunctions.getUser(GetUserArgs.builder()\n .username(\"\")\n .build());\n\n var test = new Repository(\"test\", RepositoryArgs.builder()\n .name(\"tf-acc-test-%s\")\n .build());\n\n var testRepositoryEnvironment = new RepositoryEnvironment(\"testRepositoryEnvironment\", RepositoryEnvironmentArgs.builder()\n .repository(test.name())\n .environment(\"environment/test\")\n .waitTimer(10000)\n .reviewers(RepositoryEnvironmentReviewerArgs.builder()\n .users(current.applyValue(getUserResult -\u003e getUserResult.id()))\n .build())\n .deploymentBranchPolicy(RepositoryEnvironmentDeploymentBranchPolicyArgs.builder()\n .protectedBranches(false)\n .customBranchPolicies(true)\n .build())\n .build());\n\n var testRepositoryEnvironmentDeploymentPolicy = new RepositoryEnvironmentDeploymentPolicy(\"testRepositoryEnvironmentDeploymentPolicy\", RepositoryEnvironmentDeploymentPolicyArgs.builder()\n .repository(test.name())\n .environment(testRepositoryEnvironment.environment())\n .branchPattern(\"releases/*\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: github:Repository\n properties:\n name: tf-acc-test-%s\n testRepositoryEnvironment:\n type: github:RepositoryEnvironment\n name: test\n properties:\n repository: ${test.name}\n environment: environment/test\n waitTimer: 10000\n reviewers:\n - users:\n - ${current.id}\n deploymentBranchPolicy:\n protectedBranches: false\n customBranchPolicies: true\n testRepositoryEnvironmentDeploymentPolicy:\n type: github:RepositoryEnvironmentDeploymentPolicy\n name: test\n properties:\n repository: ${test.name}\n environment: ${testRepositoryEnvironment.environment}\n branchPattern: releases/*\nvariables:\n current:\n fn::invoke:\n Function: github:getUser\n Arguments:\n username:\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Environment Deployment Policy can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment with the `Id` of the deployment policy, separated by a `:` character, e.g.\n\n```sh\n$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy daily terraform:daily:123456\n```\n", "properties": { "branchPattern": { "type": "string", @@ -9021,7 +9021,7 @@ } }, "github:index/repositoryRuleset:RepositoryRuleset": { - "description": "Creates a GitHub repository ruleset.\n\nThis resource allows you to create and manage rulesets on the repository level. When applied, a new ruleset will be created. When destroyed, that ruleset will be removed.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n name: \"example\",\n description: \"Example repository\",\n});\nconst exampleRepositoryRuleset = new github.RepositoryRuleset(\"example\", {\n name: \"example\",\n repository: example.name,\n target: \"branch\",\n enforcement: \"active\",\n conditions: {\n refName: {\n includes: [\"~ALL\"],\n excludes: [],\n },\n },\n bypassActors: [{\n actorId: 13473,\n actorType: \"Integration\",\n bypassMode: \"always\",\n }],\n rules: {\n creation: true,\n update: true,\n deletion: true,\n requiredLinearHistory: true,\n requiredSignatures: true,\n requiredDeployments: {\n requiredDeploymentEnvironments: [\"test\"],\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n name=\"example\",\n description=\"Example repository\")\nexample_repository_ruleset = github.RepositoryRuleset(\"example\",\n name=\"example\",\n repository=example.name,\n target=\"branch\",\n enforcement=\"active\",\n conditions=github.RepositoryRulesetConditionsArgs(\n ref_name=github.RepositoryRulesetConditionsRefNameArgs(\n includes=[\"~ALL\"],\n excludes=[],\n ),\n ),\n bypass_actors=[github.RepositoryRulesetBypassActorArgs(\n actor_id=13473,\n actor_type=\"Integration\",\n bypass_mode=\"always\",\n )],\n rules=github.RepositoryRulesetRulesArgs(\n creation=True,\n update=True,\n deletion=True,\n required_linear_history=True,\n required_signatures=True,\n required_deployments=github.RepositoryRulesetRulesRequiredDeploymentsArgs(\n required_deployment_environments=[\"test\"],\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"example\",\n Description = \"Example repository\",\n });\n\n var exampleRepositoryRuleset = new Github.RepositoryRuleset(\"example\", new()\n {\n Name = \"example\",\n Repository = example.Name,\n Target = \"branch\",\n Enforcement = \"active\",\n Conditions = new Github.Inputs.RepositoryRulesetConditionsArgs\n {\n RefName = new Github.Inputs.RepositoryRulesetConditionsRefNameArgs\n {\n Includes = new[]\n {\n \"~ALL\",\n },\n Excludes = new() { },\n },\n },\n BypassActors = new[]\n {\n new Github.Inputs.RepositoryRulesetBypassActorArgs\n {\n ActorId = 13473,\n ActorType = \"Integration\",\n BypassMode = \"always\",\n },\n },\n Rules = new Github.Inputs.RepositoryRulesetRulesArgs\n {\n Creation = true,\n Update = true,\n Deletion = true,\n RequiredLinearHistory = true,\n RequiredSignatures = true,\n RequiredDeployments = new Github.Inputs.RepositoryRulesetRulesRequiredDeploymentsArgs\n {\n RequiredDeploymentEnvironments = new[]\n {\n \"test\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDescription: pulumi.String(\"Example repository\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryRuleset(ctx, \"example\", \u0026github.RepositoryRulesetArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tRepository: example.Name,\n\t\t\tTarget: pulumi.String(\"branch\"),\n\t\t\tEnforcement: pulumi.String(\"active\"),\n\t\t\tConditions: \u0026github.RepositoryRulesetConditionsArgs{\n\t\t\t\tRefName: \u0026github.RepositoryRulesetConditionsRefNameArgs{\n\t\t\t\t\tIncludes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"~ALL\"),\n\t\t\t\t\t},\n\t\t\t\t\tExcludes: pulumi.StringArray{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tBypassActors: github.RepositoryRulesetBypassActorArray{\n\t\t\t\t\u0026github.RepositoryRulesetBypassActorArgs{\n\t\t\t\t\tActorId: pulumi.Int(13473),\n\t\t\t\t\tActorType: pulumi.String(\"Integration\"),\n\t\t\t\t\tBypassMode: pulumi.String(\"always\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tRules: \u0026github.RepositoryRulesetRulesArgs{\n\t\t\t\tCreation: pulumi.Bool(true),\n\t\t\t\tUpdate: pulumi.Bool(true),\n\t\t\t\tDeletion: pulumi.Bool(true),\n\t\t\t\tRequiredLinearHistory: pulumi.Bool(true),\n\t\t\t\tRequiredSignatures: pulumi.Bool(true),\n\t\t\t\tRequiredDeployments: \u0026github.RepositoryRulesetRulesRequiredDeploymentsArgs{\n\t\t\t\t\tRequiredDeploymentEnvironments: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"test\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryRuleset;\nimport com.pulumi.github.RepositoryRulesetArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetConditionsArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetConditionsRefNameArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetBypassActorArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetRulesArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetRulesRequiredDeploymentsArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"example\")\n .description(\"Example repository\")\n .build());\n\n var exampleRepositoryRuleset = new RepositoryRuleset(\"exampleRepositoryRuleset\", RepositoryRulesetArgs.builder()\n .name(\"example\")\n .repository(example.name())\n .target(\"branch\")\n .enforcement(\"active\")\n .conditions(RepositoryRulesetConditionsArgs.builder()\n .refName(RepositoryRulesetConditionsRefNameArgs.builder()\n .includes(\"~ALL\")\n .excludes()\n .build())\n .build())\n .bypassActors(RepositoryRulesetBypassActorArgs.builder()\n .actorId(13473)\n .actorType(\"Integration\")\n .bypassMode(\"always\")\n .build())\n .rules(RepositoryRulesetRulesArgs.builder()\n .creation(true)\n .update(true)\n .deletion(true)\n .requiredLinearHistory(true)\n .requiredSignatures(true)\n .requiredDeployments(RepositoryRulesetRulesRequiredDeploymentsArgs.builder()\n .requiredDeploymentEnvironments(\"test\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: example\n description: Example repository\n exampleRepositoryRuleset:\n type: github:RepositoryRuleset\n name: example\n properties:\n name: example\n repository: ${example.name}\n target: branch\n enforcement: active\n conditions:\n refName:\n includes:\n - ~ALL\n excludes: []\n bypassActors:\n - actorId: 13473\n actorType: Integration\n bypassMode: always\n rules:\n creation: true\n update: true\n deletion: true\n requiredLinearHistory: true\n requiredSignatures: true\n requiredDeployments:\n requiredDeploymentEnvironments:\n - test\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Rulesets can be imported using the GitHub repository name and ruleset ID e.g.\n\n```sh\n$ pulumi import github:index/repositoryRuleset:RepositoryRuleset example example:12345`\n```\n\n", + "description": "Creates a GitHub repository ruleset.\n\nThis resource allows you to create and manage rulesets on the repository level. When applied, a new ruleset will be created. When destroyed, that ruleset will be removed.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n name: \"example\",\n description: \"Example repository\",\n});\nconst exampleRepositoryRuleset = new github.RepositoryRuleset(\"example\", {\n name: \"example\",\n repository: example.name,\n target: \"branch\",\n enforcement: \"active\",\n conditions: {\n refName: {\n includes: [\"~ALL\"],\n excludes: [],\n },\n },\n bypassActors: [{\n actorId: 13473,\n actorType: \"Integration\",\n bypassMode: \"always\",\n }],\n rules: {\n creation: true,\n update: true,\n deletion: true,\n requiredLinearHistory: true,\n requiredSignatures: true,\n requiredDeployments: {\n requiredDeploymentEnvironments: [\"test\"],\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n name=\"example\",\n description=\"Example repository\")\nexample_repository_ruleset = github.RepositoryRuleset(\"example\",\n name=\"example\",\n repository=example.name,\n target=\"branch\",\n enforcement=\"active\",\n conditions={\n \"ref_name\": {\n \"includes\": [\"~ALL\"],\n \"excludes\": [],\n },\n },\n bypass_actors=[{\n \"actor_id\": 13473,\n \"actor_type\": \"Integration\",\n \"bypass_mode\": \"always\",\n }],\n rules={\n \"creation\": True,\n \"update\": True,\n \"deletion\": True,\n \"required_linear_history\": True,\n \"required_signatures\": True,\n \"required_deployments\": {\n \"required_deployment_environments\": [\"test\"],\n },\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Github.Repository(\"example\", new()\n {\n Name = \"example\",\n Description = \"Example repository\",\n });\n\n var exampleRepositoryRuleset = new Github.RepositoryRuleset(\"example\", new()\n {\n Name = \"example\",\n Repository = example.Name,\n Target = \"branch\",\n Enforcement = \"active\",\n Conditions = new Github.Inputs.RepositoryRulesetConditionsArgs\n {\n RefName = new Github.Inputs.RepositoryRulesetConditionsRefNameArgs\n {\n Includes = new[]\n {\n \"~ALL\",\n },\n Excludes = new() { },\n },\n },\n BypassActors = new[]\n {\n new Github.Inputs.RepositoryRulesetBypassActorArgs\n {\n ActorId = 13473,\n ActorType = \"Integration\",\n BypassMode = \"always\",\n },\n },\n Rules = new Github.Inputs.RepositoryRulesetRulesArgs\n {\n Creation = true,\n Update = true,\n Deletion = true,\n RequiredLinearHistory = true,\n RequiredSignatures = true,\n RequiredDeployments = new Github.Inputs.RepositoryRulesetRulesRequiredDeploymentsArgs\n {\n RequiredDeploymentEnvironments = new[]\n {\n \"test\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDescription: pulumi.String(\"Example repository\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryRuleset(ctx, \"example\", \u0026github.RepositoryRulesetArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tRepository: example.Name,\n\t\t\tTarget: pulumi.String(\"branch\"),\n\t\t\tEnforcement: pulumi.String(\"active\"),\n\t\t\tConditions: \u0026github.RepositoryRulesetConditionsArgs{\n\t\t\t\tRefName: \u0026github.RepositoryRulesetConditionsRefNameArgs{\n\t\t\t\t\tIncludes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"~ALL\"),\n\t\t\t\t\t},\n\t\t\t\t\tExcludes: pulumi.StringArray{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tBypassActors: github.RepositoryRulesetBypassActorArray{\n\t\t\t\t\u0026github.RepositoryRulesetBypassActorArgs{\n\t\t\t\t\tActorId: pulumi.Int(13473),\n\t\t\t\t\tActorType: pulumi.String(\"Integration\"),\n\t\t\t\t\tBypassMode: pulumi.String(\"always\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tRules: \u0026github.RepositoryRulesetRulesArgs{\n\t\t\t\tCreation: pulumi.Bool(true),\n\t\t\t\tUpdate: pulumi.Bool(true),\n\t\t\t\tDeletion: pulumi.Bool(true),\n\t\t\t\tRequiredLinearHistory: pulumi.Bool(true),\n\t\t\t\tRequiredSignatures: pulumi.Bool(true),\n\t\t\t\tRequiredDeployments: \u0026github.RepositoryRulesetRulesRequiredDeploymentsArgs{\n\t\t\t\t\tRequiredDeploymentEnvironments: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"test\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryRuleset;\nimport com.pulumi.github.RepositoryRulesetArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetConditionsArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetConditionsRefNameArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetBypassActorArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetRulesArgs;\nimport com.pulumi.github.inputs.RepositoryRulesetRulesRequiredDeploymentsArgs;\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 var example = new Repository(\"example\", RepositoryArgs.builder()\n .name(\"example\")\n .description(\"Example repository\")\n .build());\n\n var exampleRepositoryRuleset = new RepositoryRuleset(\"exampleRepositoryRuleset\", RepositoryRulesetArgs.builder()\n .name(\"example\")\n .repository(example.name())\n .target(\"branch\")\n .enforcement(\"active\")\n .conditions(RepositoryRulesetConditionsArgs.builder()\n .refName(RepositoryRulesetConditionsRefNameArgs.builder()\n .includes(\"~ALL\")\n .excludes()\n .build())\n .build())\n .bypassActors(RepositoryRulesetBypassActorArgs.builder()\n .actorId(13473)\n .actorType(\"Integration\")\n .bypassMode(\"always\")\n .build())\n .rules(RepositoryRulesetRulesArgs.builder()\n .creation(true)\n .update(true)\n .deletion(true)\n .requiredLinearHistory(true)\n .requiredSignatures(true)\n .requiredDeployments(RepositoryRulesetRulesRequiredDeploymentsArgs.builder()\n .requiredDeploymentEnvironments(\"test\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: github:Repository\n properties:\n name: example\n description: Example repository\n exampleRepositoryRuleset:\n type: github:RepositoryRuleset\n name: example\n properties:\n name: example\n repository: ${example.name}\n target: branch\n enforcement: active\n conditions:\n refName:\n includes:\n - ~ALL\n excludes: []\n bypassActors:\n - actorId: 13473\n actorType: Integration\n bypassMode: always\n rules:\n creation: true\n update: true\n deletion: true\n requiredLinearHistory: true\n requiredSignatures: true\n requiredDeployments:\n requiredDeploymentEnvironments:\n - test\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Repository Rulesets can be imported using the GitHub repository name and ruleset ID e.g.\n\n```sh\n$ pulumi import github:index/repositoryRuleset:RepositoryRuleset example example:12345`\n```\n\n", "properties": { "bypassActors": { "type": "array", @@ -9277,7 +9277,7 @@ } }, "github:index/repositoryWebhook:RepositoryWebhook": { - "description": "This resource allows you to create and manage webhooks for repositories within your\nGitHub organization or personal account.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = new github.Repository(\"repo\", {\n name: \"foo\",\n description: \"Terraform acceptance tests\",\n homepageUrl: \"http://example.com/\",\n visibility: \"public\",\n});\nconst foo = new github.RepositoryWebhook(\"foo\", {\n repository: repo.name,\n configuration: {\n url: \"https://google.de/\",\n contentType: \"form\",\n insecureSsl: false,\n },\n active: false,\n events: [\"issues\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.Repository(\"repo\",\n name=\"foo\",\n description=\"Terraform acceptance tests\",\n homepage_url=\"http://example.com/\",\n visibility=\"public\")\nfoo = github.RepositoryWebhook(\"foo\",\n repository=repo.name,\n configuration=github.RepositoryWebhookConfigurationArgs(\n url=\"https://google.de/\",\n content_type=\"form\",\n insecure_ssl=False,\n ),\n active=False,\n events=[\"issues\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = new Github.Repository(\"repo\", new()\n {\n Name = \"foo\",\n Description = \"Terraform acceptance tests\",\n HomepageUrl = \"http://example.com/\",\n Visibility = \"public\",\n });\n\n var foo = new Github.RepositoryWebhook(\"foo\", new()\n {\n Repository = repo.Name,\n Configuration = new Github.Inputs.RepositoryWebhookConfigurationArgs\n {\n Url = \"https://google.de/\",\n ContentType = \"form\",\n InsecureSsl = false,\n },\n Active = false,\n Events = new[]\n {\n \"issues\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.NewRepository(ctx, \"repo\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"Terraform acceptance tests\"),\n\t\t\tHomepageUrl: pulumi.String(\"http://example.com/\"),\n\t\t\tVisibility: pulumi.String(\"public\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryWebhook(ctx, \"foo\", \u0026github.RepositoryWebhookArgs{\n\t\t\tRepository: repo.Name,\n\t\t\tConfiguration: \u0026github.RepositoryWebhookConfigurationArgs{\n\t\t\t\tUrl: pulumi.String(\"https://google.de/\"),\n\t\t\t\tContentType: pulumi.String(\"form\"),\n\t\t\t\tInsecureSsl: pulumi.Bool(false),\n\t\t\t},\n\t\t\tActive: pulumi.Bool(false),\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"issues\"),\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryWebhook;\nimport com.pulumi.github.RepositoryWebhookArgs;\nimport com.pulumi.github.inputs.RepositoryWebhookConfigurationArgs;\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 var repo = new Repository(\"repo\", RepositoryArgs.builder()\n .name(\"foo\")\n .description(\"Terraform acceptance tests\")\n .homepageUrl(\"http://example.com/\")\n .visibility(\"public\")\n .build());\n\n var foo = new RepositoryWebhook(\"foo\", RepositoryWebhookArgs.builder()\n .repository(repo.name())\n .configuration(RepositoryWebhookConfigurationArgs.builder()\n .url(\"https://google.de/\")\n .contentType(\"form\")\n .insecureSsl(false)\n .build())\n .active(false)\n .events(\"issues\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n repo:\n type: github:Repository\n properties:\n name: foo\n description: Terraform acceptance tests\n homepageUrl: http://example.com/\n visibility: public\n foo:\n type: github:RepositoryWebhook\n properties:\n repository: ${repo.name}\n configuration:\n url: https://google.de/\n contentType: form\n insecureSsl: false\n active: false\n events:\n - issues\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nRepository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character.\nThe `id` of the webhook can be found in the URL of the webhook. For example: `\"https://github.com/foo-org/foo-repo/settings/hooks/14711452\"`.\n\nImporting uses the name of the repository, as well as the ID of the webhook, e.g.\n\n```sh\n$ pulumi import github:index/repositoryWebhook:RepositoryWebhook terraform terraform/11235813\n```\nIf secret is populated in the webhook's configuration, the value will be imported as \"********\".\n\n", + "description": "This resource allows you to create and manage webhooks for repositories within your\nGitHub organization or personal account.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = new github.Repository(\"repo\", {\n name: \"foo\",\n description: \"Terraform acceptance tests\",\n homepageUrl: \"http://example.com/\",\n visibility: \"public\",\n});\nconst foo = new github.RepositoryWebhook(\"foo\", {\n repository: repo.name,\n configuration: {\n url: \"https://google.de/\",\n contentType: \"form\",\n insecureSsl: false,\n },\n active: false,\n events: [\"issues\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.Repository(\"repo\",\n name=\"foo\",\n description=\"Terraform acceptance tests\",\n homepage_url=\"http://example.com/\",\n visibility=\"public\")\nfoo = github.RepositoryWebhook(\"foo\",\n repository=repo.name,\n configuration={\n \"url\": \"https://google.de/\",\n \"content_type\": \"form\",\n \"insecure_ssl\": False,\n },\n active=False,\n events=[\"issues\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var repo = new Github.Repository(\"repo\", new()\n {\n Name = \"foo\",\n Description = \"Terraform acceptance tests\",\n HomepageUrl = \"http://example.com/\",\n Visibility = \"public\",\n });\n\n var foo = new Github.RepositoryWebhook(\"foo\", new()\n {\n Repository = repo.Name,\n Configuration = new Github.Inputs.RepositoryWebhookConfigurationArgs\n {\n Url = \"https://google.de/\",\n ContentType = \"form\",\n InsecureSsl = false,\n },\n Active = false,\n Events = new[]\n {\n \"issues\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.NewRepository(ctx, \"repo\", \u0026github.RepositoryArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"Terraform acceptance tests\"),\n\t\t\tHomepageUrl: pulumi.String(\"http://example.com/\"),\n\t\t\tVisibility: pulumi.String(\"public\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryWebhook(ctx, \"foo\", \u0026github.RepositoryWebhookArgs{\n\t\t\tRepository: repo.Name,\n\t\t\tConfiguration: \u0026github.RepositoryWebhookConfigurationArgs{\n\t\t\t\tUrl: pulumi.String(\"https://google.de/\"),\n\t\t\t\tContentType: pulumi.String(\"form\"),\n\t\t\t\tInsecureSsl: pulumi.Bool(false),\n\t\t\t},\n\t\t\tActive: pulumi.Bool(false),\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"issues\"),\n\t\t\t},\n\t\t})\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.github.Repository;\nimport com.pulumi.github.RepositoryArgs;\nimport com.pulumi.github.RepositoryWebhook;\nimport com.pulumi.github.RepositoryWebhookArgs;\nimport com.pulumi.github.inputs.RepositoryWebhookConfigurationArgs;\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 var repo = new Repository(\"repo\", RepositoryArgs.builder()\n .name(\"foo\")\n .description(\"Terraform acceptance tests\")\n .homepageUrl(\"http://example.com/\")\n .visibility(\"public\")\n .build());\n\n var foo = new RepositoryWebhook(\"foo\", RepositoryWebhookArgs.builder()\n .repository(repo.name())\n .configuration(RepositoryWebhookConfigurationArgs.builder()\n .url(\"https://google.de/\")\n .contentType(\"form\")\n .insecureSsl(false)\n .build())\n .active(false)\n .events(\"issues\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n repo:\n type: github:Repository\n properties:\n name: foo\n description: Terraform acceptance tests\n homepageUrl: http://example.com/\n visibility: public\n foo:\n type: github:RepositoryWebhook\n properties:\n repository: ${repo.name}\n configuration:\n url: https://google.de/\n contentType: form\n insecureSsl: false\n active: false\n events:\n - issues\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nRepository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character.\nThe `id` of the webhook can be found in the URL of the webhook. For example: `\"https://github.com/foo-org/foo-repo/settings/hooks/14711452\"`.\n\nImporting uses the name of the repository, as well as the ID of the webhook, e.g.\n\n```sh\n$ pulumi import github:index/repositoryWebhook:RepositoryWebhook terraform terraform/11235813\n```\nIf secret is populated in the webhook's configuration, the value will be imported as \"********\".\n\n", "properties": { "active": { "type": "boolean", @@ -9519,7 +9519,7 @@ } }, "github:index/teamMembers:TeamMembers": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a user to the organization\nconst membershipForSomeUser = new github.Membership(\"membership_for_some_user\", {\n username: \"SomeUser\",\n role: \"member\",\n});\nconst membershipForAnotherUser = new github.Membership(\"membership_for_another_user\", {\n username: \"AnotherUser\",\n role: \"member\",\n});\nconst someTeam = new github.Team(\"some_team\", {\n name: \"SomeTeam\",\n description: \"Some cool team\",\n});\nconst someTeamMembers = new github.TeamMembers(\"some_team_members\", {\n teamId: someTeam.id,\n members: [\n {\n username: \"SomeUser\",\n role: \"maintainer\",\n },\n {\n username: \"AnotherUser\",\n role: \"member\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a user to the organization\nmembership_for_some_user = github.Membership(\"membership_for_some_user\",\n username=\"SomeUser\",\n role=\"member\")\nmembership_for_another_user = github.Membership(\"membership_for_another_user\",\n username=\"AnotherUser\",\n role=\"member\")\nsome_team = github.Team(\"some_team\",\n name=\"SomeTeam\",\n description=\"Some cool team\")\nsome_team_members = github.TeamMembers(\"some_team_members\",\n team_id=some_team.id,\n members=[\n github.TeamMembersMemberArgs(\n username=\"SomeUser\",\n role=\"maintainer\",\n ),\n github.TeamMembersMemberArgs(\n username=\"AnotherUser\",\n role=\"member\",\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Add a user to the organization\n var membershipForSomeUser = new Github.Membership(\"membership_for_some_user\", new()\n {\n Username = \"SomeUser\",\n Role = \"member\",\n });\n\n var membershipForAnotherUser = new Github.Membership(\"membership_for_another_user\", new()\n {\n Username = \"AnotherUser\",\n Role = \"member\",\n });\n\n var someTeam = new Github.Team(\"some_team\", new()\n {\n Name = \"SomeTeam\",\n Description = \"Some cool team\",\n });\n\n var someTeamMembers = new Github.TeamMembers(\"some_team_members\", new()\n {\n TeamId = someTeam.Id,\n Members = new[]\n {\n new Github.Inputs.TeamMembersMemberArgs\n {\n Username = \"SomeUser\",\n Role = \"maintainer\",\n },\n new Github.Inputs.TeamMembersMemberArgs\n {\n Username = \"AnotherUser\",\n Role = \"member\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Add a user to the organization\n\t\t_, err := github.NewMembership(ctx, \"membership_for_some_user\", \u0026github.MembershipArgs{\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewMembership(ctx, \"membership_for_another_user\", \u0026github.MembershipArgs{\n\t\t\tUsername: pulumi.String(\"AnotherUser\"),\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeTeam, err := github.NewTeam(ctx, \"some_team\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"SomeTeam\"),\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamMembers(ctx, \"some_team_members\", \u0026github.TeamMembersArgs{\n\t\t\tTeamId: someTeam.ID(),\n\t\t\tMembers: github.TeamMembersMemberArray{\n\t\t\t\t\u0026github.TeamMembersMemberArgs{\n\t\t\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t\t\t\tRole: pulumi.String(\"maintainer\"),\n\t\t\t\t},\n\t\t\t\t\u0026github.TeamMembersMemberArgs{\n\t\t\t\t\tUsername: pulumi.String(\"AnotherUser\"),\n\t\t\t\t\tRole: pulumi.String(\"member\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Membership;\nimport com.pulumi.github.MembershipArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.TeamMembers;\nimport com.pulumi.github.TeamMembersArgs;\nimport com.pulumi.github.inputs.TeamMembersMemberArgs;\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 // Add a user to the organization\n var membershipForSomeUser = new Membership(\"membershipForSomeUser\", MembershipArgs.builder()\n .username(\"SomeUser\")\n .role(\"member\")\n .build());\n\n var membershipForAnotherUser = new Membership(\"membershipForAnotherUser\", MembershipArgs.builder()\n .username(\"AnotherUser\")\n .role(\"member\")\n .build());\n\n var someTeam = new Team(\"someTeam\", TeamArgs.builder()\n .name(\"SomeTeam\")\n .description(\"Some cool team\")\n .build());\n\n var someTeamMembers = new TeamMembers(\"someTeamMembers\", TeamMembersArgs.builder()\n .teamId(someTeam.id())\n .members( \n TeamMembersMemberArgs.builder()\n .username(\"SomeUser\")\n .role(\"maintainer\")\n .build(),\n TeamMembersMemberArgs.builder()\n .username(\"AnotherUser\")\n .role(\"member\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Add a user to the organization\n membershipForSomeUser:\n type: github:Membership\n name: membership_for_some_user\n properties:\n username: SomeUser\n role: member\n membershipForAnotherUser:\n type: github:Membership\n name: membership_for_another_user\n properties:\n username: AnotherUser\n role: member\n someTeam:\n type: github:Team\n name: some_team\n properties:\n name: SomeTeam\n description: Some cool team\n someTeamMembers:\n type: github:TeamMembers\n name: some_team_members\n properties:\n teamId: ${someTeam.id}\n members:\n - username: SomeUser\n role: maintainer\n - username: AnotherUser\n role: member\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n~\u003e **Note** Although the team id or team slug can be used it is recommended to use the team id. Using the team slug will result in terraform doing conversions between the team slug and team id. This will cause team members associations to the team to be destroyed and recreated on import.\n\nGitHub Team Membership can be imported using the team ID team id or team slug, e.g.\n\n```sh\n$ pulumi import github:index/teamMembers:TeamMembers some_team 1234567\n```\n\n```sh\n$ pulumi import github:index/teamMembers:TeamMembers some_team Administrators\n```\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a user to the organization\nconst membershipForSomeUser = new github.Membership(\"membership_for_some_user\", {\n username: \"SomeUser\",\n role: \"member\",\n});\nconst membershipForAnotherUser = new github.Membership(\"membership_for_another_user\", {\n username: \"AnotherUser\",\n role: \"member\",\n});\nconst someTeam = new github.Team(\"some_team\", {\n name: \"SomeTeam\",\n description: \"Some cool team\",\n});\nconst someTeamMembers = new github.TeamMembers(\"some_team_members\", {\n teamId: someTeam.id,\n members: [\n {\n username: \"SomeUser\",\n role: \"maintainer\",\n },\n {\n username: \"AnotherUser\",\n role: \"member\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a user to the organization\nmembership_for_some_user = github.Membership(\"membership_for_some_user\",\n username=\"SomeUser\",\n role=\"member\")\nmembership_for_another_user = github.Membership(\"membership_for_another_user\",\n username=\"AnotherUser\",\n role=\"member\")\nsome_team = github.Team(\"some_team\",\n name=\"SomeTeam\",\n description=\"Some cool team\")\nsome_team_members = github.TeamMembers(\"some_team_members\",\n team_id=some_team.id,\n members=[\n {\n \"username\": \"SomeUser\",\n \"role\": \"maintainer\",\n },\n {\n \"username\": \"AnotherUser\",\n \"role\": \"member\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Add a user to the organization\n var membershipForSomeUser = new Github.Membership(\"membership_for_some_user\", new()\n {\n Username = \"SomeUser\",\n Role = \"member\",\n });\n\n var membershipForAnotherUser = new Github.Membership(\"membership_for_another_user\", new()\n {\n Username = \"AnotherUser\",\n Role = \"member\",\n });\n\n var someTeam = new Github.Team(\"some_team\", new()\n {\n Name = \"SomeTeam\",\n Description = \"Some cool team\",\n });\n\n var someTeamMembers = new Github.TeamMembers(\"some_team_members\", new()\n {\n TeamId = someTeam.Id,\n Members = new[]\n {\n new Github.Inputs.TeamMembersMemberArgs\n {\n Username = \"SomeUser\",\n Role = \"maintainer\",\n },\n new Github.Inputs.TeamMembersMemberArgs\n {\n Username = \"AnotherUser\",\n Role = \"member\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Add a user to the organization\n\t\t_, err := github.NewMembership(ctx, \"membership_for_some_user\", \u0026github.MembershipArgs{\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewMembership(ctx, \"membership_for_another_user\", \u0026github.MembershipArgs{\n\t\t\tUsername: pulumi.String(\"AnotherUser\"),\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeTeam, err := github.NewTeam(ctx, \"some_team\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"SomeTeam\"),\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamMembers(ctx, \"some_team_members\", \u0026github.TeamMembersArgs{\n\t\t\tTeamId: someTeam.ID(),\n\t\t\tMembers: github.TeamMembersMemberArray{\n\t\t\t\t\u0026github.TeamMembersMemberArgs{\n\t\t\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t\t\t\tRole: pulumi.String(\"maintainer\"),\n\t\t\t\t},\n\t\t\t\t\u0026github.TeamMembersMemberArgs{\n\t\t\t\t\tUsername: pulumi.String(\"AnotherUser\"),\n\t\t\t\t\tRole: pulumi.String(\"member\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\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.github.Membership;\nimport com.pulumi.github.MembershipArgs;\nimport com.pulumi.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.TeamMembers;\nimport com.pulumi.github.TeamMembersArgs;\nimport com.pulumi.github.inputs.TeamMembersMemberArgs;\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 // Add a user to the organization\n var membershipForSomeUser = new Membership(\"membershipForSomeUser\", MembershipArgs.builder()\n .username(\"SomeUser\")\n .role(\"member\")\n .build());\n\n var membershipForAnotherUser = new Membership(\"membershipForAnotherUser\", MembershipArgs.builder()\n .username(\"AnotherUser\")\n .role(\"member\")\n .build());\n\n var someTeam = new Team(\"someTeam\", TeamArgs.builder()\n .name(\"SomeTeam\")\n .description(\"Some cool team\")\n .build());\n\n var someTeamMembers = new TeamMembers(\"someTeamMembers\", TeamMembersArgs.builder()\n .teamId(someTeam.id())\n .members( \n TeamMembersMemberArgs.builder()\n .username(\"SomeUser\")\n .role(\"maintainer\")\n .build(),\n TeamMembersMemberArgs.builder()\n .username(\"AnotherUser\")\n .role(\"member\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Add a user to the organization\n membershipForSomeUser:\n type: github:Membership\n name: membership_for_some_user\n properties:\n username: SomeUser\n role: member\n membershipForAnotherUser:\n type: github:Membership\n name: membership_for_another_user\n properties:\n username: AnotherUser\n role: member\n someTeam:\n type: github:Team\n name: some_team\n properties:\n name: SomeTeam\n description: Some cool team\n someTeamMembers:\n type: github:TeamMembers\n name: some_team_members\n properties:\n teamId: ${someTeam.id}\n members:\n - username: SomeUser\n role: maintainer\n - username: AnotherUser\n role: member\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n~\u003e **Note** Although the team id or team slug can be used it is recommended to use the team id. Using the team slug will result in terraform doing conversions between the team slug and team id. This will cause team members associations to the team to be destroyed and recreated on import.\n\nGitHub Team Membership can be imported using the team ID team id or team slug, e.g.\n\n```sh\n$ pulumi import github:index/teamMembers:TeamMembers some_team 1234567\n```\n\n```sh\n$ pulumi import github:index/teamMembers:TeamMembers some_team Administrators\n```\n\n", "properties": { "members": { "type": "array", @@ -9711,7 +9711,7 @@ } }, "github:index/teamSettings:TeamSettings": { - "description": "This resource manages the team settings (in particular the request review delegation settings) within the organization\n\nCreating this resource will alter the team Code Review settings.\n\nThe team must both belong to the same organization configured in the provider on GitHub. \n\n\u003e **Note**: This resource relies on the v4 GraphQl GitHub API. If this API is not available, or the Stone Crop schema preview is not available, then this resource will not work as intended.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a repository to the team\nconst someTeam = new github.Team(\"some_team\", {\n name: \"SomeTeam\",\n description: \"Some cool team\",\n});\nconst codeReviewSettings = new github.TeamSettings(\"code_review_settings\", {\n teamId: someTeam.id,\n reviewRequestDelegation: {\n algorithm: \"ROUND_ROBIN\",\n memberCount: 1,\n notify: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a repository to the team\nsome_team = github.Team(\"some_team\",\n name=\"SomeTeam\",\n description=\"Some cool team\")\ncode_review_settings = github.TeamSettings(\"code_review_settings\",\n team_id=some_team.id,\n review_request_delegation=github.TeamSettingsReviewRequestDelegationArgs(\n algorithm=\"ROUND_ROBIN\",\n member_count=1,\n notify=True,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Add a repository to the team\n var someTeam = new Github.Team(\"some_team\", new()\n {\n Name = \"SomeTeam\",\n Description = \"Some cool team\",\n });\n\n var codeReviewSettings = new Github.TeamSettings(\"code_review_settings\", new()\n {\n TeamId = someTeam.Id,\n ReviewRequestDelegation = new Github.Inputs.TeamSettingsReviewRequestDelegationArgs\n {\n Algorithm = \"ROUND_ROBIN\",\n MemberCount = 1,\n Notify = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Add a repository to the team\n\t\tsomeTeam, err := github.NewTeam(ctx, \"some_team\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"SomeTeam\"),\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamSettings(ctx, \"code_review_settings\", \u0026github.TeamSettingsArgs{\n\t\t\tTeamId: someTeam.ID(),\n\t\t\tReviewRequestDelegation: \u0026github.TeamSettingsReviewRequestDelegationArgs{\n\t\t\t\tAlgorithm: pulumi.String(\"ROUND_ROBIN\"),\n\t\t\t\tMemberCount: pulumi.Int(1),\n\t\t\t\tNotify: pulumi.Bool(true),\n\t\t\t},\n\t\t})\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.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.TeamSettings;\nimport com.pulumi.github.TeamSettingsArgs;\nimport com.pulumi.github.inputs.TeamSettingsReviewRequestDelegationArgs;\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 // Add a repository to the team\n var someTeam = new Team(\"someTeam\", TeamArgs.builder()\n .name(\"SomeTeam\")\n .description(\"Some cool team\")\n .build());\n\n var codeReviewSettings = new TeamSettings(\"codeReviewSettings\", TeamSettingsArgs.builder()\n .teamId(someTeam.id())\n .reviewRequestDelegation(TeamSettingsReviewRequestDelegationArgs.builder()\n .algorithm(\"ROUND_ROBIN\")\n .memberCount(1)\n .notify(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Add a repository to the team\n someTeam:\n type: github:Team\n name: some_team\n properties:\n name: SomeTeam\n description: Some cool team\n codeReviewSettings:\n type: github:TeamSettings\n name: code_review_settings\n properties:\n teamId: ${someTeam.id}\n reviewRequestDelegation:\n algorithm: ROUND_ROBIN\n memberCount: 1\n notify: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Teams can be imported using the GitHub team ID, or the team slug e.g.\n\n```sh\n$ pulumi import github:index/teamSettings:TeamSettings code_review_settings 1234567\n```\nor,\n\n```sh\n$ pulumi import github:index/teamSettings:TeamSettings code_review_settings SomeTeam\n```\n", + "description": "This resource manages the team settings (in particular the request review delegation settings) within the organization\n\nCreating this resource will alter the team Code Review settings.\n\nThe team must both belong to the same organization configured in the provider on GitHub. \n\n\u003e **Note**: This resource relies on the v4 GraphQl GitHub API. If this API is not available, or the Stone Crop schema preview is not available, then this resource will not work as intended.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a repository to the team\nconst someTeam = new github.Team(\"some_team\", {\n name: \"SomeTeam\",\n description: \"Some cool team\",\n});\nconst codeReviewSettings = new github.TeamSettings(\"code_review_settings\", {\n teamId: someTeam.id,\n reviewRequestDelegation: {\n algorithm: \"ROUND_ROBIN\",\n memberCount: 1,\n notify: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a repository to the team\nsome_team = github.Team(\"some_team\",\n name=\"SomeTeam\",\n description=\"Some cool team\")\ncode_review_settings = github.TeamSettings(\"code_review_settings\",\n team_id=some_team.id,\n review_request_delegation={\n \"algorithm\": \"ROUND_ROBIN\",\n \"member_count\": 1,\n \"notify\": True,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Add a repository to the team\n var someTeam = new Github.Team(\"some_team\", new()\n {\n Name = \"SomeTeam\",\n Description = \"Some cool team\",\n });\n\n var codeReviewSettings = new Github.TeamSettings(\"code_review_settings\", new()\n {\n TeamId = someTeam.Id,\n ReviewRequestDelegation = new Github.Inputs.TeamSettingsReviewRequestDelegationArgs\n {\n Algorithm = \"ROUND_ROBIN\",\n MemberCount = 1,\n Notify = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v6/go/github\"\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// Add a repository to the team\n\t\tsomeTeam, err := github.NewTeam(ctx, \"some_team\", \u0026github.TeamArgs{\n\t\t\tName: pulumi.String(\"SomeTeam\"),\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamSettings(ctx, \"code_review_settings\", \u0026github.TeamSettingsArgs{\n\t\t\tTeamId: someTeam.ID(),\n\t\t\tReviewRequestDelegation: \u0026github.TeamSettingsReviewRequestDelegationArgs{\n\t\t\t\tAlgorithm: pulumi.String(\"ROUND_ROBIN\"),\n\t\t\t\tMemberCount: pulumi.Int(1),\n\t\t\t\tNotify: pulumi.Bool(true),\n\t\t\t},\n\t\t})\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.github.Team;\nimport com.pulumi.github.TeamArgs;\nimport com.pulumi.github.TeamSettings;\nimport com.pulumi.github.TeamSettingsArgs;\nimport com.pulumi.github.inputs.TeamSettingsReviewRequestDelegationArgs;\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 // Add a repository to the team\n var someTeam = new Team(\"someTeam\", TeamArgs.builder()\n .name(\"SomeTeam\")\n .description(\"Some cool team\")\n .build());\n\n var codeReviewSettings = new TeamSettings(\"codeReviewSettings\", TeamSettingsArgs.builder()\n .teamId(someTeam.id())\n .reviewRequestDelegation(TeamSettingsReviewRequestDelegationArgs.builder()\n .algorithm(\"ROUND_ROBIN\")\n .memberCount(1)\n .notify(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Add a repository to the team\n someTeam:\n type: github:Team\n name: some_team\n properties:\n name: SomeTeam\n description: Some cool team\n codeReviewSettings:\n type: github:TeamSettings\n name: code_review_settings\n properties:\n teamId: ${someTeam.id}\n reviewRequestDelegation:\n algorithm: ROUND_ROBIN\n memberCount: 1\n notify: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Teams can be imported using the GitHub team ID, or the team slug e.g.\n\n```sh\n$ pulumi import github:index/teamSettings:TeamSettings code_review_settings 1234567\n```\nor,\n\n```sh\n$ pulumi import github:index/teamSettings:TeamSettings code_review_settings SomeTeam\n```\n", "properties": { "reviewRequestDelegation": { "$ref": "#/types/github:index/TeamSettingsReviewRequestDelegation:TeamSettingsReviewRequestDelegation", @@ -9774,7 +9774,7 @@ } }, "github:index/teamSyncGroupMapping:TeamSyncGroupMapping": { - "description": "This resource allows you to create and manage Identity Provider (IdP) group connections within your GitHub teams.\nYou must have team synchronization enabled for organizations owned by enterprise accounts.\n\nTo learn more about team synchronization between IdPs and GitHub, please refer to:\nhttps://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleGroups = github.getOrganizationTeamSyncGroups({});\nconst exampleGroupMapping = new github.TeamSyncGroupMapping(\"example_group_mapping\", {\n groups: .map(entry =\u003e ({\n groupId: entry.value.groupId,\n groupName: entry.value.groupName,\n groupDescription: entry.value.groupDescription,\n })),\n teamSlug: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_groups = github.get_organization_team_sync_groups()\nexample_group_mapping = github.TeamSyncGroupMapping(\"example_group_mapping\",\n groups=[github.TeamSyncGroupMappingGroupArgs(\n group_id=entry[\"value\"],\n group_name=entry[\"value\"],\n group_description=entry[\"value\"],\n ) for entry in [{\"key\": k, \"value\": v} for k, v in [g for g in example_groups.groups if g.group_name == \"some_team_group\"]]],\n team_slug=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleGroups = Github.GetOrganizationTeamSyncGroups.Invoke();\n\n var exampleGroupMapping = new Github.TeamSyncGroupMapping(\"example_group_mapping\", new()\n {\n Groups = ,\n TeamSlug = \"example\",\n });\n\n});\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Team Sync Group Mappings can be imported using the GitHub team `slug` e.g.\n\n```sh\n$ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team\n```\n", + "description": "This resource allows you to create and manage Identity Provider (IdP) group connections within your GitHub teams.\nYou must have team synchronization enabled for organizations owned by enterprise accounts.\n\nTo learn more about team synchronization between IdPs and GitHub, please refer to:\nhttps://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleGroups = github.getOrganizationTeamSyncGroups({});\nconst exampleGroupMapping = new github.TeamSyncGroupMapping(\"example_group_mapping\", {\n groups: .map(entry =\u003e ({\n groupId: entry.value.groupId,\n groupName: entry.value.groupName,\n groupDescription: entry.value.groupDescription,\n })),\n teamSlug: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample_groups = github.get_organization_team_sync_groups()\nexample_group_mapping = github.TeamSyncGroupMapping(\"example_group_mapping\",\n groups=[{\n \"group_id\": entry[\"value\"],\n \"group_name\": entry[\"value\"],\n \"group_description\": entry[\"value\"],\n } for entry in [{\"key\": k, \"value\": v} for k, v in [g for g in example_groups.groups if g.group_name == \"some_team_group\"]]],\n team_slug=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleGroups = Github.GetOrganizationTeamSyncGroups.Invoke();\n\n var exampleGroupMapping = new Github.TeamSyncGroupMapping(\"example_group_mapping\", new()\n {\n Groups = ,\n TeamSlug = \"example\",\n });\n\n});\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGitHub Team Sync Group Mappings can be imported using the GitHub team `slug` e.g.\n\n```sh\n$ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team\n```\n", "properties": { "etag": { "type": "string" diff --git a/provider/go.mod b/provider/go.mod index e459033c..7c760c9d 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,8 +7,8 @@ replace github.com/integrations/terraform-provider-github/v6 => ../upstream require ( github.com/integrations/terraform-provider-github/v6 v6.0.0 // => ../upstream github.com/pulumi/providertest v0.0.14 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0 - github.com/pulumi/pulumi/sdk/v3 v3.126.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.0 + github.com/pulumi/pulumi/sdk/v3 v3.128.0 ) // tfinstall was removed from terraform-exec in v0.16.0. @@ -182,7 +182,7 @@ require ( github.com/pulumi/pulumi-java/pkg v0.11.0 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect github.com/pulumi/pulumi-yaml v1.9.1 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.126.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.128.0 // indirect github.com/pulumi/schema-tools v0.2.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect @@ -215,6 +215,7 @@ require ( github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect + github.com/yuin/goldmark v1.7.4 // indirect github.com/zclconf/go-cty v1.14.4 // indirect github.com/zclconf/go-cty-yaml v1.0.3 // indirect go.opencensus.io v0.24.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index 6b4bf095..9feffb0b 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1947,16 +1947,16 @@ github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2p github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= github.com/pulumi/pulumi-java/pkg v0.11.0 h1:Jw9gBvyfmfOMq/EkYDm9+zGPxsDAA8jfeMpHmtZ+1oA= github.com/pulumi/pulumi-java/pkg v0.11.0/go.mod h1:sXAk25P47AQVQL6ilAbFmRNgZykC7og/+87ihnqzFTc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0 h1:0W2Y3Fk7VAWHpjD3FwzVnqWo7g1hD+96C0YDobMnvDU= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0/go.mod h1:QSDiqiCMMbfzrsp3oyRPWgSVE/dkVH5ujxoFappqjdo= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.0 h1:Om0Yw07/5dVABB2ou8+XBCmbp9TUUtDZJEh2B5jPGgI= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.0/go.mod h1:EWGqRo+ogMPty23b6rVUajgJXUDSNXU+WqcZTPlzyEI= 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.9.1 h1:JPeI80M23SPactxgnCFS1casZlSr7ZhAXwSx4H55QQ4= github.com/pulumi/pulumi-yaml v1.9.1/go.mod h1:OH0R34yJxA5u6zjYBN4JXcWoEvfkRoOVWi6viu8buoA= -github.com/pulumi/pulumi/pkg/v3 v3.126.0 h1:XaZU1ehjHN2I5ihkfwxK/UFMDiCDM9FSt2TBnbldAx4= -github.com/pulumi/pulumi/pkg/v3 v3.126.0/go.mod h1:1P4/oK9zceOJUm48QQl/TqjDN68lfsdnTR1FITTFddw= -github.com/pulumi/pulumi/sdk/v3 v3.126.0 h1:6GQVhwG2jgnG7wjRiWgrq0/sU39onctAiBcvTlqb20s= -github.com/pulumi/pulumi/sdk/v3 v3.126.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.128.0 h1:K3qtJYjHg4DkA7LxknY/MoQZ+QHdHQDh/k2njjmjHXM= +github.com/pulumi/pulumi/pkg/v3 v3.128.0/go.mod h1:/spoJXy/mqQ8fBLgXBEbUrAnL7pHdfXOviIo5fZROEY= +github.com/pulumi/pulumi/sdk/v3 v3.128.0 h1:5VPFfygxt6rva0bEYVQZXxsGAo2/D1wsb9erGOtXxzk= +github.com/pulumi/pulumi/sdk/v3 v3.128.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/pulumi/schema-tools v0.2.2 h1:KiH/OP/mFF5XjXcOtrPOZ2Z5Sjtb0mLAaHgjJMcjMi4= github.com/pulumi/schema-tools v0.2.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -2089,6 +2089,8 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.4 h1:BDXOHExt+A7gwPCJgPIIq7ENvceR7we7rOS9TNoLZeg= +github.com/yuin/goldmark v1.7.4/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= diff --git a/sdk/go.mod b/sdk/go.mod index dcb0d33f..06018792 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.126.0 + github.com/pulumi/pulumi/sdk/v3 v3.128.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 7c377224..e3812340 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.126.0 h1:6GQVhwG2jgnG7wjRiWgrq0/sU39onctAiBcvTlqb20s= -github.com/pulumi/pulumi/sdk/v3 v3.126.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/sdk/v3 v3.128.0 h1:5VPFfygxt6rva0bEYVQZXxsGAo2/D1wsb9erGOtXxzk= +github.com/pulumi/pulumi/sdk/v3 v3.128.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= 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 38820fc2..5eb44c9f 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -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.12.0") + implementation("com.pulumi:pulumi:0.14.0") } task sourcesJar(type: Jar) { @@ -150,4 +150,4 @@ if (signingKey) { useInMemoryPgpKeys(signingKey, signingPassword) sign publishing.publications.mainPublication } -} \ No newline at end of file +} diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentSecret.java b/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentSecret.java index 4f26541d..b037bd9a 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentSecret.java @@ -124,7 +124,7 @@ public Output updatedAt() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsEnvironmentSecret(String name) { + public ActionsEnvironmentSecret(java.lang.String name) { this(name, ActionsEnvironmentSecretArgs.Empty); } /** @@ -132,7 +132,7 @@ public ActionsEnvironmentSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsEnvironmentSecret(String name, ActionsEnvironmentSecretArgs args) { + public ActionsEnvironmentSecret(java.lang.String name, ActionsEnvironmentSecretArgs args) { this(name, args, null); } /** @@ -141,15 +141,22 @@ public ActionsEnvironmentSecret(String name, ActionsEnvironmentSecretArgs args) * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsEnvironmentSecret(String name, ActionsEnvironmentSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret", name, args == null ? ActionsEnvironmentSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsEnvironmentSecret(java.lang.String name, ActionsEnvironmentSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsEnvironmentSecret(String name, Output id, @Nullable ActionsEnvironmentSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret", name, state, makeResourceOptions(options, id)); + private ActionsEnvironmentSecret(java.lang.String name, Output id, @Nullable ActionsEnvironmentSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsEnvironmentSecretArgs makeArgs(ActionsEnvironmentSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsEnvironmentSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -169,7 +176,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsEnvironmentSecret get(String name, Output id, @Nullable ActionsEnvironmentSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsEnvironmentSecret get(java.lang.String name, Output id, @Nullable ActionsEnvironmentSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsEnvironmentSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentVariable.java b/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentVariable.java index 3e6a0cca..87c59b25 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentVariable.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsEnvironmentVariable.java @@ -203,7 +203,7 @@ public Output variableName() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsEnvironmentVariable(String name) { + public ActionsEnvironmentVariable(java.lang.String name) { this(name, ActionsEnvironmentVariableArgs.Empty); } /** @@ -211,7 +211,7 @@ public ActionsEnvironmentVariable(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsEnvironmentVariable(String name, ActionsEnvironmentVariableArgs args) { + public ActionsEnvironmentVariable(java.lang.String name, ActionsEnvironmentVariableArgs args) { this(name, args, null); } /** @@ -220,15 +220,22 @@ public ActionsEnvironmentVariable(String name, ActionsEnvironmentVariableArgs ar * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsEnvironmentVariable(String name, ActionsEnvironmentVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable", name, args == null ? ActionsEnvironmentVariableArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsEnvironmentVariable(java.lang.String name, ActionsEnvironmentVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsEnvironmentVariable(String name, Output id, @Nullable ActionsEnvironmentVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable", name, state, makeResourceOptions(options, id)); + private ActionsEnvironmentVariable(java.lang.String name, Output id, @Nullable ActionsEnvironmentVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsEnvironmentVariableArgs makeArgs(ActionsEnvironmentVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsEnvironmentVariableArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -244,7 +251,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsEnvironmentVariable get(String name, Output id, @Nullable ActionsEnvironmentVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsEnvironmentVariable get(java.lang.String name, Output id, @Nullable ActionsEnvironmentVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsEnvironmentVariable(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationOidcSubjectClaimCustomizationTemplate.java b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationOidcSubjectClaimCustomizationTemplate.java index 52a0c20f..309efbd6 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationOidcSubjectClaimCustomizationTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationOidcSubjectClaimCustomizationTemplate.java @@ -89,7 +89,7 @@ public Output> includeClaimKeys() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(String name) { + public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(java.lang.String name) { this(name, ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs.Empty); } /** @@ -97,7 +97,7 @@ public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(String name, ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs args) { + public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(java.lang.String name, ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs args) { this(name, args, null); } /** @@ -106,15 +106,22 @@ public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(String name, Act * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(String name, ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationOidcSubjectClaimCustomizationTemplate:ActionsOrganizationOidcSubjectClaimCustomizationTemplate", name, args == null ? ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsOrganizationOidcSubjectClaimCustomizationTemplate(java.lang.String name, ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationOidcSubjectClaimCustomizationTemplate:ActionsOrganizationOidcSubjectClaimCustomizationTemplate", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsOrganizationOidcSubjectClaimCustomizationTemplate(String name, Output id, @Nullable ActionsOrganizationOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationOidcSubjectClaimCustomizationTemplate:ActionsOrganizationOidcSubjectClaimCustomizationTemplate", name, state, makeResourceOptions(options, id)); + private ActionsOrganizationOidcSubjectClaimCustomizationTemplate(java.lang.String name, Output id, @Nullable ActionsOrganizationOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationOidcSubjectClaimCustomizationTemplate:ActionsOrganizationOidcSubjectClaimCustomizationTemplate", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs makeArgs(ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsOrganizationOidcSubjectClaimCustomizationTemplateArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -130,7 +137,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsOrganizationOidcSubjectClaimCustomizationTemplate get(String name, Output id, @Nullable ActionsOrganizationOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsOrganizationOidcSubjectClaimCustomizationTemplate get(java.lang.String name, Output id, @Nullable ActionsOrganizationOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsOrganizationOidcSubjectClaimCustomizationTemplate(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationPermissions.java b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationPermissions.java index ecef05e5..111b5b56 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationPermissions.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationPermissions.java @@ -43,12 +43,12 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var example = new Repository("example", RepositoryArgs.builder() * .name("my-repository") * .build()); @@ -59,8 +59,8 @@ * .allowedActionsConfig(ActionsOrganizationPermissionsAllowedActionsConfigArgs.builder() * .githubOwnedAllowed(true) * .patternsAlloweds( - * "actions/cache{@literal @}*", - * "actions/checkout{@literal @}*") + * "actions/cache}{@literal @}{@code *", + * "actions/checkout}{@literal @}{@code *") * .verifiedAllowed(true) * .build()) * .enabledRepositoriesConfig(ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs.builder() @@ -68,8 +68,8 @@ * .build()) * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -146,7 +146,7 @@ public Output> * * @param name The _unique_ name of the resulting resource. */ - public ActionsOrganizationPermissions(String name) { + public ActionsOrganizationPermissions(java.lang.String name) { this(name, ActionsOrganizationPermissionsArgs.Empty); } /** @@ -154,7 +154,7 @@ public ActionsOrganizationPermissions(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsOrganizationPermissions(String name, ActionsOrganizationPermissionsArgs args) { + public ActionsOrganizationPermissions(java.lang.String name, ActionsOrganizationPermissionsArgs args) { this(name, args, null); } /** @@ -163,15 +163,22 @@ public ActionsOrganizationPermissions(String name, ActionsOrganizationPermission * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsOrganizationPermissions(String name, ActionsOrganizationPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions", name, args == null ? ActionsOrganizationPermissionsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsOrganizationPermissions(java.lang.String name, ActionsOrganizationPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private ActionsOrganizationPermissions(java.lang.String name, Output id, @Nullable ActionsOrganizationPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions", name, state, makeResourceOptions(options, id), false); } - private ActionsOrganizationPermissions(String name, Output id, @Nullable ActionsOrganizationPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions", name, state, makeResourceOptions(options, id)); + private static ActionsOrganizationPermissionsArgs makeArgs(ActionsOrganizationPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsOrganizationPermissionsArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -187,7 +194,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsOrganizationPermissions get(String name, Output id, @Nullable ActionsOrganizationPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsOrganizationPermissions get(java.lang.String name, Output id, @Nullable ActionsOrganizationPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsOrganizationPermissions(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecret.java b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecret.java index 82ee1f19..92f05ba7 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecret.java @@ -137,7 +137,7 @@ public Output visibility() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsOrganizationSecret(String name) { + public ActionsOrganizationSecret(java.lang.String name) { this(name, ActionsOrganizationSecretArgs.Empty); } /** @@ -145,7 +145,7 @@ public ActionsOrganizationSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsOrganizationSecret(String name, ActionsOrganizationSecretArgs args) { + public ActionsOrganizationSecret(java.lang.String name, ActionsOrganizationSecretArgs args) { this(name, args, null); } /** @@ -154,15 +154,22 @@ public ActionsOrganizationSecret(String name, ActionsOrganizationSecretArgs args * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsOrganizationSecret(String name, ActionsOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationSecret:ActionsOrganizationSecret", name, args == null ? ActionsOrganizationSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsOrganizationSecret(java.lang.String name, ActionsOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationSecret:ActionsOrganizationSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsOrganizationSecret(String name, Output id, @Nullable ActionsOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationSecret:ActionsOrganizationSecret", name, state, makeResourceOptions(options, id)); + private ActionsOrganizationSecret(java.lang.String name, Output id, @Nullable ActionsOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationSecret:ActionsOrganizationSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsOrganizationSecretArgs makeArgs(ActionsOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsOrganizationSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -182,7 +189,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsOrganizationSecret get(String name, Output id, @Nullable ActionsOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsOrganizationSecret get(java.lang.String name, Output id, @Nullable ActionsOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsOrganizationSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecretRepositories.java b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecretRepositories.java index a3af7dee..fdc6329f 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecretRepositories.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationSecretRepositories.java @@ -107,7 +107,7 @@ public Output> selectedRepositoryIds() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsOrganizationSecretRepositories(String name) { + public ActionsOrganizationSecretRepositories(java.lang.String name) { this(name, ActionsOrganizationSecretRepositoriesArgs.Empty); } /** @@ -115,7 +115,7 @@ public ActionsOrganizationSecretRepositories(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsOrganizationSecretRepositories(String name, ActionsOrganizationSecretRepositoriesArgs args) { + public ActionsOrganizationSecretRepositories(java.lang.String name, ActionsOrganizationSecretRepositoriesArgs args) { this(name, args, null); } /** @@ -124,15 +124,22 @@ public ActionsOrganizationSecretRepositories(String name, ActionsOrganizationSec * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsOrganizationSecretRepositories(String name, ActionsOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories", name, args == null ? ActionsOrganizationSecretRepositoriesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsOrganizationSecretRepositories(java.lang.String name, ActionsOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsOrganizationSecretRepositories(String name, Output id, @Nullable ActionsOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories", name, state, makeResourceOptions(options, id)); + private ActionsOrganizationSecretRepositories(java.lang.String name, Output id, @Nullable ActionsOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsOrganizationSecretRepositoriesArgs makeArgs(ActionsOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsOrganizationSecretRepositoriesArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -148,7 +155,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsOrganizationSecretRepositories get(String name, Output id, @Nullable ActionsOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsOrganizationSecretRepositories get(java.lang.String name, Output id, @Nullable ActionsOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsOrganizationSecretRepositories(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationVariable.java b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationVariable.java index 9dc8bd30..a9f67c30 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationVariable.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsOrganizationVariable.java @@ -201,7 +201,7 @@ public Output visibility() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsOrganizationVariable(String name) { + public ActionsOrganizationVariable(java.lang.String name) { this(name, ActionsOrganizationVariableArgs.Empty); } /** @@ -209,7 +209,7 @@ public ActionsOrganizationVariable(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsOrganizationVariable(String name, ActionsOrganizationVariableArgs args) { + public ActionsOrganizationVariable(java.lang.String name, ActionsOrganizationVariableArgs args) { this(name, args, null); } /** @@ -218,15 +218,22 @@ public ActionsOrganizationVariable(String name, ActionsOrganizationVariableArgs * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsOrganizationVariable(String name, ActionsOrganizationVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationVariable:ActionsOrganizationVariable", name, args == null ? ActionsOrganizationVariableArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsOrganizationVariable(java.lang.String name, ActionsOrganizationVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationVariable:ActionsOrganizationVariable", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsOrganizationVariable(String name, Output id, @Nullable ActionsOrganizationVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsOrganizationVariable:ActionsOrganizationVariable", name, state, makeResourceOptions(options, id)); + private ActionsOrganizationVariable(java.lang.String name, Output id, @Nullable ActionsOrganizationVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsOrganizationVariable:ActionsOrganizationVariable", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsOrganizationVariableArgs makeArgs(ActionsOrganizationVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsOrganizationVariableArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -242,7 +249,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsOrganizationVariable get(String name, Output id, @Nullable ActionsOrganizationVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsOrganizationVariable get(java.lang.String name, Output id, @Nullable ActionsOrganizationVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsOrganizationVariable(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryAccessLevel.java b/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryAccessLevel.java index 658de105..48cf190a 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryAccessLevel.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryAccessLevel.java @@ -104,7 +104,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsRepositoryAccessLevel(String name) { + public ActionsRepositoryAccessLevel(java.lang.String name) { this(name, ActionsRepositoryAccessLevelArgs.Empty); } /** @@ -112,7 +112,7 @@ public ActionsRepositoryAccessLevel(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsRepositoryAccessLevel(String name, ActionsRepositoryAccessLevelArgs args) { + public ActionsRepositoryAccessLevel(java.lang.String name, ActionsRepositoryAccessLevelArgs args) { this(name, args, null); } /** @@ -121,15 +121,22 @@ public ActionsRepositoryAccessLevel(String name, ActionsRepositoryAccessLevelArg * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsRepositoryAccessLevel(String name, ActionsRepositoryAccessLevelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRepositoryAccessLevel:ActionsRepositoryAccessLevel", name, args == null ? ActionsRepositoryAccessLevelArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsRepositoryAccessLevel(java.lang.String name, ActionsRepositoryAccessLevelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRepositoryAccessLevel:ActionsRepositoryAccessLevel", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsRepositoryAccessLevel(String name, Output id, @Nullable ActionsRepositoryAccessLevelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRepositoryAccessLevel:ActionsRepositoryAccessLevel", name, state, makeResourceOptions(options, id)); + private ActionsRepositoryAccessLevel(java.lang.String name, Output id, @Nullable ActionsRepositoryAccessLevelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRepositoryAccessLevel:ActionsRepositoryAccessLevel", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsRepositoryAccessLevelArgs makeArgs(ActionsRepositoryAccessLevelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsRepositoryAccessLevelArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -145,7 +152,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsRepositoryAccessLevel get(String name, Output id, @Nullable ActionsRepositoryAccessLevelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsRepositoryAccessLevel get(java.lang.String name, Output id, @Nullable ActionsRepositoryAccessLevelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsRepositoryAccessLevel(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryOidcSubjectClaimCustomizationTemplate.java b/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryOidcSubjectClaimCustomizationTemplate.java index 6aad0168..e69ec445 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryOidcSubjectClaimCustomizationTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryOidcSubjectClaimCustomizationTemplate.java @@ -137,7 +137,7 @@ public Output useDefault() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(String name) { + public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(java.lang.String name) { this(name, ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs.Empty); } /** @@ -145,7 +145,7 @@ public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(String name, ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs args) { + public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(java.lang.String name, ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs args) { this(name, args, null); } /** @@ -154,15 +154,22 @@ public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(String name, Actio * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(String name, ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRepositoryOidcSubjectClaimCustomizationTemplate:ActionsRepositoryOidcSubjectClaimCustomizationTemplate", name, args == null ? ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsRepositoryOidcSubjectClaimCustomizationTemplate(java.lang.String name, ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRepositoryOidcSubjectClaimCustomizationTemplate:ActionsRepositoryOidcSubjectClaimCustomizationTemplate", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsRepositoryOidcSubjectClaimCustomizationTemplate(String name, Output id, @Nullable ActionsRepositoryOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRepositoryOidcSubjectClaimCustomizationTemplate:ActionsRepositoryOidcSubjectClaimCustomizationTemplate", name, state, makeResourceOptions(options, id)); + private ActionsRepositoryOidcSubjectClaimCustomizationTemplate(java.lang.String name, Output id, @Nullable ActionsRepositoryOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRepositoryOidcSubjectClaimCustomizationTemplate:ActionsRepositoryOidcSubjectClaimCustomizationTemplate", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs makeArgs(ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -178,7 +185,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsRepositoryOidcSubjectClaimCustomizationTemplate get(String name, Output id, @Nullable ActionsRepositoryOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsRepositoryOidcSubjectClaimCustomizationTemplate get(java.lang.String name, Output id, @Nullable ActionsRepositoryOidcSubjectClaimCustomizationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsRepositoryOidcSubjectClaimCustomizationTemplate(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryPermissions.java b/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryPermissions.java index f705ac31..570a9278 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryPermissions.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsRepositoryPermissions.java @@ -42,12 +42,12 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var example = new Repository("example", RepositoryArgs.builder() * .name("my-repository") * .build()); @@ -57,15 +57,15 @@ * .allowedActionsConfig(ActionsRepositoryPermissionsAllowedActionsConfigArgs.builder() * .githubOwnedAllowed(true) * .patternsAlloweds( - * "actions/cache{@literal @}*", - * "actions/checkout{@literal @}*") + * "actions/cache}{@literal @}{@code *", + * "actions/checkout}{@literal @}{@code *") * .verifiedAllowed(true) * .build()) * .repository(example.name()) * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -142,7 +142,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsRepositoryPermissions(String name) { + public ActionsRepositoryPermissions(java.lang.String name) { this(name, ActionsRepositoryPermissionsArgs.Empty); } /** @@ -150,7 +150,7 @@ public ActionsRepositoryPermissions(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsRepositoryPermissions(String name, ActionsRepositoryPermissionsArgs args) { + public ActionsRepositoryPermissions(java.lang.String name, ActionsRepositoryPermissionsArgs args) { this(name, args, null); } /** @@ -159,15 +159,22 @@ public ActionsRepositoryPermissions(String name, ActionsRepositoryPermissionsArg * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsRepositoryPermissions(String name, ActionsRepositoryPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions", name, args == null ? ActionsRepositoryPermissionsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsRepositoryPermissions(java.lang.String name, ActionsRepositoryPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private ActionsRepositoryPermissions(java.lang.String name, Output id, @Nullable ActionsRepositoryPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions", name, state, makeResourceOptions(options, id), false); } - private ActionsRepositoryPermissions(String name, Output id, @Nullable ActionsRepositoryPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions", name, state, makeResourceOptions(options, id)); + private static ActionsRepositoryPermissionsArgs makeArgs(ActionsRepositoryPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsRepositoryPermissionsArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -183,7 +190,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsRepositoryPermissions get(String name, Output id, @Nullable ActionsRepositoryPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsRepositoryPermissions get(java.lang.String name, Output id, @Nullable ActionsRepositoryPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsRepositoryPermissions(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsRunnerGroup.java b/sdk/java/src/main/java/com/pulumi/github/ActionsRunnerGroup.java index 016ee7d8..aed34932 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsRunnerGroup.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsRunnerGroup.java @@ -234,7 +234,7 @@ public Output visibility() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsRunnerGroup(String name) { + public ActionsRunnerGroup(java.lang.String name) { this(name, ActionsRunnerGroupArgs.Empty); } /** @@ -242,7 +242,7 @@ public ActionsRunnerGroup(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsRunnerGroup(String name, ActionsRunnerGroupArgs args) { + public ActionsRunnerGroup(java.lang.String name, ActionsRunnerGroupArgs args) { this(name, args, null); } /** @@ -251,15 +251,22 @@ public ActionsRunnerGroup(String name, ActionsRunnerGroupArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsRunnerGroup(String name, ActionsRunnerGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRunnerGroup:ActionsRunnerGroup", name, args == null ? ActionsRunnerGroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsRunnerGroup(java.lang.String name, ActionsRunnerGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRunnerGroup:ActionsRunnerGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsRunnerGroup(String name, Output id, @Nullable ActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsRunnerGroup:ActionsRunnerGroup", name, state, makeResourceOptions(options, id)); + private ActionsRunnerGroup(java.lang.String name, Output id, @Nullable ActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsRunnerGroup:ActionsRunnerGroup", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsRunnerGroupArgs makeArgs(ActionsRunnerGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsRunnerGroupArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -275,7 +282,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsRunnerGroup get(String name, Output id, @Nullable ActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsRunnerGroup get(java.lang.String name, Output id, @Nullable ActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsRunnerGroup(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsSecret.java b/sdk/java/src/main/java/com/pulumi/github/ActionsSecret.java index 391e0eab..bb14fde2 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsSecret.java @@ -120,7 +120,7 @@ public Output updatedAt() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsSecret(String name) { + public ActionsSecret(java.lang.String name) { this(name, ActionsSecretArgs.Empty); } /** @@ -128,7 +128,7 @@ public ActionsSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsSecret(String name, ActionsSecretArgs args) { + public ActionsSecret(java.lang.String name, ActionsSecretArgs args) { this(name, args, null); } /** @@ -137,15 +137,22 @@ public ActionsSecret(String name, ActionsSecretArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsSecret(String name, ActionsSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsSecret:ActionsSecret", name, args == null ? ActionsSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsSecret(java.lang.String name, ActionsSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsSecret:ActionsSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsSecret(String name, Output id, @Nullable ActionsSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsSecret:ActionsSecret", name, state, makeResourceOptions(options, id)); + private ActionsSecret(java.lang.String name, Output id, @Nullable ActionsSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsSecret:ActionsSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsSecretArgs makeArgs(ActionsSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -165,7 +172,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsSecret get(String name, Output id, @Nullable ActionsSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsSecret get(java.lang.String name, Output id, @Nullable ActionsSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ActionsVariable.java b/sdk/java/src/main/java/com/pulumi/github/ActionsVariable.java index 5b659749..90aca12f 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ActionsVariable.java +++ b/sdk/java/src/main/java/com/pulumi/github/ActionsVariable.java @@ -140,7 +140,7 @@ public Output variableName() { * * @param name The _unique_ name of the resulting resource. */ - public ActionsVariable(String name) { + public ActionsVariable(java.lang.String name) { this(name, ActionsVariableArgs.Empty); } /** @@ -148,7 +148,7 @@ public ActionsVariable(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ActionsVariable(String name, ActionsVariableArgs args) { + public ActionsVariable(java.lang.String name, ActionsVariableArgs args) { this(name, args, null); } /** @@ -157,15 +157,22 @@ public ActionsVariable(String name, ActionsVariableArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ActionsVariable(String name, ActionsVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsVariable:ActionsVariable", name, args == null ? ActionsVariableArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ActionsVariable(java.lang.String name, ActionsVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsVariable:ActionsVariable", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ActionsVariable(String name, Output id, @Nullable ActionsVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/actionsVariable:ActionsVariable", name, state, makeResourceOptions(options, id)); + private ActionsVariable(java.lang.String name, Output id, @Nullable ActionsVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/actionsVariable:ActionsVariable", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ActionsVariableArgs makeArgs(ActionsVariableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionsVariableArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -181,7 +188,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ActionsVariable get(String name, Output id, @Nullable ActionsVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ActionsVariable get(java.lang.String name, Output id, @Nullable ActionsVariableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ActionsVariable(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepositories.java b/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepositories.java index 6ca4529e..d4f9fabc 100644 --- a/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepositories.java +++ b/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepositories.java @@ -76,7 +76,7 @@ public Output> selectedRepositories() { * * @param name The _unique_ name of the resulting resource. */ - public AppInstallationRepositories(String name) { + public AppInstallationRepositories(java.lang.String name) { this(name, AppInstallationRepositoriesArgs.Empty); } /** @@ -84,7 +84,7 @@ public AppInstallationRepositories(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public AppInstallationRepositories(String name, AppInstallationRepositoriesArgs args) { + public AppInstallationRepositories(java.lang.String name, AppInstallationRepositoriesArgs args) { this(name, args, null); } /** @@ -93,15 +93,22 @@ public AppInstallationRepositories(String name, AppInstallationRepositoriesArgs * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public AppInstallationRepositories(String name, AppInstallationRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/appInstallationRepositories:AppInstallationRepositories", name, args == null ? AppInstallationRepositoriesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public AppInstallationRepositories(java.lang.String name, AppInstallationRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/appInstallationRepositories:AppInstallationRepositories", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private AppInstallationRepositories(String name, Output id, @Nullable AppInstallationRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/appInstallationRepositories:AppInstallationRepositories", name, state, makeResourceOptions(options, id)); + private AppInstallationRepositories(java.lang.String name, Output id, @Nullable AppInstallationRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/appInstallationRepositories:AppInstallationRepositories", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static AppInstallationRepositoriesArgs makeArgs(AppInstallationRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AppInstallationRepositoriesArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -117,7 +124,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static AppInstallationRepositories get(String name, Output id, @Nullable AppInstallationRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static AppInstallationRepositories get(java.lang.String name, Output id, @Nullable AppInstallationRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AppInstallationRepositories(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepository.java b/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepository.java index 2832129e..4af11c5b 100644 --- a/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepository.java +++ b/sdk/java/src/main/java/com/pulumi/github/AppInstallationRepository.java @@ -121,7 +121,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public AppInstallationRepository(String name) { + public AppInstallationRepository(java.lang.String name) { this(name, AppInstallationRepositoryArgs.Empty); } /** @@ -129,7 +129,7 @@ public AppInstallationRepository(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public AppInstallationRepository(String name, AppInstallationRepositoryArgs args) { + public AppInstallationRepository(java.lang.String name, AppInstallationRepositoryArgs args) { this(name, args, null); } /** @@ -138,15 +138,22 @@ public AppInstallationRepository(String name, AppInstallationRepositoryArgs args * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public AppInstallationRepository(String name, AppInstallationRepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/appInstallationRepository:AppInstallationRepository", name, args == null ? AppInstallationRepositoryArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public AppInstallationRepository(java.lang.String name, AppInstallationRepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/appInstallationRepository:AppInstallationRepository", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private AppInstallationRepository(String name, Output id, @Nullable AppInstallationRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/appInstallationRepository:AppInstallationRepository", name, state, makeResourceOptions(options, id)); + private AppInstallationRepository(java.lang.String name, Output id, @Nullable AppInstallationRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/appInstallationRepository:AppInstallationRepository", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static AppInstallationRepositoryArgs makeArgs(AppInstallationRepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AppInstallationRepositoryArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -162,7 +169,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static AppInstallationRepository get(String name, Output id, @Nullable AppInstallationRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static AppInstallationRepository get(java.lang.String name, Output id, @Nullable AppInstallationRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AppInstallationRepository(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/Branch.java b/sdk/java/src/main/java/com/pulumi/github/Branch.java index 6b29a10f..641b4629 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Branch.java +++ b/sdk/java/src/main/java/com/pulumi/github/Branch.java @@ -181,7 +181,7 @@ public Output sourceSha() { * * @param name The _unique_ name of the resulting resource. */ - public Branch(String name) { + public Branch(java.lang.String name) { this(name, BranchArgs.Empty); } /** @@ -189,7 +189,7 @@ public Branch(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Branch(String name, BranchArgs args) { + public Branch(java.lang.String name, BranchArgs args) { this(name, args, null); } /** @@ -198,15 +198,22 @@ public Branch(String name, BranchArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Branch(String name, BranchArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branch:Branch", name, args == null ? BranchArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Branch(java.lang.String name, BranchArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branch:Branch", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Branch(String name, Output id, @Nullable BranchState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branch:Branch", name, state, makeResourceOptions(options, id)); + private Branch(java.lang.String name, Output id, @Nullable BranchState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branch:Branch", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static BranchArgs makeArgs(BranchArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BranchArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -222,7 +229,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Branch get(String name, Output id, @Nullable BranchState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Branch get(java.lang.String name, Output id, @Nullable BranchState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Branch(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/BranchDefault.java b/sdk/java/src/main/java/com/pulumi/github/BranchDefault.java index d67a9d66..d63e2f91 100644 --- a/sdk/java/src/main/java/com/pulumi/github/BranchDefault.java +++ b/sdk/java/src/main/java/com/pulumi/github/BranchDefault.java @@ -184,7 +184,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public BranchDefault(String name) { + public BranchDefault(java.lang.String name) { this(name, BranchDefaultArgs.Empty); } /** @@ -192,7 +192,7 @@ public BranchDefault(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public BranchDefault(String name, BranchDefaultArgs args) { + public BranchDefault(java.lang.String name, BranchDefaultArgs args) { this(name, args, null); } /** @@ -201,15 +201,22 @@ public BranchDefault(String name, BranchDefaultArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public BranchDefault(String name, BranchDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branchDefault:BranchDefault", name, args == null ? BranchDefaultArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public BranchDefault(java.lang.String name, BranchDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branchDefault:BranchDefault", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private BranchDefault(String name, Output id, @Nullable BranchDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branchDefault:BranchDefault", name, state, makeResourceOptions(options, id)); + private BranchDefault(java.lang.String name, Output id, @Nullable BranchDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branchDefault:BranchDefault", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static BranchDefaultArgs makeArgs(BranchDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BranchDefaultArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -225,7 +232,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static BranchDefault get(String name, Output id, @Nullable BranchDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static BranchDefault get(java.lang.String name, Output id, @Nullable BranchDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new BranchDefault(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/BranchProtection.java b/sdk/java/src/main/java/com/pulumi/github/BranchProtection.java index dbb67c35..56fafcd9 100644 --- a/sdk/java/src/main/java/com/pulumi/github/BranchProtection.java +++ b/sdk/java/src/main/java/com/pulumi/github/BranchProtection.java @@ -311,7 +311,7 @@ public Output>> restrictPushes() { * * @param name The _unique_ name of the resulting resource. */ - public BranchProtection(String name) { + public BranchProtection(java.lang.String name) { this(name, BranchProtectionArgs.Empty); } /** @@ -319,7 +319,7 @@ public BranchProtection(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public BranchProtection(String name, BranchProtectionArgs args) { + public BranchProtection(java.lang.String name, BranchProtectionArgs args) { this(name, args, null); } /** @@ -328,15 +328,22 @@ public BranchProtection(String name, BranchProtectionArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public BranchProtection(String name, BranchProtectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branchProtection:BranchProtection", name, args == null ? BranchProtectionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public BranchProtection(java.lang.String name, BranchProtectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branchProtection:BranchProtection", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private BranchProtection(String name, Output id, @Nullable BranchProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branchProtection:BranchProtection", name, state, makeResourceOptions(options, id)); + private BranchProtection(java.lang.String name, Output id, @Nullable BranchProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branchProtection:BranchProtection", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static BranchProtectionArgs makeArgs(BranchProtectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BranchProtectionArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -352,7 +359,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static BranchProtection get(String name, Output id, @Nullable BranchProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static BranchProtection get(java.lang.String name, Output id, @Nullable BranchProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new BranchProtection(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/BranchProtectionV3.java b/sdk/java/src/main/java/com/pulumi/github/BranchProtectionV3.java index 2932bdbf..0b3de3a6 100644 --- a/sdk/java/src/main/java/com/pulumi/github/BranchProtectionV3.java +++ b/sdk/java/src/main/java/com/pulumi/github/BranchProtectionV3.java @@ -282,7 +282,7 @@ public Output> restrictions() { * * @param name The _unique_ name of the resulting resource. */ - public BranchProtectionV3(String name) { + public BranchProtectionV3(java.lang.String name) { this(name, BranchProtectionV3Args.Empty); } /** @@ -290,7 +290,7 @@ public BranchProtectionV3(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public BranchProtectionV3(String name, BranchProtectionV3Args args) { + public BranchProtectionV3(java.lang.String name, BranchProtectionV3Args args) { this(name, args, null); } /** @@ -299,15 +299,22 @@ public BranchProtectionV3(String name, BranchProtectionV3Args args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public BranchProtectionV3(String name, BranchProtectionV3Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branchProtectionV3:BranchProtectionV3", name, args == null ? BranchProtectionV3Args.Empty : args, makeResourceOptions(options, Codegen.empty())); + public BranchProtectionV3(java.lang.String name, BranchProtectionV3Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branchProtectionV3:BranchProtectionV3", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private BranchProtectionV3(String name, Output id, @Nullable BranchProtectionV3State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/branchProtectionV3:BranchProtectionV3", name, state, makeResourceOptions(options, id)); + private BranchProtectionV3(java.lang.String name, Output id, @Nullable BranchProtectionV3State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/branchProtectionV3:BranchProtectionV3", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static BranchProtectionV3Args makeArgs(BranchProtectionV3Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BranchProtectionV3Args.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -323,7 +330,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static BranchProtectionV3 get(String name, Output id, @Nullable BranchProtectionV3State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static BranchProtectionV3 get(java.lang.String name, Output id, @Nullable BranchProtectionV3State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new BranchProtectionV3(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecret.java b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecret.java index 2f88c556..263abfea 100644 --- a/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecret.java @@ -139,7 +139,7 @@ public Output visibility() { * * @param name The _unique_ name of the resulting resource. */ - public CodespacesOrganizationSecret(String name) { + public CodespacesOrganizationSecret(java.lang.String name) { this(name, CodespacesOrganizationSecretArgs.Empty); } /** @@ -147,7 +147,7 @@ public CodespacesOrganizationSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public CodespacesOrganizationSecret(String name, CodespacesOrganizationSecretArgs args) { + public CodespacesOrganizationSecret(java.lang.String name, CodespacesOrganizationSecretArgs args) { this(name, args, null); } /** @@ -156,15 +156,22 @@ public CodespacesOrganizationSecret(String name, CodespacesOrganizationSecretArg * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public CodespacesOrganizationSecret(String name, CodespacesOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, args == null ? CodespacesOrganizationSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public CodespacesOrganizationSecret(java.lang.String name, CodespacesOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private CodespacesOrganizationSecret(String name, Output id, @Nullable CodespacesOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, state, makeResourceOptions(options, id)); + private CodespacesOrganizationSecret(java.lang.String name, Output id, @Nullable CodespacesOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static CodespacesOrganizationSecretArgs makeArgs(CodespacesOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CodespacesOrganizationSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -184,7 +191,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static CodespacesOrganizationSecret get(String name, Output id, @Nullable CodespacesOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static CodespacesOrganizationSecret get(java.lang.String name, Output id, @Nullable CodespacesOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CodespacesOrganizationSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecretRepositories.java b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecretRepositories.java index 2d69e872..fc2659c7 100644 --- a/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecretRepositories.java +++ b/sdk/java/src/main/java/com/pulumi/github/CodespacesOrganizationSecretRepositories.java @@ -108,7 +108,7 @@ public Output> selectedRepositoryIds() { * * @param name The _unique_ name of the resulting resource. */ - public CodespacesOrganizationSecretRepositories(String name) { + public CodespacesOrganizationSecretRepositories(java.lang.String name) { this(name, CodespacesOrganizationSecretRepositoriesArgs.Empty); } /** @@ -116,7 +116,7 @@ public CodespacesOrganizationSecretRepositories(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public CodespacesOrganizationSecretRepositories(String name, CodespacesOrganizationSecretRepositoriesArgs args) { + public CodespacesOrganizationSecretRepositories(java.lang.String name, CodespacesOrganizationSecretRepositoriesArgs args) { this(name, args, null); } /** @@ -125,15 +125,22 @@ public CodespacesOrganizationSecretRepositories(String name, CodespacesOrganizat * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public CodespacesOrganizationSecretRepositories(String name, CodespacesOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesOrganizationSecretRepositories:CodespacesOrganizationSecretRepositories", name, args == null ? CodespacesOrganizationSecretRepositoriesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public CodespacesOrganizationSecretRepositories(java.lang.String name, CodespacesOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesOrganizationSecretRepositories:CodespacesOrganizationSecretRepositories", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private CodespacesOrganizationSecretRepositories(String name, Output id, @Nullable CodespacesOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesOrganizationSecretRepositories:CodespacesOrganizationSecretRepositories", name, state, makeResourceOptions(options, id)); + private CodespacesOrganizationSecretRepositories(java.lang.String name, Output id, @Nullable CodespacesOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesOrganizationSecretRepositories:CodespacesOrganizationSecretRepositories", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static CodespacesOrganizationSecretRepositoriesArgs makeArgs(CodespacesOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CodespacesOrganizationSecretRepositoriesArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -149,7 +156,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static CodespacesOrganizationSecretRepositories get(String name, Output id, @Nullable CodespacesOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static CodespacesOrganizationSecretRepositories get(java.lang.String name, Output id, @Nullable CodespacesOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CodespacesOrganizationSecretRepositories(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/CodespacesSecret.java b/sdk/java/src/main/java/com/pulumi/github/CodespacesSecret.java index 04dc727d..ace1360f 100644 --- a/sdk/java/src/main/java/com/pulumi/github/CodespacesSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/CodespacesSecret.java @@ -120,7 +120,7 @@ public Output updatedAt() { * * @param name The _unique_ name of the resulting resource. */ - public CodespacesSecret(String name) { + public CodespacesSecret(java.lang.String name) { this(name, CodespacesSecretArgs.Empty); } /** @@ -128,7 +128,7 @@ public CodespacesSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public CodespacesSecret(String name, CodespacesSecretArgs args) { + public CodespacesSecret(java.lang.String name, CodespacesSecretArgs args) { this(name, args, null); } /** @@ -137,15 +137,22 @@ public CodespacesSecret(String name, CodespacesSecretArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public CodespacesSecret(String name, CodespacesSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesSecret:CodespacesSecret", name, args == null ? CodespacesSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public CodespacesSecret(java.lang.String name, CodespacesSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesSecret:CodespacesSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private CodespacesSecret(String name, Output id, @Nullable CodespacesSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesSecret:CodespacesSecret", name, state, makeResourceOptions(options, id)); + private CodespacesSecret(java.lang.String name, Output id, @Nullable CodespacesSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesSecret:CodespacesSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static CodespacesSecretArgs makeArgs(CodespacesSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CodespacesSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -165,7 +172,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static CodespacesSecret get(String name, Output id, @Nullable CodespacesSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static CodespacesSecret get(java.lang.String name, Output id, @Nullable CodespacesSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CodespacesSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/CodespacesUserSecret.java b/sdk/java/src/main/java/com/pulumi/github/CodespacesUserSecret.java index 061f826d..ff5f3af8 100644 --- a/sdk/java/src/main/java/com/pulumi/github/CodespacesUserSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/CodespacesUserSecret.java @@ -123,7 +123,7 @@ public Output updatedAt() { * * @param name The _unique_ name of the resulting resource. */ - public CodespacesUserSecret(String name) { + public CodespacesUserSecret(java.lang.String name) { this(name, CodespacesUserSecretArgs.Empty); } /** @@ -131,7 +131,7 @@ public CodespacesUserSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public CodespacesUserSecret(String name, CodespacesUserSecretArgs args) { + public CodespacesUserSecret(java.lang.String name, CodespacesUserSecretArgs args) { this(name, args, null); } /** @@ -140,15 +140,22 @@ public CodespacesUserSecret(String name, CodespacesUserSecretArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public CodespacesUserSecret(String name, CodespacesUserSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesUserSecret:CodespacesUserSecret", name, args == null ? CodespacesUserSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public CodespacesUserSecret(java.lang.String name, CodespacesUserSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesUserSecret:CodespacesUserSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private CodespacesUserSecret(String name, Output id, @Nullable CodespacesUserSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/codespacesUserSecret:CodespacesUserSecret", name, state, makeResourceOptions(options, id)); + private CodespacesUserSecret(java.lang.String name, Output id, @Nullable CodespacesUserSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/codespacesUserSecret:CodespacesUserSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static CodespacesUserSecretArgs makeArgs(CodespacesUserSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CodespacesUserSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -168,7 +175,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static CodespacesUserSecret get(String name, Output id, @Nullable CodespacesUserSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static CodespacesUserSecret get(java.lang.String name, Output id, @Nullable CodespacesUserSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CodespacesUserSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecret.java b/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecret.java index 0174f764..d61e4082 100644 --- a/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecret.java @@ -139,7 +139,7 @@ public Output visibility() { * * @param name The _unique_ name of the resulting resource. */ - public DependabotOrganizationSecret(String name) { + public DependabotOrganizationSecret(java.lang.String name) { this(name, DependabotOrganizationSecretArgs.Empty); } /** @@ -147,7 +147,7 @@ public DependabotOrganizationSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public DependabotOrganizationSecret(String name, DependabotOrganizationSecretArgs args) { + public DependabotOrganizationSecret(java.lang.String name, DependabotOrganizationSecretArgs args) { this(name, args, null); } /** @@ -156,15 +156,22 @@ public DependabotOrganizationSecret(String name, DependabotOrganizationSecretArg * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public DependabotOrganizationSecret(String name, DependabotOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/dependabotOrganizationSecret:DependabotOrganizationSecret", name, args == null ? DependabotOrganizationSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public DependabotOrganizationSecret(java.lang.String name, DependabotOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/dependabotOrganizationSecret:DependabotOrganizationSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private DependabotOrganizationSecret(String name, Output id, @Nullable DependabotOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/dependabotOrganizationSecret:DependabotOrganizationSecret", name, state, makeResourceOptions(options, id)); + private DependabotOrganizationSecret(java.lang.String name, Output id, @Nullable DependabotOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/dependabotOrganizationSecret:DependabotOrganizationSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static DependabotOrganizationSecretArgs makeArgs(DependabotOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DependabotOrganizationSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -184,7 +191,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static DependabotOrganizationSecret get(String name, Output id, @Nullable DependabotOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static DependabotOrganizationSecret get(java.lang.String name, Output id, @Nullable DependabotOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DependabotOrganizationSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecretRepositories.java b/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecretRepositories.java index 16d04b55..e89f2891 100644 --- a/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecretRepositories.java +++ b/sdk/java/src/main/java/com/pulumi/github/DependabotOrganizationSecretRepositories.java @@ -115,7 +115,7 @@ public Output> selectedRepositoryIds() { * * @param name The _unique_ name of the resulting resource. */ - public DependabotOrganizationSecretRepositories(String name) { + public DependabotOrganizationSecretRepositories(java.lang.String name) { this(name, DependabotOrganizationSecretRepositoriesArgs.Empty); } /** @@ -123,7 +123,7 @@ public DependabotOrganizationSecretRepositories(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public DependabotOrganizationSecretRepositories(String name, DependabotOrganizationSecretRepositoriesArgs args) { + public DependabotOrganizationSecretRepositories(java.lang.String name, DependabotOrganizationSecretRepositoriesArgs args) { this(name, args, null); } /** @@ -132,15 +132,22 @@ public DependabotOrganizationSecretRepositories(String name, DependabotOrganizat * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public DependabotOrganizationSecretRepositories(String name, DependabotOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories", name, args == null ? DependabotOrganizationSecretRepositoriesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public DependabotOrganizationSecretRepositories(java.lang.String name, DependabotOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private DependabotOrganizationSecretRepositories(String name, Output id, @Nullable DependabotOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories", name, state, makeResourceOptions(options, id)); + private DependabotOrganizationSecretRepositories(java.lang.String name, Output id, @Nullable DependabotOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static DependabotOrganizationSecretRepositoriesArgs makeArgs(DependabotOrganizationSecretRepositoriesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DependabotOrganizationSecretRepositoriesArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -156,7 +163,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static DependabotOrganizationSecretRepositories get(String name, Output id, @Nullable DependabotOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static DependabotOrganizationSecretRepositories get(java.lang.String name, Output id, @Nullable DependabotOrganizationSecretRepositoriesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DependabotOrganizationSecretRepositories(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/DependabotSecret.java b/sdk/java/src/main/java/com/pulumi/github/DependabotSecret.java index e75ba529..d0558725 100644 --- a/sdk/java/src/main/java/com/pulumi/github/DependabotSecret.java +++ b/sdk/java/src/main/java/com/pulumi/github/DependabotSecret.java @@ -120,7 +120,7 @@ public Output updatedAt() { * * @param name The _unique_ name of the resulting resource. */ - public DependabotSecret(String name) { + public DependabotSecret(java.lang.String name) { this(name, DependabotSecretArgs.Empty); } /** @@ -128,7 +128,7 @@ public DependabotSecret(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public DependabotSecret(String name, DependabotSecretArgs args) { + public DependabotSecret(java.lang.String name, DependabotSecretArgs args) { this(name, args, null); } /** @@ -137,15 +137,22 @@ public DependabotSecret(String name, DependabotSecretArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public DependabotSecret(String name, DependabotSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/dependabotSecret:DependabotSecret", name, args == null ? DependabotSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public DependabotSecret(java.lang.String name, DependabotSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/dependabotSecret:DependabotSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private DependabotSecret(String name, Output id, @Nullable DependabotSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/dependabotSecret:DependabotSecret", name, state, makeResourceOptions(options, id)); + private DependabotSecret(java.lang.String name, Output id, @Nullable DependabotSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/dependabotSecret:DependabotSecret", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static DependabotSecretArgs makeArgs(DependabotSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DependabotSecretArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -165,7 +172,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static DependabotSecret get(String name, Output id, @Nullable DependabotSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static DependabotSecret get(java.lang.String name, Output id, @Nullable DependabotSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DependabotSecret(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/EmuGroupMapping.java b/sdk/java/src/main/java/com/pulumi/github/EmuGroupMapping.java index d50f13a7..a2c78313 100644 --- a/sdk/java/src/main/java/com/pulumi/github/EmuGroupMapping.java +++ b/sdk/java/src/main/java/com/pulumi/github/EmuGroupMapping.java @@ -103,7 +103,7 @@ public Output teamSlug() { * * @param name The _unique_ name of the resulting resource. */ - public EmuGroupMapping(String name) { + public EmuGroupMapping(java.lang.String name) { this(name, EmuGroupMappingArgs.Empty); } /** @@ -111,7 +111,7 @@ public EmuGroupMapping(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public EmuGroupMapping(String name, EmuGroupMappingArgs args) { + public EmuGroupMapping(java.lang.String name, EmuGroupMappingArgs args) { this(name, args, null); } /** @@ -120,15 +120,22 @@ public EmuGroupMapping(String name, EmuGroupMappingArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public EmuGroupMapping(String name, EmuGroupMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/emuGroupMapping:EmuGroupMapping", name, args == null ? EmuGroupMappingArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public EmuGroupMapping(java.lang.String name, EmuGroupMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/emuGroupMapping:EmuGroupMapping", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private EmuGroupMapping(String name, Output id, @Nullable EmuGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/emuGroupMapping:EmuGroupMapping", name, state, makeResourceOptions(options, id)); + private EmuGroupMapping(java.lang.String name, Output id, @Nullable EmuGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/emuGroupMapping:EmuGroupMapping", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static EmuGroupMappingArgs makeArgs(EmuGroupMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EmuGroupMappingArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -144,7 +151,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static EmuGroupMapping get(String name, Output id, @Nullable EmuGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static EmuGroupMapping get(java.lang.String name, Output id, @Nullable EmuGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new EmuGroupMapping(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsPermissions.java b/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsPermissions.java index 9f1047b3..77a027dd 100644 --- a/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsPermissions.java +++ b/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsPermissions.java @@ -43,12 +43,12 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * final var example-org = GithubFunctions.getOrganization(GetOrganizationArgs.builder() * .name("my-org") * .build()); @@ -60,8 +60,8 @@ * .allowedActionsConfig(EnterpriseActionsPermissionsAllowedActionsConfigArgs.builder() * .githubOwnedAllowed(true) * .patternsAlloweds( - * "actions/cache{@literal @}*", - * "actions/checkout{@literal @}*") + * "actions/cache}{@literal @}{@code *", + * "actions/checkout}{@literal @}{@code *") * .verifiedAllowed(true) * .build()) * .enabledOrganizationsConfig(EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs.builder() @@ -69,8 +69,8 @@ * .build()) * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -161,7 +161,7 @@ public Output enterpriseSlug() { * * @param name The _unique_ name of the resulting resource. */ - public EnterpriseActionsPermissions(String name) { + public EnterpriseActionsPermissions(java.lang.String name) { this(name, EnterpriseActionsPermissionsArgs.Empty); } /** @@ -169,7 +169,7 @@ public EnterpriseActionsPermissions(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public EnterpriseActionsPermissions(String name, EnterpriseActionsPermissionsArgs args) { + public EnterpriseActionsPermissions(java.lang.String name, EnterpriseActionsPermissionsArgs args) { this(name, args, null); } /** @@ -178,15 +178,22 @@ public EnterpriseActionsPermissions(String name, EnterpriseActionsPermissionsArg * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public EnterpriseActionsPermissions(String name, EnterpriseActionsPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions", name, args == null ? EnterpriseActionsPermissionsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public EnterpriseActionsPermissions(java.lang.String name, EnterpriseActionsPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private EnterpriseActionsPermissions(java.lang.String name, Output id, @Nullable EnterpriseActionsPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions", name, state, makeResourceOptions(options, id), false); } - private EnterpriseActionsPermissions(String name, Output id, @Nullable EnterpriseActionsPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions", name, state, makeResourceOptions(options, id)); + private static EnterpriseActionsPermissionsArgs makeArgs(EnterpriseActionsPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EnterpriseActionsPermissionsArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -202,7 +209,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static EnterpriseActionsPermissions get(String name, Output id, @Nullable EnterpriseActionsPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static EnterpriseActionsPermissions get(java.lang.String name, Output id, @Nullable EnterpriseActionsPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new EnterpriseActionsPermissions(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsRunnerGroup.java b/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsRunnerGroup.java index 5b5e6adf..35d16a54 100644 --- a/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsRunnerGroup.java +++ b/sdk/java/src/main/java/com/pulumi/github/EnterpriseActionsRunnerGroup.java @@ -44,12 +44,12 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * final var enterprise = GithubFunctions.getEnterprise(GetEnterpriseArgs.builder() * .slug("my-enterprise") * .build()); @@ -57,7 +57,7 @@ * var enterpriseOrganization = new EnterpriseOrganization("enterpriseOrganization", EnterpriseOrganizationArgs.builder() * .enterpriseId(enterprise.applyValue(getEnterpriseResult -> getEnterpriseResult.id())) * .name("my-organization") - * .billingEmail("octocat{@literal @}octo.cat") + * .billingEmail("octocat}{@literal @}{@code octo.cat") * .adminLogins("octocat") * .build()); * @@ -68,11 +68,11 @@ * .visibility("selected") * .selectedOrganizationIds(enterpriseOrganization.databaseId()) * .restrictedToWorkflows(true) - * .selectedWorkflows("my-organization/my-repo/.github/workflows/cool-workflow.yaml{@literal @}refs/tags/v1") + * .selectedWorkflows("my-organization/my-repo/.github/workflows/cool-workflow.yaml}{@literal @}{@code refs/tags/v1") * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -247,7 +247,7 @@ public Output visibility() { * * @param name The _unique_ name of the resulting resource. */ - public EnterpriseActionsRunnerGroup(String name) { + public EnterpriseActionsRunnerGroup(java.lang.String name) { this(name, EnterpriseActionsRunnerGroupArgs.Empty); } /** @@ -255,7 +255,7 @@ public EnterpriseActionsRunnerGroup(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public EnterpriseActionsRunnerGroup(String name, EnterpriseActionsRunnerGroupArgs args) { + public EnterpriseActionsRunnerGroup(java.lang.String name, EnterpriseActionsRunnerGroupArgs args) { this(name, args, null); } /** @@ -264,15 +264,22 @@ public EnterpriseActionsRunnerGroup(String name, EnterpriseActionsRunnerGroupArg * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public EnterpriseActionsRunnerGroup(String name, EnterpriseActionsRunnerGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/enterpriseActionsRunnerGroup:EnterpriseActionsRunnerGroup", name, args == null ? EnterpriseActionsRunnerGroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public EnterpriseActionsRunnerGroup(java.lang.String name, EnterpriseActionsRunnerGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/enterpriseActionsRunnerGroup:EnterpriseActionsRunnerGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private EnterpriseActionsRunnerGroup(java.lang.String name, Output id, @Nullable EnterpriseActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/enterpriseActionsRunnerGroup:EnterpriseActionsRunnerGroup", name, state, makeResourceOptions(options, id), false); } - private EnterpriseActionsRunnerGroup(String name, Output id, @Nullable EnterpriseActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/enterpriseActionsRunnerGroup:EnterpriseActionsRunnerGroup", name, state, makeResourceOptions(options, id)); + private static EnterpriseActionsRunnerGroupArgs makeArgs(EnterpriseActionsRunnerGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EnterpriseActionsRunnerGroupArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -288,7 +295,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static EnterpriseActionsRunnerGroup get(String name, Output id, @Nullable EnterpriseActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static EnterpriseActionsRunnerGroup get(java.lang.String name, Output id, @Nullable EnterpriseActionsRunnerGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new EnterpriseActionsRunnerGroup(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/EnterpriseOrganization.java b/sdk/java/src/main/java/com/pulumi/github/EnterpriseOrganization.java index 251a5393..23871be7 100644 --- a/sdk/java/src/main/java/com/pulumi/github/EnterpriseOrganization.java +++ b/sdk/java/src/main/java/com/pulumi/github/EnterpriseOrganization.java @@ -38,23 +38,23 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var org = new EnterpriseOrganization("org", EnterpriseOrganizationArgs.builder() * .enterpriseId(enterprise.id()) * .name("some-awesome-org") * .displayName("Some Awesome Org") * .description("Organization created with terraform") - * .billingEmail("jon{@literal @}winteriscoming.com") + * .billingEmail("jon}{@literal @}{@code winteriscoming.com") * .adminLogins("jon-snow") * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -173,7 +173,7 @@ public Output name() { * * @param name The _unique_ name of the resulting resource. */ - public EnterpriseOrganization(String name) { + public EnterpriseOrganization(java.lang.String name) { this(name, EnterpriseOrganizationArgs.Empty); } /** @@ -181,7 +181,7 @@ public EnterpriseOrganization(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public EnterpriseOrganization(String name, EnterpriseOrganizationArgs args) { + public EnterpriseOrganization(java.lang.String name, EnterpriseOrganizationArgs args) { this(name, args, null); } /** @@ -190,15 +190,22 @@ public EnterpriseOrganization(String name, EnterpriseOrganizationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public EnterpriseOrganization(String name, EnterpriseOrganizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/enterpriseOrganization:EnterpriseOrganization", name, args == null ? EnterpriseOrganizationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public EnterpriseOrganization(java.lang.String name, EnterpriseOrganizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/enterpriseOrganization:EnterpriseOrganization", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private EnterpriseOrganization(java.lang.String name, Output id, @Nullable EnterpriseOrganizationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/enterpriseOrganization:EnterpriseOrganization", name, state, makeResourceOptions(options, id), false); } - private EnterpriseOrganization(String name, Output id, @Nullable EnterpriseOrganizationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/enterpriseOrganization:EnterpriseOrganization", name, state, makeResourceOptions(options, id)); + private static EnterpriseOrganizationArgs makeArgs(EnterpriseOrganizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EnterpriseOrganizationArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -214,7 +221,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static EnterpriseOrganization get(String name, Output id, @Nullable EnterpriseOrganizationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static EnterpriseOrganization get(java.lang.String name, Output id, @Nullable EnterpriseOrganizationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new EnterpriseOrganization(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/Issue.java b/sdk/java/src/main/java/com/pulumi/github/Issue.java index 800c1c77..d82f92a4 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Issue.java +++ b/sdk/java/src/main/java/com/pulumi/github/Issue.java @@ -264,7 +264,7 @@ public Output title() { * * @param name The _unique_ name of the resulting resource. */ - public Issue(String name) { + public Issue(java.lang.String name) { this(name, IssueArgs.Empty); } /** @@ -272,7 +272,7 @@ public Issue(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Issue(String name, IssueArgs args) { + public Issue(java.lang.String name, IssueArgs args) { this(name, args, null); } /** @@ -281,15 +281,22 @@ public Issue(String name, IssueArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Issue(String name, IssueArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/issue:Issue", name, args == null ? IssueArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Issue(java.lang.String name, IssueArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/issue:Issue", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Issue(String name, Output id, @Nullable IssueState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/issue:Issue", name, state, makeResourceOptions(options, id)); + private Issue(java.lang.String name, Output id, @Nullable IssueState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/issue:Issue", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IssueArgs makeArgs(IssueArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IssueArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -305,7 +312,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Issue get(String name, Output id, @Nullable IssueState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Issue get(java.lang.String name, Output id, @Nullable IssueState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Issue(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/IssueLabel.java b/sdk/java/src/main/java/com/pulumi/github/IssueLabel.java index 00eeae45..56ac6bda 100644 --- a/sdk/java/src/main/java/com/pulumi/github/IssueLabel.java +++ b/sdk/java/src/main/java/com/pulumi/github/IssueLabel.java @@ -145,7 +145,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public IssueLabel(String name) { + public IssueLabel(java.lang.String name) { this(name, IssueLabelArgs.Empty); } /** @@ -153,7 +153,7 @@ public IssueLabel(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public IssueLabel(String name, IssueLabelArgs args) { + public IssueLabel(java.lang.String name, IssueLabelArgs args) { this(name, args, null); } /** @@ -162,15 +162,22 @@ public IssueLabel(String name, IssueLabelArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public IssueLabel(String name, IssueLabelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/issueLabel:IssueLabel", name, args == null ? IssueLabelArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public IssueLabel(java.lang.String name, IssueLabelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/issueLabel:IssueLabel", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private IssueLabel(String name, Output id, @Nullable IssueLabelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/issueLabel:IssueLabel", name, state, makeResourceOptions(options, id)); + private IssueLabel(java.lang.String name, Output id, @Nullable IssueLabelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/issueLabel:IssueLabel", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IssueLabelArgs makeArgs(IssueLabelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IssueLabelArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -186,7 +193,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static IssueLabel get(String name, Output id, @Nullable IssueLabelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static IssueLabel get(java.lang.String name, Output id, @Nullable IssueLabelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new IssueLabel(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/IssueLabels.java b/sdk/java/src/main/java/com/pulumi/github/IssueLabels.java index 2fa23f20..e1053d1c 100644 --- a/sdk/java/src/main/java/com/pulumi/github/IssueLabels.java +++ b/sdk/java/src/main/java/com/pulumi/github/IssueLabels.java @@ -118,7 +118,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public IssueLabels(String name) { + public IssueLabels(java.lang.String name) { this(name, IssueLabelsArgs.Empty); } /** @@ -126,7 +126,7 @@ public IssueLabels(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public IssueLabels(String name, IssueLabelsArgs args) { + public IssueLabels(java.lang.String name, IssueLabelsArgs args) { this(name, args, null); } /** @@ -135,15 +135,22 @@ public IssueLabels(String name, IssueLabelsArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public IssueLabels(String name, IssueLabelsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/issueLabels:IssueLabels", name, args == null ? IssueLabelsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public IssueLabels(java.lang.String name, IssueLabelsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/issueLabels:IssueLabels", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private IssueLabels(String name, Output id, @Nullable IssueLabelsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/issueLabels:IssueLabels", name, state, makeResourceOptions(options, id)); + private IssueLabels(java.lang.String name, Output id, @Nullable IssueLabelsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/issueLabels:IssueLabels", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IssueLabelsArgs makeArgs(IssueLabelsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IssueLabelsArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -159,7 +166,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static IssueLabels get(String name, Output id, @Nullable IssueLabelsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static IssueLabels get(java.lang.String name, Output id, @Nullable IssueLabelsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new IssueLabels(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/Membership.java b/sdk/java/src/main/java/com/pulumi/github/Membership.java index 64c517c3..406c1213 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Membership.java +++ b/sdk/java/src/main/java/com/pulumi/github/Membership.java @@ -133,7 +133,7 @@ public Output username() { * * @param name The _unique_ name of the resulting resource. */ - public Membership(String name) { + public Membership(java.lang.String name) { this(name, MembershipArgs.Empty); } /** @@ -141,7 +141,7 @@ public Membership(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Membership(String name, MembershipArgs args) { + public Membership(java.lang.String name, MembershipArgs args) { this(name, args, null); } /** @@ -150,15 +150,22 @@ public Membership(String name, MembershipArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Membership(String name, MembershipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/membership:Membership", name, args == null ? MembershipArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Membership(java.lang.String name, MembershipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/membership:Membership", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Membership(String name, Output id, @Nullable MembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/membership:Membership", name, state, makeResourceOptions(options, id)); + private Membership(java.lang.String name, Output id, @Nullable MembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/membership:Membership", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static MembershipArgs makeArgs(MembershipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MembershipArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -174,7 +181,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Membership get(String name, Output id, @Nullable MembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Membership get(java.lang.String name, Output id, @Nullable MembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Membership(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/OrganizationBlock.java b/sdk/java/src/main/java/com/pulumi/github/OrganizationBlock.java index fc1936b4..d9c50571 100644 --- a/sdk/java/src/main/java/com/pulumi/github/OrganizationBlock.java +++ b/sdk/java/src/main/java/com/pulumi/github/OrganizationBlock.java @@ -87,7 +87,7 @@ public Output username() { * * @param name The _unique_ name of the resulting resource. */ - public OrganizationBlock(String name) { + public OrganizationBlock(java.lang.String name) { this(name, OrganizationBlockArgs.Empty); } /** @@ -95,7 +95,7 @@ public OrganizationBlock(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrganizationBlock(String name, OrganizationBlockArgs args) { + public OrganizationBlock(java.lang.String name, OrganizationBlockArgs args) { this(name, args, null); } /** @@ -104,15 +104,22 @@ public OrganizationBlock(String name, OrganizationBlockArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrganizationBlock(String name, OrganizationBlockArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationBlock:OrganizationBlock", name, args == null ? OrganizationBlockArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrganizationBlock(java.lang.String name, OrganizationBlockArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationBlock:OrganizationBlock", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OrganizationBlock(String name, Output id, @Nullable OrganizationBlockState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationBlock:OrganizationBlock", name, state, makeResourceOptions(options, id)); + private OrganizationBlock(java.lang.String name, Output id, @Nullable OrganizationBlockState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationBlock:OrganizationBlock", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OrganizationBlockArgs makeArgs(OrganizationBlockArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrganizationBlockArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -128,7 +135,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrganizationBlock get(String name, Output id, @Nullable OrganizationBlockState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrganizationBlock get(java.lang.String name, Output id, @Nullable OrganizationBlockState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrganizationBlock(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/OrganizationCustomRole.java b/sdk/java/src/main/java/com/pulumi/github/OrganizationCustomRole.java index 9a24f8e4..4b847222 100644 --- a/sdk/java/src/main/java/com/pulumi/github/OrganizationCustomRole.java +++ b/sdk/java/src/main/java/com/pulumi/github/OrganizationCustomRole.java @@ -150,7 +150,7 @@ public Output> permissions() { * * @param name The _unique_ name of the resulting resource. */ - public OrganizationCustomRole(String name) { + public OrganizationCustomRole(java.lang.String name) { this(name, OrganizationCustomRoleArgs.Empty); } /** @@ -158,7 +158,7 @@ public OrganizationCustomRole(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrganizationCustomRole(String name, OrganizationCustomRoleArgs args) { + public OrganizationCustomRole(java.lang.String name, OrganizationCustomRoleArgs args) { this(name, args, null); } /** @@ -167,15 +167,22 @@ public OrganizationCustomRole(String name, OrganizationCustomRoleArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrganizationCustomRole(String name, OrganizationCustomRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationCustomRole:OrganizationCustomRole", name, args == null ? OrganizationCustomRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrganizationCustomRole(java.lang.String name, OrganizationCustomRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationCustomRole:OrganizationCustomRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OrganizationCustomRole(String name, Output id, @Nullable OrganizationCustomRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationCustomRole:OrganizationCustomRole", name, state, makeResourceOptions(options, id)); + private OrganizationCustomRole(java.lang.String name, Output id, @Nullable OrganizationCustomRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationCustomRole:OrganizationCustomRole", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OrganizationCustomRoleArgs makeArgs(OrganizationCustomRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrganizationCustomRoleArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -191,7 +198,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrganizationCustomRole get(String name, Output id, @Nullable OrganizationCustomRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrganizationCustomRole get(java.lang.String name, Output id, @Nullable OrganizationCustomRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrganizationCustomRole(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/OrganizationProject.java b/sdk/java/src/main/java/com/pulumi/github/OrganizationProject.java index 37c29d71..51c21dc9 100644 --- a/sdk/java/src/main/java/com/pulumi/github/OrganizationProject.java +++ b/sdk/java/src/main/java/com/pulumi/github/OrganizationProject.java @@ -109,7 +109,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public OrganizationProject(String name) { + public OrganizationProject(java.lang.String name) { this(name, OrganizationProjectArgs.Empty); } /** @@ -117,7 +117,7 @@ public OrganizationProject(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrganizationProject(String name, @Nullable OrganizationProjectArgs args) { + public OrganizationProject(java.lang.String name, @Nullable OrganizationProjectArgs args) { this(name, args, null); } /** @@ -126,15 +126,22 @@ public OrganizationProject(String name, @Nullable OrganizationProjectArgs args) * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrganizationProject(String name, @Nullable OrganizationProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationProject:OrganizationProject", name, args == null ? OrganizationProjectArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrganizationProject(java.lang.String name, @Nullable OrganizationProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationProject:OrganizationProject", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OrganizationProject(String name, Output id, @Nullable OrganizationProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationProject:OrganizationProject", name, state, makeResourceOptions(options, id)); + private OrganizationProject(java.lang.String name, Output id, @Nullable OrganizationProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationProject:OrganizationProject", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OrganizationProjectArgs makeArgs(@Nullable OrganizationProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrganizationProjectArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -150,7 +157,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrganizationProject get(String name, Output id, @Nullable OrganizationProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrganizationProject get(java.lang.String name, Output id, @Nullable OrganizationProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrganizationProject(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/OrganizationRuleset.java b/sdk/java/src/main/java/com/pulumi/github/OrganizationRuleset.java index 74757ad7..3ab1bc84 100644 --- a/sdk/java/src/main/java/com/pulumi/github/OrganizationRuleset.java +++ b/sdk/java/src/main/java/com/pulumi/github/OrganizationRuleset.java @@ -232,7 +232,7 @@ public Output target() { * * @param name The _unique_ name of the resulting resource. */ - public OrganizationRuleset(String name) { + public OrganizationRuleset(java.lang.String name) { this(name, OrganizationRulesetArgs.Empty); } /** @@ -240,7 +240,7 @@ public OrganizationRuleset(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrganizationRuleset(String name, OrganizationRulesetArgs args) { + public OrganizationRuleset(java.lang.String name, OrganizationRulesetArgs args) { this(name, args, null); } /** @@ -249,15 +249,22 @@ public OrganizationRuleset(String name, OrganizationRulesetArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrganizationRuleset(String name, OrganizationRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationRuleset:OrganizationRuleset", name, args == null ? OrganizationRulesetArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrganizationRuleset(java.lang.String name, OrganizationRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationRuleset:OrganizationRuleset", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OrganizationRuleset(String name, Output id, @Nullable OrganizationRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationRuleset:OrganizationRuleset", name, state, makeResourceOptions(options, id)); + private OrganizationRuleset(java.lang.String name, Output id, @Nullable OrganizationRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationRuleset:OrganizationRuleset", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OrganizationRulesetArgs makeArgs(OrganizationRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrganizationRulesetArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -273,7 +280,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrganizationRuleset get(String name, Output id, @Nullable OrganizationRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrganizationRuleset get(java.lang.String name, Output id, @Nullable OrganizationRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrganizationRuleset(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/OrganizationSecurityManager.java b/sdk/java/src/main/java/com/pulumi/github/OrganizationSecurityManager.java index d7e4d592..aaa44861 100644 --- a/sdk/java/src/main/java/com/pulumi/github/OrganizationSecurityManager.java +++ b/sdk/java/src/main/java/com/pulumi/github/OrganizationSecurityManager.java @@ -86,7 +86,7 @@ public Output teamSlug() { * * @param name The _unique_ name of the resulting resource. */ - public OrganizationSecurityManager(String name) { + public OrganizationSecurityManager(java.lang.String name) { this(name, OrganizationSecurityManagerArgs.Empty); } /** @@ -94,7 +94,7 @@ public OrganizationSecurityManager(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrganizationSecurityManager(String name, OrganizationSecurityManagerArgs args) { + public OrganizationSecurityManager(java.lang.String name, OrganizationSecurityManagerArgs args) { this(name, args, null); } /** @@ -103,15 +103,22 @@ public OrganizationSecurityManager(String name, OrganizationSecurityManagerArgs * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrganizationSecurityManager(String name, OrganizationSecurityManagerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationSecurityManager:OrganizationSecurityManager", name, args == null ? OrganizationSecurityManagerArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrganizationSecurityManager(java.lang.String name, OrganizationSecurityManagerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationSecurityManager:OrganizationSecurityManager", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OrganizationSecurityManager(String name, Output id, @Nullable OrganizationSecurityManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationSecurityManager:OrganizationSecurityManager", name, state, makeResourceOptions(options, id)); + private OrganizationSecurityManager(java.lang.String name, Output id, @Nullable OrganizationSecurityManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationSecurityManager:OrganizationSecurityManager", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OrganizationSecurityManagerArgs makeArgs(OrganizationSecurityManagerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrganizationSecurityManagerArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -127,7 +134,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrganizationSecurityManager get(String name, Output id, @Nullable OrganizationSecurityManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrganizationSecurityManager get(java.lang.String name, Output id, @Nullable OrganizationSecurityManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrganizationSecurityManager(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/OrganizationSettings.java b/sdk/java/src/main/java/com/pulumi/github/OrganizationSettings.java index 7c824cb0..14e40690 100644 --- a/sdk/java/src/main/java/com/pulumi/github/OrganizationSettings.java +++ b/sdk/java/src/main/java/com/pulumi/github/OrganizationSettings.java @@ -37,17 +37,17 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var test = new OrganizationSettings("test", OrganizationSettingsArgs.builder() - * .billingEmail("test{@literal @}example.com") + * .billingEmail("test}{@literal @}{@code example.com") * .company("Test Company") * .blog("https://example.com") - * .email("test{@literal @}example.com") + * .email("test}{@literal @}{@code example.com") * .twitterUsername("Test") * .location("Test Location") * .name("Test Name") @@ -72,8 +72,8 @@ * .secretScanningPushProtectionEnabledForNewRepositories(false) * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -459,7 +459,7 @@ public Output> webCommitSignoffRequired() { * * @param name The _unique_ name of the resulting resource. */ - public OrganizationSettings(String name) { + public OrganizationSettings(java.lang.String name) { this(name, OrganizationSettingsArgs.Empty); } /** @@ -467,7 +467,7 @@ public OrganizationSettings(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrganizationSettings(String name, OrganizationSettingsArgs args) { + public OrganizationSettings(java.lang.String name, OrganizationSettingsArgs args) { this(name, args, null); } /** @@ -476,15 +476,22 @@ public OrganizationSettings(String name, OrganizationSettingsArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrganizationSettings(String name, OrganizationSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationSettings:OrganizationSettings", name, args == null ? OrganizationSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrganizationSettings(java.lang.String name, OrganizationSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationSettings:OrganizationSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private OrganizationSettings(java.lang.String name, Output id, @Nullable OrganizationSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationSettings:OrganizationSettings", name, state, makeResourceOptions(options, id), false); } - private OrganizationSettings(String name, Output id, @Nullable OrganizationSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationSettings:OrganizationSettings", name, state, makeResourceOptions(options, id)); + private static OrganizationSettingsArgs makeArgs(OrganizationSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrganizationSettingsArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -500,7 +507,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrganizationSettings get(String name, Output id, @Nullable OrganizationSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrganizationSettings get(java.lang.String name, Output id, @Nullable OrganizationSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrganizationSettings(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/OrganizationWebhook.java b/sdk/java/src/main/java/com/pulumi/github/OrganizationWebhook.java index f050e4e9..19b172f7 100644 --- a/sdk/java/src/main/java/com/pulumi/github/OrganizationWebhook.java +++ b/sdk/java/src/main/java/com/pulumi/github/OrganizationWebhook.java @@ -105,7 +105,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public OrganizationWebhook(String name) { + public OrganizationWebhook(java.lang.String name) { this(name, OrganizationWebhookArgs.Empty); } /** @@ -113,7 +113,7 @@ public OrganizationWebhook(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrganizationWebhook(String name, OrganizationWebhookArgs args) { + public OrganizationWebhook(java.lang.String name, OrganizationWebhookArgs args) { this(name, args, null); } /** @@ -122,15 +122,22 @@ public OrganizationWebhook(String name, OrganizationWebhookArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrganizationWebhook(String name, OrganizationWebhookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationWebhook:OrganizationWebhook", name, args == null ? OrganizationWebhookArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrganizationWebhook(java.lang.String name, OrganizationWebhookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationWebhook:OrganizationWebhook", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OrganizationWebhook(String name, Output id, @Nullable OrganizationWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/organizationWebhook:OrganizationWebhook", name, state, makeResourceOptions(options, id)); + private OrganizationWebhook(java.lang.String name, Output id, @Nullable OrganizationWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/organizationWebhook:OrganizationWebhook", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OrganizationWebhookArgs makeArgs(OrganizationWebhookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrganizationWebhookArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -146,7 +153,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrganizationWebhook get(String name, Output id, @Nullable OrganizationWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrganizationWebhook get(java.lang.String name, Output id, @Nullable OrganizationWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrganizationWebhook(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ProjectCard.java b/sdk/java/src/main/java/com/pulumi/github/ProjectCard.java index 9cc24a3b..f19dc81c 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ProjectCard.java +++ b/sdk/java/src/main/java/com/pulumi/github/ProjectCard.java @@ -234,7 +234,7 @@ public Output> note() { * * @param name The _unique_ name of the resulting resource. */ - public ProjectCard(String name) { + public ProjectCard(java.lang.String name) { this(name, ProjectCardArgs.Empty); } /** @@ -242,7 +242,7 @@ public ProjectCard(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ProjectCard(String name, ProjectCardArgs args) { + public ProjectCard(java.lang.String name, ProjectCardArgs args) { this(name, args, null); } /** @@ -251,15 +251,22 @@ public ProjectCard(String name, ProjectCardArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ProjectCard(String name, ProjectCardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/projectCard:ProjectCard", name, args == null ? ProjectCardArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ProjectCard(java.lang.String name, ProjectCardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/projectCard:ProjectCard", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ProjectCard(String name, Output id, @Nullable ProjectCardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/projectCard:ProjectCard", name, state, makeResourceOptions(options, id)); + private ProjectCard(java.lang.String name, Output id, @Nullable ProjectCardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/projectCard:ProjectCard", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ProjectCardArgs makeArgs(ProjectCardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProjectCardArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -275,7 +282,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ProjectCard get(String name, Output id, @Nullable ProjectCardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ProjectCard get(java.lang.String name, Output id, @Nullable ProjectCardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ProjectCard(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/ProjectColumn.java b/sdk/java/src/main/java/com/pulumi/github/ProjectColumn.java index 6c7e5dba..8563142e 100644 --- a/sdk/java/src/main/java/com/pulumi/github/ProjectColumn.java +++ b/sdk/java/src/main/java/com/pulumi/github/ProjectColumn.java @@ -116,7 +116,7 @@ public Output projectId() { * * @param name The _unique_ name of the resulting resource. */ - public ProjectColumn(String name) { + public ProjectColumn(java.lang.String name) { this(name, ProjectColumnArgs.Empty); } /** @@ -124,7 +124,7 @@ public ProjectColumn(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ProjectColumn(String name, ProjectColumnArgs args) { + public ProjectColumn(java.lang.String name, ProjectColumnArgs args) { this(name, args, null); } /** @@ -133,15 +133,22 @@ public ProjectColumn(String name, ProjectColumnArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ProjectColumn(String name, ProjectColumnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/projectColumn:ProjectColumn", name, args == null ? ProjectColumnArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ProjectColumn(java.lang.String name, ProjectColumnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/projectColumn:ProjectColumn", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ProjectColumn(String name, Output id, @Nullable ProjectColumnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/projectColumn:ProjectColumn", name, state, makeResourceOptions(options, id)); + private ProjectColumn(java.lang.String name, Output id, @Nullable ProjectColumnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/projectColumn:ProjectColumn", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ProjectColumnArgs makeArgs(ProjectColumnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProjectColumnArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -157,7 +164,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ProjectColumn get(String name, Output id, @Nullable ProjectColumnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ProjectColumn get(java.lang.String name, Output id, @Nullable ProjectColumnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ProjectColumn(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/Provider.java b/sdk/java/src/main/java/com/pulumi/github/Provider.java index b737158e..98c82b9d 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Provider.java +++ b/sdk/java/src/main/java/com/pulumi/github/Provider.java @@ -88,7 +88,7 @@ public Output> token() { * * @param name The _unique_ name of the resulting resource. */ - public Provider(String name) { + public Provider(java.lang.String name) { this(name, ProviderArgs.Empty); } /** @@ -96,7 +96,7 @@ public Provider(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Provider(String name, @Nullable ProviderArgs args) { + public Provider(java.lang.String name, @Nullable ProviderArgs args) { this(name, args, null); } /** @@ -105,11 +105,18 @@ public Provider(String name, @Nullable ProviderArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Provider(String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Provider(java.lang.String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ProviderArgs makeArgs(@Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProviderArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( diff --git a/sdk/java/src/main/java/com/pulumi/github/Release.java b/sdk/java/src/main/java/com/pulumi/github/Release.java index 65e3b70a..f796e913 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Release.java +++ b/sdk/java/src/main/java/com/pulumi/github/Release.java @@ -406,7 +406,7 @@ public Output zipballUrl() { * * @param name The _unique_ name of the resulting resource. */ - public Release(String name) { + public Release(java.lang.String name) { this(name, ReleaseArgs.Empty); } /** @@ -414,7 +414,7 @@ public Release(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Release(String name, ReleaseArgs args) { + public Release(java.lang.String name, ReleaseArgs args) { this(name, args, null); } /** @@ -423,15 +423,22 @@ public Release(String name, ReleaseArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Release(String name, ReleaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/release:Release", name, args == null ? ReleaseArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Release(java.lang.String name, ReleaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/release:Release", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Release(String name, Output id, @Nullable ReleaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/release:Release", name, state, makeResourceOptions(options, id)); + private Release(java.lang.String name, Output id, @Nullable ReleaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/release:Release", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ReleaseArgs makeArgs(ReleaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ReleaseArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -447,7 +454,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Release get(String name, Output id, @Nullable ReleaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Release get(java.lang.String name, Output id, @Nullable ReleaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Release(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/Repository.java b/sdk/java/src/main/java/com/pulumi/github/Repository.java index 0fbe12b1..db562ceb 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Repository.java +++ b/sdk/java/src/main/java/com/pulumi/github/Repository.java @@ -760,7 +760,7 @@ public Output> webCommitSignoffRequired() { * * @param name The _unique_ name of the resulting resource. */ - public Repository(String name) { + public Repository(java.lang.String name) { this(name, RepositoryArgs.Empty); } /** @@ -768,7 +768,7 @@ public Repository(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Repository(String name, @Nullable RepositoryArgs args) { + public Repository(java.lang.String name, @Nullable RepositoryArgs args) { this(name, args, null); } /** @@ -777,15 +777,22 @@ public Repository(String name, @Nullable RepositoryArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Repository(String name, @Nullable RepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repository:Repository", name, args == null ? RepositoryArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Repository(java.lang.String name, @Nullable RepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repository:Repository", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Repository(String name, Output id, @Nullable RepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repository:Repository", name, state, makeResourceOptions(options, id)); + private Repository(java.lang.String name, Output id, @Nullable RepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repository:Repository", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryArgs makeArgs(@Nullable RepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -801,7 +808,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Repository get(String name, Output id, @Nullable RepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Repository get(java.lang.String name, Output id, @Nullable RepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Repository(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryAutolinkReference.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryAutolinkReference.java index cd148820..53a9eb1a 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryAutolinkReference.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryAutolinkReference.java @@ -149,7 +149,7 @@ public Output targetUrlTemplate() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryAutolinkReference(String name) { + public RepositoryAutolinkReference(java.lang.String name) { this(name, RepositoryAutolinkReferenceArgs.Empty); } /** @@ -157,7 +157,7 @@ public RepositoryAutolinkReference(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryAutolinkReference(String name, RepositoryAutolinkReferenceArgs args) { + public RepositoryAutolinkReference(java.lang.String name, RepositoryAutolinkReferenceArgs args) { this(name, args, null); } /** @@ -166,15 +166,22 @@ public RepositoryAutolinkReference(String name, RepositoryAutolinkReferenceArgs * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryAutolinkReference(String name, RepositoryAutolinkReferenceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryAutolinkReference:RepositoryAutolinkReference", name, args == null ? RepositoryAutolinkReferenceArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryAutolinkReference(java.lang.String name, RepositoryAutolinkReferenceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryAutolinkReference:RepositoryAutolinkReference", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryAutolinkReference(String name, Output id, @Nullable RepositoryAutolinkReferenceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryAutolinkReference:RepositoryAutolinkReference", name, state, makeResourceOptions(options, id)); + private RepositoryAutolinkReference(java.lang.String name, Output id, @Nullable RepositoryAutolinkReferenceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryAutolinkReference:RepositoryAutolinkReference", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryAutolinkReferenceArgs makeArgs(RepositoryAutolinkReferenceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryAutolinkReferenceArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -190,7 +197,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryAutolinkReference get(String name, Output id, @Nullable RepositoryAutolinkReferenceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryAutolinkReference get(java.lang.String name, Output id, @Nullable RepositoryAutolinkReferenceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryAutolinkReference(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborator.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborator.java index f4bc19c9..7a437e72 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborator.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborator.java @@ -173,7 +173,7 @@ public Output username() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryCollaborator(String name) { + public RepositoryCollaborator(java.lang.String name) { this(name, RepositoryCollaboratorArgs.Empty); } /** @@ -181,7 +181,7 @@ public RepositoryCollaborator(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryCollaborator(String name, RepositoryCollaboratorArgs args) { + public RepositoryCollaborator(java.lang.String name, RepositoryCollaboratorArgs args) { this(name, args, null); } /** @@ -190,15 +190,22 @@ public RepositoryCollaborator(String name, RepositoryCollaboratorArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryCollaborator(String name, RepositoryCollaboratorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryCollaborator:RepositoryCollaborator", name, args == null ? RepositoryCollaboratorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryCollaborator(java.lang.String name, RepositoryCollaboratorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryCollaborator:RepositoryCollaborator", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryCollaborator(String name, Output id, @Nullable RepositoryCollaboratorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryCollaborator:RepositoryCollaborator", name, state, makeResourceOptions(options, id)); + private RepositoryCollaborator(java.lang.String name, Output id, @Nullable RepositoryCollaboratorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryCollaborator:RepositoryCollaborator", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryCollaboratorArgs makeArgs(RepositoryCollaboratorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryCollaboratorArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -214,7 +221,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryCollaborator get(String name, Output id, @Nullable RepositoryCollaboratorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryCollaborator get(java.lang.String name, Output id, @Nullable RepositoryCollaboratorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryCollaborator(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborators.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborators.java index 19b1771a..5f60b28a 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborators.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryCollaborators.java @@ -177,7 +177,7 @@ public Output>> users() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryCollaborators(String name) { + public RepositoryCollaborators(java.lang.String name) { this(name, RepositoryCollaboratorsArgs.Empty); } /** @@ -185,7 +185,7 @@ public RepositoryCollaborators(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryCollaborators(String name, RepositoryCollaboratorsArgs args) { + public RepositoryCollaborators(java.lang.String name, RepositoryCollaboratorsArgs args) { this(name, args, null); } /** @@ -194,15 +194,22 @@ public RepositoryCollaborators(String name, RepositoryCollaboratorsArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryCollaborators(String name, RepositoryCollaboratorsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryCollaborators:RepositoryCollaborators", name, args == null ? RepositoryCollaboratorsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryCollaborators(java.lang.String name, RepositoryCollaboratorsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryCollaborators:RepositoryCollaborators", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryCollaborators(String name, Output id, @Nullable RepositoryCollaboratorsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryCollaborators:RepositoryCollaborators", name, state, makeResourceOptions(options, id)); + private RepositoryCollaborators(java.lang.String name, Output id, @Nullable RepositoryCollaboratorsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryCollaborators:RepositoryCollaborators", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryCollaboratorsArgs makeArgs(RepositoryCollaboratorsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryCollaboratorsArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -218,7 +225,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryCollaborators get(String name, Output id, @Nullable RepositoryCollaboratorsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryCollaborators get(java.lang.String name, Output id, @Nullable RepositoryCollaboratorsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryCollaborators(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryDependabotSecurityUpdates.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryDependabotSecurityUpdates.java index e436f139..f12ccb80 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryDependabotSecurityUpdates.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryDependabotSecurityUpdates.java @@ -108,7 +108,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryDependabotSecurityUpdates(String name) { + public RepositoryDependabotSecurityUpdates(java.lang.String name) { this(name, RepositoryDependabotSecurityUpdatesArgs.Empty); } /** @@ -116,7 +116,7 @@ public RepositoryDependabotSecurityUpdates(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryDependabotSecurityUpdates(String name, RepositoryDependabotSecurityUpdatesArgs args) { + public RepositoryDependabotSecurityUpdates(java.lang.String name, RepositoryDependabotSecurityUpdatesArgs args) { this(name, args, null); } /** @@ -125,15 +125,22 @@ public RepositoryDependabotSecurityUpdates(String name, RepositoryDependabotSecu * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryDependabotSecurityUpdates(String name, RepositoryDependabotSecurityUpdatesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryDependabotSecurityUpdates:RepositoryDependabotSecurityUpdates", name, args == null ? RepositoryDependabotSecurityUpdatesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryDependabotSecurityUpdates(java.lang.String name, RepositoryDependabotSecurityUpdatesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryDependabotSecurityUpdates:RepositoryDependabotSecurityUpdates", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryDependabotSecurityUpdates(String name, Output id, @Nullable RepositoryDependabotSecurityUpdatesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryDependabotSecurityUpdates:RepositoryDependabotSecurityUpdates", name, state, makeResourceOptions(options, id)); + private RepositoryDependabotSecurityUpdates(java.lang.String name, Output id, @Nullable RepositoryDependabotSecurityUpdatesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryDependabotSecurityUpdates:RepositoryDependabotSecurityUpdates", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryDependabotSecurityUpdatesArgs makeArgs(RepositoryDependabotSecurityUpdatesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryDependabotSecurityUpdatesArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -149,7 +156,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryDependabotSecurityUpdates get(String name, Output id, @Nullable RepositoryDependabotSecurityUpdatesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryDependabotSecurityUpdates get(java.lang.String name, Output id, @Nullable RepositoryDependabotSecurityUpdatesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryDependabotSecurityUpdates(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryDeployKey.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryDeployKey.java index 4fc8236b..dd9ef41a 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryDeployKey.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryDeployKey.java @@ -156,7 +156,7 @@ public Output title() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryDeployKey(String name) { + public RepositoryDeployKey(java.lang.String name) { this(name, RepositoryDeployKeyArgs.Empty); } /** @@ -164,7 +164,7 @@ public RepositoryDeployKey(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryDeployKey(String name, RepositoryDeployKeyArgs args) { + public RepositoryDeployKey(java.lang.String name, RepositoryDeployKeyArgs args) { this(name, args, null); } /** @@ -173,15 +173,22 @@ public RepositoryDeployKey(String name, RepositoryDeployKeyArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryDeployKey(String name, RepositoryDeployKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryDeployKey:RepositoryDeployKey", name, args == null ? RepositoryDeployKeyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryDeployKey(java.lang.String name, RepositoryDeployKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryDeployKey:RepositoryDeployKey", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryDeployKey(String name, Output id, @Nullable RepositoryDeployKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryDeployKey:RepositoryDeployKey", name, state, makeResourceOptions(options, id)); + private RepositoryDeployKey(java.lang.String name, Output id, @Nullable RepositoryDeployKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryDeployKey:RepositoryDeployKey", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryDeployKeyArgs makeArgs(RepositoryDeployKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryDeployKeyArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -197,7 +204,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryDeployKey get(String name, Output id, @Nullable RepositoryDeployKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryDeployKey get(java.lang.String name, Output id, @Nullable RepositoryDeployKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryDeployKey(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryDeploymentBranchPolicy.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryDeploymentBranchPolicy.java index 0aff8443..c76b4e8d 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryDeploymentBranchPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryDeploymentBranchPolicy.java @@ -138,7 +138,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryDeploymentBranchPolicy(String name) { + public RepositoryDeploymentBranchPolicy(java.lang.String name) { this(name, RepositoryDeploymentBranchPolicyArgs.Empty); } /** @@ -146,7 +146,7 @@ public RepositoryDeploymentBranchPolicy(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryDeploymentBranchPolicy(String name, RepositoryDeploymentBranchPolicyArgs args) { + public RepositoryDeploymentBranchPolicy(java.lang.String name, RepositoryDeploymentBranchPolicyArgs args) { this(name, args, null); } /** @@ -155,15 +155,22 @@ public RepositoryDeploymentBranchPolicy(String name, RepositoryDeploymentBranchP * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryDeploymentBranchPolicy(String name, RepositoryDeploymentBranchPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy", name, args == null ? RepositoryDeploymentBranchPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryDeploymentBranchPolicy(java.lang.String name, RepositoryDeploymentBranchPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryDeploymentBranchPolicy(String name, Output id, @Nullable RepositoryDeploymentBranchPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy", name, state, makeResourceOptions(options, id)); + private RepositoryDeploymentBranchPolicy(java.lang.String name, Output id, @Nullable RepositoryDeploymentBranchPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryDeploymentBranchPolicyArgs makeArgs(RepositoryDeploymentBranchPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryDeploymentBranchPolicyArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -179,7 +186,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryDeploymentBranchPolicy get(String name, Output id, @Nullable RepositoryDeploymentBranchPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryDeploymentBranchPolicy get(java.lang.String name, Output id, @Nullable RepositoryDeploymentBranchPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryDeploymentBranchPolicy(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironment.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironment.java index fff799cd..e6059152 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironment.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironment.java @@ -195,7 +195,7 @@ public Output> waitTimer() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryEnvironment(String name) { + public RepositoryEnvironment(java.lang.String name) { this(name, RepositoryEnvironmentArgs.Empty); } /** @@ -203,7 +203,7 @@ public RepositoryEnvironment(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryEnvironment(String name, RepositoryEnvironmentArgs args) { + public RepositoryEnvironment(java.lang.String name, RepositoryEnvironmentArgs args) { this(name, args, null); } /** @@ -212,15 +212,22 @@ public RepositoryEnvironment(String name, RepositoryEnvironmentArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryEnvironment(String name, RepositoryEnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryEnvironment:RepositoryEnvironment", name, args == null ? RepositoryEnvironmentArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryEnvironment(java.lang.String name, RepositoryEnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryEnvironment:RepositoryEnvironment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryEnvironment(String name, Output id, @Nullable RepositoryEnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryEnvironment:RepositoryEnvironment", name, state, makeResourceOptions(options, id)); + private RepositoryEnvironment(java.lang.String name, Output id, @Nullable RepositoryEnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryEnvironment:RepositoryEnvironment", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryEnvironmentArgs makeArgs(RepositoryEnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryEnvironmentArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -236,7 +243,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryEnvironment get(String name, Output id, @Nullable RepositoryEnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryEnvironment get(java.lang.String name, Output id, @Nullable RepositoryEnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryEnvironment(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironmentDeploymentPolicy.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironmentDeploymentPolicy.java index bd369cd7..ebce5151 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironmentDeploymentPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryEnvironmentDeploymentPolicy.java @@ -140,7 +140,7 @@ public Output repository() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryEnvironmentDeploymentPolicy(String name) { + public RepositoryEnvironmentDeploymentPolicy(java.lang.String name) { this(name, RepositoryEnvironmentDeploymentPolicyArgs.Empty); } /** @@ -148,7 +148,7 @@ public RepositoryEnvironmentDeploymentPolicy(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryEnvironmentDeploymentPolicy(String name, RepositoryEnvironmentDeploymentPolicyArgs args) { + public RepositoryEnvironmentDeploymentPolicy(java.lang.String name, RepositoryEnvironmentDeploymentPolicyArgs args) { this(name, args, null); } /** @@ -157,15 +157,22 @@ public RepositoryEnvironmentDeploymentPolicy(String name, RepositoryEnvironmentD * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryEnvironmentDeploymentPolicy(String name, RepositoryEnvironmentDeploymentPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy", name, args == null ? RepositoryEnvironmentDeploymentPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryEnvironmentDeploymentPolicy(java.lang.String name, RepositoryEnvironmentDeploymentPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryEnvironmentDeploymentPolicy(String name, Output id, @Nullable RepositoryEnvironmentDeploymentPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy", name, state, makeResourceOptions(options, id)); + private RepositoryEnvironmentDeploymentPolicy(java.lang.String name, Output id, @Nullable RepositoryEnvironmentDeploymentPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryEnvironmentDeploymentPolicyArgs makeArgs(RepositoryEnvironmentDeploymentPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryEnvironmentDeploymentPolicyArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -181,7 +188,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryEnvironmentDeploymentPolicy get(String name, Output id, @Nullable RepositoryEnvironmentDeploymentPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryEnvironmentDeploymentPolicy get(java.lang.String name, Output id, @Nullable RepositoryEnvironmentDeploymentPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryEnvironmentDeploymentPolicy(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryFile.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryFile.java index 7a203e86..1d2b245a 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryFile.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryFile.java @@ -40,12 +40,12 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var foo = new Repository("foo", RepositoryArgs.builder() * .name("tf-acc-test-%s") * .autoInit(true) @@ -55,15 +55,15 @@ * .repository(foo.name()) * .branch("main") * .file(".gitignore") - * .content("**{@literal /}*.tfstate") + * .content("**}/{@code *.tfstate") * .commitMessage("Managed by Terraform") * .commitAuthor("Terraform User") - * .commitEmail("terraform{@literal @}example.com") + * .commitEmail("terraform}{@literal @}{@code example.com") * .overwriteOnCreate(true) * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -245,7 +245,7 @@ public Output sha() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryFile(String name) { + public RepositoryFile(java.lang.String name) { this(name, RepositoryFileArgs.Empty); } /** @@ -253,7 +253,7 @@ public RepositoryFile(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryFile(String name, RepositoryFileArgs args) { + public RepositoryFile(java.lang.String name, RepositoryFileArgs args) { this(name, args, null); } /** @@ -262,15 +262,22 @@ public RepositoryFile(String name, RepositoryFileArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryFile(String name, RepositoryFileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryFile:RepositoryFile", name, args == null ? RepositoryFileArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryFile(java.lang.String name, RepositoryFileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryFile:RepositoryFile", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private RepositoryFile(java.lang.String name, Output id, @Nullable RepositoryFileState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryFile:RepositoryFile", name, state, makeResourceOptions(options, id), false); } - private RepositoryFile(String name, Output id, @Nullable RepositoryFileState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryFile:RepositoryFile", name, state, makeResourceOptions(options, id)); + private static RepositoryFileArgs makeArgs(RepositoryFileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryFileArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -286,7 +293,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryFile get(String name, Output id, @Nullable RepositoryFileState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryFile get(java.lang.String name, Output id, @Nullable RepositoryFileState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryFile(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryMilestone.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryMilestone.java index a95ea8e7..6c50733d 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryMilestone.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryMilestone.java @@ -172,7 +172,7 @@ public Output title() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryMilestone(String name) { + public RepositoryMilestone(java.lang.String name) { this(name, RepositoryMilestoneArgs.Empty); } /** @@ -180,7 +180,7 @@ public RepositoryMilestone(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryMilestone(String name, RepositoryMilestoneArgs args) { + public RepositoryMilestone(java.lang.String name, RepositoryMilestoneArgs args) { this(name, args, null); } /** @@ -189,15 +189,22 @@ public RepositoryMilestone(String name, RepositoryMilestoneArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryMilestone(String name, RepositoryMilestoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryMilestone:RepositoryMilestone", name, args == null ? RepositoryMilestoneArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryMilestone(java.lang.String name, RepositoryMilestoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryMilestone:RepositoryMilestone", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryMilestone(String name, Output id, @Nullable RepositoryMilestoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryMilestone:RepositoryMilestone", name, state, makeResourceOptions(options, id)); + private RepositoryMilestone(java.lang.String name, Output id, @Nullable RepositoryMilestoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryMilestone:RepositoryMilestone", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryMilestoneArgs makeArgs(RepositoryMilestoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryMilestoneArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -213,7 +220,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryMilestone get(String name, Output id, @Nullable RepositoryMilestoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryMilestone get(java.lang.String name, Output id, @Nullable RepositoryMilestoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryMilestone(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryProject.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryProject.java index f97d1d8c..d7ddbe79 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryProject.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryProject.java @@ -132,7 +132,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryProject(String name) { + public RepositoryProject(java.lang.String name) { this(name, RepositoryProjectArgs.Empty); } /** @@ -140,7 +140,7 @@ public RepositoryProject(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryProject(String name, RepositoryProjectArgs args) { + public RepositoryProject(java.lang.String name, RepositoryProjectArgs args) { this(name, args, null); } /** @@ -149,15 +149,22 @@ public RepositoryProject(String name, RepositoryProjectArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryProject(String name, RepositoryProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryProject:RepositoryProject", name, args == null ? RepositoryProjectArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryProject(java.lang.String name, RepositoryProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryProject:RepositoryProject", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryProject(String name, Output id, @Nullable RepositoryProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryProject:RepositoryProject", name, state, makeResourceOptions(options, id)); + private RepositoryProject(java.lang.String name, Output id, @Nullable RepositoryProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryProject:RepositoryProject", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryProjectArgs makeArgs(RepositoryProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryProjectArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -173,7 +180,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryProject get(String name, Output id, @Nullable RepositoryProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryProject get(java.lang.String name, Output id, @Nullable RepositoryProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryProject(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryPullRequest.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryPullRequest.java index e842a404..6e06f009 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryPullRequest.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryPullRequest.java @@ -291,7 +291,7 @@ public Output updatedAt() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryPullRequest(String name) { + public RepositoryPullRequest(java.lang.String name) { this(name, RepositoryPullRequestArgs.Empty); } /** @@ -299,7 +299,7 @@ public RepositoryPullRequest(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryPullRequest(String name, RepositoryPullRequestArgs args) { + public RepositoryPullRequest(java.lang.String name, RepositoryPullRequestArgs args) { this(name, args, null); } /** @@ -308,15 +308,22 @@ public RepositoryPullRequest(String name, RepositoryPullRequestArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryPullRequest(String name, RepositoryPullRequestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryPullRequest:RepositoryPullRequest", name, args == null ? RepositoryPullRequestArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryPullRequest(java.lang.String name, RepositoryPullRequestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryPullRequest:RepositoryPullRequest", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryPullRequest(String name, Output id, @Nullable RepositoryPullRequestState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryPullRequest:RepositoryPullRequest", name, state, makeResourceOptions(options, id)); + private RepositoryPullRequest(java.lang.String name, Output id, @Nullable RepositoryPullRequestState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryPullRequest:RepositoryPullRequest", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryPullRequestArgs makeArgs(RepositoryPullRequestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryPullRequestArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -332,7 +339,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryPullRequest get(String name, Output id, @Nullable RepositoryPullRequestState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryPullRequest get(java.lang.String name, Output id, @Nullable RepositoryPullRequestState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryPullRequest(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryRuleset.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryRuleset.java index 8c78ed82..6249f793 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryRuleset.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryRuleset.java @@ -251,7 +251,7 @@ public Output target() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryRuleset(String name) { + public RepositoryRuleset(java.lang.String name) { this(name, RepositoryRulesetArgs.Empty); } /** @@ -259,7 +259,7 @@ public RepositoryRuleset(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryRuleset(String name, RepositoryRulesetArgs args) { + public RepositoryRuleset(java.lang.String name, RepositoryRulesetArgs args) { this(name, args, null); } /** @@ -268,15 +268,22 @@ public RepositoryRuleset(String name, RepositoryRulesetArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryRuleset(String name, RepositoryRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryRuleset:RepositoryRuleset", name, args == null ? RepositoryRulesetArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryRuleset(java.lang.String name, RepositoryRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryRuleset:RepositoryRuleset", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryRuleset(String name, Output id, @Nullable RepositoryRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryRuleset:RepositoryRuleset", name, state, makeResourceOptions(options, id)); + private RepositoryRuleset(java.lang.String name, Output id, @Nullable RepositoryRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryRuleset:RepositoryRuleset", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryRulesetArgs makeArgs(RepositoryRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryRulesetArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -292,7 +299,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryRuleset get(String name, Output id, @Nullable RepositoryRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryRuleset get(java.lang.String name, Output id, @Nullable RepositoryRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryRuleset(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryTagProtection.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryTagProtection.java index 562e41a6..ab188159 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryTagProtection.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryTagProtection.java @@ -114,7 +114,7 @@ public Output tagProtectionId() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryTagProtection(String name) { + public RepositoryTagProtection(java.lang.String name) { this(name, RepositoryTagProtectionArgs.Empty); } /** @@ -122,7 +122,7 @@ public RepositoryTagProtection(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryTagProtection(String name, RepositoryTagProtectionArgs args) { + public RepositoryTagProtection(java.lang.String name, RepositoryTagProtectionArgs args) { this(name, args, null); } /** @@ -131,15 +131,22 @@ public RepositoryTagProtection(String name, RepositoryTagProtectionArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryTagProtection(String name, RepositoryTagProtectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryTagProtection:RepositoryTagProtection", name, args == null ? RepositoryTagProtectionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryTagProtection(java.lang.String name, RepositoryTagProtectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryTagProtection:RepositoryTagProtection", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryTagProtection(String name, Output id, @Nullable RepositoryTagProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryTagProtection:RepositoryTagProtection", name, state, makeResourceOptions(options, id)); + private RepositoryTagProtection(java.lang.String name, Output id, @Nullable RepositoryTagProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryTagProtection:RepositoryTagProtection", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryTagProtectionArgs makeArgs(RepositoryTagProtectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryTagProtectionArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -155,7 +162,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryTagProtection get(String name, Output id, @Nullable RepositoryTagProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryTagProtection get(java.lang.String name, Output id, @Nullable RepositoryTagProtectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryTagProtection(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryTopics.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryTopics.java index a70e7623..950cabc6 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryTopics.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryTopics.java @@ -103,7 +103,7 @@ public Output> topics() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryTopics(String name) { + public RepositoryTopics(java.lang.String name) { this(name, RepositoryTopicsArgs.Empty); } /** @@ -111,7 +111,7 @@ public RepositoryTopics(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryTopics(String name, RepositoryTopicsArgs args) { + public RepositoryTopics(java.lang.String name, RepositoryTopicsArgs args) { this(name, args, null); } /** @@ -120,15 +120,22 @@ public RepositoryTopics(String name, RepositoryTopicsArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryTopics(String name, RepositoryTopicsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryTopics:RepositoryTopics", name, args == null ? RepositoryTopicsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryTopics(java.lang.String name, RepositoryTopicsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryTopics:RepositoryTopics", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryTopics(String name, Output id, @Nullable RepositoryTopicsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryTopics:RepositoryTopics", name, state, makeResourceOptions(options, id)); + private RepositoryTopics(java.lang.String name, Output id, @Nullable RepositoryTopicsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryTopics:RepositoryTopics", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryTopicsArgs makeArgs(RepositoryTopicsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryTopicsArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -144,7 +151,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryTopics get(String name, Output id, @Nullable RepositoryTopicsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryTopics get(java.lang.String name, Output id, @Nullable RepositoryTopicsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryTopics(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/RepositoryWebhook.java b/sdk/java/src/main/java/com/pulumi/github/RepositoryWebhook.java index a318ad06..8f5fbf12 100644 --- a/sdk/java/src/main/java/com/pulumi/github/RepositoryWebhook.java +++ b/sdk/java/src/main/java/com/pulumi/github/RepositoryWebhook.java @@ -169,7 +169,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public RepositoryWebhook(String name) { + public RepositoryWebhook(java.lang.String name) { this(name, RepositoryWebhookArgs.Empty); } /** @@ -177,7 +177,7 @@ public RepositoryWebhook(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public RepositoryWebhook(String name, RepositoryWebhookArgs args) { + public RepositoryWebhook(java.lang.String name, RepositoryWebhookArgs args) { this(name, args, null); } /** @@ -186,15 +186,22 @@ public RepositoryWebhook(String name, RepositoryWebhookArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public RepositoryWebhook(String name, RepositoryWebhookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryWebhook:RepositoryWebhook", name, args == null ? RepositoryWebhookArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public RepositoryWebhook(java.lang.String name, RepositoryWebhookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryWebhook:RepositoryWebhook", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private RepositoryWebhook(String name, Output id, @Nullable RepositoryWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/repositoryWebhook:RepositoryWebhook", name, state, makeResourceOptions(options, id)); + private RepositoryWebhook(java.lang.String name, Output id, @Nullable RepositoryWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/repositoryWebhook:RepositoryWebhook", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static RepositoryWebhookArgs makeArgs(RepositoryWebhookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RepositoryWebhookArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -210,7 +217,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static RepositoryWebhook get(String name, Output id, @Nullable RepositoryWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static RepositoryWebhook get(java.lang.String name, Output id, @Nullable RepositoryWebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RepositoryWebhook(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/Team.java b/sdk/java/src/main/java/com/pulumi/github/Team.java index 93b8f2da..e89534cb 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Team.java +++ b/sdk/java/src/main/java/com/pulumi/github/Team.java @@ -238,7 +238,7 @@ public Output slug() { * * @param name The _unique_ name of the resulting resource. */ - public Team(String name) { + public Team(java.lang.String name) { this(name, TeamArgs.Empty); } /** @@ -246,7 +246,7 @@ public Team(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Team(String name, @Nullable TeamArgs args) { + public Team(java.lang.String name, @Nullable TeamArgs args) { this(name, args, null); } /** @@ -255,15 +255,22 @@ public Team(String name, @Nullable TeamArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Team(String name, @Nullable TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/team:Team", name, args == null ? TeamArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Team(java.lang.String name, @Nullable TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/team:Team", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Team(String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/team:Team", name, state, makeResourceOptions(options, id)); + private Team(java.lang.String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/team:Team", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TeamArgs makeArgs(@Nullable TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -279,7 +286,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Team get(String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Team get(java.lang.String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Team(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/TeamMembers.java b/sdk/java/src/main/java/com/pulumi/github/TeamMembers.java index fc34ac11..44dae6b5 100644 --- a/sdk/java/src/main/java/com/pulumi/github/TeamMembers.java +++ b/sdk/java/src/main/java/com/pulumi/github/TeamMembers.java @@ -135,7 +135,7 @@ public Output teamId() { * * @param name The _unique_ name of the resulting resource. */ - public TeamMembers(String name) { + public TeamMembers(java.lang.String name) { this(name, TeamMembersArgs.Empty); } /** @@ -143,7 +143,7 @@ public TeamMembers(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TeamMembers(String name, TeamMembersArgs args) { + public TeamMembers(java.lang.String name, TeamMembersArgs args) { this(name, args, null); } /** @@ -152,15 +152,22 @@ public TeamMembers(String name, TeamMembersArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TeamMembers(String name, TeamMembersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamMembers:TeamMembers", name, args == null ? TeamMembersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TeamMembers(java.lang.String name, TeamMembersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamMembers:TeamMembers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TeamMembers(String name, Output id, @Nullable TeamMembersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamMembers:TeamMembers", name, state, makeResourceOptions(options, id)); + private TeamMembers(java.lang.String name, Output id, @Nullable TeamMembersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamMembers:TeamMembers", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TeamMembersArgs makeArgs(TeamMembersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamMembersArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -176,7 +183,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TeamMembers get(String name, Output id, @Nullable TeamMembersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TeamMembers get(java.lang.String name, Output id, @Nullable TeamMembersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TeamMembers(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/TeamMembership.java b/sdk/java/src/main/java/com/pulumi/github/TeamMembership.java index f73be4ea..c058d605 100644 --- a/sdk/java/src/main/java/com/pulumi/github/TeamMembership.java +++ b/sdk/java/src/main/java/com/pulumi/github/TeamMembership.java @@ -148,7 +148,7 @@ public Output username() { * * @param name The _unique_ name of the resulting resource. */ - public TeamMembership(String name) { + public TeamMembership(java.lang.String name) { this(name, TeamMembershipArgs.Empty); } /** @@ -156,7 +156,7 @@ public TeamMembership(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TeamMembership(String name, TeamMembershipArgs args) { + public TeamMembership(java.lang.String name, TeamMembershipArgs args) { this(name, args, null); } /** @@ -165,15 +165,22 @@ public TeamMembership(String name, TeamMembershipArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TeamMembership(String name, TeamMembershipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamMembership:TeamMembership", name, args == null ? TeamMembershipArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TeamMembership(java.lang.String name, TeamMembershipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamMembership:TeamMembership", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TeamMembership(String name, Output id, @Nullable TeamMembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamMembership:TeamMembership", name, state, makeResourceOptions(options, id)); + private TeamMembership(java.lang.String name, Output id, @Nullable TeamMembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamMembership:TeamMembership", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TeamMembershipArgs makeArgs(TeamMembershipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamMembershipArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -189,7 +196,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TeamMembership get(String name, Output id, @Nullable TeamMembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TeamMembership get(java.lang.String name, Output id, @Nullable TeamMembershipState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TeamMembership(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/TeamRepository.java b/sdk/java/src/main/java/com/pulumi/github/TeamRepository.java index 691c3f89..b4996af4 100644 --- a/sdk/java/src/main/java/com/pulumi/github/TeamRepository.java +++ b/sdk/java/src/main/java/com/pulumi/github/TeamRepository.java @@ -152,7 +152,7 @@ public Output teamId() { * * @param name The _unique_ name of the resulting resource. */ - public TeamRepository(String name) { + public TeamRepository(java.lang.String name) { this(name, TeamRepositoryArgs.Empty); } /** @@ -160,7 +160,7 @@ public TeamRepository(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TeamRepository(String name, TeamRepositoryArgs args) { + public TeamRepository(java.lang.String name, TeamRepositoryArgs args) { this(name, args, null); } /** @@ -169,15 +169,22 @@ public TeamRepository(String name, TeamRepositoryArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TeamRepository(String name, TeamRepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamRepository:TeamRepository", name, args == null ? TeamRepositoryArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TeamRepository(java.lang.String name, TeamRepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamRepository:TeamRepository", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TeamRepository(String name, Output id, @Nullable TeamRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamRepository:TeamRepository", name, state, makeResourceOptions(options, id)); + private TeamRepository(java.lang.String name, Output id, @Nullable TeamRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamRepository:TeamRepository", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TeamRepositoryArgs makeArgs(TeamRepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamRepositoryArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -193,7 +200,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TeamRepository get(String name, Output id, @Nullable TeamRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TeamRepository get(java.lang.String name, Output id, @Nullable TeamRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TeamRepository(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/TeamSettings.java b/sdk/java/src/main/java/com/pulumi/github/TeamSettings.java index f6711ff4..39456120 100644 --- a/sdk/java/src/main/java/com/pulumi/github/TeamSettings.java +++ b/sdk/java/src/main/java/com/pulumi/github/TeamSettings.java @@ -150,7 +150,7 @@ public Output teamUid() { * * @param name The _unique_ name of the resulting resource. */ - public TeamSettings(String name) { + public TeamSettings(java.lang.String name) { this(name, TeamSettingsArgs.Empty); } /** @@ -158,7 +158,7 @@ public TeamSettings(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TeamSettings(String name, TeamSettingsArgs args) { + public TeamSettings(java.lang.String name, TeamSettingsArgs args) { this(name, args, null); } /** @@ -167,15 +167,22 @@ public TeamSettings(String name, TeamSettingsArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TeamSettings(String name, TeamSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamSettings:TeamSettings", name, args == null ? TeamSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TeamSettings(java.lang.String name, TeamSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamSettings:TeamSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TeamSettings(String name, Output id, @Nullable TeamSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamSettings:TeamSettings", name, state, makeResourceOptions(options, id)); + private TeamSettings(java.lang.String name, Output id, @Nullable TeamSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamSettings:TeamSettings", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TeamSettingsArgs makeArgs(TeamSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamSettingsArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -191,7 +198,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TeamSettings get(String name, Output id, @Nullable TeamSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TeamSettings get(java.lang.String name, Output id, @Nullable TeamSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TeamSettings(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/TeamSyncGroupMapping.java b/sdk/java/src/main/java/com/pulumi/github/TeamSyncGroupMapping.java index fc1c9bca..9f20b23d 100644 --- a/sdk/java/src/main/java/com/pulumi/github/TeamSyncGroupMapping.java +++ b/sdk/java/src/main/java/com/pulumi/github/TeamSyncGroupMapping.java @@ -84,7 +84,7 @@ public Output teamSlug() { * * @param name The _unique_ name of the resulting resource. */ - public TeamSyncGroupMapping(String name) { + public TeamSyncGroupMapping(java.lang.String name) { this(name, TeamSyncGroupMappingArgs.Empty); } /** @@ -92,7 +92,7 @@ public TeamSyncGroupMapping(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TeamSyncGroupMapping(String name, TeamSyncGroupMappingArgs args) { + public TeamSyncGroupMapping(java.lang.String name, TeamSyncGroupMappingArgs args) { this(name, args, null); } /** @@ -101,15 +101,22 @@ public TeamSyncGroupMapping(String name, TeamSyncGroupMappingArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TeamSyncGroupMapping(String name, TeamSyncGroupMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamSyncGroupMapping:TeamSyncGroupMapping", name, args == null ? TeamSyncGroupMappingArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TeamSyncGroupMapping(java.lang.String name, TeamSyncGroupMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamSyncGroupMapping:TeamSyncGroupMapping", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TeamSyncGroupMapping(String name, Output id, @Nullable TeamSyncGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/teamSyncGroupMapping:TeamSyncGroupMapping", name, state, makeResourceOptions(options, id)); + private TeamSyncGroupMapping(java.lang.String name, Output id, @Nullable TeamSyncGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/teamSyncGroupMapping:TeamSyncGroupMapping", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TeamSyncGroupMappingArgs makeArgs(TeamSyncGroupMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamSyncGroupMappingArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -125,7 +132,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TeamSyncGroupMapping get(String name, Output id, @Nullable TeamSyncGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TeamSyncGroupMapping get(java.lang.String name, Output id, @Nullable TeamSyncGroupMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TeamSyncGroupMapping(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/UserGpgKey.java b/sdk/java/src/main/java/com/pulumi/github/UserGpgKey.java index f218a7d9..5a4512b8 100644 --- a/sdk/java/src/main/java/com/pulumi/github/UserGpgKey.java +++ b/sdk/java/src/main/java/com/pulumi/github/UserGpgKey.java @@ -106,7 +106,7 @@ public Output keyId() { * * @param name The _unique_ name of the resulting resource. */ - public UserGpgKey(String name) { + public UserGpgKey(java.lang.String name) { this(name, UserGpgKeyArgs.Empty); } /** @@ -114,7 +114,7 @@ public UserGpgKey(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public UserGpgKey(String name, UserGpgKeyArgs args) { + public UserGpgKey(java.lang.String name, UserGpgKeyArgs args) { this(name, args, null); } /** @@ -123,15 +123,22 @@ public UserGpgKey(String name, UserGpgKeyArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public UserGpgKey(String name, UserGpgKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/userGpgKey:UserGpgKey", name, args == null ? UserGpgKeyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public UserGpgKey(java.lang.String name, UserGpgKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/userGpgKey:UserGpgKey", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private UserGpgKey(String name, Output id, @Nullable UserGpgKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/userGpgKey:UserGpgKey", name, state, makeResourceOptions(options, id)); + private UserGpgKey(java.lang.String name, Output id, @Nullable UserGpgKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/userGpgKey:UserGpgKey", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static UserGpgKeyArgs makeArgs(UserGpgKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UserGpgKeyArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -147,7 +154,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static UserGpgKey get(String name, Output id, @Nullable UserGpgKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static UserGpgKey get(java.lang.String name, Output id, @Nullable UserGpgKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new UserGpgKey(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/UserInvitationAccepter.java b/sdk/java/src/main/java/com/pulumi/github/UserInvitationAccepter.java index a559fa70..c3143aec 100644 --- a/sdk/java/src/main/java/com/pulumi/github/UserInvitationAccepter.java +++ b/sdk/java/src/main/java/com/pulumi/github/UserInvitationAccepter.java @@ -115,7 +115,7 @@ public Output> invitationId() { * * @param name The _unique_ name of the resulting resource. */ - public UserInvitationAccepter(String name) { + public UserInvitationAccepter(java.lang.String name) { this(name, UserInvitationAccepterArgs.Empty); } /** @@ -123,7 +123,7 @@ public UserInvitationAccepter(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public UserInvitationAccepter(String name, @Nullable UserInvitationAccepterArgs args) { + public UserInvitationAccepter(java.lang.String name, @Nullable UserInvitationAccepterArgs args) { this(name, args, null); } /** @@ -132,15 +132,22 @@ public UserInvitationAccepter(String name, @Nullable UserInvitationAccepterArgs * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public UserInvitationAccepter(String name, @Nullable UserInvitationAccepterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/userInvitationAccepter:UserInvitationAccepter", name, args == null ? UserInvitationAccepterArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public UserInvitationAccepter(java.lang.String name, @Nullable UserInvitationAccepterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/userInvitationAccepter:UserInvitationAccepter", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private UserInvitationAccepter(String name, Output id, @Nullable UserInvitationAccepterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/userInvitationAccepter:UserInvitationAccepter", name, state, makeResourceOptions(options, id)); + private UserInvitationAccepter(java.lang.String name, Output id, @Nullable UserInvitationAccepterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/userInvitationAccepter:UserInvitationAccepter", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static UserInvitationAccepterArgs makeArgs(@Nullable UserInvitationAccepterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UserInvitationAccepterArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -156,7 +163,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static UserInvitationAccepter get(String name, Output id, @Nullable UserInvitationAccepterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static UserInvitationAccepter get(java.lang.String name, Output id, @Nullable UserInvitationAccepterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new UserInvitationAccepter(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/UserSshKey.java b/sdk/java/src/main/java/com/pulumi/github/UserSshKey.java index c0c45803..93a6f133 100644 --- a/sdk/java/src/main/java/com/pulumi/github/UserSshKey.java +++ b/sdk/java/src/main/java/com/pulumi/github/UserSshKey.java @@ -120,7 +120,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public UserSshKey(String name) { + public UserSshKey(java.lang.String name) { this(name, UserSshKeyArgs.Empty); } /** @@ -128,7 +128,7 @@ public UserSshKey(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public UserSshKey(String name, UserSshKeyArgs args) { + public UserSshKey(java.lang.String name, UserSshKeyArgs args) { this(name, args, null); } /** @@ -137,15 +137,22 @@ public UserSshKey(String name, UserSshKeyArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public UserSshKey(String name, UserSshKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/userSshKey:UserSshKey", name, args == null ? UserSshKeyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public UserSshKey(java.lang.String name, UserSshKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/userSshKey:UserSshKey", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private UserSshKey(String name, Output id, @Nullable UserSshKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("github:index/userSshKey:UserSshKey", name, state, makeResourceOptions(options, id)); + private UserSshKey(java.lang.String name, Output id, @Nullable UserSshKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("github:index/userSshKey:UserSshKey", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static UserSshKeyArgs makeArgs(UserSshKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UserSshKeyArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -161,7 +168,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static UserSshKey get(String name, Output id, @Nullable UserSshKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static UserSshKey get(java.lang.String name, Output id, @Nullable UserSshKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new UserSshKey(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/github/Utilities.java b/sdk/java/src/main/java/com/pulumi/github/Utilities.java index 6d0798f2..d7ae18ea 100644 --- a/sdk/java/src/main/java/com/pulumi/github/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/github/Utilities.java @@ -17,7 +17,7 @@ public class Utilities { - public static Optional getEnv(String... names) { + public static Optional getEnv(java.lang.String... names) { for (var n : names) { var value = Environment.getEnvironmentVariable(n); if (value.isValue()) { @@ -27,7 +27,7 @@ public static Optional getEnv(String... names) { return Optional.empty(); } - public static Optional getEnvBoolean(String... names) { + public static Optional getEnvBoolean(java.lang.String... names) { for (var n : names) { var value = Environment.getBooleanEnvironmentVariable(n); if (value.isValue()) { @@ -37,7 +37,7 @@ public static Optional getEnvBoolean(String... names) { return Optional.empty(); } - public static Optional getEnvInteger(String... names) { + public static Optional getEnvInteger(java.lang.String... names) { for (var n : names) { var value = Environment.getIntegerEnvironmentVariable(n); if (value.isValue()) { @@ -47,7 +47,7 @@ public static Optional getEnvInteger(String... names) { return Optional.empty(); } - public static Optional getEnvDouble(String... names) { + public static Optional getEnvDouble(java.lang.String... names) { for (var n : names) { var value = Environment.getDoubleEnvironmentVariable(n); if (value.isValue()) { @@ -68,8 +68,8 @@ public static InvokeOptions withVersion(@Nullable InvokeOptions options) { ); } - private static final String version; - public static String getVersion() { + private static final java.lang.String version; + public static java.lang.String getVersion() { return version; } @@ -78,7 +78,7 @@ public static String getVersion() { var versionFile = Utilities.class.getClassLoader().getResourceAsStream(resourceName); if (versionFile == null) { throw new IllegalStateException( - String.format("expected resource '%s' on Classpath, not found", resourceName) + java.lang.String.format("expected resource '%s' on Classpath, not found", resourceName) ); } version = new BufferedReader(new InputStreamReader(versionFile)) diff --git a/sdk/python/pulumi_github/actions_organization_permissions.py b/sdk/python/pulumi_github/actions_organization_permissions.py index a7649172..4cbc89bd 100644 --- a/sdk/python/pulumi_github/actions_organization_permissions.py +++ b/sdk/python/pulumi_github/actions_organization_permissions.py @@ -162,9 +162,9 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['ActionsOrganizationPermissionsAllowedActionsConfigArgs', 'ActionsOrganizationPermissionsAllowedActionsConfigArgsDict']]] = None, enabled_repositories: Optional[pulumi.Input[str]] = None, - enabled_repositories_config: Optional[pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs']]] = None, + enabled_repositories_config: Optional[pulumi.Input[Union['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs', 'ActionsOrganizationPermissionsEnabledRepositoriesConfigArgsDict']]] = None, __props__=None): """ This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations. @@ -180,17 +180,17 @@ def __init__(__self__, test = github.ActionsOrganizationPermissions("test", allowed_actions="selected", enabled_repositories="selected", - allowed_actions_config=github.ActionsOrganizationPermissionsAllowedActionsConfigArgs( - github_owned_allowed=True, - patterns_alloweds=[ + allowed_actions_config={ + "github_owned_allowed": True, + "patterns_alloweds": [ "actions/cache@*", "actions/checkout@*", ], - verified_allowed=True, - ), - enabled_repositories_config=github.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs( - repository_ids=[example.repo_id], - )) + "verified_allowed": True, + }, + enabled_repositories_config={ + "repository_ids": [example.repo_id], + }) ``` ## Import @@ -204,9 +204,9 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] allowed_actions: The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. - :param pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsAllowedActionsConfigArgs']] allowed_actions_config: Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. + :param pulumi.Input[Union['ActionsOrganizationPermissionsAllowedActionsConfigArgs', 'ActionsOrganizationPermissionsAllowedActionsConfigArgsDict']] allowed_actions_config: Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. :param pulumi.Input[str] enabled_repositories: The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. - :param pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs']] enabled_repositories_config: Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details. + :param pulumi.Input[Union['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs', 'ActionsOrganizationPermissionsEnabledRepositoriesConfigArgsDict']] enabled_repositories_config: Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details. """ ... @overload @@ -228,17 +228,17 @@ def __init__(__self__, test = github.ActionsOrganizationPermissions("test", allowed_actions="selected", enabled_repositories="selected", - allowed_actions_config=github.ActionsOrganizationPermissionsAllowedActionsConfigArgs( - github_owned_allowed=True, - patterns_alloweds=[ + allowed_actions_config={ + "github_owned_allowed": True, + "patterns_alloweds": [ "actions/cache@*", "actions/checkout@*", ], - verified_allowed=True, - ), - enabled_repositories_config=github.ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs( - repository_ids=[example.repo_id], - )) + "verified_allowed": True, + }, + enabled_repositories_config={ + "repository_ids": [example.repo_id], + }) ``` ## Import @@ -265,9 +265,9 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['ActionsOrganizationPermissionsAllowedActionsConfigArgs', 'ActionsOrganizationPermissionsAllowedActionsConfigArgsDict']]] = None, enabled_repositories: Optional[pulumi.Input[str]] = None, - enabled_repositories_config: Optional[pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs']]] = None, + enabled_repositories_config: Optional[pulumi.Input[Union['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs', 'ActionsOrganizationPermissionsEnabledRepositoriesConfigArgsDict']]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -294,9 +294,9 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['ActionsOrganizationPermissionsAllowedActionsConfigArgs', 'ActionsOrganizationPermissionsAllowedActionsConfigArgsDict']]] = None, enabled_repositories: Optional[pulumi.Input[str]] = None, - enabled_repositories_config: Optional[pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs']]] = None) -> 'ActionsOrganizationPermissions': + enabled_repositories_config: Optional[pulumi.Input[Union['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs', 'ActionsOrganizationPermissionsEnabledRepositoriesConfigArgsDict']]] = None) -> 'ActionsOrganizationPermissions': """ Get an existing ActionsOrganizationPermissions resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -305,9 +305,9 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] allowed_actions: The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. - :param pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsAllowedActionsConfigArgs']] allowed_actions_config: Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. + :param pulumi.Input[Union['ActionsOrganizationPermissionsAllowedActionsConfigArgs', 'ActionsOrganizationPermissionsAllowedActionsConfigArgsDict']] allowed_actions_config: Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. :param pulumi.Input[str] enabled_repositories: The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. - :param pulumi.Input[pulumi.InputType['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs']] enabled_repositories_config: Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details. + :param pulumi.Input[Union['ActionsOrganizationPermissionsEnabledRepositoriesConfigArgs', 'ActionsOrganizationPermissionsEnabledRepositoriesConfigArgsDict']] enabled_repositories_config: Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_github/actions_repository_permissions.py b/sdk/python/pulumi_github/actions_repository_permissions.py index 99b10590..d5a22dcb 100644 --- a/sdk/python/pulumi_github/actions_repository_permissions.py +++ b/sdk/python/pulumi_github/actions_repository_permissions.py @@ -162,7 +162,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['ActionsRepositoryPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['ActionsRepositoryPermissionsAllowedActionsConfigArgs', 'ActionsRepositoryPermissionsAllowedActionsConfigArgsDict']]] = None, enabled: Optional[pulumi.Input[bool]] = None, repository: Optional[pulumi.Input[str]] = None, __props__=None): @@ -179,14 +179,14 @@ def __init__(__self__, example = github.Repository("example", name="my-repository") test = github.ActionsRepositoryPermissions("test", allowed_actions="selected", - allowed_actions_config=github.ActionsRepositoryPermissionsAllowedActionsConfigArgs( - github_owned_allowed=True, - patterns_alloweds=[ + allowed_actions_config={ + "github_owned_allowed": True, + "patterns_alloweds": [ "actions/cache@*", "actions/checkout@*", ], - verified_allowed=True, - ), + "verified_allowed": True, + }, repository=example.name) ``` @@ -201,7 +201,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] allowed_actions: The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. - :param pulumi.Input[pulumi.InputType['ActionsRepositoryPermissionsAllowedActionsConfigArgs']] allowed_actions_config: Sets the actions that are allowed in an repository. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. + :param pulumi.Input[Union['ActionsRepositoryPermissionsAllowedActionsConfigArgs', 'ActionsRepositoryPermissionsAllowedActionsConfigArgsDict']] allowed_actions_config: Sets the actions that are allowed in an repository. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. :param pulumi.Input[bool] enabled: Should GitHub actions be enabled on this repository? :param pulumi.Input[str] repository: The GitHub repository """ @@ -224,14 +224,14 @@ def __init__(__self__, example = github.Repository("example", name="my-repository") test = github.ActionsRepositoryPermissions("test", allowed_actions="selected", - allowed_actions_config=github.ActionsRepositoryPermissionsAllowedActionsConfigArgs( - github_owned_allowed=True, - patterns_alloweds=[ + allowed_actions_config={ + "github_owned_allowed": True, + "patterns_alloweds": [ "actions/cache@*", "actions/checkout@*", ], - verified_allowed=True, - ), + "verified_allowed": True, + }, repository=example.name) ``` @@ -259,7 +259,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['ActionsRepositoryPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['ActionsRepositoryPermissionsAllowedActionsConfigArgs', 'ActionsRepositoryPermissionsAllowedActionsConfigArgsDict']]] = None, enabled: Optional[pulumi.Input[bool]] = None, repository: Optional[pulumi.Input[str]] = None, __props__=None): @@ -288,7 +288,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['ActionsRepositoryPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['ActionsRepositoryPermissionsAllowedActionsConfigArgs', 'ActionsRepositoryPermissionsAllowedActionsConfigArgsDict']]] = None, enabled: Optional[pulumi.Input[bool]] = None, repository: Optional[pulumi.Input[str]] = None) -> 'ActionsRepositoryPermissions': """ @@ -299,7 +299,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] allowed_actions: The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. - :param pulumi.Input[pulumi.InputType['ActionsRepositoryPermissionsAllowedActionsConfigArgs']] allowed_actions_config: Sets the actions that are allowed in an repository. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. + :param pulumi.Input[Union['ActionsRepositoryPermissionsAllowedActionsConfigArgs', 'ActionsRepositoryPermissionsAllowedActionsConfigArgsDict']] allowed_actions_config: Sets the actions that are allowed in an repository. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. :param pulumi.Input[bool] enabled: Should GitHub actions be enabled on this repository? :param pulumi.Input[str] repository: The GitHub repository """ diff --git a/sdk/python/pulumi_github/branch_protection.py b/sdk/python/pulumi_github/branch_protection.py index 347992a3..2637f2a0 100644 --- a/sdk/python/pulumi_github/branch_protection.py +++ b/sdk/python/pulumi_github/branch_protection.py @@ -458,9 +458,9 @@ def __init__(__self__, require_conversation_resolution: Optional[pulumi.Input[bool]] = None, require_signed_commits: Optional[pulumi.Input[bool]] = None, required_linear_history: Optional[pulumi.Input[bool]] = None, - required_pull_request_reviews: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredPullRequestReviewArgs']]]]] = None, - required_status_checks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredStatusCheckArgs']]]]] = None, - restrict_pushes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRestrictPushArgs']]]]] = None, + required_pull_request_reviews: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredPullRequestReviewArgs', 'BranchProtectionRequiredPullRequestReviewArgsDict']]]]] = None, + required_status_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredStatusCheckArgs', 'BranchProtectionRequiredStatusCheckArgsDict']]]]] = None, + restrict_pushes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRestrictPushArgs', 'BranchProtectionRestrictPushArgsDict']]]]] = None, __props__=None): """ ## Example Usage @@ -480,27 +480,27 @@ def __init__(__self__, pattern="main", enforce_admins=True, allows_deletions=True, - required_status_checks=[github.BranchProtectionRequiredStatusCheckArgs( - strict=False, - contexts=["ci/travis"], - )], - required_pull_request_reviews=[github.BranchProtectionRequiredPullRequestReviewArgs( - dismiss_stale_reviews=True, - restrict_dismissals=True, - dismissal_restrictions=[ + required_status_checks=[{ + "strict": False, + "contexts": ["ci/travis"], + }], + required_pull_request_reviews=[{ + "dismiss_stale_reviews": True, + "restrict_dismissals": True, + "dismissal_restrictions": [ example.node_id, example_team.node_id, "/exampleuser", "exampleorganization/exampleteam", ], - )], - restrict_pushes=[github.BranchProtectionRestrictPushArgs( - push_allowances=[ + }], + restrict_pushes=[{ + "push_allowances": [ example.node_id, "/exampleuser", "exampleorganization/exampleteam", ], - )], + }], force_push_bypassers=[ example.node_id, "/exampleuser", @@ -532,9 +532,9 @@ def __init__(__self__, :param pulumi.Input[bool] require_conversation_resolution: Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged. :param pulumi.Input[bool] require_signed_commits: Boolean, setting this to `true` requires all commits to be signed with GPG. :param pulumi.Input[bool] required_linear_history: Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredPullRequestReviewArgs']]]] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredStatusCheckArgs']]]] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRestrictPushArgs']]]] restrict_pushes: Restrict pushes to matching branches. See Restrict Pushes below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredPullRequestReviewArgs', 'BranchProtectionRequiredPullRequestReviewArgsDict']]]] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredStatusCheckArgs', 'BranchProtectionRequiredStatusCheckArgsDict']]]] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRestrictPushArgs', 'BranchProtectionRestrictPushArgsDict']]]] restrict_pushes: Restrict pushes to matching branches. See Restrict Pushes below for details. """ ... @overload @@ -560,27 +560,27 @@ def __init__(__self__, pattern="main", enforce_admins=True, allows_deletions=True, - required_status_checks=[github.BranchProtectionRequiredStatusCheckArgs( - strict=False, - contexts=["ci/travis"], - )], - required_pull_request_reviews=[github.BranchProtectionRequiredPullRequestReviewArgs( - dismiss_stale_reviews=True, - restrict_dismissals=True, - dismissal_restrictions=[ + required_status_checks=[{ + "strict": False, + "contexts": ["ci/travis"], + }], + required_pull_request_reviews=[{ + "dismiss_stale_reviews": True, + "restrict_dismissals": True, + "dismissal_restrictions": [ example.node_id, example_team.node_id, "/exampleuser", "exampleorganization/exampleteam", ], - )], - restrict_pushes=[github.BranchProtectionRestrictPushArgs( - push_allowances=[ + }], + restrict_pushes=[{ + "push_allowances": [ example.node_id, "/exampleuser", "exampleorganization/exampleteam", ], - )], + }], force_push_bypassers=[ example.node_id, "/exampleuser", @@ -625,9 +625,9 @@ def _internal_init(__self__, require_conversation_resolution: Optional[pulumi.Input[bool]] = None, require_signed_commits: Optional[pulumi.Input[bool]] = None, required_linear_history: Optional[pulumi.Input[bool]] = None, - required_pull_request_reviews: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredPullRequestReviewArgs']]]]] = None, - required_status_checks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredStatusCheckArgs']]]]] = None, - restrict_pushes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRestrictPushArgs']]]]] = None, + required_pull_request_reviews: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredPullRequestReviewArgs', 'BranchProtectionRequiredPullRequestReviewArgsDict']]]]] = None, + required_status_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredStatusCheckArgs', 'BranchProtectionRequiredStatusCheckArgsDict']]]]] = None, + restrict_pushes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRestrictPushArgs', 'BranchProtectionRestrictPushArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -674,9 +674,9 @@ def get(resource_name: str, require_conversation_resolution: Optional[pulumi.Input[bool]] = None, require_signed_commits: Optional[pulumi.Input[bool]] = None, required_linear_history: Optional[pulumi.Input[bool]] = None, - required_pull_request_reviews: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredPullRequestReviewArgs']]]]] = None, - required_status_checks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredStatusCheckArgs']]]]] = None, - restrict_pushes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRestrictPushArgs']]]]] = None) -> 'BranchProtection': + required_pull_request_reviews: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredPullRequestReviewArgs', 'BranchProtectionRequiredPullRequestReviewArgsDict']]]]] = None, + required_status_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredStatusCheckArgs', 'BranchProtectionRequiredStatusCheckArgsDict']]]]] = None, + restrict_pushes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRestrictPushArgs', 'BranchProtectionRestrictPushArgsDict']]]]] = None) -> 'BranchProtection': """ Get an existing BranchProtection resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -694,9 +694,9 @@ def get(resource_name: str, :param pulumi.Input[bool] require_conversation_resolution: Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged. :param pulumi.Input[bool] require_signed_commits: Boolean, setting this to `true` requires all commits to be signed with GPG. :param pulumi.Input[bool] required_linear_history: Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredPullRequestReviewArgs']]]] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRequiredStatusCheckArgs']]]] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['BranchProtectionRestrictPushArgs']]]] restrict_pushes: Restrict pushes to matching branches. See Restrict Pushes below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredPullRequestReviewArgs', 'BranchProtectionRequiredPullRequestReviewArgsDict']]]] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRequiredStatusCheckArgs', 'BranchProtectionRequiredStatusCheckArgsDict']]]] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['BranchProtectionRestrictPushArgs', 'BranchProtectionRestrictPushArgsDict']]]] restrict_pushes: Restrict pushes to matching branches. See Restrict Pushes below for details. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_github/branch_protection_v3.py b/sdk/python/pulumi_github/branch_protection_v3.py index b422ec0e..af06364c 100644 --- a/sdk/python/pulumi_github/branch_protection_v3.py +++ b/sdk/python/pulumi_github/branch_protection_v3.py @@ -305,9 +305,9 @@ def __init__(__self__, repository: Optional[pulumi.Input[str]] = None, require_conversation_resolution: Optional[pulumi.Input[bool]] = None, require_signed_commits: Optional[pulumi.Input[bool]] = None, - required_pull_request_reviews: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredPullRequestReviewsArgs']]] = None, - required_status_checks: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredStatusChecksArgs']]] = None, - restrictions: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RestrictionsArgs']]] = None, + required_pull_request_reviews: Optional[pulumi.Input[Union['BranchProtectionV3RequiredPullRequestReviewsArgs', 'BranchProtectionV3RequiredPullRequestReviewsArgsDict']]] = None, + required_status_checks: Optional[pulumi.Input[Union['BranchProtectionV3RequiredStatusChecksArgs', 'BranchProtectionV3RequiredStatusChecksArgsDict']]] = None, + restrictions: Optional[pulumi.Input[Union['BranchProtectionV3RestrictionsArgs', 'BranchProtectionV3RestrictionsArgsDict']]] = None, __props__=None): """ Protects a GitHub branch. @@ -326,9 +326,9 @@ def __init__(__self__, example = github.BranchProtectionV3("example", repository=example_github_repository["name"], branch="main", - restrictions=github.BranchProtectionV3RestrictionsArgs( - users=["foo-user"], - )) + restrictions={ + "users": ["foo-user"], + }) ``` ## Import @@ -346,9 +346,9 @@ def __init__(__self__, :param pulumi.Input[str] repository: The GitHub repository name. :param pulumi.Input[bool] require_conversation_resolution: Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged. :param pulumi.Input[bool] require_signed_commits: Boolean, setting this to `true` requires all commits to be signed with GPG. - :param pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredPullRequestReviewsArgs']] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. - :param pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredStatusChecksArgs']] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. - :param pulumi.Input[pulumi.InputType['BranchProtectionV3RestrictionsArgs']] restrictions: Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details. + :param pulumi.Input[Union['BranchProtectionV3RequiredPullRequestReviewsArgs', 'BranchProtectionV3RequiredPullRequestReviewsArgsDict']] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. + :param pulumi.Input[Union['BranchProtectionV3RequiredStatusChecksArgs', 'BranchProtectionV3RequiredStatusChecksArgsDict']] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. + :param pulumi.Input[Union['BranchProtectionV3RestrictionsArgs', 'BranchProtectionV3RestrictionsArgsDict']] restrictions: Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details. """ ... @overload @@ -373,9 +373,9 @@ def __init__(__self__, example = github.BranchProtectionV3("example", repository=example_github_repository["name"], branch="main", - restrictions=github.BranchProtectionV3RestrictionsArgs( - users=["foo-user"], - )) + restrictions={ + "users": ["foo-user"], + }) ``` ## Import @@ -406,9 +406,9 @@ def _internal_init(__self__, repository: Optional[pulumi.Input[str]] = None, require_conversation_resolution: Optional[pulumi.Input[bool]] = None, require_signed_commits: Optional[pulumi.Input[bool]] = None, - required_pull_request_reviews: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredPullRequestReviewsArgs']]] = None, - required_status_checks: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredStatusChecksArgs']]] = None, - restrictions: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RestrictionsArgs']]] = None, + required_pull_request_reviews: Optional[pulumi.Input[Union['BranchProtectionV3RequiredPullRequestReviewsArgs', 'BranchProtectionV3RequiredPullRequestReviewsArgsDict']]] = None, + required_status_checks: Optional[pulumi.Input[Union['BranchProtectionV3RequiredStatusChecksArgs', 'BranchProtectionV3RequiredStatusChecksArgsDict']]] = None, + restrictions: Optional[pulumi.Input[Union['BranchProtectionV3RestrictionsArgs', 'BranchProtectionV3RestrictionsArgsDict']]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -447,9 +447,9 @@ def get(resource_name: str, repository: Optional[pulumi.Input[str]] = None, require_conversation_resolution: Optional[pulumi.Input[bool]] = None, require_signed_commits: Optional[pulumi.Input[bool]] = None, - required_pull_request_reviews: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredPullRequestReviewsArgs']]] = None, - required_status_checks: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredStatusChecksArgs']]] = None, - restrictions: Optional[pulumi.Input[pulumi.InputType['BranchProtectionV3RestrictionsArgs']]] = None) -> 'BranchProtectionV3': + required_pull_request_reviews: Optional[pulumi.Input[Union['BranchProtectionV3RequiredPullRequestReviewsArgs', 'BranchProtectionV3RequiredPullRequestReviewsArgsDict']]] = None, + required_status_checks: Optional[pulumi.Input[Union['BranchProtectionV3RequiredStatusChecksArgs', 'BranchProtectionV3RequiredStatusChecksArgsDict']]] = None, + restrictions: Optional[pulumi.Input[Union['BranchProtectionV3RestrictionsArgs', 'BranchProtectionV3RestrictionsArgsDict']]] = None) -> 'BranchProtectionV3': """ Get an existing BranchProtectionV3 resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -462,9 +462,9 @@ def get(resource_name: str, :param pulumi.Input[str] repository: The GitHub repository name. :param pulumi.Input[bool] require_conversation_resolution: Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged. :param pulumi.Input[bool] require_signed_commits: Boolean, setting this to `true` requires all commits to be signed with GPG. - :param pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredPullRequestReviewsArgs']] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. - :param pulumi.Input[pulumi.InputType['BranchProtectionV3RequiredStatusChecksArgs']] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. - :param pulumi.Input[pulumi.InputType['BranchProtectionV3RestrictionsArgs']] restrictions: Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details. + :param pulumi.Input[Union['BranchProtectionV3RequiredPullRequestReviewsArgs', 'BranchProtectionV3RequiredPullRequestReviewsArgsDict']] required_pull_request_reviews: Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details. + :param pulumi.Input[Union['BranchProtectionV3RequiredStatusChecksArgs', 'BranchProtectionV3RequiredStatusChecksArgsDict']] required_status_checks: Enforce restrictions for required status checks. See Required Status Checks below for details. + :param pulumi.Input[Union['BranchProtectionV3RestrictionsArgs', 'BranchProtectionV3RestrictionsArgsDict']] restrictions: Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_github/enterprise_actions_permissions.py b/sdk/python/pulumi_github/enterprise_actions_permissions.py index 5a63a133..6d8fe9b5 100644 --- a/sdk/python/pulumi_github/enterprise_actions_permissions.py +++ b/sdk/python/pulumi_github/enterprise_actions_permissions.py @@ -193,9 +193,9 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['EnterpriseActionsPermissionsAllowedActionsConfigArgs', 'EnterpriseActionsPermissionsAllowedActionsConfigArgsDict']]] = None, enabled_organizations: Optional[pulumi.Input[str]] = None, - enabled_organizations_config: Optional[pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs']]] = None, + enabled_organizations_config: Optional[pulumi.Input[Union['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs', 'EnterpriseActionsPermissionsEnabledOrganizationsConfigArgsDict']]] = None, enterprise_slug: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -213,17 +213,17 @@ def __init__(__self__, enterprise_slug="my-enterprise", allowed_actions="selected", enabled_organizations="selected", - allowed_actions_config=github.EnterpriseActionsPermissionsAllowedActionsConfigArgs( - github_owned_allowed=True, - patterns_alloweds=[ + allowed_actions_config={ + "github_owned_allowed": True, + "patterns_alloweds": [ "actions/cache@*", "actions/checkout@*", ], - verified_allowed=True, - ), - enabled_organizations_config=github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs( - organization_ids=[example_org.id], - )) + "verified_allowed": True, + }, + enabled_organizations_config={ + "organization_ids": [example_org.id], + }) ``` ## Import @@ -237,9 +237,9 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] allowed_actions: The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. - :param pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsAllowedActionsConfigArgs']] allowed_actions_config: Sets the actions that are allowed in an enterprise. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. + :param pulumi.Input[Union['EnterpriseActionsPermissionsAllowedActionsConfigArgs', 'EnterpriseActionsPermissionsAllowedActionsConfigArgsDict']] allowed_actions_config: Sets the actions that are allowed in an enterprise. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. :param pulumi.Input[str] enabled_organizations: The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. - :param pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs']] enabled_organizations_config: Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabled_organizations` = `selected`. See Enabled Organizations Config below for details. + :param pulumi.Input[Union['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs', 'EnterpriseActionsPermissionsEnabledOrganizationsConfigArgsDict']] enabled_organizations_config: Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabled_organizations` = `selected`. See Enabled Organizations Config below for details. :param pulumi.Input[str] enterprise_slug: The slug of the enterprise. """ ... @@ -263,17 +263,17 @@ def __init__(__self__, enterprise_slug="my-enterprise", allowed_actions="selected", enabled_organizations="selected", - allowed_actions_config=github.EnterpriseActionsPermissionsAllowedActionsConfigArgs( - github_owned_allowed=True, - patterns_alloweds=[ + allowed_actions_config={ + "github_owned_allowed": True, + "patterns_alloweds": [ "actions/cache@*", "actions/checkout@*", ], - verified_allowed=True, - ), - enabled_organizations_config=github.EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs( - organization_ids=[example_org.id], - )) + "verified_allowed": True, + }, + enabled_organizations_config={ + "organization_ids": [example_org.id], + }) ``` ## Import @@ -300,9 +300,9 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['EnterpriseActionsPermissionsAllowedActionsConfigArgs', 'EnterpriseActionsPermissionsAllowedActionsConfigArgsDict']]] = None, enabled_organizations: Optional[pulumi.Input[str]] = None, - enabled_organizations_config: Optional[pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs']]] = None, + enabled_organizations_config: Optional[pulumi.Input[Union['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs', 'EnterpriseActionsPermissionsEnabledOrganizationsConfigArgsDict']]] = None, enterprise_slug: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -333,9 +333,9 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, allowed_actions: Optional[pulumi.Input[str]] = None, - allowed_actions_config: Optional[pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsAllowedActionsConfigArgs']]] = None, + allowed_actions_config: Optional[pulumi.Input[Union['EnterpriseActionsPermissionsAllowedActionsConfigArgs', 'EnterpriseActionsPermissionsAllowedActionsConfigArgsDict']]] = None, enabled_organizations: Optional[pulumi.Input[str]] = None, - enabled_organizations_config: Optional[pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs']]] = None, + enabled_organizations_config: Optional[pulumi.Input[Union['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs', 'EnterpriseActionsPermissionsEnabledOrganizationsConfigArgsDict']]] = None, enterprise_slug: Optional[pulumi.Input[str]] = None) -> 'EnterpriseActionsPermissions': """ Get an existing EnterpriseActionsPermissions resource's state with the given name, id, and optional extra @@ -345,9 +345,9 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] allowed_actions: The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. - :param pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsAllowedActionsConfigArgs']] allowed_actions_config: Sets the actions that are allowed in an enterprise. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. + :param pulumi.Input[Union['EnterpriseActionsPermissionsAllowedActionsConfigArgs', 'EnterpriseActionsPermissionsAllowedActionsConfigArgsDict']] allowed_actions_config: Sets the actions that are allowed in an enterprise. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details. :param pulumi.Input[str] enabled_organizations: The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. - :param pulumi.Input[pulumi.InputType['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs']] enabled_organizations_config: Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabled_organizations` = `selected`. See Enabled Organizations Config below for details. + :param pulumi.Input[Union['EnterpriseActionsPermissionsEnabledOrganizationsConfigArgs', 'EnterpriseActionsPermissionsEnabledOrganizationsConfigArgsDict']] enabled_organizations_config: Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabled_organizations` = `selected`. See Enabled Organizations Config below for details. :param pulumi.Input[str] enterprise_slug: The slug of the enterprise. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_github/issue_labels.py b/sdk/python/pulumi_github/issue_labels.py index b3f30c1f..4ca6912e 100644 --- a/sdk/python/pulumi_github/issue_labels.py +++ b/sdk/python/pulumi_github/issue_labels.py @@ -97,7 +97,7 @@ class IssueLabels(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - labels: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IssueLabelsLabelArgs']]]]] = None, + labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IssueLabelsLabelArgs', 'IssueLabelsLabelArgsDict']]]]] = None, repository: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -122,14 +122,14 @@ def __init__(__self__, test_repo = github.IssueLabels("test_repo", repository="test-repo", labels=[ - github.IssueLabelsLabelArgs( - name="Urgent", - color="FF0000", - ), - github.IssueLabelsLabelArgs( - name="Critical", - color="FF0000", - ), + { + "name": "Urgent", + "color": "FF0000", + }, + { + "name": "Critical", + "color": "FF0000", + }, ]) ``` @@ -143,7 +143,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IssueLabelsLabelArgs']]]] labels: List of labels + :param pulumi.Input[Sequence[pulumi.Input[Union['IssueLabelsLabelArgs', 'IssueLabelsLabelArgsDict']]]] labels: List of labels :param pulumi.Input[str] repository: The GitHub repository """ ... @@ -174,14 +174,14 @@ def __init__(__self__, test_repo = github.IssueLabels("test_repo", repository="test-repo", labels=[ - github.IssueLabelsLabelArgs( - name="Urgent", - color="FF0000", - ), - github.IssueLabelsLabelArgs( - name="Critical", - color="FF0000", - ), + { + "name": "Urgent", + "color": "FF0000", + }, + { + "name": "Critical", + "color": "FF0000", + }, ]) ``` @@ -208,7 +208,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - labels: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IssueLabelsLabelArgs']]]]] = None, + labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IssueLabelsLabelArgs', 'IssueLabelsLabelArgsDict']]]]] = None, repository: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -233,7 +233,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - labels: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IssueLabelsLabelArgs']]]]] = None, + labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IssueLabelsLabelArgs', 'IssueLabelsLabelArgsDict']]]]] = None, repository: Optional[pulumi.Input[str]] = None) -> 'IssueLabels': """ Get an existing IssueLabels resource's state with the given name, id, and optional extra @@ -242,7 +242,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IssueLabelsLabelArgs']]]] labels: List of labels + :param pulumi.Input[Sequence[pulumi.Input[Union['IssueLabelsLabelArgs', 'IssueLabelsLabelArgsDict']]]] labels: List of labels :param pulumi.Input[str] repository: The GitHub repository """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_github/organization_ruleset.py b/sdk/python/pulumi_github/organization_ruleset.py index 807a7f30..52a6ae47 100644 --- a/sdk/python/pulumi_github/organization_ruleset.py +++ b/sdk/python/pulumi_github/organization_ruleset.py @@ -271,11 +271,11 @@ class OrganizationRuleset(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OrganizationRulesetBypassActorArgs']]]]] = None, - conditions: Optional[pulumi.Input[pulumi.InputType['OrganizationRulesetConditionsArgs']]] = None, + bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OrganizationRulesetBypassActorArgs', 'OrganizationRulesetBypassActorArgsDict']]]]] = None, + conditions: Optional[pulumi.Input[Union['OrganizationRulesetConditionsArgs', 'OrganizationRulesetConditionsArgsDict']]] = None, enforcement: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[pulumi.InputType['OrganizationRulesetRulesArgs']]] = None, + rules: Optional[pulumi.Input[Union['OrganizationRulesetRulesArgs', 'OrganizationRulesetRulesArgsDict']]] = None, target: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -293,30 +293,30 @@ def __init__(__self__, name="example", target="branch", enforcement="active", - conditions=github.OrganizationRulesetConditionsArgs( - ref_name=github.OrganizationRulesetConditionsRefNameArgs( - includes=["~ALL"], - excludes=[], - ), - ), - bypass_actors=[github.OrganizationRulesetBypassActorArgs( - actor_id=13473, - actor_type="Integration", - bypass_mode="always", - )], - rules=github.OrganizationRulesetRulesArgs( - creation=True, - update=True, - deletion=True, - required_linear_history=True, - required_signatures=True, - branch_name_pattern=github.OrganizationRulesetRulesBranchNamePatternArgs( - name="example", - negate=False, - operator="starts_with", - pattern="ex", - ), - )) + conditions={ + "ref_name": { + "includes": ["~ALL"], + "excludes": [], + }, + }, + bypass_actors=[{ + "actor_id": 13473, + "actor_type": "Integration", + "bypass_mode": "always", + }], + rules={ + "creation": True, + "update": True, + "deletion": True, + "required_linear_history": True, + "required_signatures": True, + "branch_name_pattern": { + "name": "example", + "negate": False, + "operator": "starts_with", + "pattern": "ex", + }, + }) ``` ## Import @@ -329,11 +329,11 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OrganizationRulesetBypassActorArgs']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) - :param pulumi.Input[pulumi.InputType['OrganizationRulesetConditionsArgs']] conditions: (Block List, Max: 1) Parameters for an organization ruleset condition. `ref_name` is required alongside one of `repository_name` or `repository_id`. (see below for nested schema) + :param pulumi.Input[Sequence[pulumi.Input[Union['OrganizationRulesetBypassActorArgs', 'OrganizationRulesetBypassActorArgsDict']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + :param pulumi.Input[Union['OrganizationRulesetConditionsArgs', 'OrganizationRulesetConditionsArgsDict']] conditions: (Block List, Max: 1) Parameters for an organization ruleset condition. `ref_name` is required alongside one of `repository_name` or `repository_id`. (see below for nested schema) :param pulumi.Input[str] enforcement: (String) Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. :param pulumi.Input[str] name: (String) The name of the ruleset. - :param pulumi.Input[pulumi.InputType['OrganizationRulesetRulesArgs']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + :param pulumi.Input[Union['OrganizationRulesetRulesArgs', 'OrganizationRulesetRulesArgsDict']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) :param pulumi.Input[str] target: (String) Possible values are `branch` and `tag`. """ ... @@ -357,30 +357,30 @@ def __init__(__self__, name="example", target="branch", enforcement="active", - conditions=github.OrganizationRulesetConditionsArgs( - ref_name=github.OrganizationRulesetConditionsRefNameArgs( - includes=["~ALL"], - excludes=[], - ), - ), - bypass_actors=[github.OrganizationRulesetBypassActorArgs( - actor_id=13473, - actor_type="Integration", - bypass_mode="always", - )], - rules=github.OrganizationRulesetRulesArgs( - creation=True, - update=True, - deletion=True, - required_linear_history=True, - required_signatures=True, - branch_name_pattern=github.OrganizationRulesetRulesBranchNamePatternArgs( - name="example", - negate=False, - operator="starts_with", - pattern="ex", - ), - )) + conditions={ + "ref_name": { + "includes": ["~ALL"], + "excludes": [], + }, + }, + bypass_actors=[{ + "actor_id": 13473, + "actor_type": "Integration", + "bypass_mode": "always", + }], + rules={ + "creation": True, + "update": True, + "deletion": True, + "required_linear_history": True, + "required_signatures": True, + "branch_name_pattern": { + "name": "example", + "negate": False, + "operator": "starts_with", + "pattern": "ex", + }, + }) ``` ## Import @@ -406,11 +406,11 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OrganizationRulesetBypassActorArgs']]]]] = None, - conditions: Optional[pulumi.Input[pulumi.InputType['OrganizationRulesetConditionsArgs']]] = None, + bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OrganizationRulesetBypassActorArgs', 'OrganizationRulesetBypassActorArgsDict']]]]] = None, + conditions: Optional[pulumi.Input[Union['OrganizationRulesetConditionsArgs', 'OrganizationRulesetConditionsArgsDict']]] = None, enforcement: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[pulumi.InputType['OrganizationRulesetRulesArgs']]] = None, + rules: Optional[pulumi.Input[Union['OrganizationRulesetRulesArgs', 'OrganizationRulesetRulesArgsDict']]] = None, target: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -446,13 +446,13 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OrganizationRulesetBypassActorArgs']]]]] = None, - conditions: Optional[pulumi.Input[pulumi.InputType['OrganizationRulesetConditionsArgs']]] = None, + bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OrganizationRulesetBypassActorArgs', 'OrganizationRulesetBypassActorArgsDict']]]]] = None, + conditions: Optional[pulumi.Input[Union['OrganizationRulesetConditionsArgs', 'OrganizationRulesetConditionsArgsDict']]] = None, enforcement: Optional[pulumi.Input[str]] = None, etag: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, node_id: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[pulumi.InputType['OrganizationRulesetRulesArgs']]] = None, + rules: Optional[pulumi.Input[Union['OrganizationRulesetRulesArgs', 'OrganizationRulesetRulesArgsDict']]] = None, ruleset_id: Optional[pulumi.Input[int]] = None, target: Optional[pulumi.Input[str]] = None) -> 'OrganizationRuleset': """ @@ -462,13 +462,13 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OrganizationRulesetBypassActorArgs']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) - :param pulumi.Input[pulumi.InputType['OrganizationRulesetConditionsArgs']] conditions: (Block List, Max: 1) Parameters for an organization ruleset condition. `ref_name` is required alongside one of `repository_name` or `repository_id`. (see below for nested schema) + :param pulumi.Input[Sequence[pulumi.Input[Union['OrganizationRulesetBypassActorArgs', 'OrganizationRulesetBypassActorArgsDict']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + :param pulumi.Input[Union['OrganizationRulesetConditionsArgs', 'OrganizationRulesetConditionsArgsDict']] conditions: (Block List, Max: 1) Parameters for an organization ruleset condition. `ref_name` is required alongside one of `repository_name` or `repository_id`. (see below for nested schema) :param pulumi.Input[str] enforcement: (String) Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. :param pulumi.Input[str] etag: (String) :param pulumi.Input[str] name: (String) The name of the ruleset. :param pulumi.Input[str] node_id: (String) GraphQL global node id for use with v4 API. - :param pulumi.Input[pulumi.InputType['OrganizationRulesetRulesArgs']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + :param pulumi.Input[Union['OrganizationRulesetRulesArgs', 'OrganizationRulesetRulesArgsDict']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) :param pulumi.Input[int] ruleset_id: (Number) GitHub ID for the ruleset. :param pulumi.Input[str] target: (String) Possible values are `branch` and `tag`. """ diff --git a/sdk/python/pulumi_github/organization_webhook.py b/sdk/python/pulumi_github/organization_webhook.py index 1d4aeade..ed1d16ef 100644 --- a/sdk/python/pulumi_github/organization_webhook.py +++ b/sdk/python/pulumi_github/organization_webhook.py @@ -158,7 +158,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, active: Optional[pulumi.Input[bool]] = None, - configuration: Optional[pulumi.Input[pulumi.InputType['OrganizationWebhookConfigurationArgs']]] = None, + configuration: Optional[pulumi.Input[Union['OrganizationWebhookConfigurationArgs', 'OrganizationWebhookConfigurationArgsDict']]] = None, events: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ @@ -177,7 +177,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] active: Indicate of the webhook should receive events. Defaults to `true`. - :param pulumi.Input[pulumi.InputType['OrganizationWebhookConfigurationArgs']] configuration: key/value pair of configuration for this webhook. Available keys are `url`, `content_type`, `secret` and `insecure_ssl`. + :param pulumi.Input[Union['OrganizationWebhookConfigurationArgs', 'OrganizationWebhookConfigurationArgsDict']] configuration: key/value pair of configuration for this webhook. Available keys are `url`, `content_type`, `secret` and `insecure_ssl`. :param pulumi.Input[Sequence[pulumi.Input[str]]] events: A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/) """ ... @@ -215,7 +215,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, active: Optional[pulumi.Input[bool]] = None, - configuration: Optional[pulumi.Input[pulumi.InputType['OrganizationWebhookConfigurationArgs']]] = None, + configuration: Optional[pulumi.Input[Union['OrganizationWebhookConfigurationArgs', 'OrganizationWebhookConfigurationArgsDict']]] = None, events: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -244,7 +244,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, active: Optional[pulumi.Input[bool]] = None, - configuration: Optional[pulumi.Input[pulumi.InputType['OrganizationWebhookConfigurationArgs']]] = None, + configuration: Optional[pulumi.Input[Union['OrganizationWebhookConfigurationArgs', 'OrganizationWebhookConfigurationArgsDict']]] = None, etag: Optional[pulumi.Input[str]] = None, events: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, url: Optional[pulumi.Input[str]] = None) -> 'OrganizationWebhook': @@ -256,7 +256,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] active: Indicate of the webhook should receive events. Defaults to `true`. - :param pulumi.Input[pulumi.InputType['OrganizationWebhookConfigurationArgs']] configuration: key/value pair of configuration for this webhook. Available keys are `url`, `content_type`, `secret` and `insecure_ssl`. + :param pulumi.Input[Union['OrganizationWebhookConfigurationArgs', 'OrganizationWebhookConfigurationArgsDict']] configuration: key/value pair of configuration for this webhook. Available keys are `url`, `content_type`, `secret` and `insecure_ssl`. :param pulumi.Input[Sequence[pulumi.Input[str]]] events: A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/) :param pulumi.Input[str] url: URL of the webhook """ diff --git a/sdk/python/pulumi_github/provider.py b/sdk/python/pulumi_github/provider.py index 9a512ae8..9259e54e 100644 --- a/sdk/python/pulumi_github/provider.py +++ b/sdk/python/pulumi_github/provider.py @@ -235,7 +235,7 @@ class Provider(pulumi.ProviderResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - app_auth: Optional[pulumi.Input[pulumi.InputType['ProviderAppAuthArgs']]] = None, + app_auth: Optional[pulumi.Input[Union['ProviderAppAuthArgs', 'ProviderAppAuthArgsDict']]] = None, base_url: Optional[pulumi.Input[str]] = None, insecure: Optional[pulumi.Input[bool]] = None, max_retries: Optional[pulumi.Input[int]] = None, @@ -256,7 +256,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['ProviderAppAuthArgs']] app_auth: The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token` + :param pulumi.Input[Union['ProviderAppAuthArgs', 'ProviderAppAuthArgsDict']] app_auth: The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token` and `app_auth` are not set. :param pulumi.Input[str] base_url: The GitHub Base API URL :param pulumi.Input[bool] insecure: Enable `insecure` mode for testing purposes @@ -301,7 +301,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - app_auth: Optional[pulumi.Input[pulumi.InputType['ProviderAppAuthArgs']]] = None, + app_auth: Optional[pulumi.Input[Union['ProviderAppAuthArgs', 'ProviderAppAuthArgsDict']]] = None, base_url: Optional[pulumi.Input[str]] = None, insecure: Optional[pulumi.Input[bool]] = None, max_retries: Optional[pulumi.Input[int]] = None, diff --git a/sdk/python/pulumi_github/repository.py b/sdk/python/pulumi_github/repository.py index 5f405494..a7b90d8f 100644 --- a/sdk/python/pulumi_github/repository.py +++ b/sdk/python/pulumi_github/repository.py @@ -1338,12 +1338,12 @@ def __init__(__self__, merge_commit_message: Optional[pulumi.Input[str]] = None, merge_commit_title: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - pages: Optional[pulumi.Input[pulumi.InputType['RepositoryPagesArgs']]] = None, + pages: Optional[pulumi.Input[Union['RepositoryPagesArgs', 'RepositoryPagesArgsDict']]] = None, private: Optional[pulumi.Input[bool]] = None, - security_and_analysis: Optional[pulumi.Input[pulumi.InputType['RepositorySecurityAndAnalysisArgs']]] = None, + security_and_analysis: Optional[pulumi.Input[Union['RepositorySecurityAndAnalysisArgs', 'RepositorySecurityAndAnalysisArgsDict']]] = None, squash_merge_commit_message: Optional[pulumi.Input[str]] = None, squash_merge_commit_title: Optional[pulumi.Input[str]] = None, - template: Optional[pulumi.Input[pulumi.InputType['RepositoryTemplateArgs']]] = None, + template: Optional[pulumi.Input[Union['RepositoryTemplateArgs', 'RepositoryTemplateArgsDict']]] = None, topics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, visibility: Optional[pulumi.Input[str]] = None, vulnerability_alerts: Optional[pulumi.Input[bool]] = None, @@ -1369,11 +1369,11 @@ def __init__(__self__, name="example", description="My awesome codebase", visibility="public", - template=github.RepositoryTemplateArgs( - owner="github", - repository="terraform-template-module", - include_all_branches=True, - )) + template={ + "owner": "github", + "repository": "terraform-template-module", + "include_all_branches": True, + }) ``` ### With GitHub Pages Enabled @@ -1386,12 +1386,12 @@ def __init__(__self__, name="example", description="My awesome web page", private=False, - pages=github.RepositoryPagesArgs( - source=github.RepositoryPagesSourceArgs( - branch="master", - path="/docs", - ), - )) + pages={ + "source": { + "branch": "master", + "path": "/docs", + }, + }) ``` ## Import @@ -1432,13 +1432,13 @@ def __init__(__self__, :param pulumi.Input[str] merge_commit_message: Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message. Applicable only if `allow_merge_commit` is `true`. :param pulumi.Input[str] merge_commit_title: Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title. Applicable only if `allow_merge_commit` is `true`. :param pulumi.Input[str] name: The name of the repository. - :param pulumi.Input[pulumi.InputType['RepositoryPagesArgs']] pages: The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details. + :param pulumi.Input[Union['RepositoryPagesArgs', 'RepositoryPagesArgsDict']] pages: The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details. :param pulumi.Input[bool] private: Set to `true` to create a private repository. Repositories are created as public (e.g. open source) by default. - :param pulumi.Input[pulumi.InputType['RepositorySecurityAndAnalysisArgs']] security_and_analysis: The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details. + :param pulumi.Input[Union['RepositorySecurityAndAnalysisArgs', 'RepositorySecurityAndAnalysisArgsDict']] security_and_analysis: The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details. :param pulumi.Input[str] squash_merge_commit_message: Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message. Applicable only if `allow_squash_merge` is `true`. :param pulumi.Input[str] squash_merge_commit_title: Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title. Applicable only if `allow_squash_merge` is `true`. - :param pulumi.Input[pulumi.InputType['RepositoryTemplateArgs']] template: Use a template repository to create this resource. See Template Repositories below for details. + :param pulumi.Input[Union['RepositoryTemplateArgs', 'RepositoryTemplateArgsDict']] template: Use a template repository to create this resource. See Template Repositories below for details. :param pulumi.Input[Sequence[pulumi.Input[str]]] topics: The list of topics of the repository. :param pulumi.Input[str] visibility: Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter. :param pulumi.Input[bool] vulnerability_alerts: Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings. @@ -1470,11 +1470,11 @@ def __init__(__self__, name="example", description="My awesome codebase", visibility="public", - template=github.RepositoryTemplateArgs( - owner="github", - repository="terraform-template-module", - include_all_branches=True, - )) + template={ + "owner": "github", + "repository": "terraform-template-module", + "include_all_branches": True, + }) ``` ### With GitHub Pages Enabled @@ -1487,12 +1487,12 @@ def __init__(__self__, name="example", description="My awesome web page", private=False, - pages=github.RepositoryPagesArgs( - source=github.RepositoryPagesSourceArgs( - branch="master", - path="/docs", - ), - )) + pages={ + "source": { + "branch": "master", + "path": "/docs", + }, + }) ``` ## Import @@ -1542,12 +1542,12 @@ def _internal_init(__self__, merge_commit_message: Optional[pulumi.Input[str]] = None, merge_commit_title: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - pages: Optional[pulumi.Input[pulumi.InputType['RepositoryPagesArgs']]] = None, + pages: Optional[pulumi.Input[Union['RepositoryPagesArgs', 'RepositoryPagesArgsDict']]] = None, private: Optional[pulumi.Input[bool]] = None, - security_and_analysis: Optional[pulumi.Input[pulumi.InputType['RepositorySecurityAndAnalysisArgs']]] = None, + security_and_analysis: Optional[pulumi.Input[Union['RepositorySecurityAndAnalysisArgs', 'RepositorySecurityAndAnalysisArgsDict']]] = None, squash_merge_commit_message: Optional[pulumi.Input[str]] = None, squash_merge_commit_title: Optional[pulumi.Input[str]] = None, - template: Optional[pulumi.Input[pulumi.InputType['RepositoryTemplateArgs']]] = None, + template: Optional[pulumi.Input[Union['RepositoryTemplateArgs', 'RepositoryTemplateArgsDict']]] = None, topics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, visibility: Optional[pulumi.Input[str]] = None, vulnerability_alerts: Optional[pulumi.Input[bool]] = None, @@ -1645,16 +1645,16 @@ def get(resource_name: str, merge_commit_title: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, node_id: Optional[pulumi.Input[str]] = None, - pages: Optional[pulumi.Input[pulumi.InputType['RepositoryPagesArgs']]] = None, + pages: Optional[pulumi.Input[Union['RepositoryPagesArgs', 'RepositoryPagesArgsDict']]] = None, primary_language: Optional[pulumi.Input[str]] = None, private: Optional[pulumi.Input[bool]] = None, repo_id: Optional[pulumi.Input[int]] = None, - security_and_analysis: Optional[pulumi.Input[pulumi.InputType['RepositorySecurityAndAnalysisArgs']]] = None, + security_and_analysis: Optional[pulumi.Input[Union['RepositorySecurityAndAnalysisArgs', 'RepositorySecurityAndAnalysisArgsDict']]] = None, squash_merge_commit_message: Optional[pulumi.Input[str]] = None, squash_merge_commit_title: Optional[pulumi.Input[str]] = None, ssh_clone_url: Optional[pulumi.Input[str]] = None, svn_url: Optional[pulumi.Input[str]] = None, - template: Optional[pulumi.Input[pulumi.InputType['RepositoryTemplateArgs']]] = None, + template: Optional[pulumi.Input[Union['RepositoryTemplateArgs', 'RepositoryTemplateArgsDict']]] = None, topics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, visibility: Optional[pulumi.Input[str]] = None, vulnerability_alerts: Optional[pulumi.Input[bool]] = None, @@ -1699,17 +1699,17 @@ def get(resource_name: str, :param pulumi.Input[str] merge_commit_title: Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title. Applicable only if `allow_merge_commit` is `true`. :param pulumi.Input[str] name: The name of the repository. :param pulumi.Input[str] node_id: GraphQL global node id for use with v4 API - :param pulumi.Input[pulumi.InputType['RepositoryPagesArgs']] pages: The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details. + :param pulumi.Input[Union['RepositoryPagesArgs', 'RepositoryPagesArgsDict']] pages: The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details. :param pulumi.Input[str] primary_language: The primary language used in the repository. :param pulumi.Input[bool] private: Set to `true` to create a private repository. Repositories are created as public (e.g. open source) by default. :param pulumi.Input[int] repo_id: GitHub ID for the repository - :param pulumi.Input[pulumi.InputType['RepositorySecurityAndAnalysisArgs']] security_and_analysis: The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details. + :param pulumi.Input[Union['RepositorySecurityAndAnalysisArgs', 'RepositorySecurityAndAnalysisArgsDict']] security_and_analysis: The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details. :param pulumi.Input[str] squash_merge_commit_message: Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message. Applicable only if `allow_squash_merge` is `true`. :param pulumi.Input[str] squash_merge_commit_title: Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title. Applicable only if `allow_squash_merge` is `true`. :param pulumi.Input[str] ssh_clone_url: URL that can be provided to `git clone` to clone the repository via SSH. :param pulumi.Input[str] svn_url: URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation. - :param pulumi.Input[pulumi.InputType['RepositoryTemplateArgs']] template: Use a template repository to create this resource. See Template Repositories below for details. + :param pulumi.Input[Union['RepositoryTemplateArgs', 'RepositoryTemplateArgsDict']] template: Use a template repository to create this resource. See Template Repositories below for details. :param pulumi.Input[Sequence[pulumi.Input[str]]] topics: The list of topics of the repository. :param pulumi.Input[str] visibility: Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter. :param pulumi.Input[bool] vulnerability_alerts: Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings. diff --git a/sdk/python/pulumi_github/repository_collaborators.py b/sdk/python/pulumi_github/repository_collaborators.py index 1fac985d..45e43582 100644 --- a/sdk/python/pulumi_github/repository_collaborators.py +++ b/sdk/python/pulumi_github/repository_collaborators.py @@ -148,8 +148,8 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, repository: Optional[pulumi.Input[str]] = None, - teams: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsTeamArgs']]]]] = None, - users: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsUserArgs']]]]] = None, + teams: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsTeamArgs', 'RepositoryCollaboratorsTeamArgsDict']]]]] = None, + users: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsUserArgs', 'RepositoryCollaboratorsUserArgsDict']]]]] = None, __props__=None): """ Provides a GitHub repository collaborators resource. @@ -190,14 +190,14 @@ def __init__(__self__, some_repo = github.Repository("some_repo", name="some-repo") some_repo_collaborators = github.RepositoryCollaborators("some_repo_collaborators", repository=some_repo.name, - users=[github.RepositoryCollaboratorsUserArgs( - permission="admin", - username="SomeUser", - )], - teams=[github.RepositoryCollaboratorsTeamArgs( - permission="pull", - team_id=some_team.slug, - )]) + users=[{ + "permission": "admin", + "username": "SomeUser", + }], + teams=[{ + "permission": "pull", + "team_id": some_team.slug, + }]) ``` ## Import @@ -211,8 +211,8 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] repository: The GitHub repository - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsTeamArgs']]]] teams: List of teams - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsUserArgs']]]] users: List of users + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsTeamArgs', 'RepositoryCollaboratorsTeamArgsDict']]]] teams: List of teams + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsUserArgs', 'RepositoryCollaboratorsUserArgsDict']]]] users: List of users """ ... @overload @@ -259,14 +259,14 @@ def __init__(__self__, some_repo = github.Repository("some_repo", name="some-repo") some_repo_collaborators = github.RepositoryCollaborators("some_repo_collaborators", repository=some_repo.name, - users=[github.RepositoryCollaboratorsUserArgs( - permission="admin", - username="SomeUser", - )], - teams=[github.RepositoryCollaboratorsTeamArgs( - permission="pull", - team_id=some_team.slug, - )]) + users=[{ + "permission": "admin", + "username": "SomeUser", + }], + teams=[{ + "permission": "pull", + "team_id": some_team.slug, + }]) ``` ## Import @@ -293,8 +293,8 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, repository: Optional[pulumi.Input[str]] = None, - teams: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsTeamArgs']]]]] = None, - users: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsUserArgs']]]]] = None, + teams: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsTeamArgs', 'RepositoryCollaboratorsTeamArgsDict']]]]] = None, + users: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsUserArgs', 'RepositoryCollaboratorsUserArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -322,8 +322,8 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, invitation_ids: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, repository: Optional[pulumi.Input[str]] = None, - teams: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsTeamArgs']]]]] = None, - users: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsUserArgs']]]]] = None) -> 'RepositoryCollaborators': + teams: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsTeamArgs', 'RepositoryCollaboratorsTeamArgsDict']]]]] = None, + users: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsUserArgs', 'RepositoryCollaboratorsUserArgsDict']]]]] = None) -> 'RepositoryCollaborators': """ Get an existing RepositoryCollaborators resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -334,8 +334,8 @@ def get(resource_name: str, :param pulumi.Input[Mapping[str, pulumi.Input[str]]] invitation_ids: Map of usernames to invitation ID for any users added as part of creation of this resource to be used in `UserInvitationAccepter`. :param pulumi.Input[str] repository: The GitHub repository - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsTeamArgs']]]] teams: List of teams - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryCollaboratorsUserArgs']]]] users: List of users + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsTeamArgs', 'RepositoryCollaboratorsTeamArgsDict']]]] teams: List of teams + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryCollaboratorsUserArgs', 'RepositoryCollaboratorsUserArgsDict']]]] users: List of users """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_github/repository_deployment_branch_policy.py b/sdk/python/pulumi_github/repository_deployment_branch_policy.py index 822f971a..6f243f9c 100644 --- a/sdk/python/pulumi_github/repository_deployment_branch_policy.py +++ b/sdk/python/pulumi_github/repository_deployment_branch_policy.py @@ -158,10 +158,10 @@ def __init__(__self__, env = github.RepositoryEnvironment("env", repository="my_repo", environment="my_env", - deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs( - protected_branches=False, - custom_branch_policies=True, - )) + deployment_branch_policy={ + "protected_branches": False, + "custom_branch_policies": True, + }) foo = github.RepositoryDeploymentBranchPolicy("foo", repository="my_repo", environment_name="my_env", @@ -199,10 +199,10 @@ def __init__(__self__, env = github.RepositoryEnvironment("env", repository="my_repo", environment="my_env", - deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs( - protected_branches=False, - custom_branch_policies=True, - )) + deployment_branch_policy={ + "protected_branches": False, + "custom_branch_policies": True, + }) foo = github.RepositoryDeploymentBranchPolicy("foo", repository="my_repo", environment_name="my_env", diff --git a/sdk/python/pulumi_github/repository_environment.py b/sdk/python/pulumi_github/repository_environment.py index cd1d9f7b..41d7ac91 100644 --- a/sdk/python/pulumi_github/repository_environment.py +++ b/sdk/python/pulumi_github/repository_environment.py @@ -257,11 +257,11 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, can_admins_bypass: Optional[pulumi.Input[bool]] = None, - deployment_branch_policy: Optional[pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']]] = None, + deployment_branch_policy: Optional[pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']]] = None, environment: Optional[pulumi.Input[str]] = None, prevent_self_review: Optional[pulumi.Input[bool]] = None, repository: Optional[pulumi.Input[str]] = None, - reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]]] = None, + reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryEnvironmentReviewerArgs', 'RepositoryEnvironmentReviewerArgsDict']]]]] = None, wait_timer: Optional[pulumi.Input[int]] = None, __props__=None): """ @@ -281,13 +281,13 @@ def __init__(__self__, environment="example", repository=example.name, prevent_self_review=True, - reviewers=[github.RepositoryEnvironmentReviewerArgs( - users=[current.id], - )], - deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs( - protected_branches=True, - custom_branch_policies=False, - )) + reviewers=[{ + "users": [current.id], + }], + deployment_branch_policy={ + "protected_branches": True, + "custom_branch_policies": False, + }) ``` ## Import @@ -301,11 +301,11 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`. - :param pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']] deployment_branch_policy: The deployment branch policy configuration + :param pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']] deployment_branch_policy: The deployment branch policy configuration :param pulumi.Input[str] environment: The name of the environment. :param pulumi.Input[bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`. :param pulumi.Input[str] repository: The repository of the environment. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]] reviewers: The environment reviewers configuration. + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryEnvironmentReviewerArgs', 'RepositoryEnvironmentReviewerArgsDict']]]] reviewers: The environment reviewers configuration. :param pulumi.Input[int] wait_timer: Amount of time to delay a job after the job is initially triggered. """ ... @@ -331,13 +331,13 @@ def __init__(__self__, environment="example", repository=example.name, prevent_self_review=True, - reviewers=[github.RepositoryEnvironmentReviewerArgs( - users=[current.id], - )], - deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs( - protected_branches=True, - custom_branch_policies=False, - )) + reviewers=[{ + "users": [current.id], + }], + deployment_branch_policy={ + "protected_branches": True, + "custom_branch_policies": False, + }) ``` ## Import @@ -364,11 +364,11 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, can_admins_bypass: Optional[pulumi.Input[bool]] = None, - deployment_branch_policy: Optional[pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']]] = None, + deployment_branch_policy: Optional[pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']]] = None, environment: Optional[pulumi.Input[str]] = None, prevent_self_review: Optional[pulumi.Input[bool]] = None, repository: Optional[pulumi.Input[str]] = None, - reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]]] = None, + reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryEnvironmentReviewerArgs', 'RepositoryEnvironmentReviewerArgsDict']]]]] = None, wait_timer: Optional[pulumi.Input[int]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -401,11 +401,11 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, can_admins_bypass: Optional[pulumi.Input[bool]] = None, - deployment_branch_policy: Optional[pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']]] = None, + deployment_branch_policy: Optional[pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']]] = None, environment: Optional[pulumi.Input[str]] = None, prevent_self_review: Optional[pulumi.Input[bool]] = None, repository: Optional[pulumi.Input[str]] = None, - reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]]] = None, + reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryEnvironmentReviewerArgs', 'RepositoryEnvironmentReviewerArgsDict']]]]] = None, wait_timer: Optional[pulumi.Input[int]] = None) -> 'RepositoryEnvironment': """ Get an existing RepositoryEnvironment resource's state with the given name, id, and optional extra @@ -415,11 +415,11 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`. - :param pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']] deployment_branch_policy: The deployment branch policy configuration + :param pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']] deployment_branch_policy: The deployment branch policy configuration :param pulumi.Input[str] environment: The name of the environment. :param pulumi.Input[bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`. :param pulumi.Input[str] repository: The repository of the environment. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]] reviewers: The environment reviewers configuration. + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryEnvironmentReviewerArgs', 'RepositoryEnvironmentReviewerArgsDict']]]] reviewers: The environment reviewers configuration. :param pulumi.Input[int] wait_timer: Amount of time to delay a job after the job is initially triggered. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_github/repository_environment_deployment_policy.py b/sdk/python/pulumi_github/repository_environment_deployment_policy.py index 79e08c4c..e135901a 100644 --- a/sdk/python/pulumi_github/repository_environment_deployment_policy.py +++ b/sdk/python/pulumi_github/repository_environment_deployment_policy.py @@ -144,13 +144,13 @@ def __init__(__self__, repository=test.name, environment="environment/test", wait_timer=10000, - reviewers=[github.RepositoryEnvironmentReviewerArgs( - users=[current.id], - )], - deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs( - protected_branches=False, - custom_branch_policies=True, - )) + reviewers=[{ + "users": [current.id], + }], + deployment_branch_policy={ + "protected_branches": False, + "custom_branch_policies": True, + }) test_repository_environment_deployment_policy = github.RepositoryEnvironmentDeploymentPolicy("test", repository=test.name, environment=test_repository_environment.environment, @@ -192,13 +192,13 @@ def __init__(__self__, repository=test.name, environment="environment/test", wait_timer=10000, - reviewers=[github.RepositoryEnvironmentReviewerArgs( - users=[current.id], - )], - deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs( - protected_branches=False, - custom_branch_policies=True, - )) + reviewers=[{ + "users": [current.id], + }], + deployment_branch_policy={ + "protected_branches": False, + "custom_branch_policies": True, + }) test_repository_environment_deployment_policy = github.RepositoryEnvironmentDeploymentPolicy("test", repository=test.name, environment=test_repository_environment.environment, diff --git a/sdk/python/pulumi_github/repository_ruleset.py b/sdk/python/pulumi_github/repository_ruleset.py index 562a722c..7acaa4ca 100644 --- a/sdk/python/pulumi_github/repository_ruleset.py +++ b/sdk/python/pulumi_github/repository_ruleset.py @@ -303,12 +303,12 @@ class RepositoryRuleset(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryRulesetBypassActorArgs']]]]] = None, - conditions: Optional[pulumi.Input[pulumi.InputType['RepositoryRulesetConditionsArgs']]] = None, + bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryRulesetBypassActorArgs', 'RepositoryRulesetBypassActorArgsDict']]]]] = None, + conditions: Optional[pulumi.Input[Union['RepositoryRulesetConditionsArgs', 'RepositoryRulesetConditionsArgsDict']]] = None, enforcement: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, repository: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[pulumi.InputType['RepositoryRulesetRulesArgs']]] = None, + rules: Optional[pulumi.Input[Union['RepositoryRulesetRulesArgs', 'RepositoryRulesetRulesArgsDict']]] = None, target: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -330,27 +330,27 @@ def __init__(__self__, repository=example.name, target="branch", enforcement="active", - conditions=github.RepositoryRulesetConditionsArgs( - ref_name=github.RepositoryRulesetConditionsRefNameArgs( - includes=["~ALL"], - excludes=[], - ), - ), - bypass_actors=[github.RepositoryRulesetBypassActorArgs( - actor_id=13473, - actor_type="Integration", - bypass_mode="always", - )], - rules=github.RepositoryRulesetRulesArgs( - creation=True, - update=True, - deletion=True, - required_linear_history=True, - required_signatures=True, - required_deployments=github.RepositoryRulesetRulesRequiredDeploymentsArgs( - required_deployment_environments=["test"], - ), - )) + conditions={ + "ref_name": { + "includes": ["~ALL"], + "excludes": [], + }, + }, + bypass_actors=[{ + "actor_id": 13473, + "actor_type": "Integration", + "bypass_mode": "always", + }], + rules={ + "creation": True, + "update": True, + "deletion": True, + "required_linear_history": True, + "required_signatures": True, + "required_deployments": { + "required_deployment_environments": ["test"], + }, + }) ``` ## Import @@ -363,12 +363,12 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryRulesetBypassActorArgs']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) - :param pulumi.Input[pulumi.InputType['RepositoryRulesetConditionsArgs']] conditions: (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryRulesetBypassActorArgs', 'RepositoryRulesetBypassActorArgsDict']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + :param pulumi.Input[Union['RepositoryRulesetConditionsArgs', 'RepositoryRulesetConditionsArgsDict']] conditions: (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) :param pulumi.Input[str] enforcement: (String) Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. :param pulumi.Input[str] name: (String) The name of the ruleset. :param pulumi.Input[str] repository: (String) Name of the repository to apply rulset to. - :param pulumi.Input[pulumi.InputType['RepositoryRulesetRulesArgs']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + :param pulumi.Input[Union['RepositoryRulesetRulesArgs', 'RepositoryRulesetRulesArgsDict']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) :param pulumi.Input[str] target: (String) Possible values are `branch` and `tag`. """ ... @@ -396,27 +396,27 @@ def __init__(__self__, repository=example.name, target="branch", enforcement="active", - conditions=github.RepositoryRulesetConditionsArgs( - ref_name=github.RepositoryRulesetConditionsRefNameArgs( - includes=["~ALL"], - excludes=[], - ), - ), - bypass_actors=[github.RepositoryRulesetBypassActorArgs( - actor_id=13473, - actor_type="Integration", - bypass_mode="always", - )], - rules=github.RepositoryRulesetRulesArgs( - creation=True, - update=True, - deletion=True, - required_linear_history=True, - required_signatures=True, - required_deployments=github.RepositoryRulesetRulesRequiredDeploymentsArgs( - required_deployment_environments=["test"], - ), - )) + conditions={ + "ref_name": { + "includes": ["~ALL"], + "excludes": [], + }, + }, + bypass_actors=[{ + "actor_id": 13473, + "actor_type": "Integration", + "bypass_mode": "always", + }], + rules={ + "creation": True, + "update": True, + "deletion": True, + "required_linear_history": True, + "required_signatures": True, + "required_deployments": { + "required_deployment_environments": ["test"], + }, + }) ``` ## Import @@ -442,12 +442,12 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryRulesetBypassActorArgs']]]]] = None, - conditions: Optional[pulumi.Input[pulumi.InputType['RepositoryRulesetConditionsArgs']]] = None, + bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryRulesetBypassActorArgs', 'RepositoryRulesetBypassActorArgsDict']]]]] = None, + conditions: Optional[pulumi.Input[Union['RepositoryRulesetConditionsArgs', 'RepositoryRulesetConditionsArgsDict']]] = None, enforcement: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, repository: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[pulumi.InputType['RepositoryRulesetRulesArgs']]] = None, + rules: Optional[pulumi.Input[Union['RepositoryRulesetRulesArgs', 'RepositoryRulesetRulesArgsDict']]] = None, target: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -484,14 +484,14 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryRulesetBypassActorArgs']]]]] = None, - conditions: Optional[pulumi.Input[pulumi.InputType['RepositoryRulesetConditionsArgs']]] = None, + bypass_actors: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RepositoryRulesetBypassActorArgs', 'RepositoryRulesetBypassActorArgsDict']]]]] = None, + conditions: Optional[pulumi.Input[Union['RepositoryRulesetConditionsArgs', 'RepositoryRulesetConditionsArgsDict']]] = None, enforcement: Optional[pulumi.Input[str]] = None, etag: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, node_id: Optional[pulumi.Input[str]] = None, repository: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[pulumi.InputType['RepositoryRulesetRulesArgs']]] = None, + rules: Optional[pulumi.Input[Union['RepositoryRulesetRulesArgs', 'RepositoryRulesetRulesArgsDict']]] = None, ruleset_id: Optional[pulumi.Input[int]] = None, target: Optional[pulumi.Input[str]] = None) -> 'RepositoryRuleset': """ @@ -501,14 +501,14 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryRulesetBypassActorArgs']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) - :param pulumi.Input[pulumi.InputType['RepositoryRulesetConditionsArgs']] conditions: (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) + :param pulumi.Input[Sequence[pulumi.Input[Union['RepositoryRulesetBypassActorArgs', 'RepositoryRulesetBypassActorArgsDict']]]] bypass_actors: (Block List) The actors that can bypass the rules in this ruleset. (see below for nested schema) + :param pulumi.Input[Union['RepositoryRulesetConditionsArgs', 'RepositoryRulesetConditionsArgsDict']] conditions: (Block List, Max: 1) Parameters for a repository ruleset ref name condition. (see below for nested schema) :param pulumi.Input[str] enforcement: (String) Possible values for Enforcement are `disabled`, `active`, `evaluate`. Note: `evaluate` is currently only supported for owners of type `organization`. :param pulumi.Input[str] etag: (String) :param pulumi.Input[str] name: (String) The name of the ruleset. :param pulumi.Input[str] node_id: (String) GraphQL global node id for use with v4 API. :param pulumi.Input[str] repository: (String) Name of the repository to apply rulset to. - :param pulumi.Input[pulumi.InputType['RepositoryRulesetRulesArgs']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) + :param pulumi.Input[Union['RepositoryRulesetRulesArgs', 'RepositoryRulesetRulesArgsDict']] rules: (Block List, Min: 1, Max: 1) Rules within the ruleset. (see below for nested schema) :param pulumi.Input[int] ruleset_id: (Number) GitHub ID for the ruleset. :param pulumi.Input[str] target: (String) Possible values are `branch` and `tag`. """ diff --git a/sdk/python/pulumi_github/repository_webhook.py b/sdk/python/pulumi_github/repository_webhook.py index 2d8eb50f..542fb39b 100644 --- a/sdk/python/pulumi_github/repository_webhook.py +++ b/sdk/python/pulumi_github/repository_webhook.py @@ -189,7 +189,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, active: Optional[pulumi.Input[bool]] = None, - configuration: Optional[pulumi.Input[pulumi.InputType['RepositoryWebhookConfigurationArgs']]] = None, + configuration: Optional[pulumi.Input[Union['RepositoryWebhookConfigurationArgs', 'RepositoryWebhookConfigurationArgsDict']]] = None, events: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, repository: Optional[pulumi.Input[str]] = None, __props__=None): @@ -210,11 +210,11 @@ def __init__(__self__, visibility="public") foo = github.RepositoryWebhook("foo", repository=repo.name, - configuration=github.RepositoryWebhookConfigurationArgs( - url="https://google.de/", - content_type="form", - insecure_ssl=False, - ), + configuration={ + "url": "https://google.de/", + "content_type": "form", + "insecure_ssl": False, + }, active=False, events=["issues"]) ``` @@ -234,7 +234,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] active: Indicate if the webhook should receive events. Defaults to `true`. - :param pulumi.Input[pulumi.InputType['RepositoryWebhookConfigurationArgs']] configuration: Configuration block for the webhook. Detailed below. + :param pulumi.Input[Union['RepositoryWebhookConfigurationArgs', 'RepositoryWebhookConfigurationArgsDict']] configuration: Configuration block for the webhook. Detailed below. :param pulumi.Input[Sequence[pulumi.Input[str]]] events: A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/). :param pulumi.Input[str] repository: The repository of the webhook. """ @@ -261,11 +261,11 @@ def __init__(__self__, visibility="public") foo = github.RepositoryWebhook("foo", repository=repo.name, - configuration=github.RepositoryWebhookConfigurationArgs( - url="https://google.de/", - content_type="form", - insecure_ssl=False, - ), + configuration={ + "url": "https://google.de/", + "content_type": "form", + "insecure_ssl": False, + }, active=False, events=["issues"]) ``` @@ -298,7 +298,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, active: Optional[pulumi.Input[bool]] = None, - configuration: Optional[pulumi.Input[pulumi.InputType['RepositoryWebhookConfigurationArgs']]] = None, + configuration: Optional[pulumi.Input[Union['RepositoryWebhookConfigurationArgs', 'RepositoryWebhookConfigurationArgsDict']]] = None, events: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, repository: Optional[pulumi.Input[str]] = None, __props__=None): @@ -331,7 +331,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, active: Optional[pulumi.Input[bool]] = None, - configuration: Optional[pulumi.Input[pulumi.InputType['RepositoryWebhookConfigurationArgs']]] = None, + configuration: Optional[pulumi.Input[Union['RepositoryWebhookConfigurationArgs', 'RepositoryWebhookConfigurationArgsDict']]] = None, etag: Optional[pulumi.Input[str]] = None, events: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, repository: Optional[pulumi.Input[str]] = None, @@ -344,7 +344,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] active: Indicate if the webhook should receive events. Defaults to `true`. - :param pulumi.Input[pulumi.InputType['RepositoryWebhookConfigurationArgs']] configuration: Configuration block for the webhook. Detailed below. + :param pulumi.Input[Union['RepositoryWebhookConfigurationArgs', 'RepositoryWebhookConfigurationArgsDict']] configuration: Configuration block for the webhook. Detailed below. :param pulumi.Input[Sequence[pulumi.Input[str]]] events: A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/). :param pulumi.Input[str] repository: The repository of the webhook. :param pulumi.Input[str] url: URL of the webhook. This is a sensitive attribute because it may include basic auth credentials. diff --git a/sdk/python/pulumi_github/team_members.py b/sdk/python/pulumi_github/team_members.py index 9025e8c6..334a1e78 100644 --- a/sdk/python/pulumi_github/team_members.py +++ b/sdk/python/pulumi_github/team_members.py @@ -104,7 +104,7 @@ class TeamMembers(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - members: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamMembersMemberArgs']]]]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TeamMembersMemberArgs', 'TeamMembersMemberArgsDict']]]]] = None, team_id: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -127,14 +127,14 @@ def __init__(__self__, some_team_members = github.TeamMembers("some_team_members", team_id=some_team.id, members=[ - github.TeamMembersMemberArgs( - username="SomeUser", - role="maintainer", - ), - github.TeamMembersMemberArgs( - username="AnotherUser", - role="member", - ), + { + "username": "SomeUser", + "role": "maintainer", + }, + { + "username": "AnotherUser", + "role": "member", + }, ]) ``` @@ -154,7 +154,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamMembersMemberArgs']]]] members: List of team members. See Members below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['TeamMembersMemberArgs', 'TeamMembersMemberArgsDict']]]] members: List of team members. See Members below for details. :param pulumi.Input[str] team_id: The team id or the team slug > **Note** Although the team id or team slug can be used it is recommended to use the team id. Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated. @@ -185,14 +185,14 @@ def __init__(__self__, some_team_members = github.TeamMembers("some_team_members", team_id=some_team.id, members=[ - github.TeamMembersMemberArgs( - username="SomeUser", - role="maintainer", - ), - github.TeamMembersMemberArgs( - username="AnotherUser", - role="member", - ), + { + "username": "SomeUser", + "role": "maintainer", + }, + { + "username": "AnotherUser", + "role": "member", + }, ]) ``` @@ -225,7 +225,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - members: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamMembersMemberArgs']]]]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TeamMembersMemberArgs', 'TeamMembersMemberArgsDict']]]]] = None, team_id: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -252,7 +252,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - members: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamMembersMemberArgs']]]]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TeamMembersMemberArgs', 'TeamMembersMemberArgsDict']]]]] = None, team_id: Optional[pulumi.Input[str]] = None) -> 'TeamMembers': """ Get an existing TeamMembers resource's state with the given name, id, and optional extra @@ -261,7 +261,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamMembersMemberArgs']]]] members: List of team members. See Members below for details. + :param pulumi.Input[Sequence[pulumi.Input[Union['TeamMembersMemberArgs', 'TeamMembersMemberArgsDict']]]] members: List of team members. See Members below for details. :param pulumi.Input[str] team_id: The team id or the team slug > **Note** Although the team id or team slug can be used it is recommended to use the team id. Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated. diff --git a/sdk/python/pulumi_github/team_settings.py b/sdk/python/pulumi_github/team_settings.py index 1f52142b..7968d321 100644 --- a/sdk/python/pulumi_github/team_settings.py +++ b/sdk/python/pulumi_github/team_settings.py @@ -129,7 +129,7 @@ class TeamSettings(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - review_request_delegation: Optional[pulumi.Input[pulumi.InputType['TeamSettingsReviewRequestDelegationArgs']]] = None, + review_request_delegation: Optional[pulumi.Input[Union['TeamSettingsReviewRequestDelegationArgs', 'TeamSettingsReviewRequestDelegationArgsDict']]] = None, team_id: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -153,11 +153,11 @@ def __init__(__self__, description="Some cool team") code_review_settings = github.TeamSettings("code_review_settings", team_id=some_team.id, - review_request_delegation=github.TeamSettingsReviewRequestDelegationArgs( - algorithm="ROUND_ROBIN", - member_count=1, - notify=True, - )) + review_request_delegation={ + "algorithm": "ROUND_ROBIN", + "member_count": 1, + "notify": True, + }) ``` ## Import @@ -175,7 +175,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['TeamSettingsReviewRequestDelegationArgs']] review_request_delegation: The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See [GitHub's documentation](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-team-notifications) for more configuration details. + :param pulumi.Input[Union['TeamSettingsReviewRequestDelegationArgs', 'TeamSettingsReviewRequestDelegationArgsDict']] review_request_delegation: The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See [GitHub's documentation](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-team-notifications) for more configuration details. :param pulumi.Input[str] team_id: The GitHub team id or the GitHub team slug """ ... @@ -205,11 +205,11 @@ def __init__(__self__, description="Some cool team") code_review_settings = github.TeamSettings("code_review_settings", team_id=some_team.id, - review_request_delegation=github.TeamSettingsReviewRequestDelegationArgs( - algorithm="ROUND_ROBIN", - member_count=1, - notify=True, - )) + review_request_delegation={ + "algorithm": "ROUND_ROBIN", + "member_count": 1, + "notify": True, + }) ``` ## Import @@ -240,7 +240,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - review_request_delegation: Optional[pulumi.Input[pulumi.InputType['TeamSettingsReviewRequestDelegationArgs']]] = None, + review_request_delegation: Optional[pulumi.Input[Union['TeamSettingsReviewRequestDelegationArgs', 'TeamSettingsReviewRequestDelegationArgsDict']]] = None, team_id: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -267,7 +267,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - review_request_delegation: Optional[pulumi.Input[pulumi.InputType['TeamSettingsReviewRequestDelegationArgs']]] = None, + review_request_delegation: Optional[pulumi.Input[Union['TeamSettingsReviewRequestDelegationArgs', 'TeamSettingsReviewRequestDelegationArgsDict']]] = None, team_id: Optional[pulumi.Input[str]] = None, team_slug: Optional[pulumi.Input[str]] = None, team_uid: Optional[pulumi.Input[str]] = None) -> 'TeamSettings': @@ -278,7 +278,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['TeamSettingsReviewRequestDelegationArgs']] review_request_delegation: The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See [GitHub's documentation](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-team-notifications) for more configuration details. + :param pulumi.Input[Union['TeamSettingsReviewRequestDelegationArgs', 'TeamSettingsReviewRequestDelegationArgsDict']] review_request_delegation: The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See [GitHub's documentation](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-team-notifications) for more configuration details. :param pulumi.Input[str] team_id: The GitHub team id or the GitHub team slug :param pulumi.Input[str] team_slug: The slug of the Team within the Organization. :param pulumi.Input[str] team_uid: The unique ID of the Team on GitHub. Corresponds to the ID of the 'github_team_settings' resource. diff --git a/sdk/python/pulumi_github/team_sync_group_mapping.py b/sdk/python/pulumi_github/team_sync_group_mapping.py index 93818311..d0c2757f 100644 --- a/sdk/python/pulumi_github/team_sync_group_mapping.py +++ b/sdk/python/pulumi_github/team_sync_group_mapping.py @@ -121,7 +121,7 @@ class TeamSyncGroupMapping(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamSyncGroupMappingGroupArgs']]]]] = None, + groups: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TeamSyncGroupMappingGroupArgs', 'TeamSyncGroupMappingGroupArgsDict']]]]] = None, team_slug: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -139,11 +139,11 @@ def __init__(__self__, example_groups = github.get_organization_team_sync_groups() example_group_mapping = github.TeamSyncGroupMapping("example_group_mapping", - groups=[github.TeamSyncGroupMappingGroupArgs( - group_id=entry["value"], - group_name=entry["value"], - group_description=entry["value"], - ) for entry in [{"key": k, "value": v} for k, v in [g for g in example_groups.groups if g.group_name == "some_team_group"]]], + groups=[{ + "group_id": entry["value"], + "group_name": entry["value"], + "group_description": entry["value"], + } for entry in [{"key": k, "value": v} for k, v in [g for g in example_groups.groups if g.group_name == "some_team_group"]]], team_slug="example") ``` @@ -157,7 +157,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamSyncGroupMappingGroupArgs']]]] groups: An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below. + :param pulumi.Input[Sequence[pulumi.Input[Union['TeamSyncGroupMappingGroupArgs', 'TeamSyncGroupMappingGroupArgsDict']]]] groups: An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below. ___ The `group` block consists of: @@ -184,11 +184,11 @@ def __init__(__self__, example_groups = github.get_organization_team_sync_groups() example_group_mapping = github.TeamSyncGroupMapping("example_group_mapping", - groups=[github.TeamSyncGroupMappingGroupArgs( - group_id=entry["value"], - group_name=entry["value"], - group_description=entry["value"], - ) for entry in [{"key": k, "value": v} for k, v in [g for g in example_groups.groups if g.group_name == "some_team_group"]]], + groups=[{ + "group_id": entry["value"], + "group_name": entry["value"], + "group_description": entry["value"], + } for entry in [{"key": k, "value": v} for k, v in [g for g in example_groups.groups if g.group_name == "some_team_group"]]], team_slug="example") ``` @@ -215,7 +215,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamSyncGroupMappingGroupArgs']]]]] = None, + groups: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TeamSyncGroupMappingGroupArgs', 'TeamSyncGroupMappingGroupArgsDict']]]]] = None, team_slug: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -242,7 +242,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, etag: Optional[pulumi.Input[str]] = None, - groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamSyncGroupMappingGroupArgs']]]]] = None, + groups: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TeamSyncGroupMappingGroupArgs', 'TeamSyncGroupMappingGroupArgsDict']]]]] = None, team_slug: Optional[pulumi.Input[str]] = None) -> 'TeamSyncGroupMapping': """ Get an existing TeamSyncGroupMapping resource's state with the given name, id, and optional extra @@ -251,7 +251,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TeamSyncGroupMappingGroupArgs']]]] groups: An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below. + :param pulumi.Input[Sequence[pulumi.Input[Union['TeamSyncGroupMappingGroupArgs', 'TeamSyncGroupMappingGroupArgsDict']]]] groups: An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below. ___ The `group` block consists of: