From 583699499eb9f56c83563045fdd83f7ae896c082 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 28 Nov 2022 03:09:20 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- doc/api/graphql/reference/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/api/graphql/reference/index.md b/doc/api/graphql/reference/index.md index 79202e500b7..e1fe6a0c1bf 100644 --- a/doc/api/graphql/reference/index.md +++ b/doc/api/graphql/reference/index.md @@ -12375,6 +12375,7 @@ Describes where code is deployed for a project. | `state` | [`String!`](#string) | State of the environment, for example: available/stopped. | | `tier` | [`DeploymentTier`](#deploymenttier) | Deployment tier of the environment. | | `updatedAt` | [`Time`](#time) | When the environment was updated. | +| `userPermissions` | [`EnvironmentPermissions!`](#environmentpermissions) | Permissions for the current user on the resource. This field can only be resolved for one environment in any single request. | #### Fields with arguments @@ -12419,6 +12420,16 @@ Returns [`MetricsDashboard`](#metricsdashboard). | ---- | ---- | ----------- | | `path` | [`String!`](#string) | Path to a file which defines a metrics dashboard eg: `"config/prometheus/common_metrics.yml"`. | +### `EnvironmentPermissions` + +#### Fields + +| Name | Type | Description | +| ---- | ---- | ----------- | +| `destroyEnvironment` | [`Boolean!`](#boolean) | Indicates the user can perform `destroy_environment` on this resource. | +| `stopEnvironment` | [`Boolean!`](#boolean) | Indicates the user can perform `stop_environment` on this resource. | +| `updateEnvironment` | [`Boolean!`](#boolean) | Indicates the user can perform `update_environment` on this resource. | + ### `Epic` Represents an epic. -- cgit v1.2.3