Repository navigation
Expand file tree
/
Copy pathDeployment.java
More file actions
88 lines (67 loc) · 2.19 KB
/
Copy pathDeployment.java
File metadata and controls
88 lines (67 loc) · 2.19 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.qoder.cloudagents.managed;
import com.qoder.cloudagents.core.*;
import java.util.*;
/** Immutable API response; unknown fields are preserved. */
public final class Deployment extends JsonModel {
public Deployment(JsonValue value, String requestId) {
super(value, requestId);
}
public static Deployment fromJson(JsonValue value) {
return new Deployment(value, null);
}
public String id() {
return optional("id", JsonValue::asString);
}
public String type() {
return optional("type", JsonValue::asString);
}
public String name() {
return optional("name", JsonValue::asString);
}
public String description() {
return optional("description", JsonValue::asString);
}
public AgentReference agent() {
return optional("agent", AgentReference::fromJson);
}
public String environmentId() {
return optional("environment_id", JsonValue::asString);
}
/** BYOC tunnel bound to the deployment, when configured. */
public String tunnelId() {
return optional("tunnel_id", JsonValue::asString);
}
public DeploymentSchedule schedule() {
return optional("schedule", DeploymentSchedule::fromJson);
}
public List<SessionEventParam> initialEvents() {
return optionalList("initial_events", SessionEventParam::fromJson);
}
public List<SessionResourceSpec> resources() {
return optionalList("resources", SessionResourceSpec::fromJson);
}
public List<String> vaultIds() {
return optionalList("vault_ids", JsonValue::asString);
}
public Map<String, String> metadata() {
return optionalNullableMap("metadata", JsonValue::asString);
}
public String environmentVariables() {
return optional("environment_variables", JsonValue::asString);
}
public String status() {
return optional("status", JsonValue::asString);
}
public DeploymentPauseReason pausedReason() {
return optional("paused_reason", DeploymentPauseReason::fromJson);
}
public String archivedAt() {
return optional("archived_at", JsonValue::asString);
}
public String createdAt() {
return optional("created_at", JsonValue::asString);
}
public String updatedAt() {
return optional("updated_at", JsonValue::asString);
}
}