diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index c0905733..8e4bd414 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -54,7 +54,7 @@ jobs: sdk/go.sum go-version: 1.21.x - run: make upstream - - uses: pulumi/license-check-action@main + - uses: pulumi/license-check-action@f85f3984a74858b910ef1283aedc1e810a8228ef with: module-path: provider ignore-modules: >- diff --git a/provider/cmd/pulumi-resource-gitlab/bridge-metadata.json b/provider/cmd/pulumi-resource-gitlab/bridge-metadata.json index e8fc019f..90304c0e 100644 --- a/provider/cmd/pulumi-resource-gitlab/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-gitlab/bridge-metadata.json @@ -1901,6 +1901,7 @@ "buildsAccessLevel": "builds_access_level", "ciConfigPath": "ci_config_path", "ciDefaultGitDepth": "ci_default_git_depth", + "ciRestrictPipelineCancellationRole": "ci_restrict_pipeline_cancellation_role", "ciSeparatedCaches": "ci_separated_caches", "containerExpirationPolicies": "container_expiration_policy", "containerRegistryAccessLevel": "container_registry_access_level", @@ -2262,6 +2263,7 @@ "ciConfigPath": "ci_config_path", "ciDefaultGitDepth": "ci_default_git_depth", "ciForwardDeploymentEnabled": "ci_forward_deployment_enabled", + "ciRestrictPipelineCancellationRole": "ci_restrict_pipeline_cancellation_role", "containerExpirationPolicies": "container_expiration_policy", "containerRegistryAccessLevel": "container_registry_access_level", "containerRegistryEnabled": "container_registry_enabled", @@ -2738,6 +2740,7 @@ "ciConfigPath": "ci_config_path", "ciDefaultGitDepth": "ci_default_git_depth", "ciForwardDeploymentEnabled": "ci_forward_deployment_enabled", + "ciRestrictPipelineCancellationRole": "ci_restrict_pipeline_cancellation_role", "ciSeparatedCaches": "ci_separated_caches", "containerExpirationPolicy": "container_expiration_policy", "containerRegistryAccessLevel": "container_registry_access_level", diff --git a/provider/cmd/pulumi-resource-gitlab/schema.json b/provider/cmd/pulumi-resource-gitlab/schema.json index 82980a63..4441fbaf 100644 --- a/provider/cmd/pulumi-resource-gitlab/schema.json +++ b/provider/cmd/pulumi-resource-gitlab/schema.json @@ -1213,6 +1213,10 @@ }, "gitlab:index/getGroupVariablesVariable:getGroupVariablesVariable": { "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n" @@ -1248,6 +1252,7 @@ }, "type": "object", "required": [ + "description", "environmentScope", "group", "key", @@ -2701,6 +2706,10 @@ }, "gitlab:index/getProjectVariablesVariable:getProjectVariablesVariable": { "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n" @@ -2736,6 +2745,7 @@ }, "type": "object", "required": [ + "description", "environmentScope", "key", "masked", @@ -2824,6 +2834,10 @@ "type": "boolean", "description": "When a new deployment job starts, skip older deployment jobs that are still pending.\n" }, + "ciRestrictPipelineCancellationRole": { + "type": "string", + "description": "The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one`\n" + }, "containerExpirationPolicies": { "type": "array", "items": { @@ -3193,6 +3207,7 @@ "ciConfigPath", "ciDefaultGitDepth", "ciForwardDeploymentEnabled", + "ciRestrictPipelineCancellationRole", "containerExpirationPolicies", "containerRegistryAccessLevel", "containerRegistryEnabled", @@ -4260,7 +4275,7 @@ "elasticsearchNamespaceIds": { "type": "array", "items": { - "type": "string" + "type": "integer" }, "description": "The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled.\n" }, @@ -4272,7 +4287,7 @@ "elasticsearchProjectIds": { "type": "array", "items": { - "type": "string" + "type": "integer" }, "description": "The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled.\n" }, @@ -5526,7 +5541,7 @@ "elasticsearchNamespaceIds": { "type": "array", "items": { - "type": "string" + "type": "integer" }, "description": "The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled.\n" }, @@ -5538,7 +5553,7 @@ "elasticsearchProjectIds": { "type": "array", "items": { - "type": "string" + "type": "integer" }, "description": "The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled.\n" }, @@ -6551,7 +6566,7 @@ "elasticsearchNamespaceIds": { "type": "array", "items": { - "type": "string" + "type": "integer" }, "description": "The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled.\n" }, @@ -6563,7 +6578,7 @@ "elasticsearchProjectIds": { "type": "array", "items": { - "type": "string" + "type": "integer" }, "description": "The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled.\n" }, @@ -10416,6 +10431,10 @@ "gitlab:index/groupVariable:GroupVariable": { "description": "The `gitlab.GroupVariable` resource allows to manage the lifecycle of a CI/CD variable for a group.\n\n**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst example = new gitlab.GroupVariable(\"example\", {\n environmentScope: \"*\",\n group: \"12345\",\n key: \"group_variable_key\",\n masked: false,\n \"protected\": false,\n value: \"group_variable_value\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nexample = gitlab.GroupVariable(\"example\",\n environment_scope=\"*\",\n group=\"12345\",\n key=\"group_variable_key\",\n masked=False,\n protected=False,\n value=\"group_variable_value\")\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 = new GitLab.GroupVariable(\"example\", new()\n {\n EnvironmentScope = \"*\",\n Group = \"12345\",\n Key = \"group_variable_key\",\n Masked = false,\n Protected = false,\n Value = \"group_variable_value\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v6/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.NewGroupVariable(ctx, \"example\", \u0026gitlab.GroupVariableArgs{\n\t\t\tEnvironmentScope: pulumi.String(\"*\"),\n\t\t\tGroup: pulumi.String(\"12345\"),\n\t\t\tKey: pulumi.String(\"group_variable_key\"),\n\t\t\tMasked: pulumi.Bool(false),\n\t\t\tProtected: pulumi.Bool(false),\n\t\t\tValue: pulumi.String(\"group_variable_value\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.GroupVariable;\nimport com.pulumi.gitlab.GroupVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new GroupVariable(\"example\", GroupVariableArgs.builder() \n .environmentScope(\"*\")\n .group(\"12345\")\n .key(\"group_variable_key\")\n .masked(false)\n .protected_(false)\n .value(\"group_variable_value\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: gitlab:GroupVariable\n properties:\n environmentScope: '*'\n group: '12345'\n key: group_variable_key\n masked: false\n protected: false\n value: group_variable_value\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGitLab group variables can be imported using an id made up of `groupid:variablename:scope`, e.g.\n\n ```sh\n $ pulumi import gitlab:index/groupVariable:GroupVariable example 12345:group_variable_key:*\n```\n\n ", "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n" @@ -10455,6 +10474,10 @@ "value" ], "inputProperties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n", @@ -10499,6 +10522,10 @@ "stateInputs": { "description": "Input properties used for looking up and filtering GroupVariable resources.\n", "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n", @@ -13157,6 +13184,10 @@ "type": "boolean", "description": "When a new deployment job starts, skip older deployment jobs that are still pending.\n" }, + "ciRestrictPipelineCancellationRole": { + "type": "string", + "description": "The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one`\n" + }, "ciSeparatedCaches": { "type": "boolean", "description": "Use separate caches for protected branches.\n" @@ -13499,6 +13530,7 @@ "buildsAccessLevel", "ciDefaultGitDepth", "ciForwardDeploymentEnabled", + "ciRestrictPipelineCancellationRole", "ciSeparatedCaches", "containerExpirationPolicy", "containerRegistryAccessLevel", @@ -13631,6 +13663,10 @@ "type": "boolean", "description": "When a new deployment job starts, skip older deployment jobs that are still pending.\n" }, + "ciRestrictPipelineCancellationRole": { + "type": "string", + "description": "The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one`\n" + }, "ciSeparatedCaches": { "type": "boolean", "description": "Use separate caches for protected branches.\n" @@ -14016,6 +14052,10 @@ "type": "boolean", "description": "When a new deployment job starts, skip older deployment jobs that are still pending.\n" }, + "ciRestrictPipelineCancellationRole": { + "type": "string", + "description": "The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one`\n" + }, "ciSeparatedCaches": { "type": "boolean", "description": "Use separate caches for protected branches.\n" @@ -17297,6 +17337,10 @@ "gitlab:index/projectVariable:ProjectVariable": { "description": "The `gitlab.ProjectVariable` resource allows to manage the lifecycle of a CI/CD variable for a project.\n\n\u003e **Important:** If your GitLab version is older than 13.4, you may see nondeterministic behavior when updating or deleting gitlab.ProjectVariable resources with non-unique keys, for example if there is another variable with the same key and different environment scope. See [this GitLab issue](https://gitlab.com/gitlab-org/gitlab/-/issues/9912).\n\n**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gitlab from \"@pulumi/gitlab\";\n\nconst example = new gitlab.ProjectVariable(\"example\", {\n key: \"project_variable_key\",\n project: \"12345\",\n \"protected\": false,\n value: \"project_variable_value\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gitlab as gitlab\n\nexample = gitlab.ProjectVariable(\"example\",\n key=\"project_variable_key\",\n project=\"12345\",\n protected=False,\n value=\"project_variable_value\")\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 = new GitLab.ProjectVariable(\"example\", new()\n {\n Key = \"project_variable_key\",\n Project = \"12345\",\n Protected = false,\n Value = \"project_variable_value\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gitlab/sdk/v6/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.NewProjectVariable(ctx, \"example\", \u0026gitlab.ProjectVariableArgs{\n\t\t\tKey: pulumi.String(\"project_variable_key\"),\n\t\t\tProject: pulumi.String(\"12345\"),\n\t\t\tProtected: pulumi.Bool(false),\n\t\t\tValue: pulumi.String(\"project_variable_value\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gitlab.ProjectVariable;\nimport com.pulumi.gitlab.ProjectVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ProjectVariable(\"example\", ProjectVariableArgs.builder() \n .key(\"project_variable_key\")\n .project(\"12345\")\n .protected_(false)\n .value(\"project_variable_value\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: gitlab:ProjectVariable\n properties:\n key: project_variable_key\n project: '12345'\n protected: false\n value: project_variable_value\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGitLab project variables can be imported using an id made up of `project:key:environment_scope`, e.g.\n\n ```sh\n $ pulumi import gitlab:index/projectVariable:ProjectVariable example '12345:project_variable_key:*'\n```\n\n ", "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n" @@ -17336,6 +17380,10 @@ "value" ], "inputProperties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n", @@ -17380,6 +17428,10 @@ "stateInputs": { "description": "Input properties used for looking up and filtering ProjectVariable resources.\n", "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n", @@ -20997,6 +21049,10 @@ "outputs": { "description": "A collection of values returned by getGroupVariable.\n", "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n" @@ -21036,6 +21092,7 @@ }, "type": "object", "required": [ + "description", "environmentScope", "group", "key", @@ -21387,6 +21444,10 @@ "type": "integer", "description": "Default number of revisions for shallow cloning.\n" }, + "ciRestrictPipelineCancellationRole": { + "type": "string", + "description": "The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one`\n" + }, "ciSeparatedCaches": { "type": "boolean", "description": "Use separate caches for protected branches.\n" @@ -21630,6 +21691,7 @@ "buildsAccessLevel", "ciConfigPath", "ciDefaultGitDepth", + "ciRestrictPipelineCancellationRole", "ciSeparatedCaches", "containerExpirationPolicies", "containerRegistryAccessLevel", @@ -22960,6 +23022,10 @@ "outputs": { "description": "A collection of values returned by getProjectVariable.\n", "properties": { + "description": { + "type": "string", + "description": "The description of the variable.\n" + }, "environmentScope": { "type": "string", "description": "The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.\n" @@ -22999,6 +23065,7 @@ }, "type": "object", "required": [ + "description", "environmentScope", "key", "masked", diff --git a/provider/go.mod b/provider/go.mod index 3b14bf69..eda4a4b9 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,6 +1,8 @@ module github.com/pulumi/pulumi-gitlab/provider/v6 -go 1.21 +go 1.22 + +toolchain go1.22.0 require ( github.com/pulumi/pulumi-terraform-bridge/pf v0.27.0 @@ -131,7 +133,7 @@ require ( github.com/hashicorp/terraform-plugin-go v0.21.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-mux v0.14.0 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.31.0 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.32.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/vault/api v1.8.2 // indirect @@ -213,12 +215,12 @@ require ( github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/xanzy/go-gitlab v0.96.0 // indirect + github.com/xanzy/go-gitlab v0.97.0 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect - github.com/zclconf/go-cty v1.14.1 // indirect + github.com/zclconf/go-cty v1.14.2 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.36.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index 29aa8ba6..bf72794f 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1689,8 +1689,8 @@ github.com/hashicorp/terraform-exec v0.17.2/go.mod h1:tuIbsL2l4MlwwIZx9HPM+LOV9v github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM= github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= -github.com/hashicorp/terraform-json v0.18.0 h1:pCjgJEqqDESv4y0Tzdqfxr/edOIGkjs8keY42xfNBwU= -github.com/hashicorp/terraform-json v0.18.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= +github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= +github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-plugin-framework v1.5.0 h1:8kcvqJs/x6QyOFSdeAyEgsenVOUeC/IyKpi2ul4fjTg= github.com/hashicorp/terraform-plugin-framework v1.5.0/go.mod h1:6waavirukIlFpVpthbGd2PUNYaFedB0RwW3MDzJ/rtc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= @@ -2434,8 +2434,8 @@ github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV github.com/vultr/govultr/v2 v2.17.2/go.mod h1:ZFOKGWmgjytfyjeyAdhQlSWwTjh2ig+X49cAp50dzXI= github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= -github.com/xanzy/go-gitlab v0.96.0 h1:LGkZ+wSNMRtHIBaYE4Hq3dZVjprwHv3Y1+rhKU3WETs= -github.com/xanzy/go-gitlab v0.96.0/go.mod h1:ETg8tcj4OhrB84UEgeE8dSuV/0h4BBL1uOV/qK0vlyI= +github.com/xanzy/go-gitlab v0.97.0 h1:StMqJ1Kvt00X43pYIBBjj52dFlghwSeBhRDRfzaZ7xY= +github.com/xanzy/go-gitlab v0.97.0/go.mod h1:ETg8tcj4OhrB84UEgeE8dSuV/0h4BBL1uOV/qK0vlyI= github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= @@ -2472,8 +2472,8 @@ github.com/zclconf/go-cty v1.13.0/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4 github.com/zclconf/go-cty v1.13.1/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty v1.14.1 h1:t9fyA35fwjjUMcmL5hLER+e/rEPqrbCK1/OSE4SI9KA= -github.com/zclconf/go-cty v1.14.1/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty v1.14.2 h1:kTG7lqmBou0Zkx35r6HJHUQTvaRPr5bIAf3AoHS0izI= +github.com/zclconf/go-cty v1.14.2/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= diff --git a/sdk/dotnet/ApplicationSettings.cs b/sdk/dotnet/ApplicationSettings.cs index 065e37a4..fa38408a 100644 --- a/sdk/dotnet/ApplicationSettings.cs +++ b/sdk/dotnet/ApplicationSettings.cs @@ -439,7 +439,7 @@ public partial class ApplicationSettings : global::Pulumi.CustomResource /// The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. /// [Output("elasticsearchNamespaceIds")] - public Output> ElasticsearchNamespaceIds { get; private set; } = null!; + public Output> ElasticsearchNamespaceIds { get; private set; } = null!; /// /// The password of your Elasticsearch instance. @@ -451,7 +451,7 @@ public partial class ApplicationSettings : global::Pulumi.CustomResource /// The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. /// [Output("elasticsearchProjectIds")] - public Output> ElasticsearchProjectIds { get; private set; } = null!; + public Output> ElasticsearchProjectIds { get; private set; } = null!; /// /// Enable Elasticsearch search. @@ -2032,14 +2032,14 @@ public Input? ElasticsearchAwsSecretAccessKey public Input? ElasticsearchMaxBulkSizeMb { get; set; } [Input("elasticsearchNamespaceIds")] - private InputList? _elasticsearchNamespaceIds; + private InputList? _elasticsearchNamespaceIds; /// /// The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. /// - public InputList ElasticsearchNamespaceIds + public InputList ElasticsearchNamespaceIds { - get => _elasticsearchNamespaceIds ?? (_elasticsearchNamespaceIds = new InputList()); + get => _elasticsearchNamespaceIds ?? (_elasticsearchNamespaceIds = new InputList()); set => _elasticsearchNamespaceIds = value; } @@ -2060,14 +2060,14 @@ public Input? ElasticsearchPassword } [Input("elasticsearchProjectIds")] - private InputList? _elasticsearchProjectIds; + private InputList? _elasticsearchProjectIds; /// /// The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. /// - public InputList ElasticsearchProjectIds + public InputList ElasticsearchProjectIds { - get => _elasticsearchProjectIds ?? (_elasticsearchProjectIds = new InputList()); + get => _elasticsearchProjectIds ?? (_elasticsearchProjectIds = new InputList()); set => _elasticsearchProjectIds = value; } @@ -3716,14 +3716,14 @@ public Input? ElasticsearchAwsSecretAccessKey public Input? ElasticsearchMaxBulkSizeMb { get; set; } [Input("elasticsearchNamespaceIds")] - private InputList? _elasticsearchNamespaceIds; + private InputList? _elasticsearchNamespaceIds; /// /// The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. /// - public InputList ElasticsearchNamespaceIds + public InputList ElasticsearchNamespaceIds { - get => _elasticsearchNamespaceIds ?? (_elasticsearchNamespaceIds = new InputList()); + get => _elasticsearchNamespaceIds ?? (_elasticsearchNamespaceIds = new InputList()); set => _elasticsearchNamespaceIds = value; } @@ -3744,14 +3744,14 @@ public Input? ElasticsearchPassword } [Input("elasticsearchProjectIds")] - private InputList? _elasticsearchProjectIds; + private InputList? _elasticsearchProjectIds; /// /// The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. /// - public InputList ElasticsearchProjectIds + public InputList ElasticsearchProjectIds { - get => _elasticsearchProjectIds ?? (_elasticsearchProjectIds = new InputList()); + get => _elasticsearchProjectIds ?? (_elasticsearchProjectIds = new InputList()); set => _elasticsearchProjectIds = value; } diff --git a/sdk/dotnet/GetGroupVariable.cs b/sdk/dotnet/GetGroupVariable.cs index 4b90cbc5..2ec6fd27 100644 --- a/sdk/dotnet/GetGroupVariable.cs +++ b/sdk/dotnet/GetGroupVariable.cs @@ -145,6 +145,10 @@ public GetGroupVariableInvokeArgs() [OutputType] public sealed class GetGroupVariableResult { + /// + /// The description of the variable. + /// + public readonly string Description; /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -184,6 +188,8 @@ public sealed class GetGroupVariableResult [OutputConstructor] private GetGroupVariableResult( + string description, + string environmentScope, string group, @@ -202,6 +208,7 @@ private GetGroupVariableResult( string variableType) { + Description = description; EnvironmentScope = environmentScope; Group = group; Id = id; diff --git a/sdk/dotnet/GetProject.cs b/sdk/dotnet/GetProject.cs index 083477ff..355fca76 100644 --- a/sdk/dotnet/GetProject.cs +++ b/sdk/dotnet/GetProject.cs @@ -186,6 +186,10 @@ public sealed class GetProjectResult /// public readonly int CiDefaultGitDepth; /// + /// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + /// + public readonly string CiRestrictPipelineCancellationRole; + /// /// Use separate caches for protected branches. /// public readonly bool CiSeparatedCaches; @@ -426,6 +430,8 @@ private GetProjectResult( int ciDefaultGitDepth, + string ciRestrictPipelineCancellationRole, + bool ciSeparatedCaches, ImmutableArray containerExpirationPolicies, @@ -545,6 +551,7 @@ private GetProjectResult( BuildsAccessLevel = buildsAccessLevel; CiConfigPath = ciConfigPath; CiDefaultGitDepth = ciDefaultGitDepth; + CiRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; CiSeparatedCaches = ciSeparatedCaches; ContainerExpirationPolicies = containerExpirationPolicies; ContainerRegistryAccessLevel = containerRegistryAccessLevel; diff --git a/sdk/dotnet/GetProjectVariable.cs b/sdk/dotnet/GetProjectVariable.cs index a979de0d..2fb1db76 100644 --- a/sdk/dotnet/GetProjectVariable.cs +++ b/sdk/dotnet/GetProjectVariable.cs @@ -145,6 +145,10 @@ public GetProjectVariableInvokeArgs() [OutputType] public sealed class GetProjectVariableResult { + /// + /// The description of the variable. + /// + public readonly string Description; /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -184,6 +188,8 @@ public sealed class GetProjectVariableResult [OutputConstructor] private GetProjectVariableResult( + string description, + string environmentScope, string id, @@ -202,6 +208,7 @@ private GetProjectVariableResult( string variableType) { + Description = description; EnvironmentScope = environmentScope; Id = id; Key = key; diff --git a/sdk/dotnet/GroupVariable.cs b/sdk/dotnet/GroupVariable.cs index 677c3ecb..2b3f2fd7 100644 --- a/sdk/dotnet/GroupVariable.cs +++ b/sdk/dotnet/GroupVariable.cs @@ -48,6 +48,12 @@ namespace Pulumi.GitLab [GitLabResourceType("gitlab:index/groupVariable:GroupVariable")] public partial class GroupVariable : global::Pulumi.CustomResource { + /// + /// The description of the variable. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -142,6 +148,12 @@ public static GroupVariable Get(string name, Input id, GroupVariableStat public sealed class GroupVariableArgs : global::Pulumi.ResourceArgs { + /// + /// The description of the variable. + /// + [Input("description")] + public Input? Description { get; set; } + /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -198,6 +210,12 @@ public GroupVariableArgs() public sealed class GroupVariableState : global::Pulumi.ResourceArgs { + /// + /// The description of the variable. + /// + [Input("description")] + public Input? Description { get; set; } + /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// diff --git a/sdk/dotnet/Outputs/GetGroupVariablesVariableResult.cs b/sdk/dotnet/Outputs/GetGroupVariablesVariableResult.cs index 071a8fca..34b6ef85 100644 --- a/sdk/dotnet/Outputs/GetGroupVariablesVariableResult.cs +++ b/sdk/dotnet/Outputs/GetGroupVariablesVariableResult.cs @@ -13,6 +13,10 @@ namespace Pulumi.GitLab.Outputs [OutputType] public sealed class GetGroupVariablesVariableResult { + /// + /// The description of the variable. + /// + public readonly string Description; /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -48,6 +52,8 @@ public sealed class GetGroupVariablesVariableResult [OutputConstructor] private GetGroupVariablesVariableResult( + string description, + string environmentScope, string group, @@ -64,6 +70,7 @@ private GetGroupVariablesVariableResult( string variableType) { + Description = description; EnvironmentScope = environmentScope; Group = group; Key = key; diff --git a/sdk/dotnet/Outputs/GetProjectVariablesVariableResult.cs b/sdk/dotnet/Outputs/GetProjectVariablesVariableResult.cs index 6c98dc36..370d621c 100644 --- a/sdk/dotnet/Outputs/GetProjectVariablesVariableResult.cs +++ b/sdk/dotnet/Outputs/GetProjectVariablesVariableResult.cs @@ -13,6 +13,10 @@ namespace Pulumi.GitLab.Outputs [OutputType] public sealed class GetProjectVariablesVariableResult { + /// + /// The description of the variable. + /// + public readonly string Description; /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -48,6 +52,8 @@ public sealed class GetProjectVariablesVariableResult [OutputConstructor] private GetProjectVariablesVariableResult( + string description, + string environmentScope, string key, @@ -64,6 +70,7 @@ private GetProjectVariablesVariableResult( string variableType) { + Description = description; EnvironmentScope = environmentScope; Key = key; Masked = masked; diff --git a/sdk/dotnet/Outputs/GetProjectsProjectResult.cs b/sdk/dotnet/Outputs/GetProjectsProjectResult.cs index 9c3957bc..79b4c401 100644 --- a/sdk/dotnet/Outputs/GetProjectsProjectResult.cs +++ b/sdk/dotnet/Outputs/GetProjectsProjectResult.cs @@ -82,6 +82,10 @@ public sealed class GetProjectsProjectResult /// public readonly bool CiForwardDeploymentEnabled; /// + /// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + /// + public readonly string CiRestrictPipelineCancellationRole; + /// /// Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. /// public readonly ImmutableArray ContainerExpirationPolicies; @@ -431,6 +435,8 @@ private GetProjectsProjectResult( bool ciForwardDeploymentEnabled, + string ciRestrictPipelineCancellationRole, + ImmutableArray containerExpirationPolicies, string containerRegistryAccessLevel, @@ -606,6 +612,7 @@ private GetProjectsProjectResult( CiConfigPath = ciConfigPath; CiDefaultGitDepth = ciDefaultGitDepth; CiForwardDeploymentEnabled = ciForwardDeploymentEnabled; + CiRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; ContainerExpirationPolicies = containerExpirationPolicies; ContainerRegistryAccessLevel = containerRegistryAccessLevel; ContainerRegistryEnabled = containerRegistryEnabled; diff --git a/sdk/dotnet/Project.cs b/sdk/dotnet/Project.cs index e5934dbb..efefab79 100644 --- a/sdk/dotnet/Project.cs +++ b/sdk/dotnet/Project.cs @@ -242,6 +242,12 @@ public partial class Project : global::Pulumi.CustomResource [Output("ciForwardDeploymentEnabled")] public Output CiForwardDeploymentEnabled { get; private set; } = null!; + /// + /// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + /// + [Output("ciRestrictPipelineCancellationRole")] + public Output CiRestrictPipelineCancellationRole { get; private set; } = null!; + /// /// Use separate caches for protected branches. /// @@ -882,6 +888,12 @@ public sealed class ProjectArgs : global::Pulumi.ResourceArgs [Input("ciForwardDeploymentEnabled")] public Input? CiForwardDeploymentEnabled { get; set; } + /// + /// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + /// + [Input("ciRestrictPipelineCancellationRole")] + public Input? CiRestrictPipelineCancellationRole { get; set; } + /// /// Use separate caches for protected branches. /// @@ -1471,6 +1483,12 @@ public sealed class ProjectState : global::Pulumi.ResourceArgs [Input("ciForwardDeploymentEnabled")] public Input? CiForwardDeploymentEnabled { get; set; } + /// + /// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + /// + [Input("ciRestrictPipelineCancellationRole")] + public Input? CiRestrictPipelineCancellationRole { get; set; } + /// /// Use separate caches for protected branches. /// diff --git a/sdk/dotnet/ProjectVariable.cs b/sdk/dotnet/ProjectVariable.cs index 1fc63136..325a4518 100644 --- a/sdk/dotnet/ProjectVariable.cs +++ b/sdk/dotnet/ProjectVariable.cs @@ -48,6 +48,12 @@ namespace Pulumi.GitLab [GitLabResourceType("gitlab:index/projectVariable:ProjectVariable")] public partial class ProjectVariable : global::Pulumi.CustomResource { + /// + /// The description of the variable. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -142,6 +148,12 @@ public static ProjectVariable Get(string name, Input id, ProjectVariable public sealed class ProjectVariableArgs : global::Pulumi.ResourceArgs { + /// + /// The description of the variable. + /// + [Input("description")] + public Input? Description { get; set; } + /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// @@ -198,6 +210,12 @@ public ProjectVariableArgs() public sealed class ProjectVariableState : global::Pulumi.ResourceArgs { + /// + /// The description of the variable. + /// + [Input("description")] + public Input? Description { get; set; } + /// /// The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. /// diff --git a/sdk/go/gitlab/applicationSettings.go b/sdk/go/gitlab/applicationSettings.go index 4eb4263b..d4930c54 100644 --- a/sdk/go/gitlab/applicationSettings.go +++ b/sdk/go/gitlab/applicationSettings.go @@ -175,11 +175,11 @@ type ApplicationSettings struct { // Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. ElasticsearchMaxBulkSizeMb pulumi.IntOutput `pulumi:"elasticsearchMaxBulkSizeMb"` // The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchNamespaceIds pulumi.StringArrayOutput `pulumi:"elasticsearchNamespaceIds"` + ElasticsearchNamespaceIds pulumi.IntArrayOutput `pulumi:"elasticsearchNamespaceIds"` // The password of your Elasticsearch instance. ElasticsearchPassword pulumi.StringOutput `pulumi:"elasticsearchPassword"` // The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchProjectIds pulumi.StringArrayOutput `pulumi:"elasticsearchProjectIds"` + ElasticsearchProjectIds pulumi.IntArrayOutput `pulumi:"elasticsearchProjectIds"` // Enable Elasticsearch search. ElasticsearchSearch pulumi.BoolOutput `pulumi:"elasticsearchSearch"` // The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). @@ -760,11 +760,11 @@ type applicationSettingsState struct { // Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. ElasticsearchMaxBulkSizeMb *int `pulumi:"elasticsearchMaxBulkSizeMb"` // The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchNamespaceIds []string `pulumi:"elasticsearchNamespaceIds"` + ElasticsearchNamespaceIds []int `pulumi:"elasticsearchNamespaceIds"` // The password of your Elasticsearch instance. ElasticsearchPassword *string `pulumi:"elasticsearchPassword"` // The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchProjectIds []string `pulumi:"elasticsearchProjectIds"` + ElasticsearchProjectIds []int `pulumi:"elasticsearchProjectIds"` // Enable Elasticsearch search. ElasticsearchSearch *bool `pulumi:"elasticsearchSearch"` // The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). @@ -1253,11 +1253,11 @@ type ApplicationSettingsState struct { // Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. ElasticsearchMaxBulkSizeMb pulumi.IntPtrInput // The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchNamespaceIds pulumi.StringArrayInput + ElasticsearchNamespaceIds pulumi.IntArrayInput // The password of your Elasticsearch instance. ElasticsearchPassword pulumi.StringPtrInput // The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchProjectIds pulumi.StringArrayInput + ElasticsearchProjectIds pulumi.IntArrayInput // Enable Elasticsearch search. ElasticsearchSearch pulumi.BoolPtrInput // The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). @@ -1750,11 +1750,11 @@ type applicationSettingsArgs struct { // Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. ElasticsearchMaxBulkSizeMb *int `pulumi:"elasticsearchMaxBulkSizeMb"` // The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchNamespaceIds []string `pulumi:"elasticsearchNamespaceIds"` + ElasticsearchNamespaceIds []int `pulumi:"elasticsearchNamespaceIds"` // The password of your Elasticsearch instance. ElasticsearchPassword *string `pulumi:"elasticsearchPassword"` // The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchProjectIds []string `pulumi:"elasticsearchProjectIds"` + ElasticsearchProjectIds []int `pulumi:"elasticsearchProjectIds"` // Enable Elasticsearch search. ElasticsearchSearch *bool `pulumi:"elasticsearchSearch"` // The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). @@ -2244,11 +2244,11 @@ type ApplicationSettingsArgs struct { // Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. ElasticsearchMaxBulkSizeMb pulumi.IntPtrInput // The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchNamespaceIds pulumi.StringArrayInput + ElasticsearchNamespaceIds pulumi.IntArrayInput // The password of your Elasticsearch instance. ElasticsearchPassword pulumi.StringPtrInput // The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. - ElasticsearchProjectIds pulumi.StringArrayInput + ElasticsearchProjectIds pulumi.IntArrayInput // Enable Elasticsearch search. ElasticsearchSearch pulumi.BoolPtrInput // The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). @@ -3028,8 +3028,8 @@ func (o ApplicationSettingsOutput) ElasticsearchMaxBulkSizeMb() pulumi.IntOutput } // The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. -func (o ApplicationSettingsOutput) ElasticsearchNamespaceIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ApplicationSettings) pulumi.StringArrayOutput { return v.ElasticsearchNamespaceIds }).(pulumi.StringArrayOutput) +func (o ApplicationSettingsOutput) ElasticsearchNamespaceIds() pulumi.IntArrayOutput { + return o.ApplyT(func(v *ApplicationSettings) pulumi.IntArrayOutput { return v.ElasticsearchNamespaceIds }).(pulumi.IntArrayOutput) } // The password of your Elasticsearch instance. @@ -3038,8 +3038,8 @@ func (o ApplicationSettingsOutput) ElasticsearchPassword() pulumi.StringOutput { } // The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. -func (o ApplicationSettingsOutput) ElasticsearchProjectIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ApplicationSettings) pulumi.StringArrayOutput { return v.ElasticsearchProjectIds }).(pulumi.StringArrayOutput) +func (o ApplicationSettingsOutput) ElasticsearchProjectIds() pulumi.IntArrayOutput { + return o.ApplyT(func(v *ApplicationSettings) pulumi.IntArrayOutput { return v.ElasticsearchProjectIds }).(pulumi.IntArrayOutput) } // Enable Elasticsearch search. diff --git a/sdk/go/gitlab/getGroupVariable.go b/sdk/go/gitlab/getGroupVariable.go index 884f9662..bd318904 100644 --- a/sdk/go/gitlab/getGroupVariable.go +++ b/sdk/go/gitlab/getGroupVariable.go @@ -71,6 +71,8 @@ type LookupGroupVariableArgs struct { // A collection of values returned by getGroupVariable. type LookupGroupVariableResult struct { + // The description of the variable. + Description string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope string `pulumi:"environmentScope"` // The name or id of the group. @@ -133,6 +135,11 @@ func (o LookupGroupVariableResultOutput) ToLookupGroupVariableResultOutputWithCo return o } +// The description of the variable. +func (o LookupGroupVariableResultOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v LookupGroupVariableResult) string { return v.Description }).(pulumi.StringOutput) +} + // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. func (o LookupGroupVariableResultOutput) EnvironmentScope() pulumi.StringOutput { return o.ApplyT(func(v LookupGroupVariableResult) string { return v.EnvironmentScope }).(pulumi.StringOutput) diff --git a/sdk/go/gitlab/getProject.go b/sdk/go/gitlab/getProject.go index 7def2b4e..ce843efa 100644 --- a/sdk/go/gitlab/getProject.go +++ b/sdk/go/gitlab/getProject.go @@ -86,6 +86,8 @@ type LookupProjectResult struct { CiConfigPath string `pulumi:"ciConfigPath"` // Default number of revisions for shallow cloning. CiDefaultGitDepth int `pulumi:"ciDefaultGitDepth"` + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole string `pulumi:"ciRestrictPipelineCancellationRole"` // Use separate caches for protected branches. CiSeparatedCaches bool `pulumi:"ciSeparatedCaches"` // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. @@ -295,6 +297,11 @@ func (o LookupProjectResultOutput) CiDefaultGitDepth() pulumi.IntOutput { return o.ApplyT(func(v LookupProjectResult) int { return v.CiDefaultGitDepth }).(pulumi.IntOutput) } +// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` +func (o LookupProjectResultOutput) CiRestrictPipelineCancellationRole() pulumi.StringOutput { + return o.ApplyT(func(v LookupProjectResult) string { return v.CiRestrictPipelineCancellationRole }).(pulumi.StringOutput) +} + // Use separate caches for protected branches. func (o LookupProjectResultOutput) CiSeparatedCaches() pulumi.BoolOutput { return o.ApplyT(func(v LookupProjectResult) bool { return v.CiSeparatedCaches }).(pulumi.BoolOutput) diff --git a/sdk/go/gitlab/getProjectVariable.go b/sdk/go/gitlab/getProjectVariable.go index f7fc93cd..e373d9d4 100644 --- a/sdk/go/gitlab/getProjectVariable.go +++ b/sdk/go/gitlab/getProjectVariable.go @@ -71,6 +71,8 @@ type LookupProjectVariableArgs struct { // A collection of values returned by getProjectVariable. type LookupProjectVariableResult struct { + // The description of the variable. + Description string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope string `pulumi:"environmentScope"` // The provider-assigned unique ID for this managed resource. @@ -133,6 +135,11 @@ func (o LookupProjectVariableResultOutput) ToLookupProjectVariableResultOutputWi return o } +// The description of the variable. +func (o LookupProjectVariableResultOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v LookupProjectVariableResult) string { return v.Description }).(pulumi.StringOutput) +} + // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. func (o LookupProjectVariableResultOutput) EnvironmentScope() pulumi.StringOutput { return o.ApplyT(func(v LookupProjectVariableResult) string { return v.EnvironmentScope }).(pulumi.StringOutput) diff --git a/sdk/go/gitlab/groupVariable.go b/sdk/go/gitlab/groupVariable.go index f922c174..9b62f3e1 100644 --- a/sdk/go/gitlab/groupVariable.go +++ b/sdk/go/gitlab/groupVariable.go @@ -57,6 +57,8 @@ import ( type GroupVariable struct { pulumi.CustomResourceState + // The description of the variable. + Description pulumi.StringPtrOutput `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringPtrOutput `pulumi:"environmentScope"` // The name or id of the group. @@ -114,6 +116,8 @@ func GetGroupVariable(ctx *pulumi.Context, // Input properties used for looking up and filtering GroupVariable resources. type groupVariableState struct { + // The description of the variable. + Description *string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope *string `pulumi:"environmentScope"` // The name or id of the group. @@ -133,6 +137,8 @@ type groupVariableState struct { } type GroupVariableState struct { + // The description of the variable. + Description pulumi.StringPtrInput // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringPtrInput // The name or id of the group. @@ -156,6 +162,8 @@ func (GroupVariableState) ElementType() reflect.Type { } type groupVariableArgs struct { + // The description of the variable. + Description *string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope *string `pulumi:"environmentScope"` // The name or id of the group. @@ -176,6 +184,8 @@ type groupVariableArgs struct { // The set of arguments for constructing a GroupVariable resource. type GroupVariableArgs struct { + // The description of the variable. + Description pulumi.StringPtrInput // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringPtrInput // The name or id of the group. @@ -281,6 +291,11 @@ func (o GroupVariableOutput) ToGroupVariableOutputWithContext(ctx context.Contex return o } +// The description of the variable. +func (o GroupVariableOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GroupVariable) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. func (o GroupVariableOutput) EnvironmentScope() pulumi.StringPtrOutput { return o.ApplyT(func(v *GroupVariable) pulumi.StringPtrOutput { return v.EnvironmentScope }).(pulumi.StringPtrOutput) diff --git a/sdk/go/gitlab/project.go b/sdk/go/gitlab/project.go index 81af0f4f..f69920e5 100644 --- a/sdk/go/gitlab/project.go +++ b/sdk/go/gitlab/project.go @@ -177,6 +177,8 @@ type Project struct { CiDefaultGitDepth pulumi.IntOutput `pulumi:"ciDefaultGitDepth"` // When a new deployment job starts, skip older deployment jobs that are still pending. CiForwardDeploymentEnabled pulumi.BoolOutput `pulumi:"ciForwardDeploymentEnabled"` + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole pulumi.StringOutput `pulumi:"ciRestrictPipelineCancellationRole"` // Use separate caches for protected branches. CiSeparatedCaches pulumi.BoolOutput `pulumi:"ciSeparatedCaches"` // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. @@ -428,6 +430,8 @@ type projectState struct { CiDefaultGitDepth *int `pulumi:"ciDefaultGitDepth"` // When a new deployment job starts, skip older deployment jobs that are still pending. CiForwardDeploymentEnabled *bool `pulumi:"ciForwardDeploymentEnabled"` + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole *string `pulumi:"ciRestrictPipelineCancellationRole"` // Use separate caches for protected branches. CiSeparatedCaches *bool `pulumi:"ciSeparatedCaches"` // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. @@ -642,6 +646,8 @@ type ProjectState struct { CiDefaultGitDepth pulumi.IntPtrInput // When a new deployment job starts, skip older deployment jobs that are still pending. CiForwardDeploymentEnabled pulumi.BoolPtrInput + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole pulumi.StringPtrInput // Use separate caches for protected branches. CiSeparatedCaches pulumi.BoolPtrInput // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. @@ -858,6 +864,8 @@ type projectArgs struct { CiDefaultGitDepth *int `pulumi:"ciDefaultGitDepth"` // When a new deployment job starts, skip older deployment jobs that are still pending. CiForwardDeploymentEnabled *bool `pulumi:"ciForwardDeploymentEnabled"` + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole *string `pulumi:"ciRestrictPipelineCancellationRole"` // Use separate caches for protected branches. CiSeparatedCaches *bool `pulumi:"ciSeparatedCaches"` // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. @@ -1059,6 +1067,8 @@ type ProjectArgs struct { CiDefaultGitDepth pulumi.IntPtrInput // When a new deployment job starts, skip older deployment jobs that are still pending. CiForwardDeploymentEnabled pulumi.BoolPtrInput + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole pulumi.StringPtrInput // Use separate caches for protected branches. CiSeparatedCaches pulumi.BoolPtrInput // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. @@ -1404,6 +1414,11 @@ func (o ProjectOutput) CiForwardDeploymentEnabled() pulumi.BoolOutput { return o.ApplyT(func(v *Project) pulumi.BoolOutput { return v.CiForwardDeploymentEnabled }).(pulumi.BoolOutput) } +// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` +func (o ProjectOutput) CiRestrictPipelineCancellationRole() pulumi.StringOutput { + return o.ApplyT(func(v *Project) pulumi.StringOutput { return v.CiRestrictPipelineCancellationRole }).(pulumi.StringOutput) +} + // Use separate caches for protected branches. func (o ProjectOutput) CiSeparatedCaches() pulumi.BoolOutput { return o.ApplyT(func(v *Project) pulumi.BoolOutput { return v.CiSeparatedCaches }).(pulumi.BoolOutput) diff --git a/sdk/go/gitlab/projectVariable.go b/sdk/go/gitlab/projectVariable.go index 9a0e0f09..6fd8f8e9 100644 --- a/sdk/go/gitlab/projectVariable.go +++ b/sdk/go/gitlab/projectVariable.go @@ -57,6 +57,8 @@ import ( type ProjectVariable struct { pulumi.CustomResourceState + // The description of the variable. + Description pulumi.StringPtrOutput `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringPtrOutput `pulumi:"environmentScope"` // The name of the variable. @@ -114,6 +116,8 @@ func GetProjectVariable(ctx *pulumi.Context, // Input properties used for looking up and filtering ProjectVariable resources. type projectVariableState struct { + // The description of the variable. + Description *string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope *string `pulumi:"environmentScope"` // The name of the variable. @@ -133,6 +137,8 @@ type projectVariableState struct { } type ProjectVariableState struct { + // The description of the variable. + Description pulumi.StringPtrInput // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringPtrInput // The name of the variable. @@ -156,6 +162,8 @@ func (ProjectVariableState) ElementType() reflect.Type { } type projectVariableArgs struct { + // The description of the variable. + Description *string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope *string `pulumi:"environmentScope"` // The name of the variable. @@ -176,6 +184,8 @@ type projectVariableArgs struct { // The set of arguments for constructing a ProjectVariable resource. type ProjectVariableArgs struct { + // The description of the variable. + Description pulumi.StringPtrInput // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringPtrInput // The name of the variable. @@ -281,6 +291,11 @@ func (o ProjectVariableOutput) ToProjectVariableOutputWithContext(ctx context.Co return o } +// The description of the variable. +func (o ProjectVariableOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ProjectVariable) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. func (o ProjectVariableOutput) EnvironmentScope() pulumi.StringPtrOutput { return o.ApplyT(func(v *ProjectVariable) pulumi.StringPtrOutput { return v.EnvironmentScope }).(pulumi.StringPtrOutput) diff --git a/sdk/go/gitlab/pulumiTypes.go b/sdk/go/gitlab/pulumiTypes.go index 50cdd9ec..4060219f 100644 --- a/sdk/go/gitlab/pulumiTypes.go +++ b/sdk/go/gitlab/pulumiTypes.go @@ -4081,6 +4081,8 @@ func (o GetGroupSubgroupsSubgroupArrayOutput) Index(i pulumi.IntInput) GetGroupS } type GetGroupVariablesVariable struct { + // The description of the variable. + Description string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope string `pulumi:"environmentScope"` // The name or id of the group. @@ -4111,6 +4113,8 @@ type GetGroupVariablesVariableInput interface { } type GetGroupVariablesVariableArgs struct { + // The description of the variable. + Description pulumi.StringInput `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringInput `pulumi:"environmentScope"` // The name or id of the group. @@ -4180,6 +4184,11 @@ func (o GetGroupVariablesVariableOutput) ToGetGroupVariablesVariableOutputWithCo return o } +// The description of the variable. +func (o GetGroupVariablesVariableOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v GetGroupVariablesVariable) string { return v.Description }).(pulumi.StringOutput) +} + // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. func (o GetGroupVariablesVariableOutput) EnvironmentScope() pulumi.StringOutput { return o.ApplyT(func(v GetGroupVariablesVariable) string { return v.EnvironmentScope }).(pulumi.StringOutput) @@ -8464,6 +8473,8 @@ func (o GetProjectTagsTagReleaseArrayOutput) Index(i pulumi.IntInput) GetProject } type GetProjectVariablesVariable struct { + // The description of the variable. + Description string `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope string `pulumi:"environmentScope"` // The name of the variable. @@ -8494,6 +8505,8 @@ type GetProjectVariablesVariableInput interface { } type GetProjectVariablesVariableArgs struct { + // The description of the variable. + Description pulumi.StringInput `pulumi:"description"` // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. EnvironmentScope pulumi.StringInput `pulumi:"environmentScope"` // The name of the variable. @@ -8563,6 +8576,11 @@ func (o GetProjectVariablesVariableOutput) ToGetProjectVariablesVariableOutputWi return o } +// The description of the variable. +func (o GetProjectVariablesVariableOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectVariablesVariable) string { return v.Description }).(pulumi.StringOutput) +} + // The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. func (o GetProjectVariablesVariableOutput) EnvironmentScope() pulumi.StringOutput { return o.ApplyT(func(v GetProjectVariablesVariable) string { return v.EnvironmentScope }).(pulumi.StringOutput) @@ -8658,6 +8676,8 @@ type GetProjectsProject struct { CiDefaultGitDepth int `pulumi:"ciDefaultGitDepth"` // When a new deployment job starts, skip older deployment jobs that are still pending. CiForwardDeploymentEnabled bool `pulumi:"ciForwardDeploymentEnabled"` + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole string `pulumi:"ciRestrictPipelineCancellationRole"` // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. ContainerExpirationPolicies []GetProjectsProjectContainerExpirationPolicy `pulumi:"containerExpirationPolicies"` // Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`. @@ -8863,6 +8883,8 @@ type GetProjectsProjectArgs struct { CiDefaultGitDepth pulumi.IntInput `pulumi:"ciDefaultGitDepth"` // When a new deployment job starts, skip older deployment jobs that are still pending. CiForwardDeploymentEnabled pulumi.BoolInput `pulumi:"ciForwardDeploymentEnabled"` + // The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + CiRestrictPipelineCancellationRole pulumi.StringInput `pulumi:"ciRestrictPipelineCancellationRole"` // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. ContainerExpirationPolicies GetProjectsProjectContainerExpirationPolicyArrayInput `pulumi:"containerExpirationPolicies"` // Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`. @@ -9158,6 +9180,11 @@ func (o GetProjectsProjectOutput) CiForwardDeploymentEnabled() pulumi.BoolOutput return o.ApplyT(func(v GetProjectsProject) bool { return v.CiForwardDeploymentEnabled }).(pulumi.BoolOutput) } +// The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` +func (o GetProjectsProjectOutput) CiRestrictPipelineCancellationRole() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProject) string { return v.CiRestrictPipelineCancellationRole }).(pulumi.StringOutput) +} + // Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. func (o GetProjectsProjectOutput) ContainerExpirationPolicies() GetProjectsProjectContainerExpirationPolicyArrayOutput { return o.ApplyT(func(v GetProjectsProject) []GetProjectsProjectContainerExpirationPolicy { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettings.java b/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettings.java index 0a688d55..4e240904 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettings.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettings.java @@ -995,14 +995,14 @@ public Output elasticsearchMaxBulkSizeMb() { * The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - @Export(name="elasticsearchNamespaceIds", refs={List.class,String.class}, tree="[0,1]") - private Output> elasticsearchNamespaceIds; + @Export(name="elasticsearchNamespaceIds", refs={List.class,Integer.class}, tree="[0,1]") + private Output> elasticsearchNamespaceIds; /** * @return The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - public Output> elasticsearchNamespaceIds() { + public Output> elasticsearchNamespaceIds() { return this.elasticsearchNamespaceIds; } /** @@ -1023,14 +1023,14 @@ public Output elasticsearchPassword() { * The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - @Export(name="elasticsearchProjectIds", refs={List.class,String.class}, tree="[0,1]") - private Output> elasticsearchProjectIds; + @Export(name="elasticsearchProjectIds", refs={List.class,Integer.class}, tree="[0,1]") + private Output> elasticsearchProjectIds; /** * @return The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - public Output> elasticsearchProjectIds() { + public Output> elasticsearchProjectIds() { return this.elasticsearchProjectIds; } /** diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettingsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettingsArgs.java index 63be359e..996da699 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettingsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationSettingsArgs.java @@ -1030,13 +1030,13 @@ public Optional> elasticsearchMaxBulkSizeMb() { * */ @Import(name="elasticsearchNamespaceIds") - private @Nullable Output> elasticsearchNamespaceIds; + private @Nullable Output> elasticsearchNamespaceIds; /** * @return The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - public Optional>> elasticsearchNamespaceIds() { + public Optional>> elasticsearchNamespaceIds() { return Optional.ofNullable(this.elasticsearchNamespaceIds); } @@ -1060,13 +1060,13 @@ public Optional> elasticsearchPassword() { * */ @Import(name="elasticsearchProjectIds") - private @Nullable Output> elasticsearchProjectIds; + private @Nullable Output> elasticsearchProjectIds; /** * @return The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - public Optional>> elasticsearchProjectIds() { + public Optional>> elasticsearchProjectIds() { return Optional.ofNullable(this.elasticsearchProjectIds); } @@ -5380,7 +5380,7 @@ public Builder elasticsearchMaxBulkSizeMb(Integer elasticsearchMaxBulkSizeMb) { * @return builder * */ - public Builder elasticsearchNamespaceIds(@Nullable Output> elasticsearchNamespaceIds) { + public Builder elasticsearchNamespaceIds(@Nullable Output> elasticsearchNamespaceIds) { $.elasticsearchNamespaceIds = elasticsearchNamespaceIds; return this; } @@ -5391,7 +5391,7 @@ public Builder elasticsearchNamespaceIds(@Nullable Output> elastics * @return builder * */ - public Builder elasticsearchNamespaceIds(List elasticsearchNamespaceIds) { + public Builder elasticsearchNamespaceIds(List elasticsearchNamespaceIds) { return elasticsearchNamespaceIds(Output.of(elasticsearchNamespaceIds)); } @@ -5401,7 +5401,7 @@ public Builder elasticsearchNamespaceIds(List elasticsearchNamespaceIds) * @return builder * */ - public Builder elasticsearchNamespaceIds(String... elasticsearchNamespaceIds) { + public Builder elasticsearchNamespaceIds(Integer... elasticsearchNamespaceIds) { return elasticsearchNamespaceIds(List.of(elasticsearchNamespaceIds)); } @@ -5432,7 +5432,7 @@ public Builder elasticsearchPassword(String elasticsearchPassword) { * @return builder * */ - public Builder elasticsearchProjectIds(@Nullable Output> elasticsearchProjectIds) { + public Builder elasticsearchProjectIds(@Nullable Output> elasticsearchProjectIds) { $.elasticsearchProjectIds = elasticsearchProjectIds; return this; } @@ -5443,7 +5443,7 @@ public Builder elasticsearchProjectIds(@Nullable Output> elasticsea * @return builder * */ - public Builder elasticsearchProjectIds(List elasticsearchProjectIds) { + public Builder elasticsearchProjectIds(List elasticsearchProjectIds) { return elasticsearchProjectIds(Output.of(elasticsearchProjectIds)); } @@ -5453,7 +5453,7 @@ public Builder elasticsearchProjectIds(List elasticsearchProjectIds) { * @return builder * */ - public Builder elasticsearchProjectIds(String... elasticsearchProjectIds) { + public Builder elasticsearchProjectIds(Integer... elasticsearchProjectIds) { return elasticsearchProjectIds(List.of(elasticsearchProjectIds)); } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariable.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariable.java index 16a96919..632f8c67 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariable.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariable.java @@ -66,6 +66,20 @@ */ @ResourceType(type="gitlab:index/groupVariable:GroupVariable") public class GroupVariable extends com.pulumi.resources.CustomResource { + /** + * The description of the variable. + * + */ + @Export(name="description", refs={String.class}, tree="[0]") + private Output description; + + /** + * @return The description of the variable. + * + */ + public Output> description() { + return Codegen.optional(this.description); + } /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java index 119c44c4..eeb5058c 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java @@ -17,6 +17,21 @@ public final class GroupVariableArgs extends com.pulumi.resources.ResourceArgs { public static final GroupVariableArgs Empty = new GroupVariableArgs(); + /** + * The description of the variable. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return The description of the variable. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -140,6 +155,7 @@ public Optional> variableType() { private GroupVariableArgs() {} private GroupVariableArgs(GroupVariableArgs $) { + this.description = $.description; this.environmentScope = $.environmentScope; this.group = $.group; this.key = $.key; @@ -168,6 +184,27 @@ public Builder(GroupVariableArgs defaults) { $ = new GroupVariableArgs(Objects.requireNonNull(defaults)); } + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + /** * @param environmentScope The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/Project.java b/sdk/java/src/main/java/com/pulumi/gitlab/Project.java index 3f8087a3..78ce2c6a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/Project.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/Project.java @@ -405,6 +405,20 @@ public Output ciDefaultGitDepth() { public Output ciForwardDeploymentEnabled() { return this.ciForwardDeploymentEnabled; } + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + @Export(name="ciRestrictPipelineCancellationRole", refs={String.class}, tree="[0]") + private Output ciRestrictPipelineCancellationRole; + + /** + * @return The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + public Output ciRestrictPipelineCancellationRole() { + return this.ciRestrictPipelineCancellationRole; + } /** * Use separate caches for protected branches. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectArgs.java index f5ca2e85..0403009d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectArgs.java @@ -304,6 +304,21 @@ public Optional> ciForwardDeploymentEnabled() { return Optional.ofNullable(this.ciForwardDeploymentEnabled); } + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + @Import(name="ciRestrictPipelineCancellationRole") + private @Nullable Output ciRestrictPipelineCancellationRole; + + /** + * @return The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + public Optional> ciRestrictPipelineCancellationRole() { + return Optional.ofNullable(this.ciRestrictPipelineCancellationRole); + } + /** * Use separate caches for protected branches. * @@ -1452,6 +1467,7 @@ private ProjectArgs(ProjectArgs $) { this.ciConfigPath = $.ciConfigPath; this.ciDefaultGitDepth = $.ciDefaultGitDepth; this.ciForwardDeploymentEnabled = $.ciForwardDeploymentEnabled; + this.ciRestrictPipelineCancellationRole = $.ciRestrictPipelineCancellationRole; this.ciSeparatedCaches = $.ciSeparatedCaches; this.containerExpirationPolicy = $.containerExpirationPolicy; this.containerRegistryAccessLevel = $.containerRegistryAccessLevel; @@ -1937,6 +1953,27 @@ public Builder ciForwardDeploymentEnabled(Boolean ciForwardDeploymentEnabled) { return ciForwardDeploymentEnabled(Output.of(ciForwardDeploymentEnabled)); } + /** + * @param ciRestrictPipelineCancellationRole The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + * @return builder + * + */ + public Builder ciRestrictPipelineCancellationRole(@Nullable Output ciRestrictPipelineCancellationRole) { + $.ciRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; + return this; + } + + /** + * @param ciRestrictPipelineCancellationRole The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + * @return builder + * + */ + public Builder ciRestrictPipelineCancellationRole(String ciRestrictPipelineCancellationRole) { + return ciRestrictPipelineCancellationRole(Output.of(ciRestrictPipelineCancellationRole)); + } + /** * @param ciSeparatedCaches Use separate caches for protected branches. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariable.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariable.java index 528de2e9..e8d5ed0e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariable.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariable.java @@ -66,6 +66,20 @@ */ @ResourceType(type="gitlab:index/projectVariable:ProjectVariable") public class ProjectVariable extends com.pulumi.resources.CustomResource { + /** + * The description of the variable. + * + */ + @Export(name="description", refs={String.class}, tree="[0]") + private Output description; + + /** + * @return The description of the variable. + * + */ + public Output> description() { + return Codegen.optional(this.description); + } /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java index 981118b9..fac81821 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java @@ -17,6 +17,21 @@ public final class ProjectVariableArgs extends com.pulumi.resources.ResourceArgs public static final ProjectVariableArgs Empty = new ProjectVariableArgs(); + /** + * The description of the variable. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return The description of the variable. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -140,6 +155,7 @@ public Optional> variableType() { private ProjectVariableArgs() {} private ProjectVariableArgs(ProjectVariableArgs $) { + this.description = $.description; this.environmentScope = $.environmentScope; this.key = $.key; this.masked = $.masked; @@ -168,6 +184,27 @@ public Builder(ProjectVariableArgs defaults) { $ = new ProjectVariableArgs(Objects.requireNonNull(defaults)); } + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + /** * @param environmentScope The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ApplicationSettingsState.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ApplicationSettingsState.java index 74e83250..6a90b7a5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ApplicationSettingsState.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ApplicationSettingsState.java @@ -1030,13 +1030,13 @@ public Optional> elasticsearchMaxBulkSizeMb() { * */ @Import(name="elasticsearchNamespaceIds") - private @Nullable Output> elasticsearchNamespaceIds; + private @Nullable Output> elasticsearchNamespaceIds; /** * @return The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - public Optional>> elasticsearchNamespaceIds() { + public Optional>> elasticsearchNamespaceIds() { return Optional.ofNullable(this.elasticsearchNamespaceIds); } @@ -1060,13 +1060,13 @@ public Optional> elasticsearchPassword() { * */ @Import(name="elasticsearchProjectIds") - private @Nullable Output> elasticsearchProjectIds; + private @Nullable Output> elasticsearchProjectIds; /** * @return The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. * */ - public Optional>> elasticsearchProjectIds() { + public Optional>> elasticsearchProjectIds() { return Optional.ofNullable(this.elasticsearchProjectIds); } @@ -5380,7 +5380,7 @@ public Builder elasticsearchMaxBulkSizeMb(Integer elasticsearchMaxBulkSizeMb) { * @return builder * */ - public Builder elasticsearchNamespaceIds(@Nullable Output> elasticsearchNamespaceIds) { + public Builder elasticsearchNamespaceIds(@Nullable Output> elasticsearchNamespaceIds) { $.elasticsearchNamespaceIds = elasticsearchNamespaceIds; return this; } @@ -5391,7 +5391,7 @@ public Builder elasticsearchNamespaceIds(@Nullable Output> elastics * @return builder * */ - public Builder elasticsearchNamespaceIds(List elasticsearchNamespaceIds) { + public Builder elasticsearchNamespaceIds(List elasticsearchNamespaceIds) { return elasticsearchNamespaceIds(Output.of(elasticsearchNamespaceIds)); } @@ -5401,7 +5401,7 @@ public Builder elasticsearchNamespaceIds(List elasticsearchNamespaceIds) * @return builder * */ - public Builder elasticsearchNamespaceIds(String... elasticsearchNamespaceIds) { + public Builder elasticsearchNamespaceIds(Integer... elasticsearchNamespaceIds) { return elasticsearchNamespaceIds(List.of(elasticsearchNamespaceIds)); } @@ -5432,7 +5432,7 @@ public Builder elasticsearchPassword(String elasticsearchPassword) { * @return builder * */ - public Builder elasticsearchProjectIds(@Nullable Output> elasticsearchProjectIds) { + public Builder elasticsearchProjectIds(@Nullable Output> elasticsearchProjectIds) { $.elasticsearchProjectIds = elasticsearchProjectIds; return this; } @@ -5443,7 +5443,7 @@ public Builder elasticsearchProjectIds(@Nullable Output> elasticsea * @return builder * */ - public Builder elasticsearchProjectIds(List elasticsearchProjectIds) { + public Builder elasticsearchProjectIds(List elasticsearchProjectIds) { return elasticsearchProjectIds(Output.of(elasticsearchProjectIds)); } @@ -5453,7 +5453,7 @@ public Builder elasticsearchProjectIds(List elasticsearchProjectIds) { * @return builder * */ - public Builder elasticsearchProjectIds(String... elasticsearchProjectIds) { + public Builder elasticsearchProjectIds(Integer... elasticsearchProjectIds) { return elasticsearchProjectIds(List.of(elasticsearchProjectIds)); } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GroupVariableState.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GroupVariableState.java index 9e16aa4a..e5372224 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GroupVariableState.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GroupVariableState.java @@ -16,6 +16,21 @@ public final class GroupVariableState extends com.pulumi.resources.ResourceArgs public static final GroupVariableState Empty = new GroupVariableState(); + /** + * The description of the variable. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return The description of the variable. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -139,6 +154,7 @@ public Optional> variableType() { private GroupVariableState() {} private GroupVariableState(GroupVariableState $) { + this.description = $.description; this.environmentScope = $.environmentScope; this.group = $.group; this.key = $.key; @@ -167,6 +183,27 @@ public Builder(GroupVariableState defaults) { $ = new GroupVariableState(Objects.requireNonNull(defaults)); } + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + /** * @param environmentScope The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectState.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectState.java index c68d513a..a7cbf961 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectState.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectState.java @@ -319,6 +319,21 @@ public Optional> ciForwardDeploymentEnabled() { return Optional.ofNullable(this.ciForwardDeploymentEnabled); } + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + @Import(name="ciRestrictPipelineCancellationRole") + private @Nullable Output ciRestrictPipelineCancellationRole; + + /** + * @return The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + public Optional> ciRestrictPipelineCancellationRole() { + return Optional.ofNullable(this.ciRestrictPipelineCancellationRole); + } + /** * Use separate caches for protected branches. * @@ -1558,6 +1573,7 @@ private ProjectState(ProjectState $) { this.ciConfigPath = $.ciConfigPath; this.ciDefaultGitDepth = $.ciDefaultGitDepth; this.ciForwardDeploymentEnabled = $.ciForwardDeploymentEnabled; + this.ciRestrictPipelineCancellationRole = $.ciRestrictPipelineCancellationRole; this.ciSeparatedCaches = $.ciSeparatedCaches; this.containerExpirationPolicy = $.containerExpirationPolicy; this.containerRegistryAccessLevel = $.containerRegistryAccessLevel; @@ -2070,6 +2086,27 @@ public Builder ciForwardDeploymentEnabled(Boolean ciForwardDeploymentEnabled) { return ciForwardDeploymentEnabled(Output.of(ciForwardDeploymentEnabled)); } + /** + * @param ciRestrictPipelineCancellationRole The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + * @return builder + * + */ + public Builder ciRestrictPipelineCancellationRole(@Nullable Output ciRestrictPipelineCancellationRole) { + $.ciRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; + return this; + } + + /** + * @param ciRestrictPipelineCancellationRole The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + * @return builder + * + */ + public Builder ciRestrictPipelineCancellationRole(String ciRestrictPipelineCancellationRole) { + return ciRestrictPipelineCancellationRole(Output.of(ciRestrictPipelineCancellationRole)); + } + /** * @param ciSeparatedCaches Use separate caches for protected branches. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectVariableState.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectVariableState.java index 54392b53..ba129929 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectVariableState.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/ProjectVariableState.java @@ -16,6 +16,21 @@ public final class ProjectVariableState extends com.pulumi.resources.ResourceArg public static final ProjectVariableState Empty = new ProjectVariableState(); + /** + * The description of the variable. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return The description of the variable. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -139,6 +154,7 @@ public Optional> variableType() { private ProjectVariableState() {} private ProjectVariableState(ProjectVariableState $) { + this.description = $.description; this.environmentScope = $.environmentScope; this.key = $.key; this.masked = $.masked; @@ -167,6 +183,27 @@ public Builder(ProjectVariableState defaults) { $ = new ProjectVariableState(Objects.requireNonNull(defaults)); } + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description The description of the variable. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + /** * @param environmentScope The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java index ab655710..323b3e9a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java @@ -11,6 +11,11 @@ @CustomType public final class GetGroupVariableResult { + /** + * @return The description of the variable. + * + */ + private String description; /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -58,6 +63,13 @@ public final class GetGroupVariableResult { private String variableType; private GetGroupVariableResult() {} + /** + * @return The description of the variable. + * + */ + public String description() { + return this.description; + } /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -131,6 +143,7 @@ public static Builder builder(GetGroupVariableResult defaults) { } @CustomType.Builder public static final class Builder { + private String description; private String environmentScope; private String group; private String id; @@ -143,6 +156,7 @@ public static final class Builder { public Builder() {} public Builder(GetGroupVariableResult defaults) { Objects.requireNonNull(defaults); + this.description = defaults.description; this.environmentScope = defaults.environmentScope; this.group = defaults.group; this.id = defaults.id; @@ -154,6 +168,14 @@ public Builder(GetGroupVariableResult defaults) { this.variableType = defaults.variableType; } + @CustomType.Setter + public Builder description(String description) { + if (description == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "description"); + } + this.description = description; + return this; + } @CustomType.Setter public Builder environmentScope(String environmentScope) { if (environmentScope == null) { @@ -228,6 +250,7 @@ public Builder variableType(String variableType) { } public GetGroupVariableResult build() { final var _resultValue = new GetGroupVariableResult(); + _resultValue.description = description; _resultValue.environmentScope = environmentScope; _resultValue.group = group; _resultValue.id = id; diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java index af02f5ec..cb07202a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java @@ -11,6 +11,11 @@ @CustomType public final class GetGroupVariablesVariable { + /** + * @return The description of the variable. + * + */ + private String description; /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -53,6 +58,13 @@ public final class GetGroupVariablesVariable { private String variableType; private GetGroupVariablesVariable() {} + /** + * @return The description of the variable. + * + */ + public String description() { + return this.description; + } /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -119,6 +131,7 @@ public static Builder builder(GetGroupVariablesVariable defaults) { } @CustomType.Builder public static final class Builder { + private String description; private String environmentScope; private String group; private String key; @@ -130,6 +143,7 @@ public static final class Builder { public Builder() {} public Builder(GetGroupVariablesVariable defaults) { Objects.requireNonNull(defaults); + this.description = defaults.description; this.environmentScope = defaults.environmentScope; this.group = defaults.group; this.key = defaults.key; @@ -140,6 +154,14 @@ public Builder(GetGroupVariablesVariable defaults) { this.variableType = defaults.variableType; } + @CustomType.Setter + public Builder description(String description) { + if (description == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "description"); + } + this.description = description; + return this; + } @CustomType.Setter public Builder environmentScope(String environmentScope) { if (environmentScope == null) { @@ -206,6 +228,7 @@ public Builder variableType(String variableType) { } public GetGroupVariablesVariable build() { final var _resultValue = new GetGroupVariablesVariable(); + _resultValue.description = description; _resultValue.environmentScope = environmentScope; _resultValue.group = group; _resultValue.key = key; diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java index 1b220bd7..8605e391 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java @@ -73,6 +73,11 @@ public final class GetProjectResult { * */ private Integer ciDefaultGitDepth; + /** + * @return The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + private String ciRestrictPipelineCancellationRole; /** * @return Use separate caches for protected branches. * @@ -422,6 +427,13 @@ public String ciConfigPath() { public Integer ciDefaultGitDepth() { return this.ciDefaultGitDepth; } + /** + * @return The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + public String ciRestrictPipelineCancellationRole() { + return this.ciRestrictPipelineCancellationRole; + } /** * @return Use separate caches for protected branches. * @@ -821,6 +833,7 @@ public static final class Builder { private String buildsAccessLevel; private String ciConfigPath; private Integer ciDefaultGitDepth; + private String ciRestrictPipelineCancellationRole; private Boolean ciSeparatedCaches; private List containerExpirationPolicies; private String containerRegistryAccessLevel; @@ -889,6 +902,7 @@ public Builder(GetProjectResult defaults) { this.buildsAccessLevel = defaults.buildsAccessLevel; this.ciConfigPath = defaults.ciConfigPath; this.ciDefaultGitDepth = defaults.ciDefaultGitDepth; + this.ciRestrictPipelineCancellationRole = defaults.ciRestrictPipelineCancellationRole; this.ciSeparatedCaches = defaults.ciSeparatedCaches; this.containerExpirationPolicies = defaults.containerExpirationPolicies; this.containerRegistryAccessLevel = defaults.containerRegistryAccessLevel; @@ -1034,6 +1048,14 @@ public Builder ciDefaultGitDepth(Integer ciDefaultGitDepth) { return this; } @CustomType.Setter + public Builder ciRestrictPipelineCancellationRole(String ciRestrictPipelineCancellationRole) { + if (ciRestrictPipelineCancellationRole == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "ciRestrictPipelineCancellationRole"); + } + this.ciRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; + return this; + } + @CustomType.Setter public Builder ciSeparatedCaches(Boolean ciSeparatedCaches) { if (ciSeparatedCaches == null) { throw new MissingRequiredPropertyException("GetProjectResult", "ciSeparatedCaches"); @@ -1488,6 +1510,7 @@ public GetProjectResult build() { _resultValue.buildsAccessLevel = buildsAccessLevel; _resultValue.ciConfigPath = ciConfigPath; _resultValue.ciDefaultGitDepth = ciDefaultGitDepth; + _resultValue.ciRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; _resultValue.ciSeparatedCaches = ciSeparatedCaches; _resultValue.containerExpirationPolicies = containerExpirationPolicies; _resultValue.containerRegistryAccessLevel = containerRegistryAccessLevel; diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java index 80fdbfdd..b60d7f34 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java @@ -11,6 +11,11 @@ @CustomType public final class GetProjectVariableResult { + /** + * @return The description of the variable. + * + */ + private String description; /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -58,6 +63,13 @@ public final class GetProjectVariableResult { private String variableType; private GetProjectVariableResult() {} + /** + * @return The description of the variable. + * + */ + public String description() { + return this.description; + } /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -131,6 +143,7 @@ public static Builder builder(GetProjectVariableResult defaults) { } @CustomType.Builder public static final class Builder { + private String description; private String environmentScope; private String id; private String key; @@ -143,6 +156,7 @@ public static final class Builder { public Builder() {} public Builder(GetProjectVariableResult defaults) { Objects.requireNonNull(defaults); + this.description = defaults.description; this.environmentScope = defaults.environmentScope; this.id = defaults.id; this.key = defaults.key; @@ -154,6 +168,14 @@ public Builder(GetProjectVariableResult defaults) { this.variableType = defaults.variableType; } + @CustomType.Setter + public Builder description(String description) { + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "description"); + } + this.description = description; + return this; + } @CustomType.Setter public Builder environmentScope(String environmentScope) { if (environmentScope == null) { @@ -228,6 +250,7 @@ public Builder variableType(String variableType) { } public GetProjectVariableResult build() { final var _resultValue = new GetProjectVariableResult(); + _resultValue.description = description; _resultValue.environmentScope = environmentScope; _resultValue.id = id; _resultValue.key = key; diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java index b6378c9d..366d22fb 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java @@ -11,6 +11,11 @@ @CustomType public final class GetProjectVariablesVariable { + /** + * @return The description of the variable. + * + */ + private String description; /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -53,6 +58,13 @@ public final class GetProjectVariablesVariable { private String variableType; private GetProjectVariablesVariable() {} + /** + * @return The description of the variable. + * + */ + public String description() { + return this.description; + } /** * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. * @@ -119,6 +131,7 @@ public static Builder builder(GetProjectVariablesVariable defaults) { } @CustomType.Builder public static final class Builder { + private String description; private String environmentScope; private String key; private Boolean masked; @@ -130,6 +143,7 @@ public static final class Builder { public Builder() {} public Builder(GetProjectVariablesVariable defaults) { Objects.requireNonNull(defaults); + this.description = defaults.description; this.environmentScope = defaults.environmentScope; this.key = defaults.key; this.masked = defaults.masked; @@ -140,6 +154,14 @@ public Builder(GetProjectVariablesVariable defaults) { this.variableType = defaults.variableType; } + @CustomType.Setter + public Builder description(String description) { + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "description"); + } + this.description = description; + return this; + } @CustomType.Setter public Builder environmentScope(String environmentScope) { if (environmentScope == null) { @@ -206,6 +228,7 @@ public Builder variableType(String variableType) { } public GetProjectVariablesVariable build() { final var _resultValue = new GetProjectVariablesVariable(); + _resultValue.description = description; _resultValue.environmentScope = environmentScope; _resultValue.key = key; _resultValue.masked = masked; diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java index 91b562b8..b84b0714 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java @@ -105,6 +105,11 @@ public final class GetProjectsProject { * */ private Boolean ciForwardDeploymentEnabled; + /** + * @return The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + private String ciRestrictPipelineCancellationRole; /** * @return Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. * @@ -617,6 +622,13 @@ public Integer ciDefaultGitDepth() { public Boolean ciForwardDeploymentEnabled() { return this.ciForwardDeploymentEnabled; } + /** + * @return The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + * + */ + public String ciRestrictPipelineCancellationRole() { + return this.ciRestrictPipelineCancellationRole; + } /** * @return Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. * @@ -1193,6 +1205,7 @@ public static final class Builder { private String ciConfigPath; private Integer ciDefaultGitDepth; private Boolean ciForwardDeploymentEnabled; + private String ciRestrictPipelineCancellationRole; private List containerExpirationPolicies; private String containerRegistryAccessLevel; private Boolean containerRegistryEnabled; @@ -1292,6 +1305,7 @@ public Builder(GetProjectsProject defaults) { this.ciConfigPath = defaults.ciConfigPath; this.ciDefaultGitDepth = defaults.ciDefaultGitDepth; this.ciForwardDeploymentEnabled = defaults.ciForwardDeploymentEnabled; + this.ciRestrictPipelineCancellationRole = defaults.ciRestrictPipelineCancellationRole; this.containerExpirationPolicies = defaults.containerExpirationPolicies; this.containerRegistryAccessLevel = defaults.containerRegistryAccessLevel; this.containerRegistryEnabled = defaults.containerRegistryEnabled; @@ -1510,6 +1524,14 @@ public Builder ciForwardDeploymentEnabled(Boolean ciForwardDeploymentEnabled) { return this; } @CustomType.Setter + public Builder ciRestrictPipelineCancellationRole(String ciRestrictPipelineCancellationRole) { + if (ciRestrictPipelineCancellationRole == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "ciRestrictPipelineCancellationRole"); + } + this.ciRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; + return this; + } + @CustomType.Setter public Builder containerExpirationPolicies(List containerExpirationPolicies) { if (containerExpirationPolicies == null) { throw new MissingRequiredPropertyException("GetProjectsProject", "containerExpirationPolicies"); @@ -2184,6 +2206,7 @@ public GetProjectsProject build() { _resultValue.ciConfigPath = ciConfigPath; _resultValue.ciDefaultGitDepth = ciDefaultGitDepth; _resultValue.ciForwardDeploymentEnabled = ciForwardDeploymentEnabled; + _resultValue.ciRestrictPipelineCancellationRole = ciRestrictPipelineCancellationRole; _resultValue.containerExpirationPolicies = containerExpirationPolicies; _resultValue.containerRegistryAccessLevel = containerRegistryAccessLevel; _resultValue.containerRegistryEnabled = containerRegistryEnabled; diff --git a/sdk/nodejs/applicationSettings.ts b/sdk/nodejs/applicationSettings.ts index b0ebca0f..77624307 100644 --- a/sdk/nodejs/applicationSettings.ts +++ b/sdk/nodejs/applicationSettings.ts @@ -317,7 +317,7 @@ export class ApplicationSettings extends pulumi.CustomResource { /** * The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. */ - public readonly elasticsearchNamespaceIds!: pulumi.Output; + public readonly elasticsearchNamespaceIds!: pulumi.Output; /** * The password of your Elasticsearch instance. */ @@ -325,7 +325,7 @@ export class ApplicationSettings extends pulumi.CustomResource { /** * The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. */ - public readonly elasticsearchProjectIds!: pulumi.Output; + public readonly elasticsearchProjectIds!: pulumi.Output; /** * Enable Elasticsearch search. */ @@ -1799,7 +1799,7 @@ export interface ApplicationSettingsState { /** * The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. */ - elasticsearchNamespaceIds?: pulumi.Input[]>; + elasticsearchNamespaceIds?: pulumi.Input[]>; /** * The password of your Elasticsearch instance. */ @@ -1807,7 +1807,7 @@ export interface ApplicationSettingsState { /** * The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. */ - elasticsearchProjectIds?: pulumi.Input[]>; + elasticsearchProjectIds?: pulumi.Input[]>; /** * Enable Elasticsearch search. */ @@ -2777,7 +2777,7 @@ export interface ApplicationSettingsArgs { /** * The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. */ - elasticsearchNamespaceIds?: pulumi.Input[]>; + elasticsearchNamespaceIds?: pulumi.Input[]>; /** * The password of your Elasticsearch instance. */ @@ -2785,7 +2785,7 @@ export interface ApplicationSettingsArgs { /** * The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. */ - elasticsearchProjectIds?: pulumi.Input[]>; + elasticsearchProjectIds?: pulumi.Input[]>; /** * Enable Elasticsearch search. */ diff --git a/sdk/nodejs/getGroupVariable.ts b/sdk/nodejs/getGroupVariable.ts index 70c7e967..12c9f465 100644 --- a/sdk/nodejs/getGroupVariable.ts +++ b/sdk/nodejs/getGroupVariable.ts @@ -58,6 +58,10 @@ export interface GetGroupVariableArgs { * A collection of values returned by getGroupVariable. */ export interface GetGroupVariableResult { + /** + * The description of the variable. + */ + readonly description: string; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ diff --git a/sdk/nodejs/getProject.ts b/sdk/nodejs/getProject.ts index a3720f8a..cd304998 100644 --- a/sdk/nodejs/getProject.ts +++ b/sdk/nodejs/getProject.ts @@ -104,6 +104,10 @@ export interface GetProjectResult { * Default number of revisions for shallow cloning. */ readonly ciDefaultGitDepth: number; + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + */ + readonly ciRestrictPipelineCancellationRole: string; /** * Use separate caches for protected branches. */ diff --git a/sdk/nodejs/getProjectVariable.ts b/sdk/nodejs/getProjectVariable.ts index eaa0e941..39ab8718 100644 --- a/sdk/nodejs/getProjectVariable.ts +++ b/sdk/nodejs/getProjectVariable.ts @@ -58,6 +58,10 @@ export interface GetProjectVariableArgs { * A collection of values returned by getProjectVariable. */ export interface GetProjectVariableResult { + /** + * The description of the variable. + */ + readonly description: string; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ diff --git a/sdk/nodejs/groupVariable.ts b/sdk/nodejs/groupVariable.ts index 8e2ce8dc..89f6a7fb 100644 --- a/sdk/nodejs/groupVariable.ts +++ b/sdk/nodejs/groupVariable.ts @@ -61,6 +61,10 @@ export class GroupVariable extends pulumi.CustomResource { return obj['__pulumiType'] === GroupVariable.__pulumiType; } + /** + * The description of the variable. + */ + public readonly description!: pulumi.Output; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ @@ -107,6 +111,7 @@ export class GroupVariable extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as GroupVariableState | undefined; + resourceInputs["description"] = state ? state.description : undefined; resourceInputs["environmentScope"] = state ? state.environmentScope : undefined; resourceInputs["group"] = state ? state.group : undefined; resourceInputs["key"] = state ? state.key : undefined; @@ -126,6 +131,7 @@ export class GroupVariable extends pulumi.CustomResource { if ((!args || args.value === undefined) && !opts.urn) { throw new Error("Missing required property 'value'"); } + resourceInputs["description"] = args ? args.description : undefined; resourceInputs["environmentScope"] = args ? args.environmentScope : undefined; resourceInputs["group"] = args ? args.group : undefined; resourceInputs["key"] = args ? args.key : undefined; @@ -144,6 +150,10 @@ export class GroupVariable extends pulumi.CustomResource { * Input properties used for looking up and filtering GroupVariable resources. */ export interface GroupVariableState { + /** + * The description of the variable. + */ + description?: pulumi.Input; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ @@ -182,6 +192,10 @@ export interface GroupVariableState { * The set of arguments for constructing a GroupVariable resource. */ export interface GroupVariableArgs { + /** + * The description of the variable. + */ + description?: pulumi.Input; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ diff --git a/sdk/nodejs/project.ts b/sdk/nodejs/project.ts index 60768f53..1c8dbefc 100644 --- a/sdk/nodejs/project.ts +++ b/sdk/nodejs/project.ts @@ -194,6 +194,10 @@ export class Project extends pulumi.CustomResource { * When a new deployment job starts, skip older deployment jobs that are still pending. */ public readonly ciForwardDeploymentEnabled!: pulumi.Output; + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + */ + public readonly ciRestrictPipelineCancellationRole!: pulumi.Output; /** * Use separate caches for protected branches. */ @@ -553,6 +557,7 @@ export class Project extends pulumi.CustomResource { resourceInputs["ciConfigPath"] = state ? state.ciConfigPath : undefined; resourceInputs["ciDefaultGitDepth"] = state ? state.ciDefaultGitDepth : undefined; resourceInputs["ciForwardDeploymentEnabled"] = state ? state.ciForwardDeploymentEnabled : undefined; + resourceInputs["ciRestrictPipelineCancellationRole"] = state ? state.ciRestrictPipelineCancellationRole : undefined; resourceInputs["ciSeparatedCaches"] = state ? state.ciSeparatedCaches : undefined; resourceInputs["containerExpirationPolicy"] = state ? state.containerExpirationPolicy : undefined; resourceInputs["containerRegistryAccessLevel"] = state ? state.containerRegistryAccessLevel : undefined; @@ -652,6 +657,7 @@ export class Project extends pulumi.CustomResource { resourceInputs["ciConfigPath"] = args ? args.ciConfigPath : undefined; resourceInputs["ciDefaultGitDepth"] = args ? args.ciDefaultGitDepth : undefined; resourceInputs["ciForwardDeploymentEnabled"] = args ? args.ciForwardDeploymentEnabled : undefined; + resourceInputs["ciRestrictPipelineCancellationRole"] = args ? args.ciRestrictPipelineCancellationRole : undefined; resourceInputs["ciSeparatedCaches"] = args ? args.ciSeparatedCaches : undefined; resourceInputs["containerExpirationPolicy"] = args ? args.containerExpirationPolicy : undefined; resourceInputs["containerRegistryAccessLevel"] = args ? args.containerRegistryAccessLevel : undefined; @@ -825,6 +831,10 @@ export interface ProjectState { * When a new deployment job starts, skip older deployment jobs that are still pending. */ ciForwardDeploymentEnabled?: pulumi.Input; + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + */ + ciRestrictPipelineCancellationRole?: pulumi.Input; /** * Use separate caches for protected branches. */ @@ -1234,6 +1244,10 @@ export interface ProjectArgs { * When a new deployment job starts, skip older deployment jobs that are still pending. */ ciForwardDeploymentEnabled?: pulumi.Input; + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + */ + ciRestrictPipelineCancellationRole?: pulumi.Input; /** * Use separate caches for protected branches. */ diff --git a/sdk/nodejs/projectVariable.ts b/sdk/nodejs/projectVariable.ts index 597762c3..78f4cabb 100644 --- a/sdk/nodejs/projectVariable.ts +++ b/sdk/nodejs/projectVariable.ts @@ -61,6 +61,10 @@ export class ProjectVariable extends pulumi.CustomResource { return obj['__pulumiType'] === ProjectVariable.__pulumiType; } + /** + * The description of the variable. + */ + public readonly description!: pulumi.Output; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ @@ -107,6 +111,7 @@ export class ProjectVariable extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ProjectVariableState | undefined; + resourceInputs["description"] = state ? state.description : undefined; resourceInputs["environmentScope"] = state ? state.environmentScope : undefined; resourceInputs["key"] = state ? state.key : undefined; resourceInputs["masked"] = state ? state.masked : undefined; @@ -126,6 +131,7 @@ export class ProjectVariable extends pulumi.CustomResource { if ((!args || args.value === undefined) && !opts.urn) { throw new Error("Missing required property 'value'"); } + resourceInputs["description"] = args ? args.description : undefined; resourceInputs["environmentScope"] = args ? args.environmentScope : undefined; resourceInputs["key"] = args ? args.key : undefined; resourceInputs["masked"] = args ? args.masked : undefined; @@ -144,6 +150,10 @@ export class ProjectVariable extends pulumi.CustomResource { * Input properties used for looking up and filtering ProjectVariable resources. */ export interface ProjectVariableState { + /** + * The description of the variable. + */ + description?: pulumi.Input; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ @@ -182,6 +192,10 @@ export interface ProjectVariableState { * The set of arguments for constructing a ProjectVariable resource. */ export interface ProjectVariableArgs { + /** + * The description of the variable. + */ + description?: pulumi.Input; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 597d9a29..d1a60c79 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -351,6 +351,10 @@ export interface GetGroupSubgroupsSubgroup { } export interface GetGroupVariablesVariable { + /** + * The description of the variable. + */ + description: string; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ @@ -1338,6 +1342,10 @@ export interface GetProjectTagsTagRelease { } export interface GetProjectVariablesVariable { + /** + * The description of the variable. + */ + description: string; /** * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. */ @@ -1441,6 +1449,10 @@ export interface GetProjectsProject { * When a new deployment job starts, skip older deployment jobs that are still pending. */ ciForwardDeploymentEnabled: boolean; + /** + * The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + */ + ciRestrictPipelineCancellationRole: string; /** * Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API. */ diff --git a/sdk/python/pulumi_gitlab/application_settings.py b/sdk/python/pulumi_gitlab/application_settings.py index 2e88903f..1659e01a 100644 --- a/sdk/python/pulumi_gitlab/application_settings.py +++ b/sdk/python/pulumi_gitlab/application_settings.py @@ -81,9 +81,9 @@ def __init__(__self__, *, elasticsearch_limit_indexing: Optional[pulumi.Input[bool]] = None, elasticsearch_max_bulk_concurrency: Optional[pulumi.Input[int]] = None, elasticsearch_max_bulk_size_mb: Optional[pulumi.Input[int]] = None, - elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_password: Optional[pulumi.Input[str]] = None, - elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_search: Optional[pulumi.Input[bool]] = None, elasticsearch_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, elasticsearch_username: Optional[pulumi.Input[str]] = None, @@ -324,9 +324,9 @@ def __init__(__self__, *, :param pulumi.Input[bool] elasticsearch_limit_indexing: Limit Elasticsearch to index certain namespaces and projects. :param pulumi.Input[int] elasticsearch_max_bulk_concurrency: Maximum concurrency of Elasticsearch bulk requests per indexing operation. This only applies to repository indexing operations. :param pulumi.Input[int] elasticsearch_max_bulk_size_mb: Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[str] elasticsearch_password: The password of your Elasticsearch instance. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[bool] elasticsearch_search: Enable Elasticsearch search. :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_urls: The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). :param pulumi.Input[str] elasticsearch_username: The username of your Elasticsearch instance. @@ -1799,14 +1799,14 @@ def elasticsearch_max_bulk_size_mb(self, value: Optional[pulumi.Input[int]]): @property @pulumi.getter(name="elasticsearchNamespaceIds") - def elasticsearch_namespace_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def elasticsearch_namespace_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]: """ The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. """ return pulumi.get(self, "elasticsearch_namespace_ids") @elasticsearch_namespace_ids.setter - def elasticsearch_namespace_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def elasticsearch_namespace_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]): pulumi.set(self, "elasticsearch_namespace_ids", value) @property @@ -1823,14 +1823,14 @@ def elasticsearch_password(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="elasticsearchProjectIds") - def elasticsearch_project_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def elasticsearch_project_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]: """ The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. """ return pulumi.get(self, "elasticsearch_project_ids") @elasticsearch_project_ids.setter - def elasticsearch_project_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def elasticsearch_project_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]): pulumi.set(self, "elasticsearch_project_ids", value) @property @@ -3967,9 +3967,9 @@ def __init__(__self__, *, elasticsearch_limit_indexing: Optional[pulumi.Input[bool]] = None, elasticsearch_max_bulk_concurrency: Optional[pulumi.Input[int]] = None, elasticsearch_max_bulk_size_mb: Optional[pulumi.Input[int]] = None, - elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_password: Optional[pulumi.Input[str]] = None, - elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_search: Optional[pulumi.Input[bool]] = None, elasticsearch_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, elasticsearch_username: Optional[pulumi.Input[str]] = None, @@ -4210,9 +4210,9 @@ def __init__(__self__, *, :param pulumi.Input[bool] elasticsearch_limit_indexing: Limit Elasticsearch to index certain namespaces and projects. :param pulumi.Input[int] elasticsearch_max_bulk_concurrency: Maximum concurrency of Elasticsearch bulk requests per indexing operation. This only applies to repository indexing operations. :param pulumi.Input[int] elasticsearch_max_bulk_size_mb: Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[str] elasticsearch_password: The password of your Elasticsearch instance. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[bool] elasticsearch_search: Enable Elasticsearch search. :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_urls: The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). :param pulumi.Input[str] elasticsearch_username: The username of your Elasticsearch instance. @@ -5685,14 +5685,14 @@ def elasticsearch_max_bulk_size_mb(self, value: Optional[pulumi.Input[int]]): @property @pulumi.getter(name="elasticsearchNamespaceIds") - def elasticsearch_namespace_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def elasticsearch_namespace_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]: """ The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. """ return pulumi.get(self, "elasticsearch_namespace_ids") @elasticsearch_namespace_ids.setter - def elasticsearch_namespace_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def elasticsearch_namespace_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]): pulumi.set(self, "elasticsearch_namespace_ids", value) @property @@ -5709,14 +5709,14 @@ def elasticsearch_password(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="elasticsearchProjectIds") - def elasticsearch_project_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def elasticsearch_project_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]: """ The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. """ return pulumi.get(self, "elasticsearch_project_ids") @elasticsearch_project_ids.setter - def elasticsearch_project_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def elasticsearch_project_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]): pulumi.set(self, "elasticsearch_project_ids", value) @property @@ -7855,9 +7855,9 @@ def __init__(__self__, elasticsearch_limit_indexing: Optional[pulumi.Input[bool]] = None, elasticsearch_max_bulk_concurrency: Optional[pulumi.Input[int]] = None, elasticsearch_max_bulk_size_mb: Optional[pulumi.Input[int]] = None, - elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_password: Optional[pulumi.Input[str]] = None, - elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_search: Optional[pulumi.Input[bool]] = None, elasticsearch_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, elasticsearch_username: Optional[pulumi.Input[str]] = None, @@ -8112,9 +8112,9 @@ def __init__(__self__, :param pulumi.Input[bool] elasticsearch_limit_indexing: Limit Elasticsearch to index certain namespaces and projects. :param pulumi.Input[int] elasticsearch_max_bulk_concurrency: Maximum concurrency of Elasticsearch bulk requests per indexing operation. This only applies to repository indexing operations. :param pulumi.Input[int] elasticsearch_max_bulk_size_mb: Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[str] elasticsearch_password: The password of your Elasticsearch instance. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[bool] elasticsearch_search: Enable Elasticsearch search. :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_urls: The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). :param pulumi.Input[str] elasticsearch_username: The username of your Elasticsearch instance. @@ -8390,9 +8390,9 @@ def _internal_init(__self__, elasticsearch_limit_indexing: Optional[pulumi.Input[bool]] = None, elasticsearch_max_bulk_concurrency: Optional[pulumi.Input[int]] = None, elasticsearch_max_bulk_size_mb: Optional[pulumi.Input[int]] = None, - elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_password: Optional[pulumi.Input[str]] = None, - elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_search: Optional[pulumi.Input[bool]] = None, elasticsearch_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, elasticsearch_username: Optional[pulumi.Input[str]] = None, @@ -8893,9 +8893,9 @@ def get(resource_name: str, elasticsearch_limit_indexing: Optional[pulumi.Input[bool]] = None, elasticsearch_max_bulk_concurrency: Optional[pulumi.Input[int]] = None, elasticsearch_max_bulk_size_mb: Optional[pulumi.Input[int]] = None, - elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_namespace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_password: Optional[pulumi.Input[str]] = None, - elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + elasticsearch_project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, elasticsearch_search: Optional[pulumi.Input[bool]] = None, elasticsearch_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, elasticsearch_username: Optional[pulumi.Input[str]] = None, @@ -9141,9 +9141,9 @@ def get(resource_name: str, :param pulumi.Input[bool] elasticsearch_limit_indexing: Limit Elasticsearch to index certain namespaces and projects. :param pulumi.Input[int] elasticsearch_max_bulk_concurrency: Maximum concurrency of Elasticsearch bulk requests per indexing operation. This only applies to repository indexing operations. :param pulumi.Input[int] elasticsearch_max_bulk_size_mb: Maximum size of Elasticsearch bulk indexing requests in MB. This only applies to repository indexing operations. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_namespace_ids: The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[str] elasticsearch_password: The password of your Elasticsearch instance. - :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. + :param pulumi.Input[Sequence[pulumi.Input[int]]] elasticsearch_project_ids: The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. :param pulumi.Input[bool] elasticsearch_search: Enable Elasticsearch search. :param pulumi.Input[Sequence[pulumi.Input[str]]] elasticsearch_urls: The URL to use for connecting to Elasticsearch. Use a comma-separated list to support cluster (for example, http://localhost:9200, http://localhost:9201). :param pulumi.Input[str] elasticsearch_username: The username of your Elasticsearch instance. @@ -10103,7 +10103,7 @@ def elasticsearch_max_bulk_size_mb(self) -> pulumi.Output[int]: @property @pulumi.getter(name="elasticsearchNamespaceIds") - def elasticsearch_namespace_ids(self) -> pulumi.Output[Sequence[str]]: + def elasticsearch_namespace_ids(self) -> pulumi.Output[Sequence[int]]: """ The namespaces to index via Elasticsearch if elasticsearch*limit*indexing is enabled. """ @@ -10119,7 +10119,7 @@ def elasticsearch_password(self) -> pulumi.Output[str]: @property @pulumi.getter(name="elasticsearchProjectIds") - def elasticsearch_project_ids(self) -> pulumi.Output[Sequence[str]]: + def elasticsearch_project_ids(self) -> pulumi.Output[Sequence[int]]: """ The projects to index via Elasticsearch if elasticsearch*limit*indexing is enabled. """ diff --git a/sdk/python/pulumi_gitlab/get_group_variable.py b/sdk/python/pulumi_gitlab/get_group_variable.py index 39f1b507..a1a47ed1 100644 --- a/sdk/python/pulumi_gitlab/get_group_variable.py +++ b/sdk/python/pulumi_gitlab/get_group_variable.py @@ -21,7 +21,10 @@ class GetGroupVariableResult: """ A collection of values returned by getGroupVariable. """ - def __init__(__self__, environment_scope=None, group=None, id=None, key=None, masked=None, protected=None, raw=None, value=None, variable_type=None): + def __init__(__self__, description=None, environment_scope=None, group=None, id=None, key=None, masked=None, protected=None, raw=None, value=None, variable_type=None): + if description and not isinstance(description, str): + raise TypeError("Expected argument 'description' to be a str") + pulumi.set(__self__, "description", description) if environment_scope and not isinstance(environment_scope, str): raise TypeError("Expected argument 'environment_scope' to be a str") pulumi.set(__self__, "environment_scope", environment_scope) @@ -50,6 +53,14 @@ def __init__(__self__, environment_scope=None, group=None, id=None, key=None, ma raise TypeError("Expected argument 'variable_type' to be a str") pulumi.set(__self__, "variable_type", variable_type) + @property + @pulumi.getter + def description(self) -> str: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> str: @@ -129,6 +140,7 @@ def __await__(self): if False: yield self return GetGroupVariableResult( + description=self.description, environment_scope=self.environment_scope, group=self.group, id=self.id, @@ -175,6 +187,7 @@ def get_group_variable(environment_scope: Optional[str] = None, __ret__ = pulumi.runtime.invoke('gitlab:index/getGroupVariable:getGroupVariable', __args__, opts=opts, typ=GetGroupVariableResult).value return AwaitableGetGroupVariableResult( + description=pulumi.get(__ret__, 'description'), environment_scope=pulumi.get(__ret__, 'environment_scope'), group=pulumi.get(__ret__, 'group'), id=pulumi.get(__ret__, 'id'), diff --git a/sdk/python/pulumi_gitlab/get_project.py b/sdk/python/pulumi_gitlab/get_project.py index 77073e54..17eab2fb 100644 --- a/sdk/python/pulumi_gitlab/get_project.py +++ b/sdk/python/pulumi_gitlab/get_project.py @@ -22,7 +22,7 @@ class GetProjectResult: """ A collection of values returned by getProject. """ - def __init__(__self__, analytics_access_level=None, archived=None, auto_cancel_pending_pipelines=None, auto_devops_deploy_strategy=None, auto_devops_enabled=None, autoclose_referenced_issues=None, build_git_strategy=None, build_timeout=None, builds_access_level=None, ci_config_path=None, ci_default_git_depth=None, ci_separated_caches=None, container_expiration_policies=None, container_registry_access_level=None, default_branch=None, description=None, emails_disabled=None, empty_repo=None, environments_access_level=None, external_authorization_classification_label=None, feature_flags_access_level=None, forking_access_level=None, http_url_to_repo=None, id=None, import_url=None, infrastructure_access_level=None, issues_access_level=None, issues_enabled=None, keep_latest_artifact=None, lfs_enabled=None, merge_commit_template=None, merge_pipelines_enabled=None, merge_requests_access_level=None, merge_requests_enabled=None, merge_trains_enabled=None, monitor_access_level=None, name=None, namespace_id=None, path=None, path_with_namespace=None, pipelines_enabled=None, printing_merge_request_link_enabled=None, public_builds=None, push_rules=None, releases_access_level=None, remove_source_branch_after_merge=None, repository_access_level=None, repository_storage=None, request_access_enabled=None, requirements_access_level=None, resolve_outdated_diff_discussions=None, restrict_user_defined_variables=None, runners_token=None, security_and_compliance_access_level=None, shared_with_groups=None, snippets_access_level=None, snippets_enabled=None, squash_commit_template=None, ssh_url_to_repo=None, suggestion_commit_message=None, topics=None, visibility_level=None, web_url=None, wiki_access_level=None, wiki_enabled=None): + def __init__(__self__, analytics_access_level=None, archived=None, auto_cancel_pending_pipelines=None, auto_devops_deploy_strategy=None, auto_devops_enabled=None, autoclose_referenced_issues=None, build_git_strategy=None, build_timeout=None, builds_access_level=None, ci_config_path=None, ci_default_git_depth=None, ci_restrict_pipeline_cancellation_role=None, ci_separated_caches=None, container_expiration_policies=None, container_registry_access_level=None, default_branch=None, description=None, emails_disabled=None, empty_repo=None, environments_access_level=None, external_authorization_classification_label=None, feature_flags_access_level=None, forking_access_level=None, http_url_to_repo=None, id=None, import_url=None, infrastructure_access_level=None, issues_access_level=None, issues_enabled=None, keep_latest_artifact=None, lfs_enabled=None, merge_commit_template=None, merge_pipelines_enabled=None, merge_requests_access_level=None, merge_requests_enabled=None, merge_trains_enabled=None, monitor_access_level=None, name=None, namespace_id=None, path=None, path_with_namespace=None, pipelines_enabled=None, printing_merge_request_link_enabled=None, public_builds=None, push_rules=None, releases_access_level=None, remove_source_branch_after_merge=None, repository_access_level=None, repository_storage=None, request_access_enabled=None, requirements_access_level=None, resolve_outdated_diff_discussions=None, restrict_user_defined_variables=None, runners_token=None, security_and_compliance_access_level=None, shared_with_groups=None, snippets_access_level=None, snippets_enabled=None, squash_commit_template=None, ssh_url_to_repo=None, suggestion_commit_message=None, topics=None, visibility_level=None, web_url=None, wiki_access_level=None, wiki_enabled=None): if analytics_access_level and not isinstance(analytics_access_level, str): raise TypeError("Expected argument 'analytics_access_level' to be a str") pulumi.set(__self__, "analytics_access_level", analytics_access_level) @@ -56,6 +56,9 @@ def __init__(__self__, analytics_access_level=None, archived=None, auto_cancel_p if ci_default_git_depth and not isinstance(ci_default_git_depth, int): raise TypeError("Expected argument 'ci_default_git_depth' to be a int") pulumi.set(__self__, "ci_default_git_depth", ci_default_git_depth) + if ci_restrict_pipeline_cancellation_role and not isinstance(ci_restrict_pipeline_cancellation_role, str): + raise TypeError("Expected argument 'ci_restrict_pipeline_cancellation_role' to be a str") + pulumi.set(__self__, "ci_restrict_pipeline_cancellation_role", ci_restrict_pipeline_cancellation_role) if ci_separated_caches and not isinstance(ci_separated_caches, bool): raise TypeError("Expected argument 'ci_separated_caches' to be a bool") pulumi.set(__self__, "ci_separated_caches", ci_separated_caches) @@ -307,6 +310,14 @@ def ci_default_git_depth(self) -> int: """ return pulumi.get(self, "ci_default_git_depth") + @property + @pulumi.getter(name="ciRestrictPipelineCancellationRole") + def ci_restrict_pipeline_cancellation_role(self) -> str: + """ + The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + """ + return pulumi.get(self, "ci_restrict_pipeline_cancellation_role") + @property @pulumi.getter(name="ciSeparatedCaches") def ci_separated_caches(self) -> bool: @@ -757,6 +768,7 @@ def __await__(self): builds_access_level=self.builds_access_level, ci_config_path=self.ci_config_path, ci_default_git_depth=self.ci_default_git_depth, + ci_restrict_pipeline_cancellation_role=self.ci_restrict_pipeline_cancellation_role, ci_separated_caches=self.ci_separated_caches, container_expiration_policies=self.container_expiration_policies, container_registry_access_level=self.container_registry_access_level, @@ -858,6 +870,7 @@ def get_project(ci_default_git_depth: Optional[int] = None, builds_access_level=pulumi.get(__ret__, 'builds_access_level'), ci_config_path=pulumi.get(__ret__, 'ci_config_path'), ci_default_git_depth=pulumi.get(__ret__, 'ci_default_git_depth'), + ci_restrict_pipeline_cancellation_role=pulumi.get(__ret__, 'ci_restrict_pipeline_cancellation_role'), ci_separated_caches=pulumi.get(__ret__, 'ci_separated_caches'), container_expiration_policies=pulumi.get(__ret__, 'container_expiration_policies'), container_registry_access_level=pulumi.get(__ret__, 'container_registry_access_level'), diff --git a/sdk/python/pulumi_gitlab/get_project_variable.py b/sdk/python/pulumi_gitlab/get_project_variable.py index 479b954f..d6ca0500 100644 --- a/sdk/python/pulumi_gitlab/get_project_variable.py +++ b/sdk/python/pulumi_gitlab/get_project_variable.py @@ -21,7 +21,10 @@ class GetProjectVariableResult: """ A collection of values returned by getProjectVariable. """ - def __init__(__self__, environment_scope=None, id=None, key=None, masked=None, project=None, protected=None, raw=None, value=None, variable_type=None): + def __init__(__self__, description=None, environment_scope=None, id=None, key=None, masked=None, project=None, protected=None, raw=None, value=None, variable_type=None): + if description and not isinstance(description, str): + raise TypeError("Expected argument 'description' to be a str") + pulumi.set(__self__, "description", description) if environment_scope and not isinstance(environment_scope, str): raise TypeError("Expected argument 'environment_scope' to be a str") pulumi.set(__self__, "environment_scope", environment_scope) @@ -50,6 +53,14 @@ def __init__(__self__, environment_scope=None, id=None, key=None, masked=None, p raise TypeError("Expected argument 'variable_type' to be a str") pulumi.set(__self__, "variable_type", variable_type) + @property + @pulumi.getter + def description(self) -> str: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> str: @@ -129,6 +140,7 @@ def __await__(self): if False: yield self return GetProjectVariableResult( + description=self.description, environment_scope=self.environment_scope, id=self.id, key=self.key, @@ -175,6 +187,7 @@ def get_project_variable(environment_scope: Optional[str] = None, __ret__ = pulumi.runtime.invoke('gitlab:index/getProjectVariable:getProjectVariable', __args__, opts=opts, typ=GetProjectVariableResult).value return AwaitableGetProjectVariableResult( + description=pulumi.get(__ret__, 'description'), environment_scope=pulumi.get(__ret__, 'environment_scope'), id=pulumi.get(__ret__, 'id'), key=pulumi.get(__ret__, 'key'), diff --git a/sdk/python/pulumi_gitlab/group_variable.py b/sdk/python/pulumi_gitlab/group_variable.py index 6a81d264..459d1cde 100644 --- a/sdk/python/pulumi_gitlab/group_variable.py +++ b/sdk/python/pulumi_gitlab/group_variable.py @@ -17,6 +17,7 @@ def __init__(__self__, *, group: pulumi.Input[str], key: pulumi.Input[str], value: pulumi.Input[str], + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, protected: Optional[pulumi.Input[bool]] = None, @@ -27,6 +28,7 @@ def __init__(__self__, *, :param pulumi.Input[str] group: The name or id of the group. :param pulumi.Input[str] key: The name of the variable. :param pulumi.Input[str] value: The value of the variable. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[bool] masked: If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`. :param pulumi.Input[bool] protected: If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`. @@ -36,6 +38,8 @@ def __init__(__self__, *, pulumi.set(__self__, "group", group) pulumi.set(__self__, "key", key) pulumi.set(__self__, "value", value) + if description is not None: + pulumi.set(__self__, "description", description) if environment_scope is not None: pulumi.set(__self__, "environment_scope", environment_scope) if masked is not None: @@ -83,6 +87,18 @@ def value(self) -> pulumi.Input[str]: def value(self, value: pulumi.Input[str]): pulumi.set(self, "value", value) + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> Optional[pulumi.Input[str]]: @@ -147,6 +163,7 @@ def variable_type(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class _GroupVariableState: def __init__(__self__, *, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, @@ -157,6 +174,7 @@ def __init__(__self__, *, variable_type: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering GroupVariable resources. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[str] group: The name or id of the group. :param pulumi.Input[str] key: The name of the variable. @@ -166,6 +184,8 @@ def __init__(__self__, *, :param pulumi.Input[str] value: The value of the variable. :param pulumi.Input[str] variable_type: The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`. """ + if description is not None: + pulumi.set(__self__, "description", description) if environment_scope is not None: pulumi.set(__self__, "environment_scope", environment_scope) if group is not None: @@ -183,6 +203,18 @@ def __init__(__self__, *, if variable_type is not None: pulumi.set(__self__, "variable_type", variable_type) + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> Optional[pulumi.Input[str]]: @@ -285,6 +317,7 @@ class GroupVariable(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, @@ -324,6 +357,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[str] group: The name or id of the group. :param pulumi.Input[str] key: The name of the variable. @@ -382,6 +416,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, @@ -399,6 +434,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = GroupVariableArgs.__new__(GroupVariableArgs) + __props__.__dict__["description"] = description __props__.__dict__["environment_scope"] = environment_scope if group is None and not opts.urn: raise TypeError("Missing required property 'group'") @@ -423,6 +459,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, @@ -438,6 +475,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[str] group: The name or id of the group. :param pulumi.Input[str] key: The name of the variable. @@ -451,6 +489,7 @@ def get(resource_name: str, __props__ = _GroupVariableState.__new__(_GroupVariableState) + __props__.__dict__["description"] = description __props__.__dict__["environment_scope"] = environment_scope __props__.__dict__["group"] = group __props__.__dict__["key"] = key @@ -461,6 +500,14 @@ def get(resource_name: str, __props__.__dict__["variable_type"] = variable_type return GroupVariable(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> pulumi.Output[Optional[str]]: diff --git a/sdk/python/pulumi_gitlab/outputs.py b/sdk/python/pulumi_gitlab/outputs.py index bc93dace..37082d9b 100644 --- a/sdk/python/pulumi_gitlab/outputs.py +++ b/sdk/python/pulumi_gitlab/outputs.py @@ -2690,6 +2690,7 @@ def wiki_access_level(self) -> str: @pulumi.output_type class GetGroupVariablesVariableResult(dict): def __init__(__self__, *, + description: str, environment_scope: str, group: str, key: str, @@ -2699,6 +2700,7 @@ def __init__(__self__, *, value: str, variable_type: str): """ + :param str description: The description of the variable. :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param str group: The name or id of the group. :param str key: The name of the variable. @@ -2708,6 +2710,7 @@ def __init__(__self__, *, :param str value: The value of the variable. :param str variable_type: The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`. """ + pulumi.set(__self__, "description", description) pulumi.set(__self__, "environment_scope", environment_scope) pulumi.set(__self__, "group", group) pulumi.set(__self__, "key", key) @@ -2717,6 +2720,14 @@ def __init__(__self__, *, pulumi.set(__self__, "value", value) pulumi.set(__self__, "variable_type", variable_type) + @property + @pulumi.getter + def description(self) -> str: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> str: @@ -5378,6 +5389,7 @@ def tag_name(self) -> str: @pulumi.output_type class GetProjectVariablesVariableResult(dict): def __init__(__self__, *, + description: str, environment_scope: str, key: str, masked: bool, @@ -5387,6 +5399,7 @@ def __init__(__self__, *, value: str, variable_type: str): """ + :param str description: The description of the variable. :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param str key: The name of the variable. :param bool masked: If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`. @@ -5396,6 +5409,7 @@ def __init__(__self__, *, :param str value: The value of the variable. :param str variable_type: The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`. """ + pulumi.set(__self__, "description", description) pulumi.set(__self__, "environment_scope", environment_scope) pulumi.set(__self__, "key", key) pulumi.set(__self__, "masked", masked) @@ -5405,6 +5419,14 @@ def __init__(__self__, *, pulumi.set(__self__, "value", value) pulumi.set(__self__, "variable_type", variable_type) + @property + @pulumi.getter + def description(self) -> str: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> str: @@ -5490,6 +5512,7 @@ def __init__(__self__, *, ci_config_path: str, ci_default_git_depth: int, ci_forward_deployment_enabled: bool, + ci_restrict_pipeline_cancellation_role: str, container_expiration_policies: Sequence['outputs.GetProjectsProjectContainerExpirationPolicyResult'], container_registry_access_level: str, container_registry_enabled: bool, @@ -5587,6 +5610,7 @@ def __init__(__self__, *, :param str ci_config_path: CI config file path for the project. :param int ci_default_git_depth: Default number of revisions for shallow cloning. :param bool ci_forward_deployment_enabled: When a new deployment job starts, skip older deployment jobs that are still pending. + :param str ci_restrict_pipeline_cancellation_role: The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` :param Sequence['GetProjectsProjectContainerExpirationPolicyArgs'] container_expiration_policies: Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. :param str container_registry_access_level: Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`. :param bool container_registry_enabled: Whether the container registry is enabled for the project. @@ -5683,6 +5707,7 @@ def __init__(__self__, *, pulumi.set(__self__, "ci_config_path", ci_config_path) pulumi.set(__self__, "ci_default_git_depth", ci_default_git_depth) pulumi.set(__self__, "ci_forward_deployment_enabled", ci_forward_deployment_enabled) + pulumi.set(__self__, "ci_restrict_pipeline_cancellation_role", ci_restrict_pipeline_cancellation_role) pulumi.set(__self__, "container_expiration_policies", container_expiration_policies) pulumi.set(__self__, "container_registry_access_level", container_registry_access_level) pulumi.set(__self__, "container_registry_enabled", container_registry_enabled) @@ -5899,6 +5924,14 @@ def ci_forward_deployment_enabled(self) -> bool: """ return pulumi.get(self, "ci_forward_deployment_enabled") + @property + @pulumi.getter(name="ciRestrictPipelineCancellationRole") + def ci_restrict_pipeline_cancellation_role(self) -> str: + """ + The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + """ + return pulumi.get(self, "ci_restrict_pipeline_cancellation_role") + @property @pulumi.getter(name="containerExpirationPolicies") def container_expiration_policies(self) -> Sequence['outputs.GetProjectsProjectContainerExpirationPolicyResult']: diff --git a/sdk/python/pulumi_gitlab/project.py b/sdk/python/pulumi_gitlab/project.py index ed177789..c3d64e34 100644 --- a/sdk/python/pulumi_gitlab/project.py +++ b/sdk/python/pulumi_gitlab/project.py @@ -34,6 +34,7 @@ def __init__(__self__, *, ci_config_path: Optional[pulumi.Input[str]] = None, ci_default_git_depth: Optional[pulumi.Input[int]] = None, ci_forward_deployment_enabled: Optional[pulumi.Input[bool]] = None, + ci_restrict_pipeline_cancellation_role: Optional[pulumi.Input[str]] = None, ci_separated_caches: Optional[pulumi.Input[bool]] = None, container_expiration_policy: Optional[pulumi.Input['ProjectContainerExpirationPolicyArgs']] = None, container_registry_access_level: Optional[pulumi.Input[str]] = None, @@ -130,6 +131,7 @@ def __init__(__self__, *, :param pulumi.Input[str] ci_config_path: Custom Path to CI config file. :param pulumi.Input[int] ci_default_git_depth: Default number of revisions for shallow cloning. :param pulumi.Input[bool] ci_forward_deployment_enabled: When a new deployment job starts, skip older deployment jobs that are still pending. + :param pulumi.Input[str] ci_restrict_pipeline_cancellation_role: The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` :param pulumi.Input[bool] ci_separated_caches: Use separate caches for protected branches. :param pulumi.Input['ProjectContainerExpirationPolicyArgs'] container_expiration_policy: Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. :param pulumi.Input[str] container_registry_access_level: Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`. @@ -247,6 +249,8 @@ def __init__(__self__, *, pulumi.set(__self__, "ci_default_git_depth", ci_default_git_depth) if ci_forward_deployment_enabled is not None: pulumi.set(__self__, "ci_forward_deployment_enabled", ci_forward_deployment_enabled) + if ci_restrict_pipeline_cancellation_role is not None: + pulumi.set(__self__, "ci_restrict_pipeline_cancellation_role", ci_restrict_pipeline_cancellation_role) if ci_separated_caches is not None: pulumi.set(__self__, "ci_separated_caches", ci_separated_caches) if container_expiration_policy is not None: @@ -625,6 +629,18 @@ def ci_forward_deployment_enabled(self) -> Optional[pulumi.Input[bool]]: def ci_forward_deployment_enabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "ci_forward_deployment_enabled", value) + @property + @pulumi.getter(name="ciRestrictPipelineCancellationRole") + def ci_restrict_pipeline_cancellation_role(self) -> Optional[pulumi.Input[str]]: + """ + The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + """ + return pulumi.get(self, "ci_restrict_pipeline_cancellation_role") + + @ci_restrict_pipeline_cancellation_role.setter + def ci_restrict_pipeline_cancellation_role(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ci_restrict_pipeline_cancellation_role", value) + @property @pulumi.getter(name="ciSeparatedCaches") def ci_separated_caches(self) -> Optional[pulumi.Input[bool]]: @@ -1537,6 +1553,7 @@ def __init__(__self__, *, ci_config_path: Optional[pulumi.Input[str]] = None, ci_default_git_depth: Optional[pulumi.Input[int]] = None, ci_forward_deployment_enabled: Optional[pulumi.Input[bool]] = None, + ci_restrict_pipeline_cancellation_role: Optional[pulumi.Input[str]] = None, ci_separated_caches: Optional[pulumi.Input[bool]] = None, container_expiration_policy: Optional[pulumi.Input['ProjectContainerExpirationPolicyArgs']] = None, container_registry_access_level: Optional[pulumi.Input[str]] = None, @@ -1640,6 +1657,7 @@ def __init__(__self__, *, :param pulumi.Input[str] ci_config_path: Custom Path to CI config file. :param pulumi.Input[int] ci_default_git_depth: Default number of revisions for shallow cloning. :param pulumi.Input[bool] ci_forward_deployment_enabled: When a new deployment job starts, skip older deployment jobs that are still pending. + :param pulumi.Input[str] ci_restrict_pipeline_cancellation_role: The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` :param pulumi.Input[bool] ci_separated_caches: Use separate caches for protected branches. :param pulumi.Input['ProjectContainerExpirationPolicyArgs'] container_expiration_policy: Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. :param pulumi.Input[str] container_registry_access_level: Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`. @@ -1765,6 +1783,8 @@ def __init__(__self__, *, pulumi.set(__self__, "ci_default_git_depth", ci_default_git_depth) if ci_forward_deployment_enabled is not None: pulumi.set(__self__, "ci_forward_deployment_enabled", ci_forward_deployment_enabled) + if ci_restrict_pipeline_cancellation_role is not None: + pulumi.set(__self__, "ci_restrict_pipeline_cancellation_role", ci_restrict_pipeline_cancellation_role) if ci_separated_caches is not None: pulumi.set(__self__, "ci_separated_caches", ci_separated_caches) if container_expiration_policy is not None: @@ -2167,6 +2187,18 @@ def ci_forward_deployment_enabled(self) -> Optional[pulumi.Input[bool]]: def ci_forward_deployment_enabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "ci_forward_deployment_enabled", value) + @property + @pulumi.getter(name="ciRestrictPipelineCancellationRole") + def ci_restrict_pipeline_cancellation_role(self) -> Optional[pulumi.Input[str]]: + """ + The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + """ + return pulumi.get(self, "ci_restrict_pipeline_cancellation_role") + + @ci_restrict_pipeline_cancellation_role.setter + def ci_restrict_pipeline_cancellation_role(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ci_restrict_pipeline_cancellation_role", value) + @property @pulumi.getter(name="ciSeparatedCaches") def ci_separated_caches(self) -> Optional[pulumi.Input[bool]]: @@ -3152,6 +3184,7 @@ def __init__(__self__, ci_config_path: Optional[pulumi.Input[str]] = None, ci_default_git_depth: Optional[pulumi.Input[int]] = None, ci_forward_deployment_enabled: Optional[pulumi.Input[bool]] = None, + ci_restrict_pipeline_cancellation_role: Optional[pulumi.Input[str]] = None, ci_separated_caches: Optional[pulumi.Input[bool]] = None, container_expiration_policy: Optional[pulumi.Input[pulumi.InputType['ProjectContainerExpirationPolicyArgs']]] = None, container_registry_access_level: Optional[pulumi.Input[str]] = None, @@ -3319,6 +3352,7 @@ def __init__(__self__, :param pulumi.Input[str] ci_config_path: Custom Path to CI config file. :param pulumi.Input[int] ci_default_git_depth: Default number of revisions for shallow cloning. :param pulumi.Input[bool] ci_forward_deployment_enabled: When a new deployment job starts, skip older deployment jobs that are still pending. + :param pulumi.Input[str] ci_restrict_pipeline_cancellation_role: The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` :param pulumi.Input[bool] ci_separated_caches: Use separate caches for protected branches. :param pulumi.Input[pulumi.InputType['ProjectContainerExpirationPolicyArgs']] container_expiration_policy: Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. :param pulumi.Input[str] container_registry_access_level: Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`. @@ -3506,6 +3540,7 @@ def _internal_init(__self__, ci_config_path: Optional[pulumi.Input[str]] = None, ci_default_git_depth: Optional[pulumi.Input[int]] = None, ci_forward_deployment_enabled: Optional[pulumi.Input[bool]] = None, + ci_restrict_pipeline_cancellation_role: Optional[pulumi.Input[str]] = None, ci_separated_caches: Optional[pulumi.Input[bool]] = None, container_expiration_policy: Optional[pulumi.Input[pulumi.InputType['ProjectContainerExpirationPolicyArgs']]] = None, container_registry_access_level: Optional[pulumi.Input[str]] = None, @@ -3606,6 +3641,7 @@ def _internal_init(__self__, __props__.__dict__["ci_config_path"] = ci_config_path __props__.__dict__["ci_default_git_depth"] = ci_default_git_depth __props__.__dict__["ci_forward_deployment_enabled"] = ci_forward_deployment_enabled + __props__.__dict__["ci_restrict_pipeline_cancellation_role"] = ci_restrict_pipeline_cancellation_role __props__.__dict__["ci_separated_caches"] = ci_separated_caches __props__.__dict__["container_expiration_policy"] = container_expiration_policy __props__.__dict__["container_registry_access_level"] = container_registry_access_level @@ -3717,6 +3753,7 @@ def get(resource_name: str, ci_config_path: Optional[pulumi.Input[str]] = None, ci_default_git_depth: Optional[pulumi.Input[int]] = None, ci_forward_deployment_enabled: Optional[pulumi.Input[bool]] = None, + ci_restrict_pipeline_cancellation_role: Optional[pulumi.Input[str]] = None, ci_separated_caches: Optional[pulumi.Input[bool]] = None, container_expiration_policy: Optional[pulumi.Input[pulumi.InputType['ProjectContainerExpirationPolicyArgs']]] = None, container_registry_access_level: Optional[pulumi.Input[str]] = None, @@ -3825,6 +3862,7 @@ def get(resource_name: str, :param pulumi.Input[str] ci_config_path: Custom Path to CI config file. :param pulumi.Input[int] ci_default_git_depth: Default number of revisions for shallow cloning. :param pulumi.Input[bool] ci_forward_deployment_enabled: When a new deployment job starts, skip older deployment jobs that are still pending. + :param pulumi.Input[str] ci_restrict_pipeline_cancellation_role: The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` :param pulumi.Input[bool] ci_separated_caches: Use separate caches for protected branches. :param pulumi.Input[pulumi.InputType['ProjectContainerExpirationPolicyArgs']] container_expiration_policy: Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. :param pulumi.Input[str] container_registry_access_level: Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`. @@ -3932,6 +3970,7 @@ def get(resource_name: str, __props__.__dict__["ci_config_path"] = ci_config_path __props__.__dict__["ci_default_git_depth"] = ci_default_git_depth __props__.__dict__["ci_forward_deployment_enabled"] = ci_forward_deployment_enabled + __props__.__dict__["ci_restrict_pipeline_cancellation_role"] = ci_restrict_pipeline_cancellation_role __props__.__dict__["ci_separated_caches"] = ci_separated_caches __props__.__dict__["container_expiration_policy"] = container_expiration_policy __props__.__dict__["container_registry_access_level"] = container_registry_access_level @@ -4171,6 +4210,14 @@ def ci_forward_deployment_enabled(self) -> pulumi.Output[bool]: """ return pulumi.get(self, "ci_forward_deployment_enabled") + @property + @pulumi.getter(name="ciRestrictPipelineCancellationRole") + def ci_restrict_pipeline_cancellation_role(self) -> pulumi.Output[str]: + """ + The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are `developer`, `maintainer`, `no one` + """ + return pulumi.get(self, "ci_restrict_pipeline_cancellation_role") + @property @pulumi.getter(name="ciSeparatedCaches") def ci_separated_caches(self) -> pulumi.Output[bool]: diff --git a/sdk/python/pulumi_gitlab/project_variable.py b/sdk/python/pulumi_gitlab/project_variable.py index 8e71b61d..fe368177 100644 --- a/sdk/python/pulumi_gitlab/project_variable.py +++ b/sdk/python/pulumi_gitlab/project_variable.py @@ -17,6 +17,7 @@ def __init__(__self__, *, key: pulumi.Input[str], project: pulumi.Input[str], value: pulumi.Input[str], + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, protected: Optional[pulumi.Input[bool]] = None, @@ -27,6 +28,7 @@ def __init__(__self__, *, :param pulumi.Input[str] key: The name of the variable. :param pulumi.Input[str] project: The name or id of the project. :param pulumi.Input[str] value: The value of the variable. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[bool] masked: If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`. :param pulumi.Input[bool] protected: If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`. @@ -36,6 +38,8 @@ def __init__(__self__, *, pulumi.set(__self__, "key", key) pulumi.set(__self__, "project", project) pulumi.set(__self__, "value", value) + if description is not None: + pulumi.set(__self__, "description", description) if environment_scope is not None: pulumi.set(__self__, "environment_scope", environment_scope) if masked is not None: @@ -83,6 +87,18 @@ def value(self) -> pulumi.Input[str]: def value(self, value: pulumi.Input[str]): pulumi.set(self, "value", value) + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> Optional[pulumi.Input[str]]: @@ -147,6 +163,7 @@ def variable_type(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class _ProjectVariableState: def __init__(__self__, *, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, @@ -157,6 +174,7 @@ def __init__(__self__, *, variable_type: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering ProjectVariable resources. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[str] key: The name of the variable. :param pulumi.Input[bool] masked: If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`. @@ -166,6 +184,8 @@ def __init__(__self__, *, :param pulumi.Input[str] value: The value of the variable. :param pulumi.Input[str] variable_type: The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`. """ + if description is not None: + pulumi.set(__self__, "description", description) if environment_scope is not None: pulumi.set(__self__, "environment_scope", environment_scope) if key is not None: @@ -183,6 +203,18 @@ def __init__(__self__, *, if variable_type is not None: pulumi.set(__self__, "variable_type", variable_type) + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> Optional[pulumi.Input[str]]: @@ -285,6 +317,7 @@ class ProjectVariable(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, @@ -324,6 +357,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[str] key: The name of the variable. :param pulumi.Input[bool] masked: If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`. @@ -382,6 +416,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, @@ -399,6 +434,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = ProjectVariableArgs.__new__(ProjectVariableArgs) + __props__.__dict__["description"] = description __props__.__dict__["environment_scope"] = environment_scope if key is None and not opts.urn: raise TypeError("Missing required property 'key'") @@ -423,6 +459,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + description: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, @@ -438,6 +475,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] description: The description of the variable. :param pulumi.Input[str] environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param pulumi.Input[str] key: The name of the variable. :param pulumi.Input[bool] masked: If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`. @@ -451,6 +489,7 @@ def get(resource_name: str, __props__ = _ProjectVariableState.__new__(_ProjectVariableState) + __props__.__dict__["description"] = description __props__.__dict__["environment_scope"] = environment_scope __props__.__dict__["key"] = key __props__.__dict__["masked"] = masked @@ -461,6 +500,14 @@ def get(resource_name: str, __props__.__dict__["variable_type"] = variable_type return ProjectVariable(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + """ + The description of the variable. + """ + return pulumi.get(self, "description") + @property @pulumi.getter(name="environmentScope") def environment_scope(self) -> pulumi.Output[Optional[str]]: diff --git a/upstream b/upstream index 9b16ebde..d9d8eccf 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 9b16ebde9caae2031712e90ca4da0c195cb8fa56 +Subproject commit d9d8eccf7abdd15b16ab476c3862b881fa682e5c