From c9e1b57d4b44f2ffa55fcbc4757a0487489f7052 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Thu, 10 Oct 2024 19:53:54 +0000 Subject: [PATCH 1/3] make tfgen --- examples/go.mod | 4 +-- examples/go.sum | 8 +++--- .../cmd/pulumi-resource-gitlab/schema.json | 6 ++-- provider/go.mod | 14 +++++----- provider/go.sum | 28 +++++++++---------- sdk/go.mod | 2 +- sdk/go.sum | 4 +-- 7 files changed, 33 insertions(+), 33 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index ae0c147e..59c30e66 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-gitlab/examples/v6 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.133.0 +require github.com/pulumi/pulumi/pkg/v3 v3.136.1 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.133.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.136.1 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 3cbb21d7..408d628c 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -342,10 +342,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= -github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= +github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-gitlab/schema.json b/provider/cmd/pulumi-resource-gitlab/schema.json index 7f9ffdf2..95f39246 100644 --- a/provider/cmd/pulumi-resource-gitlab/schema.json +++ b/provider/cmd/pulumi-resource-gitlab/schema.json @@ -22636,7 +22636,7 @@ } }, "gitlab:index/getCurrentUser:getCurrentUser": { - "description": "The `gitlab.getCurrentUser` data source allows details of the current user (determined by `token` provider attribute) to be retrieved.\n\n**Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst example = gitlab.getCurrentUser({});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nexample = gitlab.get_current_user()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing GitLab = Pulumi.GitLab;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = GitLab.GetCurrentUser.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab\"\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 := gitlab.GetCurrentUser(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.GitlabFunctions;\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 = GitlabFunctions.getCurrentUser();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: gitlab:getCurrentUser\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The `gitlab.getCurrentUser` data source allows details of the current user (determined by `token` provider attribute) to be retrieved.\n\n**Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst example = gitlab.getCurrentUser({});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nexample = gitlab.get_current_user()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing GitLab = Pulumi.GitLab;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = GitLab.GetCurrentUser.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab\"\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 := gitlab.GetCurrentUser(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.GitlabFunctions;\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 = GitlabFunctions.getCurrentUser();\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: gitlab:getCurrentUser\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getCurrentUser.\n", "properties": { @@ -23547,7 +23547,7 @@ } }, "gitlab:index/getInstanceVariables:getInstanceVariables": { - "description": "The `gitlab.getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables.\n\n**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst vars = gitlab.getInstanceVariables({});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nvars = gitlab.get_instance_variables()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing GitLab = Pulumi.GitLab;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var vars = GitLab.GetInstanceVariables.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab\"\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 := gitlab.GetInstanceVariables(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.GitlabFunctions;\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 vars = GitlabFunctions.getInstanceVariables();\n\n }\n}\n```\n```yaml\nvariables:\n vars:\n fn::invoke:\n Function: gitlab:getInstanceVariables\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The `gitlab.getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables.\n\n**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst vars = gitlab.getInstanceVariables({});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nvars = gitlab.get_instance_variables()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing GitLab = Pulumi.GitLab;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var vars = GitLab.GetInstanceVariables.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab\"\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 := gitlab.GetInstanceVariables(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.GitlabFunctions;\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 vars = GitlabFunctions.getInstanceVariables();\n\n }\n}\n```\n```yaml\nvariables:\n vars:\n fn::invoke:\n Function: gitlab:getInstanceVariables\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getInstanceVariables.\n", "properties": { @@ -23571,7 +23571,7 @@ } }, "gitlab:index/getMetadata:getMetadata": { - "description": "The `gitlab.getMetadata` data source retrieves the metadata of the GitLab instance.\n\n**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst this = gitlab.getMetadata({});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nthis = gitlab.get_metadata()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing GitLab = Pulumi.GitLab;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @this = GitLab.GetMetadata.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab\"\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 := gitlab.GetMetadata(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.GitlabFunctions;\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 this = GitlabFunctions.getMetadata();\n\n }\n}\n```\n```yaml\nvariables:\n this:\n fn::invoke:\n Function: gitlab:getMetadata\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The `gitlab.getMetadata` data source retrieves the metadata of the GitLab instance.\n\n**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst this = gitlab.getMetadata({});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nthis = gitlab.get_metadata()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing GitLab = Pulumi.GitLab;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @this = GitLab.GetMetadata.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab\"\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 := gitlab.GetMetadata(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.GitlabFunctions;\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 this = GitlabFunctions.getMetadata();\n\n }\n}\n```\n```yaml\nvariables:\n this:\n fn::invoke:\n Function: gitlab:getMetadata\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getMetadata.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 7daa4d4a..30c29d80 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -3,10 +3,10 @@ module github.com/pulumi/pulumi-gitlab/provider/v8 go 1.23.1 require ( - github.com/pulumi/providertest v0.0.14 - github.com/pulumi/pulumi-terraform-bridge/pf v0.44.1 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1 - github.com/pulumi/pulumi/sdk/v3 v3.133.0 + github.com/pulumi/providertest v0.1.2 + github.com/pulumi/pulumi-terraform-bridge/pf v0.45.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.92.0 + github.com/pulumi/pulumi/sdk/v3 v3.136.1 github.com/stretchr/testify v1.9.0 gitlab.com/gitlab-org/terraform-provider-gitlab v0.0.0 ) @@ -184,9 +184,9 @@ require ( github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect github.com/pulumi/pulumi-java/pkg v0.16.1 // indirect - github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.10.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.133.0 // indirect + github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.10 // indirect + github.com/pulumi/pulumi-yaml v1.10.3 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.136.1 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index f41fa46c..06d32b77 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1950,22 +1950,22 @@ github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= -github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8= -github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= +github.com/pulumi/providertest v0.1.2 h1:9pJS9MeNkMyGwyNeHmvh8QqLgJy39Nk2/ym5u7r13ng= +github.com/pulumi/providertest v0.1.2/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIkaa5QDGAns= github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM= -github.com/pulumi/pulumi-terraform-bridge/pf v0.44.1 h1:39UPLBqbnvylm2heU/Rxa1+G++NZHdtW2Qg+hEhp5Wo= -github.com/pulumi/pulumi-terraform-bridge/pf v0.44.1/go.mod h1:Zj4XBf+TuV3um7y82X3xk2yQiP+pnQ7YxMc4fq/rVVw= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1 h1:Twh0IKS1pGHP6LHDq1oR0vbHlV52asoUCC7spEJl3Ao= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1/go.mod h1:DvueDDtOIbf7W1Or4oH0o7F990ozp/ROmlm/vgLoe+g= -github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= -github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.10.0 h1:djbgMJCxJBmYMr4kOpAXH5iauxGohYjEuTLfxD3NUUI= -github.com/pulumi/pulumi-yaml v1.10.0/go.mod h1://lTvwHpgJ+WBKeMGiLrd/jinc4dl3eWV5LZ3G8iCfE= -github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= -github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi-terraform-bridge/pf v0.45.0 h1:RIu3thoVfOR2yyyVS1xwuJ9ud05SPuXTf7Q+mnV6CQg= +github.com/pulumi/pulumi-terraform-bridge/pf v0.45.0/go.mod h1:bcSV/ALzPJm4Ib1qS2rga27/O3DCGo2mV4XXGrcNfZE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.92.0 h1:LOUHyMFGYkchv4Bzej7v+1W1ooaspgQG6/oZVJ+3lXY= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.92.0/go.mod h1:aI3U3eanRcyOX05No+Nk6FuJvppx4jjcQwFelHSI8yE= +github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.10 h1:VAXmHuldKd760ZlMe6khXeJY0ccY3TJF1g1FnWGccaM= +github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.10/go.mod h1:+AQS/2h775Chx1a4vxb7cDdyiOsdEw2Q6gD7K5QCIwI= +github.com/pulumi/pulumi-yaml v1.10.3 h1:j5cjPiE32ILmjrWnC1cfZ0MWdqCZ8fg9wlaWk7HOtM4= +github.com/pulumi/pulumi-yaml v1.10.3/go.mod h1:MFMQXkaUP5YQUKVJ6Z/aagZDl2f8hdU9oGaJfTcMf1Y= +github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= +github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index 2aa2636d..af92d6b2 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.133.0 + github.com/pulumi/pulumi/sdk/v3 v3.136.1 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 15266336..ecce3b21 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= From ba479b89fff1952da9f01db8669cedee0cfbe2d3 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Thu, 10 Oct 2024 19:55:45 +0000 Subject: [PATCH 2/3] make build_sdks --- sdk/go/gitlab/getCurrentUser.go | 2 +- sdk/go/gitlab/getInstanceVariables.go | 2 +- sdk/go/gitlab/getMetadata.go | 2 +- sdk/nodejs/package.json | 2 +- sdk/python/pulumi_gitlab/_inputs.py | 815 ++++++++++++++++++ sdk/python/pulumi_gitlab/_utilities.py | 2 +- sdk/python/pulumi_gitlab/application.py | 5 + .../pulumi_gitlab/application_settings.py | 5 + sdk/python/pulumi_gitlab/branch.py | 5 + sdk/python/pulumi_gitlab/branch_protection.py | 5 + sdk/python/pulumi_gitlab/cluster_agent.py | 5 + .../pulumi_gitlab/cluster_agent_token.py | 5 + .../pulumi_gitlab/compliance_framework.py | 5 + sdk/python/pulumi_gitlab/config/__init__.pyi | 5 + sdk/python/pulumi_gitlab/config/vars.py | 5 + sdk/python/pulumi_gitlab/deploy_key.py | 5 + sdk/python/pulumi_gitlab/deploy_key_enable.py | 5 + sdk/python/pulumi_gitlab/deploy_token.py | 5 + sdk/python/pulumi_gitlab/get_application.py | 19 +- sdk/python/pulumi_gitlab/get_branch.py | 26 +- sdk/python/pulumi_gitlab/get_cluster_agent.py | 21 +- .../pulumi_gitlab/get_cluster_agents.py | 17 +- .../pulumi_gitlab/get_compliance_framework.py | 23 +- sdk/python/pulumi_gitlab/get_current_user.py | 22 +- sdk/python/pulumi_gitlab/get_group.py | 36 +- sdk/python/pulumi_gitlab/get_group_hook.py | 37 +- sdk/python/pulumi_gitlab/get_group_hooks.py | 17 +- sdk/python/pulumi_gitlab/get_group_ids.py | 19 +- .../pulumi_gitlab/get_group_membership.py | 23 +- .../pulumi_gitlab/get_group_subgroups.py | 35 +- .../pulumi_gitlab/get_group_variable.py | 26 +- .../pulumi_gitlab/get_group_variables.py | 19 +- sdk/python/pulumi_gitlab/get_groups.py | 23 +- .../pulumi_gitlab/get_instance_deploy_keys.py | 17 +- .../pulumi_gitlab/get_instance_variable.py | 22 +- .../pulumi_gitlab/get_instance_variables.py | 15 +- sdk/python/pulumi_gitlab/get_metadata.py | 18 +- .../pulumi_gitlab/get_pipeline_schedule.py | 30 +- .../pulumi_gitlab/get_pipeline_schedules.py | 17 +- sdk/python/pulumi_gitlab/get_project.py | 83 +- .../pulumi_gitlab/get_project_branches.py | 17 +- sdk/python/pulumi_gitlab/get_project_hook.py | 36 +- sdk/python/pulumi_gitlab/get_project_hooks.py | 17 +- sdk/python/pulumi_gitlab/get_project_ids.py | 19 +- sdk/python/pulumi_gitlab/get_project_issue.py | 55 +- .../pulumi_gitlab/get_project_issues.py | 67 +- .../pulumi_gitlab/get_project_membership.py | 23 +- .../pulumi_gitlab/get_project_milestone.py | 29 +- .../pulumi_gitlab/get_project_milestones.py | 27 +- .../get_project_protected_branch.py | 24 +- .../get_project_protected_branches.py | 18 +- .../get_project_protected_tag.py | 19 +- .../get_project_protected_tags.py | 17 +- sdk/python/pulumi_gitlab/get_project_tag.py | 23 +- sdk/python/pulumi_gitlab/get_project_tags.py | 23 +- .../pulumi_gitlab/get_project_variable.py | 26 +- .../pulumi_gitlab/get_project_variables.py | 19 +- sdk/python/pulumi_gitlab/get_projects.py | 59 +- sdk/python/pulumi_gitlab/get_release.py | 24 +- sdk/python/pulumi_gitlab/get_release_link.py | 26 +- sdk/python/pulumi_gitlab/get_release_links.py | 19 +- .../pulumi_gitlab/get_repository_file.py | 29 +- .../pulumi_gitlab/get_repository_tree.py | 23 +- sdk/python/pulumi_gitlab/get_user.py | 47 +- sdk/python/pulumi_gitlab/get_user_sshkeys.py | 19 +- sdk/python/pulumi_gitlab/get_users.py | 33 +- .../global_level_notifications.py | 5 + sdk/python/pulumi_gitlab/group.py | 5 + .../pulumi_gitlab/group_access_token.py | 5 + sdk/python/pulumi_gitlab/group_badge.py | 5 + sdk/python/pulumi_gitlab/group_cluster.py | 5 + .../pulumi_gitlab/group_custom_attribute.py | 5 + sdk/python/pulumi_gitlab/group_epic_board.py | 5 + sdk/python/pulumi_gitlab/group_hook.py | 5 + sdk/python/pulumi_gitlab/group_issue_board.py | 5 + sdk/python/pulumi_gitlab/group_label.py | 5 + sdk/python/pulumi_gitlab/group_ldap_link.py | 5 + sdk/python/pulumi_gitlab/group_membership.py | 5 + .../group_project_file_template.py | 5 + .../group_protected_environment.py | 5 + sdk/python/pulumi_gitlab/group_saml_link.py | 5 + .../group_security_policy_attachment.py | 5 + sdk/python/pulumi_gitlab/group_share_group.py | 5 + sdk/python/pulumi_gitlab/group_variable.py | 5 + sdk/python/pulumi_gitlab/instance_cluster.py | 5 + sdk/python/pulumi_gitlab/instance_variable.py | 5 + .../integration_custom_issue_tracker.py | 5 + .../integration_emails_on_push.py | 5 + .../integration_external_wiki.py | 5 + .../pulumi_gitlab/integration_github.py | 5 + .../pulumi_gitlab/integration_jenkins.py | 5 + sdk/python/pulumi_gitlab/integration_jira.py | 5 + .../pulumi_gitlab/integration_mattermost.py | 5 + .../integration_microsoft_teams.py | 5 + .../integration_pipelines_email.py | 5 + sdk/python/pulumi_gitlab/integration_slack.py | 5 + .../pulumi_gitlab/integration_telegram.py | 5 + sdk/python/pulumi_gitlab/label.py | 5 + sdk/python/pulumi_gitlab/member_role.py | 5 + sdk/python/pulumi_gitlab/outputs.py | 5 + sdk/python/pulumi_gitlab/pages_domain.py | 5 + .../pulumi_gitlab/personal_access_token.py | 5 + sdk/python/pulumi_gitlab/pipeline_schedule.py | 5 + .../pipeline_schedule_variable.py | 5 + sdk/python/pulumi_gitlab/pipeline_trigger.py | 5 + sdk/python/pulumi_gitlab/project.py | 5 + .../pulumi_gitlab/project_access_token.py | 5 + .../pulumi_gitlab/project_approval_rule.py | 5 + sdk/python/pulumi_gitlab/project_badge.py | 5 + sdk/python/pulumi_gitlab/project_cluster.py | 5 + .../project_compliance_framework.py | 5 + .../pulumi_gitlab/project_custom_attribute.py | 5 + .../pulumi_gitlab/project_environment.py | 5 + .../pulumi_gitlab/project_freeze_period.py | 5 + sdk/python/pulumi_gitlab/project_hook.py | 5 + sdk/python/pulumi_gitlab/project_issue.py | 5 + .../pulumi_gitlab/project_issue_board.py | 5 + .../pulumi_gitlab/project_job_token_scope.py | 5 + .../pulumi_gitlab/project_job_token_scopes.py | 5 + sdk/python/pulumi_gitlab/project_label.py | 5 + .../project_level_mr_approvals.py | 5 + .../project_level_notifications.py | 5 + .../pulumi_gitlab/project_membership.py | 5 + sdk/python/pulumi_gitlab/project_milestone.py | 5 + sdk/python/pulumi_gitlab/project_mirror.py | 5 + .../project_protected_environment.py | 5 + .../pulumi_gitlab/project_push_rules.py | 5 + .../project_runner_enablement.py | 5 + .../project_security_policy_attachment.py | 5 + .../pulumi_gitlab/project_share_group.py | 5 + sdk/python/pulumi_gitlab/project_tag.py | 5 + sdk/python/pulumi_gitlab/project_variable.py | 5 + sdk/python/pulumi_gitlab/provider.py | 5 + sdk/python/pulumi_gitlab/release_link.py | 5 + sdk/python/pulumi_gitlab/repository_file.py | 5 + sdk/python/pulumi_gitlab/runner.py | 5 + .../service_custom_issue_tracker.py | 5 + .../pulumi_gitlab/service_emails_on_push.py | 5 + .../pulumi_gitlab/service_external_wiki.py | 5 + sdk/python/pulumi_gitlab/service_github.py | 5 + sdk/python/pulumi_gitlab/service_jira.py | 5 + .../pulumi_gitlab/service_microsoft_teams.py | 5 + .../pulumi_gitlab/service_pipelines_email.py | 5 + sdk/python/pulumi_gitlab/service_slack.py | 5 + sdk/python/pulumi_gitlab/system_hook.py | 5 + sdk/python/pulumi_gitlab/tag_protection.py | 5 + sdk/python/pulumi_gitlab/topic.py | 5 + sdk/python/pulumi_gitlab/user.py | 5 + .../pulumi_gitlab/user_custom_attribute.py | 5 + sdk/python/pulumi_gitlab/user_gpg_key.py | 5 + .../pulumi_gitlab/user_impersonation_token.py | 5 + sdk/python/pulumi_gitlab/user_runner.py | 5 + sdk/python/pulumi_gitlab/user_ssh_key.py | 5 + sdk/python/pyproject.toml | 2 +- 154 files changed, 2427 insertions(+), 198 deletions(-) diff --git a/sdk/go/gitlab/getCurrentUser.go b/sdk/go/gitlab/getCurrentUser.go index 346f257e..7c39ecbf 100644 --- a/sdk/go/gitlab/getCurrentUser.go +++ b/sdk/go/gitlab/getCurrentUser.go @@ -29,7 +29,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetCurrentUser(ctx, nil, nil) +// _, err := gitlab.GetCurrentUser(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } diff --git a/sdk/go/gitlab/getInstanceVariables.go b/sdk/go/gitlab/getInstanceVariables.go index 14308530..ca724464 100644 --- a/sdk/go/gitlab/getInstanceVariables.go +++ b/sdk/go/gitlab/getInstanceVariables.go @@ -29,7 +29,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetInstanceVariables(ctx, nil, nil) +// _, err := gitlab.GetInstanceVariables(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } diff --git a/sdk/go/gitlab/getMetadata.go b/sdk/go/gitlab/getMetadata.go index da736557..033ce24a 100644 --- a/sdk/go/gitlab/getMetadata.go +++ b/sdk/go/gitlab/getMetadata.go @@ -29,7 +29,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetMetadata(ctx, nil, nil) +// _, err := gitlab.GetMetadata(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 7766d5fe..0bdb4f68 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.42.0", + "@pulumi/pulumi": "^3.136.0", "builtin-modules": "3.0.0", "read-package-tree": "^5.2.1", "resolve": "^1.7.1" diff --git a/sdk/python/pulumi_gitlab/_inputs.py b/sdk/python/pulumi_gitlab/_inputs.py index 0ff659ba..1b689d09 100644 --- a/sdk/python/pulumi_gitlab/_inputs.py +++ b/sdk/python/pulumi_gitlab/_inputs.py @@ -4,44 +4,102 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ 'ApplicationSettingsDefaultBranchProtectionDefaultsArgs', + 'ApplicationSettingsDefaultBranchProtectionDefaultsArgsDict', 'BranchCommitArgs', + 'BranchCommitArgsDict', 'BranchProtectionAllowedToMergeArgs', + 'BranchProtectionAllowedToMergeArgsDict', 'BranchProtectionAllowedToPushArgs', + 'BranchProtectionAllowedToPushArgsDict', 'BranchProtectionAllowedToUnprotectArgs', + 'BranchProtectionAllowedToUnprotectArgsDict', 'GroupAccessTokenRotationConfigurationArgs', + 'GroupAccessTokenRotationConfigurationArgsDict', 'GroupDefaultBranchProtectionDefaultsArgs', + 'GroupDefaultBranchProtectionDefaultsArgsDict', 'GroupEpicBoardListArgs', + 'GroupEpicBoardListArgsDict', 'GroupIssueBoardListArgs', + 'GroupIssueBoardListArgsDict', 'GroupProtectedEnvironmentApprovalRuleArgs', + 'GroupProtectedEnvironmentApprovalRuleArgsDict', 'GroupProtectedEnvironmentDeployAccessLevelArgs', + 'GroupProtectedEnvironmentDeployAccessLevelArgsDict', 'GroupPushRulesArgs', + 'GroupPushRulesArgsDict', 'ProjectAccessTokenRotationConfigurationArgs', + 'ProjectAccessTokenRotationConfigurationArgsDict', 'ProjectContainerExpirationPolicyArgs', + 'ProjectContainerExpirationPolicyArgsDict', 'ProjectIssueBoardListArgs', + 'ProjectIssueBoardListArgsDict', 'ProjectIssueTaskCompletionStatusArgs', + 'ProjectIssueTaskCompletionStatusArgsDict', 'ProjectProtectedEnvironmentApprovalRuleArgs', + 'ProjectProtectedEnvironmentApprovalRuleArgsDict', 'ProjectProtectedEnvironmentDeployAccessLevelArgs', + 'ProjectProtectedEnvironmentDeployAccessLevelArgsDict', 'ProjectPushRulesArgs', + 'ProjectPushRulesArgsDict', 'ProjectTagCommitArgs', + 'ProjectTagCommitArgsDict', 'ProjectTagReleaseArgs', + 'ProjectTagReleaseArgsDict', 'TagProtectionAllowedToCreateArgs', + 'TagProtectionAllowedToCreateArgsDict', 'GetProjectProtectedBranchMergeAccessLevelArgs', + 'GetProjectProtectedBranchMergeAccessLevelArgsDict', 'GetProjectProtectedBranchPushAccessLevelArgs', + 'GetProjectProtectedBranchPushAccessLevelArgsDict', 'GetProjectProtectedBranchesProtectedBranchArgs', + 'GetProjectProtectedBranchesProtectedBranchArgsDict', 'GetProjectProtectedBranchesProtectedBranchMergeAccessLevelArgs', + 'GetProjectProtectedBranchesProtectedBranchMergeAccessLevelArgsDict', 'GetProjectProtectedBranchesProtectedBranchPushAccessLevelArgs', + 'GetProjectProtectedBranchesProtectedBranchPushAccessLevelArgsDict', 'GetReleaseAssetsArgs', + 'GetReleaseAssetsArgsDict', 'GetReleaseAssetsLinkArgs', + 'GetReleaseAssetsLinkArgsDict', 'GetReleaseAssetsSourceArgs', + 'GetReleaseAssetsSourceArgsDict', ] +MYPY = False + +if not MYPY: + class ApplicationSettingsDefaultBranchProtectionDefaultsArgsDict(TypedDict): + allow_force_push: NotRequired[pulumi.Input[bool]] + """ + Allow force push for all users with push access. + """ + allowed_to_merges: NotRequired[pulumi.Input[Sequence[Any]]] + """ + An array of access levels allowed to merge. Supports Developer (30) or Maintainer (40). + """ + allowed_to_pushes: NotRequired[pulumi.Input[Sequence[Any]]] + """ + An array of access levels allowed to push. Supports Developer (30) or Maintainer (40). + """ + developer_can_initial_push: NotRequired[pulumi.Input[bool]] + """ + Allow developers to initial push. + """ +elif False: + ApplicationSettingsDefaultBranchProtectionDefaultsArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ApplicationSettingsDefaultBranchProtectionDefaultsArgs: def __init__(__self__, *, @@ -113,6 +171,55 @@ def developer_can_initial_push(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "developer_can_initial_push", value) +if not MYPY: + class BranchCommitArgsDict(TypedDict): + author_email: NotRequired[pulumi.Input[str]] + """ + The email of the author. + """ + author_name: NotRequired[pulumi.Input[str]] + """ + The name of the author. + """ + authored_date: NotRequired[pulumi.Input[str]] + """ + The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ). + """ + committed_date: NotRequired[pulumi.Input[str]] + """ + The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ). + """ + committer_email: NotRequired[pulumi.Input[str]] + """ + The email of the user that committed. + """ + committer_name: NotRequired[pulumi.Input[str]] + """ + The name of the user that committed. + """ + id: NotRequired[pulumi.Input[str]] + """ + The unique id assigned to the commit by Gitlab. + """ + message: NotRequired[pulumi.Input[str]] + """ + The commit message + """ + parent_ids: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] + """ + The id of the parents of the commit + """ + short_id: NotRequired[pulumi.Input[str]] + """ + The short id assigned to the commit by Gitlab. + """ + title: NotRequired[pulumi.Input[str]] + """ + The title of the commit + """ +elif False: + BranchCommitArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class BranchCommitArgs: def __init__(__self__, *, @@ -296,6 +403,27 @@ def title(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "title", value) +if not MYPY: + class BranchProtectionAllowedToMergeArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Access levels allowed to merge to protected branch. Valid values are: `no one`, `developer`, `maintainer`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of access level. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + BranchProtectionAllowedToMergeArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class BranchProtectionAllowedToMergeArgs: def __init__(__self__, *, @@ -367,6 +495,27 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class BranchProtectionAllowedToPushArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Access levels allowed to push to protected branch. Valid values are: `no one`, `developer`, `maintainer`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of access level. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + BranchProtectionAllowedToPushArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class BranchProtectionAllowedToPushArgs: def __init__(__self__, *, @@ -438,6 +587,27 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class BranchProtectionAllowedToUnprotectArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Access levels allowed to unprotect push to protected branch. Valid values are: `developer`, `maintainer`, `admin`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of access level. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + BranchProtectionAllowedToUnprotectArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class BranchProtectionAllowedToUnprotectArgs: def __init__(__self__, *, @@ -509,6 +679,19 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class GroupAccessTokenRotationConfigurationArgsDict(TypedDict): + expiration_days: pulumi.Input[int] + """ + The duration (in days) the new token should be valid for. + """ + rotate_before_days: pulumi.Input[int] + """ + The duration (in days) before the expiration when the token should be rotated. As an example, if set to 7 days, the token will rotate 7 days before the expiration date, but only when `pulumi up` is run in that timeframe. + """ +elif False: + GroupAccessTokenRotationConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GroupAccessTokenRotationConfigurationArgs: def __init__(__self__, *, @@ -546,6 +729,27 @@ def rotate_before_days(self, value: pulumi.Input[int]): pulumi.set(self, "rotate_before_days", value) +if not MYPY: + class GroupDefaultBranchProtectionDefaultsArgsDict(TypedDict): + allow_force_push: NotRequired[pulumi.Input[bool]] + """ + Allow force push for all users with push access. + """ + allowed_to_merges: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] + """ + An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`. + """ + allowed_to_pushes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] + """ + An array of access levels allowed to push. Valid values are: `developer`, `maintainer`. + """ + developer_can_initial_push: NotRequired[pulumi.Input[bool]] + """ + Allow developers to initial push. + """ +elif False: + GroupDefaultBranchProtectionDefaultsArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GroupDefaultBranchProtectionDefaultsArgs: def __init__(__self__, *, @@ -617,6 +821,23 @@ def developer_can_initial_push(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "developer_can_initial_push", value) +if not MYPY: + class GroupEpicBoardListArgsDict(TypedDict): + id: NotRequired[pulumi.Input[int]] + """ + The ID of the list. + """ + label_id: NotRequired[pulumi.Input[int]] + """ + The ID of the label the list should be scoped to. + """ + position: NotRequired[pulumi.Input[int]] + """ + The position of the list within the board. The position for the list is sed on the its position in the `lists` array. + """ +elif False: + GroupEpicBoardListArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GroupEpicBoardListArgs: def __init__(__self__, *, @@ -672,6 +893,23 @@ def position(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "position", value) +if not MYPY: + class GroupIssueBoardListArgsDict(TypedDict): + id: NotRequired[pulumi.Input[int]] + """ + The ID of the list. + """ + label_id: NotRequired[pulumi.Input[int]] + """ + The ID of the label the list should be scoped to. + """ + position: NotRequired[pulumi.Input[int]] + """ + The explicit position of the list within the board, zero based. + """ +elif False: + GroupIssueBoardListArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GroupIssueBoardListArgs: def __init__(__self__, *, @@ -727,6 +965,39 @@ def position(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "position", value) +if not MYPY: + class GroupProtectedEnvironmentApprovalRuleArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Levels of access allowed to approve a deployment to this protected environment. Mutually exclusive with `user_id` and `group_id`. Valid values are `developer`, `maintainer`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of level of access. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of the group allowed to approve a deployment to this protected environment. TThe group must be a sub-group under the given group. Mutually exclusive with `access_level` and `user_id`. + """ + group_inheritance_type: NotRequired[pulumi.Input[int]] + """ + Group inheritance allows access rules to take inherited group membership into account. Valid values are `0`, `1`. `0` => Direct group membership only, `1` => All inherited groups. Default: `0` + """ + id: NotRequired[pulumi.Input[int]] + """ + The unique ID of the Approval Rules object. + """ + required_approvals: NotRequired[pulumi.Input[int]] + """ + The number of approval required to allow deployment to this protected environment. This is mutually exclusive with user_id. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of the user allowed to approve a deployment to this protected environment. The user must be a member of the group with Maintainer role or higher. Mutually exclusive with `access_level` and `group_id`. + """ +elif False: + GroupProtectedEnvironmentApprovalRuleArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GroupProtectedEnvironmentApprovalRuleArgs: def __init__(__self__, *, @@ -846,6 +1117,35 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class GroupProtectedEnvironmentDeployAccessLevelArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Levels of access required to deploy to this protected environment. Mutually exclusive with `user_id` and `group_id`. Valid values are `developer`, `maintainer`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of level of access. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of the group allowed to deploy to this protected environment. The group must be a sub-group under the given group. Mutually exclusive with `access_level` and `user_id`. + """ + group_inheritance_type: NotRequired[pulumi.Input[int]] + """ + Group inheritance allows deploy access levels to take inherited group membership into account. Valid values are `0`, `1`. `0` => Direct group membership only, `1` => All inherited groups. Default: `0` + """ + id: NotRequired[pulumi.Input[int]] + """ + The unique ID of the Deploy Access Level object. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of the user allowed to deploy to this protected environment. The user must be a member of the group with Maintainer role or higher. Mutually exclusive with `access_level` and `group_id`. + """ +elif False: + GroupProtectedEnvironmentDeployAccessLevelArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GroupProtectedEnvironmentDeployAccessLevelArgs: def __init__(__self__, *, @@ -949,6 +1249,63 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class GroupPushRulesArgsDict(TypedDict): + author_email_regex: NotRequired[pulumi.Input[str]] + """ + All commit author emails must match this regex, e.g. `@my-company.com$`. + """ + branch_name_regex: NotRequired[pulumi.Input[str]] + """ + All branch names must match this regex, e.g. `(feature|hotfix)\\/*`. + """ + commit_committer_check: NotRequired[pulumi.Input[bool]] + """ + Only commits pushed using verified emails are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4. + """ + commit_committer_name_check: NotRequired[pulumi.Input[bool]] + """ + Users can only push commits to this repository if the commit author name is consistent with their GitLab account name. + """ + commit_message_negative_regex: NotRequired[pulumi.Input[str]] + """ + No commit message is allowed to match this regex, for example `ssh\\:\\/\\/`. + """ + commit_message_regex: NotRequired[pulumi.Input[str]] + """ + All commit messages must match this regex, e.g. `Fixed \\d+\\..*`. + """ + deny_delete_tag: NotRequired[pulumi.Input[bool]] + """ + Deny deleting a tag. + """ + file_name_regex: NotRequired[pulumi.Input[str]] + """ + Filenames matching the regular expression provided in this attribute are not allowed, for example, `(jar|exe)$`. + """ + max_file_size: NotRequired[pulumi.Input[int]] + """ + Maximum file size (MB) allowed. + """ + member_check: NotRequired[pulumi.Input[bool]] + """ + Allows only GitLab users to author commits. + """ + prevent_secrets: NotRequired[pulumi.Input[bool]] + """ + GitLab will reject any files that are likely to contain secrets. + """ + reject_non_dco_commits: NotRequired[pulumi.Input[bool]] + """ + Reject commit when it’s not DCO certified. + """ + reject_unsigned_commits: NotRequired[pulumi.Input[bool]] + """ + Only commits signed through GPG are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4. + """ +elif False: + GroupPushRulesArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GroupPushRulesArgs: def __init__(__self__, *, @@ -1164,6 +1521,19 @@ def reject_unsigned_commits(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "reject_unsigned_commits", value) +if not MYPY: + class ProjectAccessTokenRotationConfigurationArgsDict(TypedDict): + expiration_days: pulumi.Input[int] + """ + The duration (in days) the new token should be valid for. + """ + rotate_before_days: pulumi.Input[int] + """ + The duration (in days) before the expiration when the token should be rotated. As an example, if set to 7 days, the token will rotate 7 days before the expiration date, but only when `pulumi up` is run in that timeframe. + """ +elif False: + ProjectAccessTokenRotationConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectAccessTokenRotationConfigurationArgs: def __init__(__self__, *, @@ -1201,6 +1571,43 @@ def rotate_before_days(self, value: pulumi.Input[int]): pulumi.set(self, "rotate_before_days", value) +if not MYPY: + class ProjectContainerExpirationPolicyArgsDict(TypedDict): + cadence: NotRequired[pulumi.Input[str]] + """ + The cadence of the policy. Valid values are: `1d`, `7d`, `14d`, `1month`, `3month`. + """ + enabled: NotRequired[pulumi.Input[bool]] + """ + If true, the policy is enabled. + """ + keep_n: NotRequired[pulumi.Input[int]] + """ + The number of images to keep. + """ + name_regex: NotRequired[pulumi.Input[str]] + """ + The regular expression to match image names to delete. + """ + name_regex_delete: NotRequired[pulumi.Input[str]] + """ + The regular expression to match image names to delete. + """ + name_regex_keep: NotRequired[pulumi.Input[str]] + """ + The regular expression to match image names to keep. + """ + next_run_at: NotRequired[pulumi.Input[str]] + """ + The next time the policy will run. + """ + older_than: NotRequired[pulumi.Input[str]] + """ + The number of days to keep images. + """ +elif False: + ProjectContainerExpirationPolicyArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectContainerExpirationPolicyArgs: def __init__(__self__, *, @@ -1340,6 +1747,35 @@ def older_than(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "older_than", value) +if not MYPY: + class ProjectIssueBoardListArgsDict(TypedDict): + assignee_id: NotRequired[pulumi.Input[int]] + """ + The ID of the assignee the list should be scoped to. Requires a GitLab EE license. + """ + id: NotRequired[pulumi.Input[int]] + """ + The ID of the list + """ + iteration_id: NotRequired[pulumi.Input[int]] + """ + The ID of the iteration the list should be scoped to. Requires a GitLab EE license. + """ + label_id: NotRequired[pulumi.Input[int]] + """ + The ID of the label the list should be scoped to. Requires a GitLab EE license. + """ + milestone_id: NotRequired[pulumi.Input[int]] + """ + The ID of the milestone the list should be scoped to. Requires a GitLab EE license. + """ + position: NotRequired[pulumi.Input[int]] + """ + The position of the list within the board. The position for the list is based on the its position in the `lists` array. + """ +elif False: + ProjectIssueBoardListArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectIssueBoardListArgs: def __init__(__self__, *, @@ -1443,6 +1879,19 @@ def position(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "position", value) +if not MYPY: + class ProjectIssueTaskCompletionStatusArgsDict(TypedDict): + completed_count: NotRequired[pulumi.Input[int]] + """ + The number of tasks that are completed. + """ + count: NotRequired[pulumi.Input[int]] + """ + The number of tasks. + """ +elif False: + ProjectIssueTaskCompletionStatusArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectIssueTaskCompletionStatusArgs: def __init__(__self__, *, @@ -1482,6 +1931,39 @@ def count(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "count", value) +if not MYPY: + class ProjectProtectedEnvironmentApprovalRuleArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Levels of access allowed to approve a deployment to this protected environment. Mutually exclusive with `user_id` and `group_id`. Valid values are `developer`, `maintainer`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of level of access. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of the group allowed to approve a deployment to this protected environment. The project must be shared with the group. Mutually exclusive with `access_level` and `user_id`. + """ + group_inheritance_type: NotRequired[pulumi.Input[int]] + """ + Group inheritance allows deploy access levels to take inherited group membership into account. Valid values are `0`, `1`. `0` => Direct group membership only, `1` => All inherited groups. Default: `0` + """ + id: NotRequired[pulumi.Input[int]] + """ + The unique ID of the Approval Rules object. + """ + required_approvals: NotRequired[pulumi.Input[int]] + """ + The number of approval required to allow deployment to this protected environment. This is mutually exclusive with user_id. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of the user allowed to approve a deployment to this protected environment. The user must be a member of the project. Mutually exclusive with `access_level` and `group_id`. + """ +elif False: + ProjectProtectedEnvironmentApprovalRuleArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectProtectedEnvironmentApprovalRuleArgs: def __init__(__self__, *, @@ -1601,6 +2083,35 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class ProjectProtectedEnvironmentDeployAccessLevelArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Levels of access required to deploy to this protected environment. Mutually exclusive with `user_id` and `group_id`. Valid values are `developer`, `maintainer`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of level of access. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of the group allowed to deploy to this protected environment. The project must be shared with the group. Mutually exclusive with `access_level` and `user_id`. + """ + group_inheritance_type: NotRequired[pulumi.Input[int]] + """ + Group inheritance allows deploy access levels to take inherited group membership into account. Valid values are `0`, `1`. `0` => Direct group membership only, `1` => All inherited groups. Default: `0` + """ + id: NotRequired[pulumi.Input[int]] + """ + The unique ID of the Deploy Access Level object. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of the user allowed to deploy to this protected environment. The user must be a member of the project. Mutually exclusive with `access_level` and `group_id`. + """ +elif False: + ProjectProtectedEnvironmentDeployAccessLevelArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectProtectedEnvironmentDeployAccessLevelArgs: def __init__(__self__, *, @@ -1704,6 +2215,63 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class ProjectPushRulesArgsDict(TypedDict): + author_email_regex: NotRequired[pulumi.Input[str]] + """ + All commit author emails must match this regex, e.g. `@my-company.com$`. + """ + branch_name_regex: NotRequired[pulumi.Input[str]] + """ + All branch names must match this regex, e.g. `(feature|hotfix)\\/*`. + """ + commit_committer_check: NotRequired[pulumi.Input[bool]] + """ + Users can only push commits to this repository that were committed with one of their own verified emails. + """ + commit_committer_name_check: NotRequired[pulumi.Input[bool]] + """ + Users can only push commits to this repository if the commit author name is consistent with their GitLab account name. + """ + commit_message_negative_regex: NotRequired[pulumi.Input[str]] + """ + No commit message is allowed to match this regex, e.g. `ssh\\:\\/\\/`. + """ + commit_message_regex: NotRequired[pulumi.Input[str]] + """ + All commit messages must match this regex, e.g. `Fixed \\d+\\..*`. + """ + deny_delete_tag: NotRequired[pulumi.Input[bool]] + """ + Deny deleting a tag. + """ + file_name_regex: NotRequired[pulumi.Input[str]] + """ + All committed filenames must not match this regex, e.g. `(jar|exe)$`. + """ + max_file_size: NotRequired[pulumi.Input[int]] + """ + Maximum file size (MB). + """ + member_check: NotRequired[pulumi.Input[bool]] + """ + Restrict commits by author (email) to existing GitLab users. + """ + prevent_secrets: NotRequired[pulumi.Input[bool]] + """ + GitLab will reject any files that are likely to contain secrets. + """ + reject_non_dco_commits: NotRequired[pulumi.Input[bool]] + """ + Reject commit when it’s not DCO certified. + """ + reject_unsigned_commits: NotRequired[pulumi.Input[bool]] + """ + Reject commit when it’s not signed through GPG. + """ +elif False: + ProjectPushRulesArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectPushRulesArgs: def __init__(__self__, *, @@ -1919,6 +2487,55 @@ def reject_unsigned_commits(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "reject_unsigned_commits", value) +if not MYPY: + class ProjectTagCommitArgsDict(TypedDict): + author_email: NotRequired[pulumi.Input[str]] + """ + The email of the author. + """ + author_name: NotRequired[pulumi.Input[str]] + """ + The name of the author. + """ + authored_date: NotRequired[pulumi.Input[str]] + """ + The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ). + """ + committed_date: NotRequired[pulumi.Input[str]] + """ + The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ). + """ + committer_email: NotRequired[pulumi.Input[str]] + """ + The email of the user that committed. + """ + committer_name: NotRequired[pulumi.Input[str]] + """ + The name of the user that committed. + """ + id: NotRequired[pulumi.Input[str]] + """ + The unique id assigned to the commit by Gitlab. + """ + message: NotRequired[pulumi.Input[str]] + """ + The commit message + """ + parent_ids: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] + """ + The id of the parents of the commit + """ + short_id: NotRequired[pulumi.Input[str]] + """ + The short id assigned to the commit by Gitlab. + """ + title: NotRequired[pulumi.Input[str]] + """ + The title of the commit + """ +elif False: + ProjectTagCommitArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectTagCommitArgs: def __init__(__self__, *, @@ -2102,6 +2719,19 @@ def title(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "title", value) +if not MYPY: + class ProjectTagReleaseArgsDict(TypedDict): + description: NotRequired[pulumi.Input[str]] + """ + The description of release. + """ + tag_name: NotRequired[pulumi.Input[str]] + """ + The name of the tag. + """ +elif False: + ProjectTagReleaseArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProjectTagReleaseArgs: def __init__(__self__, *, @@ -2141,6 +2771,27 @@ def tag_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "tag_name", value) +if not MYPY: + class TagProtectionAllowedToCreateArgsDict(TypedDict): + access_level: NotRequired[pulumi.Input[str]] + """ + Access levels allowed to create protected tags. Valid values are: `no one`, `developer`, `maintainer`. + """ + access_level_description: NotRequired[pulumi.Input[str]] + """ + Readable description of access level. + """ + group_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[pulumi.Input[int]] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + TagProtectionAllowedToCreateArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class TagProtectionAllowedToCreateArgs: def __init__(__self__, *, @@ -2212,6 +2863,27 @@ def user_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "user_id", value) +if not MYPY: + class GetProjectProtectedBranchMergeAccessLevelArgsDict(TypedDict): + access_level: str + """ + Access levels allowed to merge to protected branch. Valid values are: `no one`, `developer`, `maintainer`. + """ + access_level_description: str + """ + Readable description of access level. + """ + group_id: NotRequired[int] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[int] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + GetProjectProtectedBranchMergeAccessLevelArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetProjectProtectedBranchMergeAccessLevelArgs: def __init__(__self__, *, @@ -2281,6 +2953,27 @@ def user_id(self, value: Optional[int]): pulumi.set(self, "user_id", value) +if not MYPY: + class GetProjectProtectedBranchPushAccessLevelArgsDict(TypedDict): + access_level: str + """ + Access levels allowed to push to protected branch. Valid values are: `no one`, `developer`, `maintainer`. + """ + access_level_description: str + """ + Readable description of access level. + """ + group_id: NotRequired[int] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[int] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + GetProjectProtectedBranchPushAccessLevelArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetProjectProtectedBranchPushAccessLevelArgs: def __init__(__self__, *, @@ -2350,6 +3043,35 @@ def user_id(self, value: Optional[int]): pulumi.set(self, "user_id", value) +if not MYPY: + class GetProjectProtectedBranchesProtectedBranchArgsDict(TypedDict): + allow_force_push: bool + """ + Whether force push is allowed. + """ + code_owner_approval_required: bool + """ + Reject code pushes that change files listed in the CODEOWNERS file. + """ + id: int + """ + The ID of this resource. + """ + name: str + """ + The name of the protected branch. + """ + merge_access_levels: NotRequired[Sequence['GetProjectProtectedBranchesProtectedBranchMergeAccessLevelArgsDict']] + """ + Array of access levels and user(s)/group(s) allowed to merge to protected branch. + """ + push_access_levels: NotRequired[Sequence['GetProjectProtectedBranchesProtectedBranchPushAccessLevelArgsDict']] + """ + Array of access levels and user(s)/group(s) allowed to push to protected branch. + """ +elif False: + GetProjectProtectedBranchesProtectedBranchArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetProjectProtectedBranchesProtectedBranchArgs: def __init__(__self__, *, @@ -2449,6 +3171,27 @@ def push_access_levels(self, value: Optional[Sequence['GetProjectProtectedBranch pulumi.set(self, "push_access_levels", value) +if not MYPY: + class GetProjectProtectedBranchesProtectedBranchMergeAccessLevelArgsDict(TypedDict): + access_level: str + """ + Access levels allowed to merge to protected branch. Valid values are: `no one`, `developer`, `maintainer`. + """ + access_level_description: str + """ + Readable description of access level. + """ + group_id: NotRequired[int] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[int] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + GetProjectProtectedBranchesProtectedBranchMergeAccessLevelArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetProjectProtectedBranchesProtectedBranchMergeAccessLevelArgs: def __init__(__self__, *, @@ -2518,6 +3261,27 @@ def user_id(self, value: Optional[int]): pulumi.set(self, "user_id", value) +if not MYPY: + class GetProjectProtectedBranchesProtectedBranchPushAccessLevelArgsDict(TypedDict): + access_level: str + """ + Access levels allowed to push to protected branch. Valid values are: `no one`, `developer`, `maintainer`. + """ + access_level_description: str + """ + Readable description of access level. + """ + group_id: NotRequired[int] + """ + The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`. + """ + user_id: NotRequired[int] + """ + The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`. + """ +elif False: + GetProjectProtectedBranchesProtectedBranchPushAccessLevelArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetProjectProtectedBranchesProtectedBranchPushAccessLevelArgs: def __init__(__self__, *, @@ -2587,6 +3351,23 @@ def user_id(self, value: Optional[int]): pulumi.set(self, "user_id", value) +if not MYPY: + class GetReleaseAssetsArgsDict(TypedDict): + count: int + """ + The number of assets for a release + """ + links: NotRequired[Sequence['GetReleaseAssetsLinkArgsDict']] + """ + The links for a release + """ + sources: NotRequired[Sequence['GetReleaseAssetsSourceArgsDict']] + """ + The sources for a release + """ +elif False: + GetReleaseAssetsArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetReleaseAssetsArgs: def __init__(__self__, *, @@ -2641,6 +3422,27 @@ def sources(self, value: Optional[Sequence['GetReleaseAssetsSourceArgs']]): pulumi.set(self, "sources", value) +if not MYPY: + class GetReleaseAssetsLinkArgsDict(TypedDict): + id: int + """ + The ID of the link + """ + link_type: str + """ + The type of the link + """ + name: str + """ + The name of the link + """ + url: str + """ + The URL of the link + """ +elif False: + GetReleaseAssetsLinkArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetReleaseAssetsLinkArgs: def __init__(__self__, *, @@ -2708,6 +3510,19 @@ def url(self, value: str): pulumi.set(self, "url", value) +if not MYPY: + class GetReleaseAssetsSourceArgsDict(TypedDict): + format: str + """ + The format of the source + """ + url: str + """ + The URL of the source + """ +elif False: + GetReleaseAssetsSourceArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetReleaseAssetsSourceArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_gitlab/_utilities.py b/sdk/python/pulumi_gitlab/_utilities.py index d14b49ac..3ce408d5 100644 --- a/sdk/python/pulumi_gitlab/_utilities.py +++ b/sdk/python/pulumi_gitlab/_utilities.py @@ -264,7 +264,7 @@ def call_plain( output = pulumi.runtime.call(tok, props, res, typ) # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency. - result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output))) + result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output))) problem = None if not known: diff --git a/sdk/python/pulumi_gitlab/application.py b/sdk/python/pulumi_gitlab/application.py index 33f473ba..068885da 100644 --- a/sdk/python/pulumi_gitlab/application.py +++ b/sdk/python/pulumi_gitlab/application.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ApplicationArgs', 'Application'] diff --git a/sdk/python/pulumi_gitlab/application_settings.py b/sdk/python/pulumi_gitlab/application_settings.py index f8d83dc5..6af30ee5 100644 --- a/sdk/python/pulumi_gitlab/application_settings.py +++ b/sdk/python/pulumi_gitlab/application_settings.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/branch.py b/sdk/python/pulumi_gitlab/branch.py index 0992d8ec..46388491 100644 --- a/sdk/python/pulumi_gitlab/branch.py +++ b/sdk/python/pulumi_gitlab/branch.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/branch_protection.py b/sdk/python/pulumi_gitlab/branch_protection.py index 286dbbce..189a91e9 100644 --- a/sdk/python/pulumi_gitlab/branch_protection.py +++ b/sdk/python/pulumi_gitlab/branch_protection.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/cluster_agent.py b/sdk/python/pulumi_gitlab/cluster_agent.py index 6e10bd96..7d02798e 100644 --- a/sdk/python/pulumi_gitlab/cluster_agent.py +++ b/sdk/python/pulumi_gitlab/cluster_agent.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ClusterAgentArgs', 'ClusterAgent'] diff --git a/sdk/python/pulumi_gitlab/cluster_agent_token.py b/sdk/python/pulumi_gitlab/cluster_agent_token.py index 7c17ad86..8c31d634 100644 --- a/sdk/python/pulumi_gitlab/cluster_agent_token.py +++ b/sdk/python/pulumi_gitlab/cluster_agent_token.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ClusterAgentTokenArgs', 'ClusterAgentToken'] diff --git a/sdk/python/pulumi_gitlab/compliance_framework.py b/sdk/python/pulumi_gitlab/compliance_framework.py index 535d8553..8554df7e 100644 --- a/sdk/python/pulumi_gitlab/compliance_framework.py +++ b/sdk/python/pulumi_gitlab/compliance_framework.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ComplianceFrameworkArgs', 'ComplianceFramework'] diff --git a/sdk/python/pulumi_gitlab/config/__init__.pyi b/sdk/python/pulumi_gitlab/config/__init__.pyi index 7aca5881..00659036 100644 --- a/sdk/python/pulumi_gitlab/config/__init__.pyi +++ b/sdk/python/pulumi_gitlab/config/__init__.pyi @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities baseUrl: Optional[str] diff --git a/sdk/python/pulumi_gitlab/config/vars.py b/sdk/python/pulumi_gitlab/config/vars.py index 144495ae..bd95119c 100644 --- a/sdk/python/pulumi_gitlab/config/vars.py +++ b/sdk/python/pulumi_gitlab/config/vars.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities import types diff --git a/sdk/python/pulumi_gitlab/deploy_key.py b/sdk/python/pulumi_gitlab/deploy_key.py index 5f824f55..fbef6517 100644 --- a/sdk/python/pulumi_gitlab/deploy_key.py +++ b/sdk/python/pulumi_gitlab/deploy_key.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['DeployKeyArgs', 'DeployKey'] diff --git a/sdk/python/pulumi_gitlab/deploy_key_enable.py b/sdk/python/pulumi_gitlab/deploy_key_enable.py index 250aaaf8..4142fb52 100644 --- a/sdk/python/pulumi_gitlab/deploy_key_enable.py +++ b/sdk/python/pulumi_gitlab/deploy_key_enable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['DeployKeyEnableArgs', 'DeployKeyEnable'] diff --git a/sdk/python/pulumi_gitlab/deploy_token.py b/sdk/python/pulumi_gitlab/deploy_token.py index 4c8b5f9e..7b6c552d 100644 --- a/sdk/python/pulumi_gitlab/deploy_token.py +++ b/sdk/python/pulumi_gitlab/deploy_token.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['DeployTokenArgs', 'DeployToken'] diff --git a/sdk/python/pulumi_gitlab/get_application.py b/sdk/python/pulumi_gitlab/get_application.py index 6ccc2624..f5e8608c 100644 --- a/sdk/python/pulumi_gitlab/get_application.py +++ b/sdk/python/pulumi_gitlab/get_application.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -107,9 +112,6 @@ def get_application(id: Optional[str] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), redirect_url=pulumi.get(__ret__, 'redirect_url')) - - -@_utilities.lift_output_func(get_application) def get_application_output(id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetApplicationResult]: """ @@ -117,4 +119,13 @@ def get_application_output(id: Optional[pulumi.Input[str]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.html) """ - ... + __args__ = dict() + __args__['id'] = id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getApplication:getApplication', __args__, opts=opts, typ=GetApplicationResult) + return __ret__.apply(lambda __response__: GetApplicationResult( + application_id=pulumi.get(__response__, 'application_id'), + confidential=pulumi.get(__response__, 'confidential'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + redirect_url=pulumi.get(__response__, 'redirect_url'))) diff --git a/sdk/python/pulumi_gitlab/get_branch.py b/sdk/python/pulumi_gitlab/get_branch.py index 26308d3f..4deb78a6 100644 --- a/sdk/python/pulumi_gitlab/get_branch.py +++ b/sdk/python/pulumi_gitlab/get_branch.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -195,9 +200,6 @@ def get_branch(name: Optional[str] = None, project=pulumi.get(__ret__, 'project'), protected=pulumi.get(__ret__, 'protected'), web_url=pulumi.get(__ret__, 'web_url')) - - -@_utilities.lift_output_func(get_branch) def get_branch_output(name: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBranchResult]: @@ -210,4 +212,20 @@ def get_branch_output(name: Optional[pulumi.Input[str]] = None, :param str name: The name of the branch. :param str project: The full path or id of the project. """ - ... + __args__ = dict() + __args__['name'] = name + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getBranch:getBranch', __args__, opts=opts, typ=GetBranchResult) + return __ret__.apply(lambda __response__: GetBranchResult( + can_push=pulumi.get(__response__, 'can_push'), + commits=pulumi.get(__response__, 'commits'), + default=pulumi.get(__response__, 'default'), + developer_can_merge=pulumi.get(__response__, 'developer_can_merge'), + developer_can_push=pulumi.get(__response__, 'developer_can_push'), + id=pulumi.get(__response__, 'id'), + merged=pulumi.get(__response__, 'merged'), + name=pulumi.get(__response__, 'name'), + project=pulumi.get(__response__, 'project'), + protected=pulumi.get(__response__, 'protected'), + web_url=pulumi.get(__response__, 'web_url'))) diff --git a/sdk/python/pulumi_gitlab/get_cluster_agent.py b/sdk/python/pulumi_gitlab/get_cluster_agent.py index 27c3d291..458c560e 100644 --- a/sdk/python/pulumi_gitlab/get_cluster_agent.py +++ b/sdk/python/pulumi_gitlab/get_cluster_agent.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -141,9 +146,6 @@ def get_cluster_agent(agent_id: Optional[int] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), project=pulumi.get(__ret__, 'project')) - - -@_utilities.lift_output_func(get_cluster_agent) def get_cluster_agent_output(agent_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterAgentResult]: @@ -168,4 +170,15 @@ def get_cluster_agent_output(agent_id: Optional[pulumi.Input[int]] = None, :param int agent_id: The ID of the agent. :param str project: ID or full path of the project maintained by the authenticated user. """ - ... + __args__ = dict() + __args__['agentId'] = agent_id + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getClusterAgent:getClusterAgent', __args__, opts=opts, typ=GetClusterAgentResult) + return __ret__.apply(lambda __response__: GetClusterAgentResult( + agent_id=pulumi.get(__response__, 'agent_id'), + created_at=pulumi.get(__response__, 'created_at'), + created_by_user_id=pulumi.get(__response__, 'created_by_user_id'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + project=pulumi.get(__response__, 'project'))) diff --git a/sdk/python/pulumi_gitlab/get_cluster_agents.py b/sdk/python/pulumi_gitlab/get_cluster_agents.py index 20567046..4e34816c 100644 --- a/sdk/python/pulumi_gitlab/get_cluster_agents.py +++ b/sdk/python/pulumi_gitlab/get_cluster_agents.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -99,9 +104,6 @@ def get_cluster_agents(project: Optional[str] = None, cluster_agents=pulumi.get(__ret__, 'cluster_agents'), id=pulumi.get(__ret__, 'id'), project=pulumi.get(__ret__, 'project')) - - -@_utilities.lift_output_func(get_cluster_agents) def get_cluster_agents_output(project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterAgentsResult]: """ @@ -123,4 +125,11 @@ def get_cluster_agents_output(project: Optional[pulumi.Input[str]] = None, :param str project: The ID or full path of the project owned by the authenticated user. """ - ... + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getClusterAgents:getClusterAgents', __args__, opts=opts, typ=GetClusterAgentsResult) + return __ret__.apply(lambda __response__: GetClusterAgentsResult( + cluster_agents=pulumi.get(__response__, 'cluster_agents'), + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'))) diff --git a/sdk/python/pulumi_gitlab/get_compliance_framework.py b/sdk/python/pulumi_gitlab/get_compliance_framework.py index 217bd141..14d62a6f 100644 --- a/sdk/python/pulumi_gitlab/get_compliance_framework.py +++ b/sdk/python/pulumi_gitlab/get_compliance_framework.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -162,9 +167,6 @@ def get_compliance_framework(name: Optional[str] = None, name=pulumi.get(__ret__, 'name'), namespace_path=pulumi.get(__ret__, 'namespace_path'), pipeline_configuration_full_path=pulumi.get(__ret__, 'pipeline_configuration_full_path')) - - -@_utilities.lift_output_func(get_compliance_framework) def get_compliance_framework_output(name: Optional[pulumi.Input[str]] = None, namespace_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComplianceFrameworkResult]: @@ -187,4 +189,17 @@ def get_compliance_framework_output(name: Optional[pulumi.Input[str]] = None, :param str name: Name for the compliance framework. :param str namespace_path: Full path of the namespace to where the compliance framework is. """ - ... + __args__ = dict() + __args__['name'] = name + __args__['namespacePath'] = namespace_path + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getComplianceFramework:getComplianceFramework', __args__, opts=opts, typ=GetComplianceFrameworkResult) + return __ret__.apply(lambda __response__: GetComplianceFrameworkResult( + color=pulumi.get(__response__, 'color'), + default=pulumi.get(__response__, 'default'), + description=pulumi.get(__response__, 'description'), + framework_id=pulumi.get(__response__, 'framework_id'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + namespace_path=pulumi.get(__response__, 'namespace_path'), + pipeline_configuration_full_path=pulumi.get(__response__, 'pipeline_configuration_full_path'))) diff --git a/sdk/python/pulumi_gitlab/get_current_user.py b/sdk/python/pulumi_gitlab/get_current_user.py index d1c590f6..1ca2464a 100644 --- a/sdk/python/pulumi_gitlab/get_current_user.py +++ b/sdk/python/pulumi_gitlab/get_current_user.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -169,9 +174,6 @@ def get_current_user(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe namespace_id=pulumi.get(__ret__, 'namespace_id'), public_email=pulumi.get(__ret__, 'public_email'), username=pulumi.get(__ret__, 'username')) - - -@_utilities.lift_output_func(get_current_user) def get_current_user_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCurrentUserResult]: """ The `get_current_user` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. @@ -187,4 +189,16 @@ def get_current_user_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu example = gitlab.get_current_user() ``` """ - ... + __args__ = dict() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getCurrentUser:getCurrentUser', __args__, opts=opts, typ=GetCurrentUserResult) + return __ret__.apply(lambda __response__: GetCurrentUserResult( + bot=pulumi.get(__response__, 'bot'), + global_id=pulumi.get(__response__, 'global_id'), + global_namespace_id=pulumi.get(__response__, 'global_namespace_id'), + group_count=pulumi.get(__response__, 'group_count'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + namespace_id=pulumi.get(__response__, 'namespace_id'), + public_email=pulumi.get(__response__, 'public_email'), + username=pulumi.get(__response__, 'username'))) diff --git a/sdk/python/pulumi_gitlab/get_group.py b/sdk/python/pulumi_gitlab/get_group.py index cded3147..ee1cb5bc 100644 --- a/sdk/python/pulumi_gitlab/get_group.py +++ b/sdk/python/pulumi_gitlab/get_group.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -325,9 +330,6 @@ def get_group(full_path: Optional[str] = None, visibility_level=pulumi.get(__ret__, 'visibility_level'), web_url=pulumi.get(__ret__, 'web_url'), wiki_access_level=pulumi.get(__ret__, 'wiki_access_level')) - - -@_utilities.lift_output_func(get_group) def get_group_output(full_path: Optional[pulumi.Input[Optional[str]]] = None, group_id: Optional[pulumi.Input[Optional[int]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGroupResult]: @@ -340,4 +342,30 @@ def get_group_output(full_path: Optional[pulumi.Input[Optional[str]]] = None, :param str full_path: The full path of the group. :param int group_id: The ID of the group. """ - ... + __args__ = dict() + __args__['fullPath'] = full_path + __args__['groupId'] = group_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroup:getGroup', __args__, opts=opts, typ=GetGroupResult) + return __ret__.apply(lambda __response__: GetGroupResult( + default_branch_protection=pulumi.get(__response__, 'default_branch_protection'), + description=pulumi.get(__response__, 'description'), + extra_shared_runners_minutes_limit=pulumi.get(__response__, 'extra_shared_runners_minutes_limit'), + full_name=pulumi.get(__response__, 'full_name'), + full_path=pulumi.get(__response__, 'full_path'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + lfs_enabled=pulumi.get(__response__, 'lfs_enabled'), + membership_lock=pulumi.get(__response__, 'membership_lock'), + name=pulumi.get(__response__, 'name'), + parent_id=pulumi.get(__response__, 'parent_id'), + path=pulumi.get(__response__, 'path'), + prevent_forking_outside_group=pulumi.get(__response__, 'prevent_forking_outside_group'), + request_access_enabled=pulumi.get(__response__, 'request_access_enabled'), + runners_token=pulumi.get(__response__, 'runners_token'), + shared_runners_minutes_limit=pulumi.get(__response__, 'shared_runners_minutes_limit'), + shared_runners_setting=pulumi.get(__response__, 'shared_runners_setting'), + shared_with_groups=pulumi.get(__response__, 'shared_with_groups'), + visibility_level=pulumi.get(__response__, 'visibility_level'), + web_url=pulumi.get(__response__, 'web_url'), + wiki_access_level=pulumi.get(__response__, 'wiki_access_level'))) diff --git a/sdk/python/pulumi_gitlab/get_group_hook.py b/sdk/python/pulumi_gitlab/get_group_hook.py index ebf5ecbd..d486eebf 100644 --- a/sdk/python/pulumi_gitlab/get_group_hook.py +++ b/sdk/python/pulumi_gitlab/get_group_hook.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -337,9 +342,6 @@ def get_group_hook(group: Optional[str] = None, token=pulumi.get(__ret__, 'token'), url=pulumi.get(__ret__, 'url'), wiki_page_events=pulumi.get(__ret__, 'wiki_page_events')) - - -@_utilities.lift_output_func(get_group_hook) def get_group_hook_output(group: Optional[pulumi.Input[str]] = None, hook_id: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGroupHookResult]: @@ -352,4 +354,31 @@ def get_group_hook_output(group: Optional[pulumi.Input[str]] = None, :param str group: The ID or full path of the group. :param int hook_id: The id of the group hook. """ - ... + __args__ = dict() + __args__['group'] = group + __args__['hookId'] = hook_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroupHook:getGroupHook', __args__, opts=opts, typ=GetGroupHookResult) + return __ret__.apply(lambda __response__: GetGroupHookResult( + confidential_issues_events=pulumi.get(__response__, 'confidential_issues_events'), + confidential_note_events=pulumi.get(__response__, 'confidential_note_events'), + custom_webhook_template=pulumi.get(__response__, 'custom_webhook_template'), + deployment_events=pulumi.get(__response__, 'deployment_events'), + enable_ssl_verification=pulumi.get(__response__, 'enable_ssl_verification'), + group=pulumi.get(__response__, 'group'), + group_id=pulumi.get(__response__, 'group_id'), + hook_id=pulumi.get(__response__, 'hook_id'), + id=pulumi.get(__response__, 'id'), + issues_events=pulumi.get(__response__, 'issues_events'), + job_events=pulumi.get(__response__, 'job_events'), + merge_requests_events=pulumi.get(__response__, 'merge_requests_events'), + note_events=pulumi.get(__response__, 'note_events'), + pipeline_events=pulumi.get(__response__, 'pipeline_events'), + push_events=pulumi.get(__response__, 'push_events'), + push_events_branch_filter=pulumi.get(__response__, 'push_events_branch_filter'), + releases_events=pulumi.get(__response__, 'releases_events'), + subgroup_events=pulumi.get(__response__, 'subgroup_events'), + tag_push_events=pulumi.get(__response__, 'tag_push_events'), + token=pulumi.get(__response__, 'token'), + url=pulumi.get(__response__, 'url'), + wiki_page_events=pulumi.get(__response__, 'wiki_page_events'))) diff --git a/sdk/python/pulumi_gitlab/get_group_hooks.py b/sdk/python/pulumi_gitlab/get_group_hooks.py index fc091081..443eee34 100644 --- a/sdk/python/pulumi_gitlab/get_group_hooks.py +++ b/sdk/python/pulumi_gitlab/get_group_hooks.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -88,9 +93,6 @@ def get_group_hooks(group: Optional[str] = None, group=pulumi.get(__ret__, 'group'), hooks=pulumi.get(__ret__, 'hooks'), id=pulumi.get(__ret__, 'id')) - - -@_utilities.lift_output_func(get_group_hooks) def get_group_hooks_output(group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGroupHooksResult]: """ @@ -101,4 +103,11 @@ def get_group_hooks_output(group: Optional[pulumi.Input[str]] = None, :param str group: The ID or full path of the group. """ - ... + __args__ = dict() + __args__['group'] = group + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroupHooks:getGroupHooks', __args__, opts=opts, typ=GetGroupHooksResult) + return __ret__.apply(lambda __response__: GetGroupHooksResult( + group=pulumi.get(__response__, 'group'), + hooks=pulumi.get(__response__, 'hooks'), + id=pulumi.get(__response__, 'id'))) diff --git a/sdk/python/pulumi_gitlab/get_group_ids.py b/sdk/python/pulumi_gitlab/get_group_ids.py index d8e75493..91c2fdd7 100644 --- a/sdk/python/pulumi_gitlab/get_group_ids.py +++ b/sdk/python/pulumi_gitlab/get_group_ids.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -123,9 +128,6 @@ def get_group_ids(group: Optional[str] = None, group_graphql_id=pulumi.get(__ret__, 'group_graphql_id'), group_id=pulumi.get(__ret__, 'group_id'), id=pulumi.get(__ret__, 'id')) - - -@_utilities.lift_output_func(get_group_ids) def get_group_ids_output(group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGroupIdsResult]: """ @@ -149,4 +151,13 @@ def get_group_ids_output(group: Optional[pulumi.Input[str]] = None, :param str group: The ID or URL-encoded path of the group. """ - ... + __args__ = dict() + __args__['group'] = group + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroupIds:getGroupIds', __args__, opts=opts, typ=GetGroupIdsResult) + return __ret__.apply(lambda __response__: GetGroupIdsResult( + group=pulumi.get(__response__, 'group'), + group_full_path=pulumi.get(__response__, 'group_full_path'), + group_graphql_id=pulumi.get(__response__, 'group_graphql_id'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'))) diff --git a/sdk/python/pulumi_gitlab/get_group_membership.py b/sdk/python/pulumi_gitlab/get_group_membership.py index 6d835250..70d12f4b 100644 --- a/sdk/python/pulumi_gitlab/get_group_membership.py +++ b/sdk/python/pulumi_gitlab/get_group_membership.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -136,9 +141,6 @@ def get_group_membership(access_level: Optional[str] = None, id=pulumi.get(__ret__, 'id'), inherited=pulumi.get(__ret__, 'inherited'), members=pulumi.get(__ret__, 'members')) - - -@_utilities.lift_output_func(get_group_membership) def get_group_membership_output(access_level: Optional[pulumi.Input[Optional[str]]] = None, full_path: Optional[pulumi.Input[Optional[str]]] = None, group_id: Optional[pulumi.Input[Optional[int]]] = None, @@ -155,4 +157,17 @@ def get_group_membership_output(access_level: Optional[pulumi.Input[Optional[str :param int group_id: The ID of the group. :param bool inherited: Return all project members including members through ancestor groups. """ - ... + __args__ = dict() + __args__['accessLevel'] = access_level + __args__['fullPath'] = full_path + __args__['groupId'] = group_id + __args__['inherited'] = inherited + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroupMembership:getGroupMembership', __args__, opts=opts, typ=GetGroupMembershipResult) + return __ret__.apply(lambda __response__: GetGroupMembershipResult( + access_level=pulumi.get(__response__, 'access_level'), + full_path=pulumi.get(__response__, 'full_path'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + inherited=pulumi.get(__response__, 'inherited'), + members=pulumi.get(__response__, 'members'))) diff --git a/sdk/python/pulumi_gitlab/get_group_subgroups.py b/sdk/python/pulumi_gitlab/get_group_subgroups.py index 1713be62..b4efa317 100644 --- a/sdk/python/pulumi_gitlab/get_group_subgroups.py +++ b/sdk/python/pulumi_gitlab/get_group_subgroups.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -242,9 +247,6 @@ def get_group_subgroups(all_available: Optional[bool] = None, statistics=pulumi.get(__ret__, 'statistics'), subgroups=pulumi.get(__ret__, 'subgroups'), with_custom_attributes=pulumi.get(__ret__, 'with_custom_attributes')) - - -@_utilities.lift_output_func(get_group_subgroups) def get_group_subgroups_output(all_available: Optional[pulumi.Input[Optional[bool]]] = None, group_id: Optional[pulumi.Input[int]] = None, min_access_level: Optional[pulumi.Input[Optional[str]]] = None, @@ -283,4 +285,29 @@ def get_group_subgroups_output(all_available: Optional[pulumi.Input[Optional[boo :param bool statistics: Include group statistics (administrators only). :param bool with_custom_attributes: Include custom attributes in response (administrators only). """ - ... + __args__ = dict() + __args__['allAvailable'] = all_available + __args__['groupId'] = group_id + __args__['minAccessLevel'] = min_access_level + __args__['orderBy'] = order_by + __args__['owned'] = owned + __args__['search'] = search + __args__['skipGroups'] = skip_groups + __args__['sort'] = sort + __args__['statistics'] = statistics + __args__['withCustomAttributes'] = with_custom_attributes + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroupSubgroups:getGroupSubgroups', __args__, opts=opts, typ=GetGroupSubgroupsResult) + return __ret__.apply(lambda __response__: GetGroupSubgroupsResult( + all_available=pulumi.get(__response__, 'all_available'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + min_access_level=pulumi.get(__response__, 'min_access_level'), + order_by=pulumi.get(__response__, 'order_by'), + owned=pulumi.get(__response__, 'owned'), + search=pulumi.get(__response__, 'search'), + skip_groups=pulumi.get(__response__, 'skip_groups'), + sort=pulumi.get(__response__, 'sort'), + statistics=pulumi.get(__response__, 'statistics'), + subgroups=pulumi.get(__response__, 'subgroups'), + with_custom_attributes=pulumi.get(__response__, 'with_custom_attributes'))) diff --git a/sdk/python/pulumi_gitlab/get_group_variable.py b/sdk/python/pulumi_gitlab/get_group_variable.py index e8ccd73a..53eff7ac 100644 --- a/sdk/python/pulumi_gitlab/get_group_variable.py +++ b/sdk/python/pulumi_gitlab/get_group_variable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -198,9 +203,6 @@ def get_group_variable(environment_scope: Optional[str] = None, raw=pulumi.get(__ret__, 'raw'), value=pulumi.get(__ret__, 'value'), variable_type=pulumi.get(__ret__, 'variable_type')) - - -@_utilities.lift_output_func(get_group_variable) def get_group_variable_output(environment_scope: Optional[pulumi.Input[Optional[str]]] = None, group: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, @@ -229,4 +231,20 @@ def get_group_variable_output(environment_scope: Optional[pulumi.Input[Optional[ :param str group: The name or id of the group. :param str key: The name of the variable. """ - ... + __args__ = dict() + __args__['environmentScope'] = environment_scope + __args__['group'] = group + __args__['key'] = key + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroupVariable:getGroupVariable', __args__, opts=opts, typ=GetGroupVariableResult) + return __ret__.apply(lambda __response__: GetGroupVariableResult( + description=pulumi.get(__response__, 'description'), + environment_scope=pulumi.get(__response__, 'environment_scope'), + group=pulumi.get(__response__, 'group'), + id=pulumi.get(__response__, 'id'), + key=pulumi.get(__response__, 'key'), + masked=pulumi.get(__response__, 'masked'), + protected=pulumi.get(__response__, 'protected'), + raw=pulumi.get(__response__, 'raw'), + value=pulumi.get(__response__, 'value'), + variable_type=pulumi.get(__response__, 'variable_type'))) diff --git a/sdk/python/pulumi_gitlab/get_group_variables.py b/sdk/python/pulumi_gitlab/get_group_variables.py index b6a2755b..11b3aa06 100644 --- a/sdk/python/pulumi_gitlab/get_group_variables.py +++ b/sdk/python/pulumi_gitlab/get_group_variables.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -116,9 +121,6 @@ def get_group_variables(environment_scope: Optional[str] = None, group=pulumi.get(__ret__, 'group'), id=pulumi.get(__ret__, 'id'), variables=pulumi.get(__ret__, 'variables')) - - -@_utilities.lift_output_func(get_group_variables) def get_group_variables_output(environment_scope: Optional[pulumi.Input[Optional[str]]] = None, group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGroupVariablesResult]: @@ -143,4 +145,13 @@ def get_group_variables_output(environment_scope: Optional[pulumi.Input[Optional :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). :param str group: The name or id of the group. """ - ... + __args__ = dict() + __args__['environmentScope'] = environment_scope + __args__['group'] = group + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroupVariables:getGroupVariables', __args__, opts=opts, typ=GetGroupVariablesResult) + return __ret__.apply(lambda __response__: GetGroupVariablesResult( + environment_scope=pulumi.get(__response__, 'environment_scope'), + group=pulumi.get(__response__, 'group'), + id=pulumi.get(__response__, 'id'), + variables=pulumi.get(__response__, 'variables'))) diff --git a/sdk/python/pulumi_gitlab/get_groups.py b/sdk/python/pulumi_gitlab/get_groups.py index 1166b7fd..67d844eb 100644 --- a/sdk/python/pulumi_gitlab/get_groups.py +++ b/sdk/python/pulumi_gitlab/get_groups.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -151,9 +156,6 @@ def get_groups(order_by: Optional[str] = None, search=pulumi.get(__ret__, 'search'), sort=pulumi.get(__ret__, 'sort'), top_level_only=pulumi.get(__ret__, 'top_level_only')) - - -@_utilities.lift_output_func(get_groups) def get_groups_output(order_by: Optional[pulumi.Input[Optional[str]]] = None, search: Optional[pulumi.Input[Optional[str]]] = None, sort: Optional[pulumi.Input[Optional[str]]] = None, @@ -185,4 +187,17 @@ def get_groups_output(order_by: Optional[pulumi.Input[Optional[str]]] = None, :param str sort: Sort groups' list in asc or desc order. (Requires administrator privileges) :param bool top_level_only: Limit to top level groups, excluding all subgroups. """ - ... + __args__ = dict() + __args__['orderBy'] = order_by + __args__['search'] = search + __args__['sort'] = sort + __args__['topLevelOnly'] = top_level_only + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getGroups:getGroups', __args__, opts=opts, typ=GetGroupsResult) + return __ret__.apply(lambda __response__: GetGroupsResult( + groups=pulumi.get(__response__, 'groups'), + id=pulumi.get(__response__, 'id'), + order_by=pulumi.get(__response__, 'order_by'), + search=pulumi.get(__response__, 'search'), + sort=pulumi.get(__response__, 'sort'), + top_level_only=pulumi.get(__response__, 'top_level_only'))) diff --git a/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py b/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py index 76ed0404..6c18153c 100644 --- a/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py +++ b/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -90,9 +95,6 @@ def get_instance_deploy_keys(public: Optional[bool] = None, deploy_keys=pulumi.get(__ret__, 'deploy_keys'), id=pulumi.get(__ret__, 'id'), public=pulumi.get(__ret__, 'public')) - - -@_utilities.lift_output_func(get_instance_deploy_keys) def get_instance_deploy_keys_output(public: Optional[pulumi.Input[Optional[bool]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetInstanceDeployKeysResult]: """ @@ -105,4 +107,11 @@ def get_instance_deploy_keys_output(public: Optional[pulumi.Input[Optional[bool] :param bool public: Only return deploy keys that are public. """ - ... + __args__ = dict() + __args__['public'] = public + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getInstanceDeployKeys:getInstanceDeployKeys', __args__, opts=opts, typ=GetInstanceDeployKeysResult) + return __ret__.apply(lambda __response__: GetInstanceDeployKeysResult( + deploy_keys=pulumi.get(__response__, 'deploy_keys'), + id=pulumi.get(__response__, 'id'), + public=pulumi.get(__response__, 'public'))) diff --git a/sdk/python/pulumi_gitlab/get_instance_variable.py b/sdk/python/pulumi_gitlab/get_instance_variable.py index c0303fb2..a0772324 100644 --- a/sdk/python/pulumi_gitlab/get_instance_variable.py +++ b/sdk/python/pulumi_gitlab/get_instance_variable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -161,9 +166,6 @@ def get_instance_variable(key: Optional[str] = None, raw=pulumi.get(__ret__, 'raw'), value=pulumi.get(__ret__, 'value'), variable_type=pulumi.get(__ret__, 'variable_type')) - - -@_utilities.lift_output_func(get_instance_variable) def get_instance_variable_output(key: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetInstanceVariableResult]: """ @@ -183,4 +185,16 @@ def get_instance_variable_output(key: Optional[pulumi.Input[str]] = None, :param str key: The name of the variable. """ - ... + __args__ = dict() + __args__['key'] = key + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getInstanceVariable:getInstanceVariable', __args__, opts=opts, typ=GetInstanceVariableResult) + return __ret__.apply(lambda __response__: GetInstanceVariableResult( + description=pulumi.get(__response__, 'description'), + id=pulumi.get(__response__, 'id'), + key=pulumi.get(__response__, 'key'), + masked=pulumi.get(__response__, 'masked'), + protected=pulumi.get(__response__, 'protected'), + raw=pulumi.get(__response__, 'raw'), + value=pulumi.get(__response__, 'value'), + variable_type=pulumi.get(__response__, 'variable_type'))) diff --git a/sdk/python/pulumi_gitlab/get_instance_variables.py b/sdk/python/pulumi_gitlab/get_instance_variables.py index ee740969..974d6d48 100644 --- a/sdk/python/pulumi_gitlab/get_instance_variables.py +++ b/sdk/python/pulumi_gitlab/get_instance_variables.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -79,9 +84,6 @@ def get_instance_variables(opts: Optional[pulumi.InvokeOptions] = None) -> Await return AwaitableGetInstanceVariablesResult( id=pulumi.get(__ret__, 'id'), variables=pulumi.get(__ret__, 'variables')) - - -@_utilities.lift_output_func(get_instance_variables) def get_instance_variables_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetInstanceVariablesResult]: """ The `get_instance_variables` data source allows to retrieve all instance-level CI/CD variables. @@ -97,4 +99,9 @@ def get_instance_variables_output(opts: Optional[pulumi.InvokeOptions] = None) - vars = gitlab.get_instance_variables() ``` """ - ... + __args__ = dict() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getInstanceVariables:getInstanceVariables', __args__, opts=opts, typ=GetInstanceVariablesResult) + return __ret__.apply(lambda __response__: GetInstanceVariablesResult( + id=pulumi.get(__response__, 'id'), + variables=pulumi.get(__response__, 'variables'))) diff --git a/sdk/python/pulumi_gitlab/get_metadata.py b/sdk/python/pulumi_gitlab/get_metadata.py index baaaa84d..37f370f7 100644 --- a/sdk/python/pulumi_gitlab/get_metadata.py +++ b/sdk/python/pulumi_gitlab/get_metadata.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -118,9 +123,6 @@ def get_metadata(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMet kas=pulumi.get(__ret__, 'kas'), revision=pulumi.get(__ret__, 'revision'), version=pulumi.get(__ret__, 'version')) - - -@_utilities.lift_output_func(get_metadata) def get_metadata_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMetadataResult]: """ The `get_metadata` data source retrieves the metadata of the GitLab instance. @@ -136,4 +138,12 @@ def get_metadata_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.O this = gitlab.get_metadata() ``` """ - ... + __args__ = dict() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getMetadata:getMetadata', __args__, opts=opts, typ=GetMetadataResult) + return __ret__.apply(lambda __response__: GetMetadataResult( + enterprise=pulumi.get(__response__, 'enterprise'), + id=pulumi.get(__response__, 'id'), + kas=pulumi.get(__response__, 'kas'), + revision=pulumi.get(__response__, 'revision'), + version=pulumi.get(__response__, 'version'))) diff --git a/sdk/python/pulumi_gitlab/get_pipeline_schedule.py b/sdk/python/pulumi_gitlab/get_pipeline_schedule.py index c82e4661..eae1bb83 100644 --- a/sdk/python/pulumi_gitlab/get_pipeline_schedule.py +++ b/sdk/python/pulumi_gitlab/get_pipeline_schedule.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -244,9 +249,6 @@ def get_pipeline_schedule(cron_timezone: Optional[str] = None, ref=pulumi.get(__ret__, 'ref'), updated_at=pulumi.get(__ret__, 'updated_at'), variables=pulumi.get(__ret__, 'variables')) - - -@_utilities.lift_output_func(get_pipeline_schedule) def get_pipeline_schedule_output(cron_timezone: Optional[pulumi.Input[Optional[str]]] = None, pipeline_schedule_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, @@ -271,4 +273,24 @@ def get_pipeline_schedule_output(cron_timezone: Optional[pulumi.Input[Optional[s :param int pipeline_schedule_id: The pipeline schedule id. :param str project: The name or id of the project to add the schedule to. """ - ... + __args__ = dict() + __args__['cronTimezone'] = cron_timezone + __args__['pipelineScheduleId'] = pipeline_schedule_id + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getPipelineSchedule:getPipelineSchedule', __args__, opts=opts, typ=GetPipelineScheduleResult) + return __ret__.apply(lambda __response__: GetPipelineScheduleResult( + active=pulumi.get(__response__, 'active'), + created_at=pulumi.get(__response__, 'created_at'), + cron=pulumi.get(__response__, 'cron'), + cron_timezone=pulumi.get(__response__, 'cron_timezone'), + description=pulumi.get(__response__, 'description'), + id=pulumi.get(__response__, 'id'), + last_pipeline=pulumi.get(__response__, 'last_pipeline'), + next_run_at=pulumi.get(__response__, 'next_run_at'), + owner=pulumi.get(__response__, 'owner'), + pipeline_schedule_id=pulumi.get(__response__, 'pipeline_schedule_id'), + project=pulumi.get(__response__, 'project'), + ref=pulumi.get(__response__, 'ref'), + updated_at=pulumi.get(__response__, 'updated_at'), + variables=pulumi.get(__response__, 'variables'))) diff --git a/sdk/python/pulumi_gitlab/get_pipeline_schedules.py b/sdk/python/pulumi_gitlab/get_pipeline_schedules.py index 7ee70f6a..5824e76d 100644 --- a/sdk/python/pulumi_gitlab/get_pipeline_schedules.py +++ b/sdk/python/pulumi_gitlab/get_pipeline_schedules.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -94,9 +99,6 @@ def get_pipeline_schedules(project: Optional[str] = None, id=pulumi.get(__ret__, 'id'), pipeline_schedules=pulumi.get(__ret__, 'pipeline_schedules'), project=pulumi.get(__ret__, 'project')) - - -@_utilities.lift_output_func(get_pipeline_schedules) def get_pipeline_schedules_output(project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPipelineSchedulesResult]: """ @@ -116,4 +118,11 @@ def get_pipeline_schedules_output(project: Optional[pulumi.Input[str]] = None, :param str project: The name or id of the project to add the schedule to. """ - ... + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getPipelineSchedules:getPipelineSchedules', __args__, opts=opts, typ=GetPipelineSchedulesResult) + return __ret__.apply(lambda __response__: GetPipelineSchedulesResult( + id=pulumi.get(__response__, 'id'), + pipeline_schedules=pulumi.get(__response__, 'pipeline_schedules'), + project=pulumi.get(__response__, 'project'))) diff --git a/sdk/python/pulumi_gitlab/get_project.py b/sdk/python/pulumi_gitlab/get_project.py index f7739062..e33e6526 100644 --- a/sdk/python/pulumi_gitlab/get_project.py +++ b/sdk/python/pulumi_gitlab/get_project.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -916,9 +921,6 @@ def get_project(ci_default_git_depth: Optional[int] = None, web_url=pulumi.get(__ret__, 'web_url'), wiki_access_level=pulumi.get(__ret__, 'wiki_access_level'), wiki_enabled=pulumi.get(__ret__, 'wiki_enabled')) - - -@_utilities.lift_output_func(get_project) def get_project_output(ci_default_git_depth: Optional[pulumi.Input[Optional[int]]] = None, id: Optional[pulumi.Input[Optional[str]]] = None, path_with_namespace: Optional[pulumi.Input[Optional[str]]] = None, @@ -935,4 +937,77 @@ def get_project_output(ci_default_git_depth: Optional[pulumi.Input[Optional[int] :param str path_with_namespace: The path of the repository with namespace. :param bool public_builds: If true, jobs can be viewed by non-project members. """ - ... + __args__ = dict() + __args__['ciDefaultGitDepth'] = ci_default_git_depth + __args__['id'] = id + __args__['pathWithNamespace'] = path_with_namespace + __args__['publicBuilds'] = public_builds + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProject:getProject', __args__, opts=opts, typ=GetProjectResult) + return __ret__.apply(lambda __response__: GetProjectResult( + analytics_access_level=pulumi.get(__response__, 'analytics_access_level'), + archived=pulumi.get(__response__, 'archived'), + auto_cancel_pending_pipelines=pulumi.get(__response__, 'auto_cancel_pending_pipelines'), + auto_devops_deploy_strategy=pulumi.get(__response__, 'auto_devops_deploy_strategy'), + auto_devops_enabled=pulumi.get(__response__, 'auto_devops_enabled'), + autoclose_referenced_issues=pulumi.get(__response__, 'autoclose_referenced_issues'), + build_git_strategy=pulumi.get(__response__, 'build_git_strategy'), + build_timeout=pulumi.get(__response__, 'build_timeout'), + builds_access_level=pulumi.get(__response__, 'builds_access_level'), + ci_config_path=pulumi.get(__response__, 'ci_config_path'), + ci_default_git_depth=pulumi.get(__response__, 'ci_default_git_depth'), + ci_restrict_pipeline_cancellation_role=pulumi.get(__response__, 'ci_restrict_pipeline_cancellation_role'), + ci_separated_caches=pulumi.get(__response__, 'ci_separated_caches'), + container_expiration_policies=pulumi.get(__response__, 'container_expiration_policies'), + container_registry_access_level=pulumi.get(__response__, 'container_registry_access_level'), + default_branch=pulumi.get(__response__, 'default_branch'), + description=pulumi.get(__response__, 'description'), + emails_enabled=pulumi.get(__response__, 'emails_enabled'), + empty_repo=pulumi.get(__response__, 'empty_repo'), + environments_access_level=pulumi.get(__response__, 'environments_access_level'), + external_authorization_classification_label=pulumi.get(__response__, 'external_authorization_classification_label'), + feature_flags_access_level=pulumi.get(__response__, 'feature_flags_access_level'), + forking_access_level=pulumi.get(__response__, 'forking_access_level'), + http_url_to_repo=pulumi.get(__response__, 'http_url_to_repo'), + id=pulumi.get(__response__, 'id'), + import_url=pulumi.get(__response__, 'import_url'), + infrastructure_access_level=pulumi.get(__response__, 'infrastructure_access_level'), + issues_access_level=pulumi.get(__response__, 'issues_access_level'), + issues_enabled=pulumi.get(__response__, 'issues_enabled'), + keep_latest_artifact=pulumi.get(__response__, 'keep_latest_artifact'), + lfs_enabled=pulumi.get(__response__, 'lfs_enabled'), + merge_commit_template=pulumi.get(__response__, 'merge_commit_template'), + merge_pipelines_enabled=pulumi.get(__response__, 'merge_pipelines_enabled'), + merge_requests_access_level=pulumi.get(__response__, 'merge_requests_access_level'), + merge_requests_enabled=pulumi.get(__response__, 'merge_requests_enabled'), + merge_trains_enabled=pulumi.get(__response__, 'merge_trains_enabled'), + monitor_access_level=pulumi.get(__response__, 'monitor_access_level'), + name=pulumi.get(__response__, 'name'), + namespace_id=pulumi.get(__response__, 'namespace_id'), + path=pulumi.get(__response__, 'path'), + path_with_namespace=pulumi.get(__response__, 'path_with_namespace'), + pipelines_enabled=pulumi.get(__response__, 'pipelines_enabled'), + printing_merge_request_link_enabled=pulumi.get(__response__, 'printing_merge_request_link_enabled'), + public_builds=pulumi.get(__response__, 'public_builds'), + push_rules=pulumi.get(__response__, 'push_rules'), + releases_access_level=pulumi.get(__response__, 'releases_access_level'), + remove_source_branch_after_merge=pulumi.get(__response__, 'remove_source_branch_after_merge'), + repository_access_level=pulumi.get(__response__, 'repository_access_level'), + repository_storage=pulumi.get(__response__, 'repository_storage'), + request_access_enabled=pulumi.get(__response__, 'request_access_enabled'), + requirements_access_level=pulumi.get(__response__, 'requirements_access_level'), + resolve_outdated_diff_discussions=pulumi.get(__response__, 'resolve_outdated_diff_discussions'), + restrict_user_defined_variables=pulumi.get(__response__, 'restrict_user_defined_variables'), + runners_token=pulumi.get(__response__, 'runners_token'), + security_and_compliance_access_level=pulumi.get(__response__, 'security_and_compliance_access_level'), + shared_with_groups=pulumi.get(__response__, 'shared_with_groups'), + snippets_access_level=pulumi.get(__response__, 'snippets_access_level'), + snippets_enabled=pulumi.get(__response__, 'snippets_enabled'), + squash_commit_template=pulumi.get(__response__, 'squash_commit_template'), + ssh_url_to_repo=pulumi.get(__response__, 'ssh_url_to_repo'), + suggestion_commit_message=pulumi.get(__response__, 'suggestion_commit_message'), + topics=pulumi.get(__response__, 'topics'), + visibility_level=pulumi.get(__response__, 'visibility_level'), + web_url=pulumi.get(__response__, 'web_url'), + wiki_access_level=pulumi.get(__response__, 'wiki_access_level'), + wiki_enabled=pulumi.get(__response__, 'wiki_enabled'))) diff --git a/sdk/python/pulumi_gitlab/get_project_branches.py b/sdk/python/pulumi_gitlab/get_project_branches.py index a06eef46..207e4498 100644 --- a/sdk/python/pulumi_gitlab/get_project_branches.py +++ b/sdk/python/pulumi_gitlab/get_project_branches.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -88,9 +93,6 @@ def get_project_branches(project: Optional[str] = None, branches=pulumi.get(__ret__, 'branches'), id=pulumi.get(__ret__, 'id'), project=pulumi.get(__ret__, 'project')) - - -@_utilities.lift_output_func(get_project_branches) def get_project_branches_output(project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectBranchesResult]: """ @@ -101,4 +103,11 @@ def get_project_branches_output(project: Optional[pulumi.Input[str]] = None, :param str project: ID or URL-encoded path of the project owned by the authenticated user. """ - ... + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectBranches:getProjectBranches', __args__, opts=opts, typ=GetProjectBranchesResult) + return __ret__.apply(lambda __response__: GetProjectBranchesResult( + branches=pulumi.get(__response__, 'branches'), + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'))) diff --git a/sdk/python/pulumi_gitlab/get_project_hook.py b/sdk/python/pulumi_gitlab/get_project_hook.py index c58b269b..4006b755 100644 --- a/sdk/python/pulumi_gitlab/get_project_hook.py +++ b/sdk/python/pulumi_gitlab/get_project_hook.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -335,9 +340,6 @@ def get_project_hook(hook_id: Optional[int] = None, token=pulumi.get(__ret__, 'token'), url=pulumi.get(__ret__, 'url'), wiki_page_events=pulumi.get(__ret__, 'wiki_page_events')) - - -@_utilities.lift_output_func(get_project_hook) def get_project_hook_output(hook_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectHookResult]: @@ -361,4 +363,30 @@ def get_project_hook_output(hook_id: Optional[pulumi.Input[int]] = None, :param int hook_id: The id of the project hook. :param str project: The name or id of the project to add the hook to. """ - ... + __args__ = dict() + __args__['hookId'] = hook_id + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectHook:getProjectHook', __args__, opts=opts, typ=GetProjectHookResult) + return __ret__.apply(lambda __response__: GetProjectHookResult( + confidential_issues_events=pulumi.get(__response__, 'confidential_issues_events'), + confidential_note_events=pulumi.get(__response__, 'confidential_note_events'), + custom_webhook_template=pulumi.get(__response__, 'custom_webhook_template'), + deployment_events=pulumi.get(__response__, 'deployment_events'), + enable_ssl_verification=pulumi.get(__response__, 'enable_ssl_verification'), + hook_id=pulumi.get(__response__, 'hook_id'), + id=pulumi.get(__response__, 'id'), + issues_events=pulumi.get(__response__, 'issues_events'), + job_events=pulumi.get(__response__, 'job_events'), + merge_requests_events=pulumi.get(__response__, 'merge_requests_events'), + note_events=pulumi.get(__response__, 'note_events'), + pipeline_events=pulumi.get(__response__, 'pipeline_events'), + project=pulumi.get(__response__, 'project'), + project_id=pulumi.get(__response__, 'project_id'), + push_events=pulumi.get(__response__, 'push_events'), + push_events_branch_filter=pulumi.get(__response__, 'push_events_branch_filter'), + releases_events=pulumi.get(__response__, 'releases_events'), + tag_push_events=pulumi.get(__response__, 'tag_push_events'), + token=pulumi.get(__response__, 'token'), + url=pulumi.get(__response__, 'url'), + wiki_page_events=pulumi.get(__response__, 'wiki_page_events'))) diff --git a/sdk/python/pulumi_gitlab/get_project_hooks.py b/sdk/python/pulumi_gitlab/get_project_hooks.py index 38379d69..23cfa93b 100644 --- a/sdk/python/pulumi_gitlab/get_project_hooks.py +++ b/sdk/python/pulumi_gitlab/get_project_hooks.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -98,9 +103,6 @@ def get_project_hooks(project: Optional[str] = None, hooks=pulumi.get(__ret__, 'hooks'), id=pulumi.get(__ret__, 'id'), project=pulumi.get(__ret__, 'project')) - - -@_utilities.lift_output_func(get_project_hooks) def get_project_hooks_output(project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectHooksResult]: """ @@ -121,4 +123,11 @@ def get_project_hooks_output(project: Optional[pulumi.Input[str]] = None, :param str project: The name or id of the project. """ - ... + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectHooks:getProjectHooks', __args__, opts=opts, typ=GetProjectHooksResult) + return __ret__.apply(lambda __response__: GetProjectHooksResult( + hooks=pulumi.get(__response__, 'hooks'), + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'))) diff --git a/sdk/python/pulumi_gitlab/get_project_ids.py b/sdk/python/pulumi_gitlab/get_project_ids.py index 20d1b355..c076694b 100644 --- a/sdk/python/pulumi_gitlab/get_project_ids.py +++ b/sdk/python/pulumi_gitlab/get_project_ids.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -123,9 +128,6 @@ def get_project_ids(project: Optional[str] = None, project_full_path=pulumi.get(__ret__, 'project_full_path'), project_graphql_id=pulumi.get(__ret__, 'project_graphql_id'), project_id=pulumi.get(__ret__, 'project_id')) - - -@_utilities.lift_output_func(get_project_ids) def get_project_ids_output(project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectIdsResult]: """ @@ -149,4 +151,13 @@ def get_project_ids_output(project: Optional[pulumi.Input[str]] = None, :param str project: The ID or URL-encoded path of the project. """ - ... + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectIds:getProjectIds', __args__, opts=opts, typ=GetProjectIdsResult) + return __ret__.apply(lambda __response__: GetProjectIdsResult( + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'), + project_full_path=pulumi.get(__response__, 'project_full_path'), + project_graphql_id=pulumi.get(__response__, 'project_graphql_id'), + project_id=pulumi.get(__response__, 'project_id'))) diff --git a/sdk/python/pulumi_gitlab/get_project_issue.py b/sdk/python/pulumi_gitlab/get_project_issue.py index 3a34d715..e7bda79c 100644 --- a/sdk/python/pulumi_gitlab/get_project_issue.py +++ b/sdk/python/pulumi_gitlab/get_project_issue.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -584,9 +589,6 @@ def get_project_issue(iid: Optional[int] = None, user_notes_count=pulumi.get(__ret__, 'user_notes_count'), web_url=pulumi.get(__ret__, 'web_url'), weight=pulumi.get(__ret__, 'weight')) - - -@_utilities.lift_output_func(get_project_issue) def get_project_issue_output(iid: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectIssueResult]: @@ -611,4 +613,49 @@ def get_project_issue_output(iid: Optional[pulumi.Input[int]] = None, :param int iid: The internal ID of the project's issue. :param str project: The name or ID of the project. """ - ... + __args__ = dict() + __args__['iid'] = iid + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectIssue:getProjectIssue', __args__, opts=opts, typ=GetProjectIssueResult) + return __ret__.apply(lambda __response__: GetProjectIssueResult( + assignee_ids=pulumi.get(__response__, 'assignee_ids'), + author_id=pulumi.get(__response__, 'author_id'), + closed_at=pulumi.get(__response__, 'closed_at'), + closed_by_user_id=pulumi.get(__response__, 'closed_by_user_id'), + confidential=pulumi.get(__response__, 'confidential'), + created_at=pulumi.get(__response__, 'created_at'), + description=pulumi.get(__response__, 'description'), + discussion_locked=pulumi.get(__response__, 'discussion_locked'), + discussion_to_resolve=pulumi.get(__response__, 'discussion_to_resolve'), + downvotes=pulumi.get(__response__, 'downvotes'), + due_date=pulumi.get(__response__, 'due_date'), + epic_id=pulumi.get(__response__, 'epic_id'), + epic_issue_id=pulumi.get(__response__, 'epic_issue_id'), + external_id=pulumi.get(__response__, 'external_id'), + human_time_estimate=pulumi.get(__response__, 'human_time_estimate'), + human_total_time_spent=pulumi.get(__response__, 'human_total_time_spent'), + id=pulumi.get(__response__, 'id'), + iid=pulumi.get(__response__, 'iid'), + issue_id=pulumi.get(__response__, 'issue_id'), + issue_link_id=pulumi.get(__response__, 'issue_link_id'), + issue_type=pulumi.get(__response__, 'issue_type'), + labels=pulumi.get(__response__, 'labels'), + links=pulumi.get(__response__, 'links'), + merge_request_to_resolve_discussions_of=pulumi.get(__response__, 'merge_request_to_resolve_discussions_of'), + merge_requests_count=pulumi.get(__response__, 'merge_requests_count'), + milestone_id=pulumi.get(__response__, 'milestone_id'), + moved_to_id=pulumi.get(__response__, 'moved_to_id'), + project=pulumi.get(__response__, 'project'), + references=pulumi.get(__response__, 'references'), + state=pulumi.get(__response__, 'state'), + subscribed=pulumi.get(__response__, 'subscribed'), + task_completion_statuses=pulumi.get(__response__, 'task_completion_statuses'), + time_estimate=pulumi.get(__response__, 'time_estimate'), + title=pulumi.get(__response__, 'title'), + total_time_spent=pulumi.get(__response__, 'total_time_spent'), + updated_at=pulumi.get(__response__, 'updated_at'), + upvotes=pulumi.get(__response__, 'upvotes'), + user_notes_count=pulumi.get(__response__, 'user_notes_count'), + web_url=pulumi.get(__response__, 'web_url'), + weight=pulumi.get(__response__, 'weight'))) diff --git a/sdk/python/pulumi_gitlab/get_project_issues.py b/sdk/python/pulumi_gitlab/get_project_issues.py index 78a8056d..805b6d72 100644 --- a/sdk/python/pulumi_gitlab/get_project_issues.py +++ b/sdk/python/pulumi_gitlab/get_project_issues.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -499,9 +504,6 @@ def get_project_issues(assignee_id: Optional[int] = None, updated_before=pulumi.get(__ret__, 'updated_before'), weight=pulumi.get(__ret__, 'weight'), with_labels_details=pulumi.get(__ret__, 'with_labels_details')) - - -@_utilities.lift_output_func(get_project_issues) def get_project_issues_output(assignee_id: Optional[pulumi.Input[Optional[int]]] = None, assignee_username: Optional[pulumi.Input[Optional[str]]] = None, author_id: Optional[pulumi.Input[Optional[int]]] = None, @@ -573,4 +575,61 @@ def get_project_issues_output(assignee_id: Optional[pulumi.Input[Optional[int]]] :param int weight: Return issues with the specified weight. None returns issues with no weight assigned. Any returns issues with a weight assigned. :param bool with_labels_details: If true, the response returns more details for each label in labels field: :name, :color, :description, :description*html, :text*color. Default is false. description_html was introduced in GitLab 12.7 """ - ... + __args__ = dict() + __args__['assigneeId'] = assignee_id + __args__['assigneeUsername'] = assignee_username + __args__['authorId'] = author_id + __args__['confidential'] = confidential + __args__['createdAfter'] = created_after + __args__['createdBefore'] = created_before + __args__['dueDate'] = due_date + __args__['iids'] = iids + __args__['issueType'] = issue_type + __args__['labels'] = labels + __args__['milestone'] = milestone + __args__['myReactionEmoji'] = my_reaction_emoji + __args__['notAssigneeIds'] = not_assignee_ids + __args__['notAuthorIds'] = not_author_ids + __args__['notLabels'] = not_labels + __args__['notMilestone'] = not_milestone + __args__['notMyReactionEmojis'] = not_my_reaction_emojis + __args__['orderBy'] = order_by + __args__['project'] = project + __args__['scope'] = scope + __args__['search'] = search + __args__['sort'] = sort + __args__['updatedAfter'] = updated_after + __args__['updatedBefore'] = updated_before + __args__['weight'] = weight + __args__['withLabelsDetails'] = with_labels_details + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectIssues:getProjectIssues', __args__, opts=opts, typ=GetProjectIssuesResult) + return __ret__.apply(lambda __response__: GetProjectIssuesResult( + assignee_id=pulumi.get(__response__, 'assignee_id'), + assignee_username=pulumi.get(__response__, 'assignee_username'), + author_id=pulumi.get(__response__, 'author_id'), + confidential=pulumi.get(__response__, 'confidential'), + created_after=pulumi.get(__response__, 'created_after'), + created_before=pulumi.get(__response__, 'created_before'), + due_date=pulumi.get(__response__, 'due_date'), + id=pulumi.get(__response__, 'id'), + iids=pulumi.get(__response__, 'iids'), + issue_type=pulumi.get(__response__, 'issue_type'), + issues=pulumi.get(__response__, 'issues'), + labels=pulumi.get(__response__, 'labels'), + milestone=pulumi.get(__response__, 'milestone'), + my_reaction_emoji=pulumi.get(__response__, 'my_reaction_emoji'), + not_assignee_ids=pulumi.get(__response__, 'not_assignee_ids'), + not_author_ids=pulumi.get(__response__, 'not_author_ids'), + not_labels=pulumi.get(__response__, 'not_labels'), + not_milestone=pulumi.get(__response__, 'not_milestone'), + not_my_reaction_emojis=pulumi.get(__response__, 'not_my_reaction_emojis'), + order_by=pulumi.get(__response__, 'order_by'), + project=pulumi.get(__response__, 'project'), + scope=pulumi.get(__response__, 'scope'), + search=pulumi.get(__response__, 'search'), + sort=pulumi.get(__response__, 'sort'), + updated_after=pulumi.get(__response__, 'updated_after'), + updated_before=pulumi.get(__response__, 'updated_before'), + weight=pulumi.get(__response__, 'weight'), + with_labels_details=pulumi.get(__response__, 'with_labels_details'))) diff --git a/sdk/python/pulumi_gitlab/get_project_membership.py b/sdk/python/pulumi_gitlab/get_project_membership.py index 64026e07..0c3e4e30 100644 --- a/sdk/python/pulumi_gitlab/get_project_membership.py +++ b/sdk/python/pulumi_gitlab/get_project_membership.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -138,9 +143,6 @@ def get_project_membership(full_path: Optional[str] = None, members=pulumi.get(__ret__, 'members'), project_id=pulumi.get(__ret__, 'project_id'), query=pulumi.get(__ret__, 'query')) - - -@_utilities.lift_output_func(get_project_membership) def get_project_membership_output(full_path: Optional[pulumi.Input[Optional[str]]] = None, inherited: Optional[pulumi.Input[Optional[bool]]] = None, project_id: Optional[pulumi.Input[Optional[int]]] = None, @@ -159,4 +161,17 @@ def get_project_membership_output(full_path: Optional[pulumi.Input[Optional[str] :param int project_id: The ID of the project. :param str query: A query string to search for members """ - ... + __args__ = dict() + __args__['fullPath'] = full_path + __args__['inherited'] = inherited + __args__['projectId'] = project_id + __args__['query'] = query + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectMembership:getProjectMembership', __args__, opts=opts, typ=GetProjectMembershipResult) + return __ret__.apply(lambda __response__: GetProjectMembershipResult( + full_path=pulumi.get(__response__, 'full_path'), + id=pulumi.get(__response__, 'id'), + inherited=pulumi.get(__response__, 'inherited'), + members=pulumi.get(__response__, 'members'), + project_id=pulumi.get(__response__, 'project_id'), + query=pulumi.get(__response__, 'query'))) diff --git a/sdk/python/pulumi_gitlab/get_project_milestone.py b/sdk/python/pulumi_gitlab/get_project_milestone.py index 3744e91b..1caa1ffe 100644 --- a/sdk/python/pulumi_gitlab/get_project_milestone.py +++ b/sdk/python/pulumi_gitlab/get_project_milestone.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -233,9 +238,6 @@ def get_project_milestone(milestone_id: Optional[int] = None, title=pulumi.get(__ret__, 'title'), updated_at=pulumi.get(__ret__, 'updated_at'), web_url=pulumi.get(__ret__, 'web_url')) - - -@_utilities.lift_output_func(get_project_milestone) def get_project_milestone_output(milestone_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectMilestoneResult]: @@ -248,4 +250,23 @@ def get_project_milestone_output(milestone_id: Optional[pulumi.Input[int]] = Non :param int milestone_id: The instance-wide ID of the project’s milestone. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. """ - ... + __args__ = dict() + __args__['milestoneId'] = milestone_id + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectMilestone:getProjectMilestone', __args__, opts=opts, typ=GetProjectMilestoneResult) + return __ret__.apply(lambda __response__: GetProjectMilestoneResult( + created_at=pulumi.get(__response__, 'created_at'), + description=pulumi.get(__response__, 'description'), + due_date=pulumi.get(__response__, 'due_date'), + expired=pulumi.get(__response__, 'expired'), + id=pulumi.get(__response__, 'id'), + iid=pulumi.get(__response__, 'iid'), + milestone_id=pulumi.get(__response__, 'milestone_id'), + project=pulumi.get(__response__, 'project'), + project_id=pulumi.get(__response__, 'project_id'), + start_date=pulumi.get(__response__, 'start_date'), + state=pulumi.get(__response__, 'state'), + title=pulumi.get(__response__, 'title'), + updated_at=pulumi.get(__response__, 'updated_at'), + web_url=pulumi.get(__response__, 'web_url'))) diff --git a/sdk/python/pulumi_gitlab/get_project_milestones.py b/sdk/python/pulumi_gitlab/get_project_milestones.py index 6fbc6dcb..c75d7573 100644 --- a/sdk/python/pulumi_gitlab/get_project_milestones.py +++ b/sdk/python/pulumi_gitlab/get_project_milestones.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -168,9 +173,6 @@ def get_project_milestones(iids: Optional[Sequence[int]] = None, search=pulumi.get(__ret__, 'search'), state=pulumi.get(__ret__, 'state'), title=pulumi.get(__ret__, 'title')) - - -@_utilities.lift_output_func(get_project_milestones) def get_project_milestones_output(iids: Optional[pulumi.Input[Optional[Sequence[int]]]] = None, include_parent_milestones: Optional[pulumi.Input[Optional[bool]]] = None, project: Optional[pulumi.Input[str]] = None, @@ -191,4 +193,21 @@ def get_project_milestones_output(iids: Optional[pulumi.Input[Optional[Sequence[ :param str state: Return only `active` or `closed` milestones. :param str title: Return only the milestones having the given `title`. """ - ... + __args__ = dict() + __args__['iids'] = iids + __args__['includeParentMilestones'] = include_parent_milestones + __args__['project'] = project + __args__['search'] = search + __args__['state'] = state + __args__['title'] = title + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectMilestones:getProjectMilestones', __args__, opts=opts, typ=GetProjectMilestonesResult) + return __ret__.apply(lambda __response__: GetProjectMilestonesResult( + id=pulumi.get(__response__, 'id'), + iids=pulumi.get(__response__, 'iids'), + include_parent_milestones=pulumi.get(__response__, 'include_parent_milestones'), + milestones=pulumi.get(__response__, 'milestones'), + project=pulumi.get(__response__, 'project'), + search=pulumi.get(__response__, 'search'), + state=pulumi.get(__response__, 'state'), + title=pulumi.get(__response__, 'title'))) diff --git a/sdk/python/pulumi_gitlab/get_project_protected_branch.py b/sdk/python/pulumi_gitlab/get_project_protected_branch.py index 0b205168..8d078a81 100644 --- a/sdk/python/pulumi_gitlab/get_project_protected_branch.py +++ b/sdk/python/pulumi_gitlab/get_project_protected_branch.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -150,9 +155,6 @@ def get_project_protected_branch(merge_access_levels: Optional[Sequence[Union['G name=pulumi.get(__ret__, 'name'), project_id=pulumi.get(__ret__, 'project_id'), push_access_levels=pulumi.get(__ret__, 'push_access_levels')) - - -@_utilities.lift_output_func(get_project_protected_branch) def get_project_protected_branch_output(merge_access_levels: Optional[pulumi.Input[Optional[Sequence[Union['GetProjectProtectedBranchMergeAccessLevelArgs', 'GetProjectProtectedBranchMergeAccessLevelArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, project_id: Optional[pulumi.Input[str]] = None, @@ -169,4 +171,18 @@ def get_project_protected_branch_output(merge_access_levels: Optional[pulumi.Inp :param str project_id: The integer or path with namespace that uniquely identifies the project. :param Sequence[Union['GetProjectProtectedBranchPushAccessLevelArgs', 'GetProjectProtectedBranchPushAccessLevelArgsDict']] push_access_levels: Array of access levels and user(s)/group(s) allowed to push to protected branch. """ - ... + __args__ = dict() + __args__['mergeAccessLevels'] = merge_access_levels + __args__['name'] = name + __args__['projectId'] = project_id + __args__['pushAccessLevels'] = push_access_levels + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectProtectedBranch:getProjectProtectedBranch', __args__, opts=opts, typ=GetProjectProtectedBranchResult) + return __ret__.apply(lambda __response__: GetProjectProtectedBranchResult( + allow_force_push=pulumi.get(__response__, 'allow_force_push'), + code_owner_approval_required=pulumi.get(__response__, 'code_owner_approval_required'), + id=pulumi.get(__response__, 'id'), + merge_access_levels=pulumi.get(__response__, 'merge_access_levels'), + name=pulumi.get(__response__, 'name'), + project_id=pulumi.get(__response__, 'project_id'), + push_access_levels=pulumi.get(__response__, 'push_access_levels'))) diff --git a/sdk/python/pulumi_gitlab/get_project_protected_branches.py b/sdk/python/pulumi_gitlab/get_project_protected_branches.py index 6a368d74..ff6650bc 100644 --- a/sdk/python/pulumi_gitlab/get_project_protected_branches.py +++ b/sdk/python/pulumi_gitlab/get_project_protected_branches.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -92,9 +97,6 @@ def get_project_protected_branches(project_id: Optional[str] = None, id=pulumi.get(__ret__, 'id'), project_id=pulumi.get(__ret__, 'project_id'), protected_branches=pulumi.get(__ret__, 'protected_branches')) - - -@_utilities.lift_output_func(get_project_protected_branches) def get_project_protected_branches_output(project_id: Optional[pulumi.Input[str]] = None, protected_branches: Optional[pulumi.Input[Optional[Sequence[Union['GetProjectProtectedBranchesProtectedBranchArgs', 'GetProjectProtectedBranchesProtectedBranchArgsDict']]]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectProtectedBranchesResult]: @@ -107,4 +109,12 @@ def get_project_protected_branches_output(project_id: Optional[pulumi.Input[str] :param str project_id: The integer or path with namespace that uniquely identifies the project. :param Sequence[Union['GetProjectProtectedBranchesProtectedBranchArgs', 'GetProjectProtectedBranchesProtectedBranchArgsDict']] protected_branches: A list of protected branches, as defined below. """ - ... + __args__ = dict() + __args__['projectId'] = project_id + __args__['protectedBranches'] = protected_branches + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectProtectedBranches:getProjectProtectedBranches', __args__, opts=opts, typ=GetProjectProtectedBranchesResult) + return __ret__.apply(lambda __response__: GetProjectProtectedBranchesResult( + id=pulumi.get(__response__, 'id'), + project_id=pulumi.get(__response__, 'project_id'), + protected_branches=pulumi.get(__response__, 'protected_branches'))) diff --git a/sdk/python/pulumi_gitlab/get_project_protected_tag.py b/sdk/python/pulumi_gitlab/get_project_protected_tag.py index c782c024..49c44802 100644 --- a/sdk/python/pulumi_gitlab/get_project_protected_tag.py +++ b/sdk/python/pulumi_gitlab/get_project_protected_tag.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -104,9 +109,6 @@ def get_project_protected_tag(project: Optional[str] = None, id=pulumi.get(__ret__, 'id'), project=pulumi.get(__ret__, 'project'), tag=pulumi.get(__ret__, 'tag')) - - -@_utilities.lift_output_func(get_project_protected_tag) def get_project_protected_tag_output(project: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectProtectedTagResult]: @@ -119,4 +121,13 @@ def get_project_protected_tag_output(project: Optional[pulumi.Input[str]] = None :param str project: The integer or path with namespace that uniquely identifies the project. :param str tag: The name of the protected tag. """ - ... + __args__ = dict() + __args__['project'] = project + __args__['tag'] = tag + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectProtectedTag:getProjectProtectedTag', __args__, opts=opts, typ=GetProjectProtectedTagResult) + return __ret__.apply(lambda __response__: GetProjectProtectedTagResult( + create_access_levels=pulumi.get(__response__, 'create_access_levels'), + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'), + tag=pulumi.get(__response__, 'tag'))) diff --git a/sdk/python/pulumi_gitlab/get_project_protected_tags.py b/sdk/python/pulumi_gitlab/get_project_protected_tags.py index 9d03e536..6ccdeede 100644 --- a/sdk/python/pulumi_gitlab/get_project_protected_tags.py +++ b/sdk/python/pulumi_gitlab/get_project_protected_tags.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -88,9 +93,6 @@ def get_project_protected_tags(project: Optional[str] = None, id=pulumi.get(__ret__, 'id'), project=pulumi.get(__ret__, 'project'), protected_tags=pulumi.get(__ret__, 'protected_tags')) - - -@_utilities.lift_output_func(get_project_protected_tags) def get_project_protected_tags_output(project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectProtectedTagsResult]: """ @@ -101,4 +103,11 @@ def get_project_protected_tags_output(project: Optional[pulumi.Input[str]] = Non :param str project: The integer or path with namespace that uniquely identifies the project. """ - ... + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectProtectedTags:getProjectProtectedTags', __args__, opts=opts, typ=GetProjectProtectedTagsResult) + return __ret__.apply(lambda __response__: GetProjectProtectedTagsResult( + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'), + protected_tags=pulumi.get(__response__, 'protected_tags'))) diff --git a/sdk/python/pulumi_gitlab/get_project_tag.py b/sdk/python/pulumi_gitlab/get_project_tag.py index 6a213b55..40a45508 100644 --- a/sdk/python/pulumi_gitlab/get_project_tag.py +++ b/sdk/python/pulumi_gitlab/get_project_tag.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -156,9 +161,6 @@ def get_project_tag(name: Optional[str] = None, protected=pulumi.get(__ret__, 'protected'), releases=pulumi.get(__ret__, 'releases'), target=pulumi.get(__ret__, 'target')) - - -@_utilities.lift_output_func(get_project_tag) def get_project_tag_output(name: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectTagResult]: @@ -171,4 +173,17 @@ def get_project_tag_output(name: Optional[pulumi.Input[str]] = None, :param str name: The name of a tag. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. """ - ... + __args__ = dict() + __args__['name'] = name + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectTag:getProjectTag', __args__, opts=opts, typ=GetProjectTagResult) + return __ret__.apply(lambda __response__: GetProjectTagResult( + commits=pulumi.get(__response__, 'commits'), + id=pulumi.get(__response__, 'id'), + message=pulumi.get(__response__, 'message'), + name=pulumi.get(__response__, 'name'), + project=pulumi.get(__response__, 'project'), + protected=pulumi.get(__response__, 'protected'), + releases=pulumi.get(__response__, 'releases'), + target=pulumi.get(__response__, 'target'))) diff --git a/sdk/python/pulumi_gitlab/get_project_tags.py b/sdk/python/pulumi_gitlab/get_project_tags.py index 4bcc23ee..16ed0d61 100644 --- a/sdk/python/pulumi_gitlab/get_project_tags.py +++ b/sdk/python/pulumi_gitlab/get_project_tags.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -136,9 +141,6 @@ def get_project_tags(order_by: Optional[str] = None, search=pulumi.get(__ret__, 'search'), sort=pulumi.get(__ret__, 'sort'), tags=pulumi.get(__ret__, 'tags')) - - -@_utilities.lift_output_func(get_project_tags) def get_project_tags_output(order_by: Optional[pulumi.Input[Optional[str]]] = None, project: Optional[pulumi.Input[str]] = None, search: Optional[pulumi.Input[Optional[str]]] = None, @@ -155,4 +157,17 @@ def get_project_tags_output(order_by: Optional[pulumi.Input[Optional[str]]] = No :param str search: Return list of tags matching the search criteria. You can use `^term` and `term$` to find tags that begin and end with `term` respectively. No other regular expressions are supported. :param str sort: Return tags sorted in `asc` or `desc` order. Default is `desc`. """ - ... + __args__ = dict() + __args__['orderBy'] = order_by + __args__['project'] = project + __args__['search'] = search + __args__['sort'] = sort + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectTags:getProjectTags', __args__, opts=opts, typ=GetProjectTagsResult) + return __ret__.apply(lambda __response__: GetProjectTagsResult( + id=pulumi.get(__response__, 'id'), + order_by=pulumi.get(__response__, 'order_by'), + project=pulumi.get(__response__, 'project'), + search=pulumi.get(__response__, 'search'), + sort=pulumi.get(__response__, 'sort'), + tags=pulumi.get(__response__, 'tags'))) diff --git a/sdk/python/pulumi_gitlab/get_project_variable.py b/sdk/python/pulumi_gitlab/get_project_variable.py index 434abd73..3b6c6ec5 100644 --- a/sdk/python/pulumi_gitlab/get_project_variable.py +++ b/sdk/python/pulumi_gitlab/get_project_variable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -198,9 +203,6 @@ def get_project_variable(environment_scope: Optional[str] = None, raw=pulumi.get(__ret__, 'raw'), value=pulumi.get(__ret__, 'value'), variable_type=pulumi.get(__ret__, 'variable_type')) - - -@_utilities.lift_output_func(get_project_variable) def get_project_variable_output(environment_scope: Optional[pulumi.Input[Optional[str]]] = None, key: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, @@ -229,4 +231,20 @@ def get_project_variable_output(environment_scope: Optional[pulumi.Input[Optiona :param str key: The name of the variable. :param str project: The name or id of the project. """ - ... + __args__ = dict() + __args__['environmentScope'] = environment_scope + __args__['key'] = key + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectVariable:getProjectVariable', __args__, opts=opts, typ=GetProjectVariableResult) + return __ret__.apply(lambda __response__: GetProjectVariableResult( + description=pulumi.get(__response__, 'description'), + environment_scope=pulumi.get(__response__, 'environment_scope'), + id=pulumi.get(__response__, 'id'), + key=pulumi.get(__response__, 'key'), + masked=pulumi.get(__response__, 'masked'), + project=pulumi.get(__response__, 'project'), + protected=pulumi.get(__response__, 'protected'), + raw=pulumi.get(__response__, 'raw'), + value=pulumi.get(__response__, 'value'), + variable_type=pulumi.get(__response__, 'variable_type'))) diff --git a/sdk/python/pulumi_gitlab/get_project_variables.py b/sdk/python/pulumi_gitlab/get_project_variables.py index 1328b02c..4a22cd25 100644 --- a/sdk/python/pulumi_gitlab/get_project_variables.py +++ b/sdk/python/pulumi_gitlab/get_project_variables.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -116,9 +121,6 @@ def get_project_variables(environment_scope: Optional[str] = None, id=pulumi.get(__ret__, 'id'), project=pulumi.get(__ret__, 'project'), variables=pulumi.get(__ret__, 'variables')) - - -@_utilities.lift_output_func(get_project_variables) def get_project_variables_output(environment_scope: Optional[pulumi.Input[Optional[str]]] = None, project: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectVariablesResult]: @@ -143,4 +145,13 @@ def get_project_variables_output(environment_scope: Optional[pulumi.Input[Option :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). :param str project: The name or id of the project. """ - ... + __args__ = dict() + __args__['environmentScope'] = environment_scope + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjectVariables:getProjectVariables', __args__, opts=opts, typ=GetProjectVariablesResult) + return __ret__.apply(lambda __response__: GetProjectVariablesResult( + environment_scope=pulumi.get(__response__, 'environment_scope'), + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'), + variables=pulumi.get(__response__, 'variables'))) diff --git a/sdk/python/pulumi_gitlab/get_projects.py b/sdk/python/pulumi_gitlab/get_projects.py index b49240b2..aceceac3 100644 --- a/sdk/python/pulumi_gitlab/get_projects.py +++ b/sdk/python/pulumi_gitlab/get_projects.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -445,9 +450,6 @@ def get_projects(archived: Optional[bool] = None, with_merge_requests_enabled=pulumi.get(__ret__, 'with_merge_requests_enabled'), with_programming_language=pulumi.get(__ret__, 'with_programming_language'), with_shared=pulumi.get(__ret__, 'with_shared')) - - -@_utilities.lift_output_func(get_projects) def get_projects_output(archived: Optional[pulumi.Input[Optional[bool]]] = None, group_id: Optional[pulumi.Input[Optional[int]]] = None, include_subgroups: Optional[pulumi.Input[Optional[bool]]] = None, @@ -521,4 +523,53 @@ def get_projects_output(archived: Optional[pulumi.Input[Optional[bool]]] = None, :param str with_programming_language: Limit by projects which use the given programming language. Cannot be used with `group_id`. :param bool with_shared: Include projects shared to this group. Default is `true`. Needs `group_id`. """ - ... + __args__ = dict() + __args__['archived'] = archived + __args__['groupId'] = group_id + __args__['includeSubgroups'] = include_subgroups + __args__['maxQueryablePages'] = max_queryable_pages + __args__['membership'] = membership + __args__['minAccessLevel'] = min_access_level + __args__['orderBy'] = order_by + __args__['owned'] = owned + __args__['page'] = page + __args__['perPage'] = per_page + __args__['search'] = search + __args__['simple'] = simple + __args__['sort'] = sort + __args__['starred'] = starred + __args__['statistics'] = statistics + __args__['topics'] = topics + __args__['visibility'] = visibility + __args__['withCustomAttributes'] = with_custom_attributes + __args__['withIssuesEnabled'] = with_issues_enabled + __args__['withMergeRequestsEnabled'] = with_merge_requests_enabled + __args__['withProgrammingLanguage'] = with_programming_language + __args__['withShared'] = with_shared + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getProjects:getProjects', __args__, opts=opts, typ=GetProjectsResult) + return __ret__.apply(lambda __response__: GetProjectsResult( + archived=pulumi.get(__response__, 'archived'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + include_subgroups=pulumi.get(__response__, 'include_subgroups'), + max_queryable_pages=pulumi.get(__response__, 'max_queryable_pages'), + membership=pulumi.get(__response__, 'membership'), + min_access_level=pulumi.get(__response__, 'min_access_level'), + order_by=pulumi.get(__response__, 'order_by'), + owned=pulumi.get(__response__, 'owned'), + page=pulumi.get(__response__, 'page'), + per_page=pulumi.get(__response__, 'per_page'), + projects=pulumi.get(__response__, 'projects'), + search=pulumi.get(__response__, 'search'), + simple=pulumi.get(__response__, 'simple'), + sort=pulumi.get(__response__, 'sort'), + starred=pulumi.get(__response__, 'starred'), + statistics=pulumi.get(__response__, 'statistics'), + topics=pulumi.get(__response__, 'topics'), + visibility=pulumi.get(__response__, 'visibility'), + with_custom_attributes=pulumi.get(__response__, 'with_custom_attributes'), + with_issues_enabled=pulumi.get(__response__, 'with_issues_enabled'), + with_merge_requests_enabled=pulumi.get(__response__, 'with_merge_requests_enabled'), + with_programming_language=pulumi.get(__response__, 'with_programming_language'), + with_shared=pulumi.get(__response__, 'with_shared'))) diff --git a/sdk/python/pulumi_gitlab/get_release.py b/sdk/python/pulumi_gitlab/get_release.py index c06cb8b6..5f4dab0c 100644 --- a/sdk/python/pulumi_gitlab/get_release.py +++ b/sdk/python/pulumi_gitlab/get_release.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -168,9 +173,6 @@ def get_release(assets: Optional[Union['GetReleaseAssetsArgs', 'GetReleaseAssets project_id=pulumi.get(__ret__, 'project_id'), released_at=pulumi.get(__ret__, 'released_at'), tag_name=pulumi.get(__ret__, 'tag_name')) - - -@_utilities.lift_output_func(get_release) def get_release_output(assets: Optional[pulumi.Input[Optional[Union['GetReleaseAssetsArgs', 'GetReleaseAssetsArgsDict']]]] = None, project_id: Optional[pulumi.Input[str]] = None, tag_name: Optional[pulumi.Input[str]] = None, @@ -196,4 +198,18 @@ def get_release_output(assets: Optional[pulumi.Input[Optional[Union['GetReleaseA :param str project_id: The ID or URL-encoded path of the project. :param str tag_name: The Git tag the release is associated with. """ - ... + __args__ = dict() + __args__['assets'] = assets + __args__['projectId'] = project_id + __args__['tagName'] = tag_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getRelease:getRelease', __args__, opts=opts, typ=GetReleaseResult) + return __ret__.apply(lambda __response__: GetReleaseResult( + assets=pulumi.get(__response__, 'assets'), + created_at=pulumi.get(__response__, 'created_at'), + description=pulumi.get(__response__, 'description'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + project_id=pulumi.get(__response__, 'project_id'), + released_at=pulumi.get(__response__, 'released_at'), + tag_name=pulumi.get(__response__, 'tag_name'))) diff --git a/sdk/python/pulumi_gitlab/get_release_link.py b/sdk/python/pulumi_gitlab/get_release_link.py index 9388f515..d1a4199e 100644 --- a/sdk/python/pulumi_gitlab/get_release_link.py +++ b/sdk/python/pulumi_gitlab/get_release_link.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -184,9 +189,6 @@ def get_release_link(link_id: Optional[int] = None, project=pulumi.get(__ret__, 'project'), tag_name=pulumi.get(__ret__, 'tag_name'), url=pulumi.get(__ret__, 'url')) - - -@_utilities.lift_output_func(get_release_link) def get_release_link_output(link_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, tag_name: Optional[pulumi.Input[str]] = None, @@ -201,4 +203,20 @@ def get_release_link_output(link_id: Optional[pulumi.Input[int]] = None, :param str project: The ID or [URL-encoded path of the project](https://docs.gitlab.com/ee/api/index.html#namespaced-path-encoding). :param str tag_name: The tag associated with the Release. """ - ... + __args__ = dict() + __args__['linkId'] = link_id + __args__['project'] = project + __args__['tagName'] = tag_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getReleaseLink:getReleaseLink', __args__, opts=opts, typ=GetReleaseLinkResult) + return __ret__.apply(lambda __response__: GetReleaseLinkResult( + direct_asset_url=pulumi.get(__response__, 'direct_asset_url'), + external=pulumi.get(__response__, 'external'), + filepath=pulumi.get(__response__, 'filepath'), + id=pulumi.get(__response__, 'id'), + link_id=pulumi.get(__response__, 'link_id'), + link_type=pulumi.get(__response__, 'link_type'), + name=pulumi.get(__response__, 'name'), + project=pulumi.get(__response__, 'project'), + tag_name=pulumi.get(__response__, 'tag_name'), + url=pulumi.get(__response__, 'url'))) diff --git a/sdk/python/pulumi_gitlab/get_release_links.py b/sdk/python/pulumi_gitlab/get_release_links.py index af034284..d2bdb7c2 100644 --- a/sdk/python/pulumi_gitlab/get_release_links.py +++ b/sdk/python/pulumi_gitlab/get_release_links.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -104,9 +109,6 @@ def get_release_links(project: Optional[str] = None, project=pulumi.get(__ret__, 'project'), release_links=pulumi.get(__ret__, 'release_links'), tag_name=pulumi.get(__ret__, 'tag_name')) - - -@_utilities.lift_output_func(get_release_links) def get_release_links_output(project: Optional[pulumi.Input[str]] = None, tag_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetReleaseLinksResult]: @@ -119,4 +121,13 @@ def get_release_links_output(project: Optional[pulumi.Input[str]] = None, :param str project: The ID or full path to the project. :param str tag_name: The tag associated with the Release. """ - ... + __args__ = dict() + __args__['project'] = project + __args__['tagName'] = tag_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getReleaseLinks:getReleaseLinks', __args__, opts=opts, typ=GetReleaseLinksResult) + return __ret__.apply(lambda __response__: GetReleaseLinksResult( + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'), + release_links=pulumi.get(__response__, 'release_links'), + tag_name=pulumi.get(__response__, 'tag_name'))) diff --git a/sdk/python/pulumi_gitlab/get_repository_file.py b/sdk/python/pulumi_gitlab/get_repository_file.py index 669427c6..11d42af5 100644 --- a/sdk/python/pulumi_gitlab/get_repository_file.py +++ b/sdk/python/pulumi_gitlab/get_repository_file.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -234,9 +239,6 @@ def get_repository_file(file_path: Optional[str] = None, project=pulumi.get(__ret__, 'project'), ref=pulumi.get(__ret__, 'ref'), size=pulumi.get(__ret__, 'size')) - - -@_utilities.lift_output_func(get_repository_file) def get_repository_file_output(file_path: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, ref: Optional[pulumi.Input[str]] = None, @@ -262,4 +264,23 @@ def get_repository_file_output(file_path: Optional[pulumi.Input[str]] = None, :param str project: The name or ID of the project. :param str ref: The name of branch, tag or commit. """ - ... + __args__ = dict() + __args__['filePath'] = file_path + __args__['project'] = project + __args__['ref'] = ref + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getRepositoryFile:getRepositoryFile', __args__, opts=opts, typ=GetRepositoryFileResult) + return __ret__.apply(lambda __response__: GetRepositoryFileResult( + blob_id=pulumi.get(__response__, 'blob_id'), + commit_id=pulumi.get(__response__, 'commit_id'), + content=pulumi.get(__response__, 'content'), + content_sha256=pulumi.get(__response__, 'content_sha256'), + encoding=pulumi.get(__response__, 'encoding'), + execute_filemode=pulumi.get(__response__, 'execute_filemode'), + file_name=pulumi.get(__response__, 'file_name'), + file_path=pulumi.get(__response__, 'file_path'), + id=pulumi.get(__response__, 'id'), + last_commit_id=pulumi.get(__response__, 'last_commit_id'), + project=pulumi.get(__response__, 'project'), + ref=pulumi.get(__response__, 'ref'), + size=pulumi.get(__response__, 'size'))) diff --git a/sdk/python/pulumi_gitlab/get_repository_tree.py b/sdk/python/pulumi_gitlab/get_repository_tree.py index 660dbde9..fc1e90f6 100644 --- a/sdk/python/pulumi_gitlab/get_repository_tree.py +++ b/sdk/python/pulumi_gitlab/get_repository_tree.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -148,9 +153,6 @@ def get_repository_tree(path: Optional[str] = None, recursive=pulumi.get(__ret__, 'recursive'), ref=pulumi.get(__ret__, 'ref'), trees=pulumi.get(__ret__, 'trees')) - - -@_utilities.lift_output_func(get_repository_tree) def get_repository_tree_output(path: Optional[pulumi.Input[Optional[str]]] = None, project: Optional[pulumi.Input[str]] = None, recursive: Optional[pulumi.Input[Optional[bool]]] = None, @@ -179,4 +181,17 @@ def get_repository_tree_output(path: Optional[pulumi.Input[Optional[str]]] = Non :param bool recursive: Boolean value used to get a recursive tree (false by default). :param str ref: The name of a repository branch or tag. """ - ... + __args__ = dict() + __args__['path'] = path + __args__['project'] = project + __args__['recursive'] = recursive + __args__['ref'] = ref + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getRepositoryTree:getRepositoryTree', __args__, opts=opts, typ=GetRepositoryTreeResult) + return __ret__.apply(lambda __response__: GetRepositoryTreeResult( + id=pulumi.get(__response__, 'id'), + path=pulumi.get(__response__, 'path'), + project=pulumi.get(__response__, 'project'), + recursive=pulumi.get(__response__, 'recursive'), + ref=pulumi.get(__response__, 'ref'), + trees=pulumi.get(__response__, 'trees'))) diff --git a/sdk/python/pulumi_gitlab/get_user.py b/sdk/python/pulumi_gitlab/get_user.py index 92512c0f..1466f821 100644 --- a/sdk/python/pulumi_gitlab/get_user.py +++ b/sdk/python/pulumi_gitlab/get_user.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -452,9 +457,6 @@ def get_user(email: Optional[str] = None, user_provider=pulumi.get(__ret__, 'user_provider'), username=pulumi.get(__ret__, 'username'), website_url=pulumi.get(__ret__, 'website_url')) - - -@_utilities.lift_output_func(get_user) def get_user_output(email: Optional[pulumi.Input[Optional[str]]] = None, namespace_id: Optional[pulumi.Input[Optional[int]]] = None, user_id: Optional[pulumi.Input[Optional[int]]] = None, @@ -476,4 +478,41 @@ def get_user_output(email: Optional[pulumi.Input[Optional[str]]] = None, :param int user_id: The ID of the user. :param str username: The username of the user. """ - ... + __args__ = dict() + __args__['email'] = email + __args__['namespaceId'] = namespace_id + __args__['userId'] = user_id + __args__['username'] = username + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult) + return __ret__.apply(lambda __response__: GetUserResult( + avatar_url=pulumi.get(__response__, 'avatar_url'), + bio=pulumi.get(__response__, 'bio'), + can_create_group=pulumi.get(__response__, 'can_create_group'), + can_create_project=pulumi.get(__response__, 'can_create_project'), + color_scheme_id=pulumi.get(__response__, 'color_scheme_id'), + created_at=pulumi.get(__response__, 'created_at'), + current_sign_in_at=pulumi.get(__response__, 'current_sign_in_at'), + email=pulumi.get(__response__, 'email'), + extern_uid=pulumi.get(__response__, 'extern_uid'), + external=pulumi.get(__response__, 'external'), + id=pulumi.get(__response__, 'id'), + is_admin=pulumi.get(__response__, 'is_admin'), + is_bot=pulumi.get(__response__, 'is_bot'), + last_sign_in_at=pulumi.get(__response__, 'last_sign_in_at'), + linkedin=pulumi.get(__response__, 'linkedin'), + location=pulumi.get(__response__, 'location'), + name=pulumi.get(__response__, 'name'), + namespace_id=pulumi.get(__response__, 'namespace_id'), + note=pulumi.get(__response__, 'note'), + organization=pulumi.get(__response__, 'organization'), + projects_limit=pulumi.get(__response__, 'projects_limit'), + skype=pulumi.get(__response__, 'skype'), + state=pulumi.get(__response__, 'state'), + theme_id=pulumi.get(__response__, 'theme_id'), + twitter=pulumi.get(__response__, 'twitter'), + two_factor_enabled=pulumi.get(__response__, 'two_factor_enabled'), + user_id=pulumi.get(__response__, 'user_id'), + user_provider=pulumi.get(__response__, 'user_provider'), + username=pulumi.get(__response__, 'username'), + website_url=pulumi.get(__response__, 'website_url'))) diff --git a/sdk/python/pulumi_gitlab/get_user_sshkeys.py b/sdk/python/pulumi_gitlab/get_user_sshkeys.py index 8f950c09..f9b31f57 100644 --- a/sdk/python/pulumi_gitlab/get_user_sshkeys.py +++ b/sdk/python/pulumi_gitlab/get_user_sshkeys.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -104,9 +109,6 @@ def get_user_sshkeys(user_id: Optional[int] = None, keys=pulumi.get(__ret__, 'keys'), user_id=pulumi.get(__ret__, 'user_id'), username=pulumi.get(__ret__, 'username')) - - -@_utilities.lift_output_func(get_user_sshkeys) def get_user_sshkeys_output(user_id: Optional[pulumi.Input[Optional[int]]] = None, username: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserSshkeysResult]: @@ -119,4 +121,13 @@ def get_user_sshkeys_output(user_id: Optional[pulumi.Input[Optional[int]]] = Non :param int user_id: ID of the user to get the SSH keys for. :param str username: Username of the user to get the SSH keys for. """ - ... + __args__ = dict() + __args__['userId'] = user_id + __args__['username'] = username + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getUserSshkeys:getUserSshkeys', __args__, opts=opts, typ=GetUserSshkeysResult) + return __ret__.apply(lambda __response__: GetUserSshkeysResult( + id=pulumi.get(__response__, 'id'), + keys=pulumi.get(__response__, 'keys'), + user_id=pulumi.get(__response__, 'user_id'), + username=pulumi.get(__response__, 'username'))) diff --git a/sdk/python/pulumi_gitlab/get_users.py b/sdk/python/pulumi_gitlab/get_users.py index 6e7abaf4..36683609 100644 --- a/sdk/python/pulumi_gitlab/get_users.py +++ b/sdk/python/pulumi_gitlab/get_users.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -232,9 +237,6 @@ def get_users(active: Optional[bool] = None, search=pulumi.get(__ret__, 'search'), sort=pulumi.get(__ret__, 'sort'), users=pulumi.get(__ret__, 'users')) - - -@_utilities.lift_output_func(get_users) def get_users_output(active: Optional[pulumi.Input[Optional[bool]]] = None, blocked: Optional[pulumi.Input[Optional[bool]]] = None, created_after: Optional[pulumi.Input[Optional[str]]] = None, @@ -277,4 +279,27 @@ def get_users_output(active: Optional[pulumi.Input[Optional[bool]]] = None, :param str search: Search users by username, name or email. :param str sort: Sort users' list in asc or desc order. (Requires administrator privileges) """ - ... + __args__ = dict() + __args__['active'] = active + __args__['blocked'] = blocked + __args__['createdAfter'] = created_after + __args__['createdBefore'] = created_before + __args__['externProvider'] = extern_provider + __args__['externUid'] = extern_uid + __args__['orderBy'] = order_by + __args__['search'] = search + __args__['sort'] = sort + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('gitlab:index/getUsers:getUsers', __args__, opts=opts, typ=GetUsersResult) + return __ret__.apply(lambda __response__: GetUsersResult( + active=pulumi.get(__response__, 'active'), + blocked=pulumi.get(__response__, 'blocked'), + created_after=pulumi.get(__response__, 'created_after'), + created_before=pulumi.get(__response__, 'created_before'), + extern_provider=pulumi.get(__response__, 'extern_provider'), + extern_uid=pulumi.get(__response__, 'extern_uid'), + id=pulumi.get(__response__, 'id'), + order_by=pulumi.get(__response__, 'order_by'), + search=pulumi.get(__response__, 'search'), + sort=pulumi.get(__response__, 'sort'), + users=pulumi.get(__response__, 'users'))) diff --git a/sdk/python/pulumi_gitlab/global_level_notifications.py b/sdk/python/pulumi_gitlab/global_level_notifications.py index d6d73562..9fc77dbb 100644 --- a/sdk/python/pulumi_gitlab/global_level_notifications.py +++ b/sdk/python/pulumi_gitlab/global_level_notifications.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GlobalLevelNotificationsArgs', 'GlobalLevelNotifications'] diff --git a/sdk/python/pulumi_gitlab/group.py b/sdk/python/pulumi_gitlab/group.py index d433dbdd..8050408f 100644 --- a/sdk/python/pulumi_gitlab/group.py +++ b/sdk/python/pulumi_gitlab/group.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/group_access_token.py b/sdk/python/pulumi_gitlab/group_access_token.py index 3db0cbb5..7fae821e 100644 --- a/sdk/python/pulumi_gitlab/group_access_token.py +++ b/sdk/python/pulumi_gitlab/group_access_token.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/group_badge.py b/sdk/python/pulumi_gitlab/group_badge.py index 94875d0f..343e45c5 100644 --- a/sdk/python/pulumi_gitlab/group_badge.py +++ b/sdk/python/pulumi_gitlab/group_badge.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupBadgeArgs', 'GroupBadge'] diff --git a/sdk/python/pulumi_gitlab/group_cluster.py b/sdk/python/pulumi_gitlab/group_cluster.py index 0eceea0f..b12cec6e 100644 --- a/sdk/python/pulumi_gitlab/group_cluster.py +++ b/sdk/python/pulumi_gitlab/group_cluster.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupClusterArgs', 'GroupCluster'] diff --git a/sdk/python/pulumi_gitlab/group_custom_attribute.py b/sdk/python/pulumi_gitlab/group_custom_attribute.py index df5d334f..50f43167 100644 --- a/sdk/python/pulumi_gitlab/group_custom_attribute.py +++ b/sdk/python/pulumi_gitlab/group_custom_attribute.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupCustomAttributeArgs', 'GroupCustomAttribute'] diff --git a/sdk/python/pulumi_gitlab/group_epic_board.py b/sdk/python/pulumi_gitlab/group_epic_board.py index 75a85b6b..f1daefa7 100644 --- a/sdk/python/pulumi_gitlab/group_epic_board.py +++ b/sdk/python/pulumi_gitlab/group_epic_board.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/group_hook.py b/sdk/python/pulumi_gitlab/group_hook.py index 6cc2c63a..ba449bc3 100644 --- a/sdk/python/pulumi_gitlab/group_hook.py +++ b/sdk/python/pulumi_gitlab/group_hook.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupHookArgs', 'GroupHook'] diff --git a/sdk/python/pulumi_gitlab/group_issue_board.py b/sdk/python/pulumi_gitlab/group_issue_board.py index 1f17e4cc..70b23fb6 100644 --- a/sdk/python/pulumi_gitlab/group_issue_board.py +++ b/sdk/python/pulumi_gitlab/group_issue_board.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/group_label.py b/sdk/python/pulumi_gitlab/group_label.py index 01137e6d..4b72e4cf 100644 --- a/sdk/python/pulumi_gitlab/group_label.py +++ b/sdk/python/pulumi_gitlab/group_label.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupLabelArgs', 'GroupLabel'] diff --git a/sdk/python/pulumi_gitlab/group_ldap_link.py b/sdk/python/pulumi_gitlab/group_ldap_link.py index 879c7b5f..612c2a64 100644 --- a/sdk/python/pulumi_gitlab/group_ldap_link.py +++ b/sdk/python/pulumi_gitlab/group_ldap_link.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupLdapLinkArgs', 'GroupLdapLink'] diff --git a/sdk/python/pulumi_gitlab/group_membership.py b/sdk/python/pulumi_gitlab/group_membership.py index 00244427..5d7e5d9c 100644 --- a/sdk/python/pulumi_gitlab/group_membership.py +++ b/sdk/python/pulumi_gitlab/group_membership.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupMembershipArgs', 'GroupMembership'] diff --git a/sdk/python/pulumi_gitlab/group_project_file_template.py b/sdk/python/pulumi_gitlab/group_project_file_template.py index 93f07378..fee0f9d1 100644 --- a/sdk/python/pulumi_gitlab/group_project_file_template.py +++ b/sdk/python/pulumi_gitlab/group_project_file_template.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupProjectFileTemplateArgs', 'GroupProjectFileTemplate'] diff --git a/sdk/python/pulumi_gitlab/group_protected_environment.py b/sdk/python/pulumi_gitlab/group_protected_environment.py index 23c6f5fc..2641cc25 100644 --- a/sdk/python/pulumi_gitlab/group_protected_environment.py +++ b/sdk/python/pulumi_gitlab/group_protected_environment.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/group_saml_link.py b/sdk/python/pulumi_gitlab/group_saml_link.py index d13e2cc4..de24e424 100644 --- a/sdk/python/pulumi_gitlab/group_saml_link.py +++ b/sdk/python/pulumi_gitlab/group_saml_link.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupSamlLinkArgs', 'GroupSamlLink'] diff --git a/sdk/python/pulumi_gitlab/group_security_policy_attachment.py b/sdk/python/pulumi_gitlab/group_security_policy_attachment.py index 37f439e4..70eb969d 100644 --- a/sdk/python/pulumi_gitlab/group_security_policy_attachment.py +++ b/sdk/python/pulumi_gitlab/group_security_policy_attachment.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupSecurityPolicyAttachmentArgs', 'GroupSecurityPolicyAttachment'] diff --git a/sdk/python/pulumi_gitlab/group_share_group.py b/sdk/python/pulumi_gitlab/group_share_group.py index cd56fd9a..c54eecc2 100644 --- a/sdk/python/pulumi_gitlab/group_share_group.py +++ b/sdk/python/pulumi_gitlab/group_share_group.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupShareGroupArgs', 'GroupShareGroup'] diff --git a/sdk/python/pulumi_gitlab/group_variable.py b/sdk/python/pulumi_gitlab/group_variable.py index e58f4094..9b0f9751 100644 --- a/sdk/python/pulumi_gitlab/group_variable.py +++ b/sdk/python/pulumi_gitlab/group_variable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupVariableArgs', 'GroupVariable'] diff --git a/sdk/python/pulumi_gitlab/instance_cluster.py b/sdk/python/pulumi_gitlab/instance_cluster.py index 8059001d..4562f6f4 100644 --- a/sdk/python/pulumi_gitlab/instance_cluster.py +++ b/sdk/python/pulumi_gitlab/instance_cluster.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['InstanceClusterArgs', 'InstanceCluster'] diff --git a/sdk/python/pulumi_gitlab/instance_variable.py b/sdk/python/pulumi_gitlab/instance_variable.py index dc9a3b6a..dcd1d9e0 100644 --- a/sdk/python/pulumi_gitlab/instance_variable.py +++ b/sdk/python/pulumi_gitlab/instance_variable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['InstanceVariableArgs', 'InstanceVariable'] diff --git a/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py b/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py index 11d6e14b..5b80444a 100644 --- a/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py +++ b/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationCustomIssueTrackerArgs', 'IntegrationCustomIssueTracker'] diff --git a/sdk/python/pulumi_gitlab/integration_emails_on_push.py b/sdk/python/pulumi_gitlab/integration_emails_on_push.py index 8c6180e3..34905bf8 100644 --- a/sdk/python/pulumi_gitlab/integration_emails_on_push.py +++ b/sdk/python/pulumi_gitlab/integration_emails_on_push.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationEmailsOnPushArgs', 'IntegrationEmailsOnPush'] diff --git a/sdk/python/pulumi_gitlab/integration_external_wiki.py b/sdk/python/pulumi_gitlab/integration_external_wiki.py index 6ba11ad8..44fb0e7a 100644 --- a/sdk/python/pulumi_gitlab/integration_external_wiki.py +++ b/sdk/python/pulumi_gitlab/integration_external_wiki.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationExternalWikiArgs', 'IntegrationExternalWiki'] diff --git a/sdk/python/pulumi_gitlab/integration_github.py b/sdk/python/pulumi_gitlab/integration_github.py index 64ee38fe..b49e2767 100644 --- a/sdk/python/pulumi_gitlab/integration_github.py +++ b/sdk/python/pulumi_gitlab/integration_github.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationGithubArgs', 'IntegrationGithub'] diff --git a/sdk/python/pulumi_gitlab/integration_jenkins.py b/sdk/python/pulumi_gitlab/integration_jenkins.py index a7adbdea..660859d8 100644 --- a/sdk/python/pulumi_gitlab/integration_jenkins.py +++ b/sdk/python/pulumi_gitlab/integration_jenkins.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationJenkinsArgs', 'IntegrationJenkins'] diff --git a/sdk/python/pulumi_gitlab/integration_jira.py b/sdk/python/pulumi_gitlab/integration_jira.py index a70ddc36..c82ef082 100644 --- a/sdk/python/pulumi_gitlab/integration_jira.py +++ b/sdk/python/pulumi_gitlab/integration_jira.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationJiraArgs', 'IntegrationJira'] diff --git a/sdk/python/pulumi_gitlab/integration_mattermost.py b/sdk/python/pulumi_gitlab/integration_mattermost.py index bdfd12d0..b0f928b4 100644 --- a/sdk/python/pulumi_gitlab/integration_mattermost.py +++ b/sdk/python/pulumi_gitlab/integration_mattermost.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationMattermostArgs', 'IntegrationMattermost'] diff --git a/sdk/python/pulumi_gitlab/integration_microsoft_teams.py b/sdk/python/pulumi_gitlab/integration_microsoft_teams.py index 0b7a02e4..5c059fbe 100644 --- a/sdk/python/pulumi_gitlab/integration_microsoft_teams.py +++ b/sdk/python/pulumi_gitlab/integration_microsoft_teams.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationMicrosoftTeamsArgs', 'IntegrationMicrosoftTeams'] diff --git a/sdk/python/pulumi_gitlab/integration_pipelines_email.py b/sdk/python/pulumi_gitlab/integration_pipelines_email.py index 20b74010..82e61986 100644 --- a/sdk/python/pulumi_gitlab/integration_pipelines_email.py +++ b/sdk/python/pulumi_gitlab/integration_pipelines_email.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationPipelinesEmailArgs', 'IntegrationPipelinesEmail'] diff --git a/sdk/python/pulumi_gitlab/integration_slack.py b/sdk/python/pulumi_gitlab/integration_slack.py index aa3c875e..5722c17f 100644 --- a/sdk/python/pulumi_gitlab/integration_slack.py +++ b/sdk/python/pulumi_gitlab/integration_slack.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationSlackArgs', 'IntegrationSlack'] diff --git a/sdk/python/pulumi_gitlab/integration_telegram.py b/sdk/python/pulumi_gitlab/integration_telegram.py index 6320ced9..5acc6c6e 100644 --- a/sdk/python/pulumi_gitlab/integration_telegram.py +++ b/sdk/python/pulumi_gitlab/integration_telegram.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['IntegrationTelegramArgs', 'IntegrationTelegram'] diff --git a/sdk/python/pulumi_gitlab/label.py b/sdk/python/pulumi_gitlab/label.py index bdd93a8e..6e6d435a 100644 --- a/sdk/python/pulumi_gitlab/label.py +++ b/sdk/python/pulumi_gitlab/label.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['LabelArgs', 'Label'] diff --git a/sdk/python/pulumi_gitlab/member_role.py b/sdk/python/pulumi_gitlab/member_role.py index aac1dd49..c62f7dc8 100644 --- a/sdk/python/pulumi_gitlab/member_role.py +++ b/sdk/python/pulumi_gitlab/member_role.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['MemberRoleArgs', 'MemberRole'] diff --git a/sdk/python/pulumi_gitlab/outputs.py b/sdk/python/pulumi_gitlab/outputs.py index 54f98177..258b889c 100644 --- a/sdk/python/pulumi_gitlab/outputs.py +++ b/sdk/python/pulumi_gitlab/outputs.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs diff --git a/sdk/python/pulumi_gitlab/pages_domain.py b/sdk/python/pulumi_gitlab/pages_domain.py index e3e3489b..34e776fa 100644 --- a/sdk/python/pulumi_gitlab/pages_domain.py +++ b/sdk/python/pulumi_gitlab/pages_domain.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['PagesDomainArgs', 'PagesDomain'] diff --git a/sdk/python/pulumi_gitlab/personal_access_token.py b/sdk/python/pulumi_gitlab/personal_access_token.py index 4b797583..609612b4 100644 --- a/sdk/python/pulumi_gitlab/personal_access_token.py +++ b/sdk/python/pulumi_gitlab/personal_access_token.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['PersonalAccessTokenArgs', 'PersonalAccessToken'] diff --git a/sdk/python/pulumi_gitlab/pipeline_schedule.py b/sdk/python/pulumi_gitlab/pipeline_schedule.py index f1b06a7f..8d427dcd 100644 --- a/sdk/python/pulumi_gitlab/pipeline_schedule.py +++ b/sdk/python/pulumi_gitlab/pipeline_schedule.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['PipelineScheduleArgs', 'PipelineSchedule'] diff --git a/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py b/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py index 94db41a6..61028395 100644 --- a/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py +++ b/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['PipelineScheduleVariableArgs', 'PipelineScheduleVariable'] diff --git a/sdk/python/pulumi_gitlab/pipeline_trigger.py b/sdk/python/pulumi_gitlab/pipeline_trigger.py index 5de729f8..92fcc832 100644 --- a/sdk/python/pulumi_gitlab/pipeline_trigger.py +++ b/sdk/python/pulumi_gitlab/pipeline_trigger.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['PipelineTriggerArgs', 'PipelineTrigger'] diff --git a/sdk/python/pulumi_gitlab/project.py b/sdk/python/pulumi_gitlab/project.py index 671c9b28..b2ab18b1 100644 --- a/sdk/python/pulumi_gitlab/project.py +++ b/sdk/python/pulumi_gitlab/project.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/project_access_token.py b/sdk/python/pulumi_gitlab/project_access_token.py index 611f8d12..ff860698 100644 --- a/sdk/python/pulumi_gitlab/project_access_token.py +++ b/sdk/python/pulumi_gitlab/project_access_token.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/project_approval_rule.py b/sdk/python/pulumi_gitlab/project_approval_rule.py index 3c3be6fc..3ee5d4de 100644 --- a/sdk/python/pulumi_gitlab/project_approval_rule.py +++ b/sdk/python/pulumi_gitlab/project_approval_rule.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectApprovalRuleArgs', 'ProjectApprovalRule'] diff --git a/sdk/python/pulumi_gitlab/project_badge.py b/sdk/python/pulumi_gitlab/project_badge.py index c7867826..bbd42044 100644 --- a/sdk/python/pulumi_gitlab/project_badge.py +++ b/sdk/python/pulumi_gitlab/project_badge.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectBadgeArgs', 'ProjectBadge'] diff --git a/sdk/python/pulumi_gitlab/project_cluster.py b/sdk/python/pulumi_gitlab/project_cluster.py index 30b7069e..71422d84 100644 --- a/sdk/python/pulumi_gitlab/project_cluster.py +++ b/sdk/python/pulumi_gitlab/project_cluster.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectClusterArgs', 'ProjectCluster'] diff --git a/sdk/python/pulumi_gitlab/project_compliance_framework.py b/sdk/python/pulumi_gitlab/project_compliance_framework.py index 136d8f1a..1e80e626 100644 --- a/sdk/python/pulumi_gitlab/project_compliance_framework.py +++ b/sdk/python/pulumi_gitlab/project_compliance_framework.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectComplianceFrameworkArgs', 'ProjectComplianceFramework'] diff --git a/sdk/python/pulumi_gitlab/project_custom_attribute.py b/sdk/python/pulumi_gitlab/project_custom_attribute.py index 49720fe5..657e59f7 100644 --- a/sdk/python/pulumi_gitlab/project_custom_attribute.py +++ b/sdk/python/pulumi_gitlab/project_custom_attribute.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectCustomAttributeArgs', 'ProjectCustomAttribute'] diff --git a/sdk/python/pulumi_gitlab/project_environment.py b/sdk/python/pulumi_gitlab/project_environment.py index cb8e88a3..f01359d0 100644 --- a/sdk/python/pulumi_gitlab/project_environment.py +++ b/sdk/python/pulumi_gitlab/project_environment.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectEnvironmentArgs', 'ProjectEnvironment'] diff --git a/sdk/python/pulumi_gitlab/project_freeze_period.py b/sdk/python/pulumi_gitlab/project_freeze_period.py index f5452eda..a19cb96c 100644 --- a/sdk/python/pulumi_gitlab/project_freeze_period.py +++ b/sdk/python/pulumi_gitlab/project_freeze_period.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectFreezePeriodArgs', 'ProjectFreezePeriod'] diff --git a/sdk/python/pulumi_gitlab/project_hook.py b/sdk/python/pulumi_gitlab/project_hook.py index 7046f0a7..97b2410d 100644 --- a/sdk/python/pulumi_gitlab/project_hook.py +++ b/sdk/python/pulumi_gitlab/project_hook.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectHookArgs', 'ProjectHook'] diff --git a/sdk/python/pulumi_gitlab/project_issue.py b/sdk/python/pulumi_gitlab/project_issue.py index 0c9e7084..938eb4b4 100644 --- a/sdk/python/pulumi_gitlab/project_issue.py +++ b/sdk/python/pulumi_gitlab/project_issue.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/project_issue_board.py b/sdk/python/pulumi_gitlab/project_issue_board.py index bc6b09f1..1aa7221f 100644 --- a/sdk/python/pulumi_gitlab/project_issue_board.py +++ b/sdk/python/pulumi_gitlab/project_issue_board.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/project_job_token_scope.py b/sdk/python/pulumi_gitlab/project_job_token_scope.py index eae6a7a0..5660a4dc 100644 --- a/sdk/python/pulumi_gitlab/project_job_token_scope.py +++ b/sdk/python/pulumi_gitlab/project_job_token_scope.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectJobTokenScopeArgs', 'ProjectJobTokenScope'] diff --git a/sdk/python/pulumi_gitlab/project_job_token_scopes.py b/sdk/python/pulumi_gitlab/project_job_token_scopes.py index 8052da01..507b01e7 100644 --- a/sdk/python/pulumi_gitlab/project_job_token_scopes.py +++ b/sdk/python/pulumi_gitlab/project_job_token_scopes.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectJobTokenScopesArgs', 'ProjectJobTokenScopes'] diff --git a/sdk/python/pulumi_gitlab/project_label.py b/sdk/python/pulumi_gitlab/project_label.py index 51e8f558..3ba83d99 100644 --- a/sdk/python/pulumi_gitlab/project_label.py +++ b/sdk/python/pulumi_gitlab/project_label.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectLabelArgs', 'ProjectLabel'] diff --git a/sdk/python/pulumi_gitlab/project_level_mr_approvals.py b/sdk/python/pulumi_gitlab/project_level_mr_approvals.py index 18add8b9..0c5dfe1f 100644 --- a/sdk/python/pulumi_gitlab/project_level_mr_approvals.py +++ b/sdk/python/pulumi_gitlab/project_level_mr_approvals.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectLevelMrApprovalsArgs', 'ProjectLevelMrApprovals'] diff --git a/sdk/python/pulumi_gitlab/project_level_notifications.py b/sdk/python/pulumi_gitlab/project_level_notifications.py index 2ce06752..8c968eba 100644 --- a/sdk/python/pulumi_gitlab/project_level_notifications.py +++ b/sdk/python/pulumi_gitlab/project_level_notifications.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectLevelNotificationsArgs', 'ProjectLevelNotifications'] diff --git a/sdk/python/pulumi_gitlab/project_membership.py b/sdk/python/pulumi_gitlab/project_membership.py index 7687e5bc..ffa27047 100644 --- a/sdk/python/pulumi_gitlab/project_membership.py +++ b/sdk/python/pulumi_gitlab/project_membership.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectMembershipArgs', 'ProjectMembership'] diff --git a/sdk/python/pulumi_gitlab/project_milestone.py b/sdk/python/pulumi_gitlab/project_milestone.py index 661de5fd..6f236467 100644 --- a/sdk/python/pulumi_gitlab/project_milestone.py +++ b/sdk/python/pulumi_gitlab/project_milestone.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectMilestoneArgs', 'ProjectMilestone'] diff --git a/sdk/python/pulumi_gitlab/project_mirror.py b/sdk/python/pulumi_gitlab/project_mirror.py index cca732cb..c1ece12e 100644 --- a/sdk/python/pulumi_gitlab/project_mirror.py +++ b/sdk/python/pulumi_gitlab/project_mirror.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectMirrorArgs', 'ProjectMirror'] diff --git a/sdk/python/pulumi_gitlab/project_protected_environment.py b/sdk/python/pulumi_gitlab/project_protected_environment.py index c60dc8d8..7ab17e08 100644 --- a/sdk/python/pulumi_gitlab/project_protected_environment.py +++ b/sdk/python/pulumi_gitlab/project_protected_environment.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/project_push_rules.py b/sdk/python/pulumi_gitlab/project_push_rules.py index 17e434b7..0d0546a5 100644 --- a/sdk/python/pulumi_gitlab/project_push_rules.py +++ b/sdk/python/pulumi_gitlab/project_push_rules.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectPushRulesInitArgs', 'ProjectPushRules'] diff --git a/sdk/python/pulumi_gitlab/project_runner_enablement.py b/sdk/python/pulumi_gitlab/project_runner_enablement.py index 58e9bee2..be66f098 100644 --- a/sdk/python/pulumi_gitlab/project_runner_enablement.py +++ b/sdk/python/pulumi_gitlab/project_runner_enablement.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectRunnerEnablementArgs', 'ProjectRunnerEnablement'] diff --git a/sdk/python/pulumi_gitlab/project_security_policy_attachment.py b/sdk/python/pulumi_gitlab/project_security_policy_attachment.py index bbf232ee..fcac1484 100644 --- a/sdk/python/pulumi_gitlab/project_security_policy_attachment.py +++ b/sdk/python/pulumi_gitlab/project_security_policy_attachment.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectSecurityPolicyAttachmentArgs', 'ProjectSecurityPolicyAttachment'] diff --git a/sdk/python/pulumi_gitlab/project_share_group.py b/sdk/python/pulumi_gitlab/project_share_group.py index 89f9e01c..bc88f288 100644 --- a/sdk/python/pulumi_gitlab/project_share_group.py +++ b/sdk/python/pulumi_gitlab/project_share_group.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectShareGroupArgs', 'ProjectShareGroup'] diff --git a/sdk/python/pulumi_gitlab/project_tag.py b/sdk/python/pulumi_gitlab/project_tag.py index bc681bbf..6c96ef5e 100644 --- a/sdk/python/pulumi_gitlab/project_tag.py +++ b/sdk/python/pulumi_gitlab/project_tag.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/project_variable.py b/sdk/python/pulumi_gitlab/project_variable.py index 667a98aa..f30cef53 100644 --- a/sdk/python/pulumi_gitlab/project_variable.py +++ b/sdk/python/pulumi_gitlab/project_variable.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectVariableArgs', 'ProjectVariable'] diff --git a/sdk/python/pulumi_gitlab/provider.py b/sdk/python/pulumi_gitlab/provider.py index 6e6b5079..f7f759e5 100644 --- a/sdk/python/pulumi_gitlab/provider.py +++ b/sdk/python/pulumi_gitlab/provider.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProviderArgs', 'Provider'] diff --git a/sdk/python/pulumi_gitlab/release_link.py b/sdk/python/pulumi_gitlab/release_link.py index 2fc1f5b5..339ac8ac 100644 --- a/sdk/python/pulumi_gitlab/release_link.py +++ b/sdk/python/pulumi_gitlab/release_link.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ReleaseLinkArgs', 'ReleaseLink'] diff --git a/sdk/python/pulumi_gitlab/repository_file.py b/sdk/python/pulumi_gitlab/repository_file.py index e121e98e..f1d6914b 100644 --- a/sdk/python/pulumi_gitlab/repository_file.py +++ b/sdk/python/pulumi_gitlab/repository_file.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['RepositoryFileArgs', 'RepositoryFile'] diff --git a/sdk/python/pulumi_gitlab/runner.py b/sdk/python/pulumi_gitlab/runner.py index f0d604aa..0098456a 100644 --- a/sdk/python/pulumi_gitlab/runner.py +++ b/sdk/python/pulumi_gitlab/runner.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['RunnerArgs', 'Runner'] diff --git a/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py b/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py index 766efe64..6dd9d427 100644 --- a/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py +++ b/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceCustomIssueTrackerArgs', 'ServiceCustomIssueTracker'] diff --git a/sdk/python/pulumi_gitlab/service_emails_on_push.py b/sdk/python/pulumi_gitlab/service_emails_on_push.py index 53c059d8..0957abf7 100644 --- a/sdk/python/pulumi_gitlab/service_emails_on_push.py +++ b/sdk/python/pulumi_gitlab/service_emails_on_push.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceEmailsOnPushArgs', 'ServiceEmailsOnPush'] diff --git a/sdk/python/pulumi_gitlab/service_external_wiki.py b/sdk/python/pulumi_gitlab/service_external_wiki.py index a92383d8..2a0f9433 100644 --- a/sdk/python/pulumi_gitlab/service_external_wiki.py +++ b/sdk/python/pulumi_gitlab/service_external_wiki.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceExternalWikiArgs', 'ServiceExternalWiki'] diff --git a/sdk/python/pulumi_gitlab/service_github.py b/sdk/python/pulumi_gitlab/service_github.py index ae9ccae5..b7abac88 100644 --- a/sdk/python/pulumi_gitlab/service_github.py +++ b/sdk/python/pulumi_gitlab/service_github.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceGithubArgs', 'ServiceGithub'] diff --git a/sdk/python/pulumi_gitlab/service_jira.py b/sdk/python/pulumi_gitlab/service_jira.py index 9caba0f8..c4484ef9 100644 --- a/sdk/python/pulumi_gitlab/service_jira.py +++ b/sdk/python/pulumi_gitlab/service_jira.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceJiraArgs', 'ServiceJira'] diff --git a/sdk/python/pulumi_gitlab/service_microsoft_teams.py b/sdk/python/pulumi_gitlab/service_microsoft_teams.py index 50cd0423..dad4b49b 100644 --- a/sdk/python/pulumi_gitlab/service_microsoft_teams.py +++ b/sdk/python/pulumi_gitlab/service_microsoft_teams.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceMicrosoftTeamsArgs', 'ServiceMicrosoftTeams'] diff --git a/sdk/python/pulumi_gitlab/service_pipelines_email.py b/sdk/python/pulumi_gitlab/service_pipelines_email.py index 59fe8cd4..941c6b02 100644 --- a/sdk/python/pulumi_gitlab/service_pipelines_email.py +++ b/sdk/python/pulumi_gitlab/service_pipelines_email.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServicePipelinesEmailArgs', 'ServicePipelinesEmail'] diff --git a/sdk/python/pulumi_gitlab/service_slack.py b/sdk/python/pulumi_gitlab/service_slack.py index 5c717338..f2961852 100644 --- a/sdk/python/pulumi_gitlab/service_slack.py +++ b/sdk/python/pulumi_gitlab/service_slack.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceSlackArgs', 'ServiceSlack'] diff --git a/sdk/python/pulumi_gitlab/system_hook.py b/sdk/python/pulumi_gitlab/system_hook.py index aadbd26b..07d52cb5 100644 --- a/sdk/python/pulumi_gitlab/system_hook.py +++ b/sdk/python/pulumi_gitlab/system_hook.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['SystemHookArgs', 'SystemHook'] diff --git a/sdk/python/pulumi_gitlab/tag_protection.py b/sdk/python/pulumi_gitlab/tag_protection.py index 20cb6e22..f0428b96 100644 --- a/sdk/python/pulumi_gitlab/tag_protection.py +++ b/sdk/python/pulumi_gitlab/tag_protection.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_gitlab/topic.py b/sdk/python/pulumi_gitlab/topic.py index e399c00b..34c046ad 100644 --- a/sdk/python/pulumi_gitlab/topic.py +++ b/sdk/python/pulumi_gitlab/topic.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['TopicArgs', 'Topic'] diff --git a/sdk/python/pulumi_gitlab/user.py b/sdk/python/pulumi_gitlab/user.py index 9c63cde2..aa7a1b78 100644 --- a/sdk/python/pulumi_gitlab/user.py +++ b/sdk/python/pulumi_gitlab/user.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['UserArgs', 'User'] diff --git a/sdk/python/pulumi_gitlab/user_custom_attribute.py b/sdk/python/pulumi_gitlab/user_custom_attribute.py index f44203ad..09c0a40b 100644 --- a/sdk/python/pulumi_gitlab/user_custom_attribute.py +++ b/sdk/python/pulumi_gitlab/user_custom_attribute.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['UserCustomAttributeArgs', 'UserCustomAttribute'] diff --git a/sdk/python/pulumi_gitlab/user_gpg_key.py b/sdk/python/pulumi_gitlab/user_gpg_key.py index 7b743144..12b64088 100644 --- a/sdk/python/pulumi_gitlab/user_gpg_key.py +++ b/sdk/python/pulumi_gitlab/user_gpg_key.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['UserGpgKeyArgs', 'UserGpgKey'] diff --git a/sdk/python/pulumi_gitlab/user_impersonation_token.py b/sdk/python/pulumi_gitlab/user_impersonation_token.py index eb1965f5..e7bd8ddb 100644 --- a/sdk/python/pulumi_gitlab/user_impersonation_token.py +++ b/sdk/python/pulumi_gitlab/user_impersonation_token.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['UserImpersonationTokenArgs', 'UserImpersonationToken'] diff --git a/sdk/python/pulumi_gitlab/user_runner.py b/sdk/python/pulumi_gitlab/user_runner.py index 100080cf..ad243d9a 100644 --- a/sdk/python/pulumi_gitlab/user_runner.py +++ b/sdk/python/pulumi_gitlab/user_runner.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['UserRunnerArgs', 'UserRunner'] diff --git a/sdk/python/pulumi_gitlab/user_ssh_key.py b/sdk/python/pulumi_gitlab/user_ssh_key.py index ccff5108..7e6f99f0 100644 --- a/sdk/python/pulumi_gitlab/user_ssh_key.py +++ b/sdk/python/pulumi_gitlab/user_ssh_key.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['UserSshKeyArgs', 'UserSshKey'] diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 9ef0a6d9..fd1d4a1e 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "pulumi_gitlab" description = "A Pulumi package for creating and managing GitLab resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1"] + dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "gitlab"] readme = "README.md" requires-python = ">=3.8" From 8b94b774ac0b062bee72b64a58e0dadd7129a00f Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Fri, 11 Oct 2024 10:54:40 +0200 Subject: [PATCH 3/3] Fix providertest --- provider/provider_program_test.go | 55 +++---------------------------- 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/provider/provider_program_test.go b/provider/provider_program_test.go index bd5d1688..60b8a7ed 100644 --- a/provider/provider_program_test.go +++ b/provider/provider_program_test.go @@ -15,7 +15,6 @@ import ( "github.com/pulumi/providertest/pulumitest" "github.com/pulumi/providertest/pulumitest/assertpreview" "github.com/pulumi/providertest/pulumitest/opttest" - "github.com/pulumi/pulumi/sdk/v3/go/auto" ) const providerName = "gitlab" @@ -35,67 +34,23 @@ func TestUpgradeCoverage(t *testing.T) { providertest.ReportUpgradeCoverage(t) } -type UpgradeTestOpts struct { - baselineVersion string - assertFunc func(*testing.T, auto.PreviewResult) - config map[string]string -} - -func WithBaselineVersion(baselineVersion string) func(opts *UpgradeTestOpts) { - return func(opts *UpgradeTestOpts) { - opts.baselineVersion = baselineVersion - } -} - -func WithAssertFunc(assertFunc func(*testing.T, auto.PreviewResult)) func(opts *UpgradeTestOpts) { - return func(opts *UpgradeTestOpts) { - opts.assertFunc = assertFunc - } -} - -func WithConfig(config map[string]string) func(opts *UpgradeTestOpts) { - return func(opts *UpgradeTestOpts) { - opts.config = config - } -} -func testProviderUpgrade(t *testing.T, dir string, opts ...func(*UpgradeTestOpts)) { - options := &UpgradeTestOpts{} - for _, o := range opts { - o(options) - } - testProviderUpgradeWithOpts(t, dir, options.baselineVersion, options.config, options.assertFunc) -} - -func testProviderUpgradeWithOpts( - t *testing.T, dir, baselineVersion string, config map[string]string, - assertFunction func(*testing.T, auto.PreviewResult), -) { +func testProviderUpgrade(t *testing.T, dir string) { if testing.Short() { t.Skipf("Skipping in testing.Short() mode, assuming this is a CI run without credentials") } cwd, err := os.Getwd() require.NoError(t, err) - if baselineVersion == "" { - baselineVersion = defaultBaselineVersion - } if os.Getenv("GITLAB_TOKEN") == "" { t.Setenv("GITLAB_TOKEN", os.Getenv("PULUMI_GITLAB_TOKEN")) } test := pulumitest.NewPulumiTest(t, dir, - opttest.DownloadProviderVersion(providerName, baselineVersion), + opttest.DownloadProviderVersion(providerName, defaultBaselineVersion), opttest.LocalProviderPath(providerName, filepath.Join(cwd, "..", "bin")), ) - for k, v := range config { - test.SetConfig(k, v) - } - result := providertest.PreviewProviderUpgrade(t, test, providerName, baselineVersion, + result := providertest.PreviewProviderUpgrade(t, test, providerName, defaultBaselineVersion, optproviderupgrade.DisableAttach()) - if assertFunction != nil { - assertFunction(t, result) - } else { - assertpreview.HasNoReplacements(t, result) - } + assertpreview.HasNoReplacements(t, result) } func testProgram(t *testing.T, dir string) { @@ -111,7 +66,7 @@ func testProgram(t *testing.T, dir string) { opttest.LocalProviderPath(providerName, filepath.Join(cwd, "..", "bin")), opttest.SkipInstall(), ) - test.Up() + test.Up(t) } func TestPrograms(t *testing.T) {