summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/environment.json
blob: 87b6e5da370116afcc590fe249e8e519c62d9e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
  "type": "object",
  "required": [
    "id",
    "name",
    "state",
    "external_url",
    "environment_type",
    "has_stop_action",
    "environment_path",
    "stop_path",
    "folder_path",
    "created_at",
    "updated_at",
    "can_stop"
  ],
  "properties": {
    "id": { "type": "integer" },
    "global_id": { "type": "string" },
    "name": { "type": "string" },
    "state": { "type": "string" },
    "external_url": { "$ref": "types/nullable_string.json" },
    "environment_type": { "$ref": "types/nullable_string.json" },
    "name_without_type": { "type": "string" },
    "has_stop_action": { "type": "boolean" },
    "environment_path": { "type": "string" },
    "stop_path": { "type": "string" },
    "cancel_auto_stop_path": { "type": "string" },
    "folder_path": { "type": "string" },
    "logs_path": { "type": "string" },
    "logs_api_path": { "type": "string" },
    "enable_advanced_logs_querying": { "type": "boolean" },
    "created_at": { "type": "string", "format": "date-time" },
    "updated_at": { "type": "string", "format": "date-time" },
    "auto_stop_at": { "type": "string", "format": "date-time" },
    "can_stop": { "type": "boolean" },
    "has_opened_alert": { "type": "boolean" },
    "tier": { "type": "string" },
    "required_approval_count": { "type": "integer" },
    "cluster_type": { "type": "types/nullable_string.json" },
    "terminal_path": { "type": "types/nullable_string.json" },
    "rollout_status": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "rollout_status.json" }
      ]
    },
    "last_deployment": {
      "oneOf": [
        { "type": "null" },
        { "$ref": "deployment.json" },
        {
          "type": "object",
          "properties" : {
            "name": { "type": "string" },
            "build_path": { "type": "string" }
          }
        }
      ]
    },
    "can_delete": { "type": "boolean" }
    ,
    "delete_path": { "type": "string" }
  },
  "additionalProperties": false
}