-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDeployment.java
More file actions
277 lines (230 loc) · 7.5 KB
/
Copy pathDeployment.java
File metadata and controls
277 lines (230 loc) · 7.5 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.bundledeployments;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.protobuf.Timestamp;
import java.util.Objects;
/** A bundle deployment registered with the control plane. */
@Generated
public class Deployment {
/** When the deployment was created. */
@JsonProperty("create_time")
private Timestamp createTime;
/** The user who created the deployment (email or principal name). */
@JsonProperty("created_by")
private String createdBy;
/**
* Bundle target deployment mode (development or production), derived from the most recent
* version's mode.
*/
@JsonProperty("deployment_mode")
private DeploymentMode deploymentMode;
/**
* When deletion was recorded. Unset if deletion has not been recorded. This response metadata
* does not determine the deployment's lifecycle status.
*/
@JsonProperty("destroy_time")
private Timestamp destroyTime;
/**
* The user who destroyed the deployment (email or principal name). Unset if the deployment has
* not been destroyed.
*/
@JsonProperty("destroyed_by")
private String destroyedBy;
/**
* Human-readable name for the deployment, up to 256 characters. Output only: clients update it by
* setting `display_name` when creating a version.
*/
@JsonProperty("display_name")
private String displayName;
/** Git provenance of the deployment's source, derived from the latest version. */
@JsonProperty("git_info")
private GitInfo gitInfo;
/**
* The workspace path of the existing folder where the deployment is initially created. Must be
* absolute and canonical, with single separators, no `.` or `..` segments, and no trailing slash
* unless the path is `/`. It may contain at most 24 path segments, excluding an optional leading
* `/Workspace` segment. The complete path may contain up to 1,024 characters, and each segment
* may contain up to 511 characters. This field is input only and is not returned in create, get,
* or list responses.
*/
@JsonProperty("initial_parent_path")
private String initialParentPath;
/** The version_id of the most recent deployment version. */
@JsonProperty("last_version_id")
private String lastVersionId;
/** Resource name of the deployment. Format: deployments/{deployment_id} */
@JsonProperty("name")
private String name;
/** Current status of the deployment. */
@JsonProperty("status")
private DeploymentStatus status;
/**
* The bundle target name associated with this deployment. Output only: it is denormalized from
* the latest version, not set directly on the deployment.
*/
@JsonProperty("target_name")
private String targetName;
/** When the deployment was last updated. */
@JsonProperty("update_time")
private Timestamp updateTime;
/** Workspace location of the deployment, derived from the latest version. */
@JsonProperty("workspace_info")
private WorkspaceInfo workspaceInfo;
public Deployment setCreateTime(Timestamp createTime) {
this.createTime = createTime;
return this;
}
public Timestamp getCreateTime() {
return createTime;
}
public Deployment setCreatedBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
public String getCreatedBy() {
return createdBy;
}
public Deployment setDeploymentMode(DeploymentMode deploymentMode) {
this.deploymentMode = deploymentMode;
return this;
}
public DeploymentMode getDeploymentMode() {
return deploymentMode;
}
public Deployment setDestroyTime(Timestamp destroyTime) {
this.destroyTime = destroyTime;
return this;
}
public Timestamp getDestroyTime() {
return destroyTime;
}
public Deployment setDestroyedBy(String destroyedBy) {
this.destroyedBy = destroyedBy;
return this;
}
public String getDestroyedBy() {
return destroyedBy;
}
public Deployment setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public String getDisplayName() {
return displayName;
}
public Deployment setGitInfo(GitInfo gitInfo) {
this.gitInfo = gitInfo;
return this;
}
public GitInfo getGitInfo() {
return gitInfo;
}
public Deployment setInitialParentPath(String initialParentPath) {
this.initialParentPath = initialParentPath;
return this;
}
public String getInitialParentPath() {
return initialParentPath;
}
public Deployment setLastVersionId(String lastVersionId) {
this.lastVersionId = lastVersionId;
return this;
}
public String getLastVersionId() {
return lastVersionId;
}
public Deployment setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public Deployment setStatus(DeploymentStatus status) {
this.status = status;
return this;
}
public DeploymentStatus getStatus() {
return status;
}
public Deployment setTargetName(String targetName) {
this.targetName = targetName;
return this;
}
public String getTargetName() {
return targetName;
}
public Deployment setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
return this;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public Deployment setWorkspaceInfo(WorkspaceInfo workspaceInfo) {
this.workspaceInfo = workspaceInfo;
return this;
}
public WorkspaceInfo getWorkspaceInfo() {
return workspaceInfo;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Deployment that = (Deployment) o;
return Objects.equals(createTime, that.createTime)
&& Objects.equals(createdBy, that.createdBy)
&& Objects.equals(deploymentMode, that.deploymentMode)
&& Objects.equals(destroyTime, that.destroyTime)
&& Objects.equals(destroyedBy, that.destroyedBy)
&& Objects.equals(displayName, that.displayName)
&& Objects.equals(gitInfo, that.gitInfo)
&& Objects.equals(initialParentPath, that.initialParentPath)
&& Objects.equals(lastVersionId, that.lastVersionId)
&& Objects.equals(name, that.name)
&& Objects.equals(status, that.status)
&& Objects.equals(targetName, that.targetName)
&& Objects.equals(updateTime, that.updateTime)
&& Objects.equals(workspaceInfo, that.workspaceInfo);
}
@Override
public int hashCode() {
return Objects.hash(
createTime,
createdBy,
deploymentMode,
destroyTime,
destroyedBy,
displayName,
gitInfo,
initialParentPath,
lastVersionId,
name,
status,
targetName,
updateTime,
workspaceInfo);
}
@Override
public String toString() {
return new ToStringer(Deployment.class)
.add("createTime", createTime)
.add("createdBy", createdBy)
.add("deploymentMode", deploymentMode)
.add("destroyTime", destroyTime)
.add("destroyedBy", destroyedBy)
.add("displayName", displayName)
.add("gitInfo", gitInfo)
.add("initialParentPath", initialParentPath)
.add("lastVersionId", lastVersionId)
.add("name", name)
.add("status", status)
.add("targetName", targetName)
.add("updateTime", updateTime)
.add("workspaceInfo", workspaceInfo)
.toString();
}
}