-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathRecipientInfo.java
More file actions
executable file
·376 lines (311 loc) · 9.73 KB
/
RecipientInfo.java
File metadata and controls
executable file
·376 lines (311 loc) · 9.73 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.sharing;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
@Generated
public class RecipientInfo {
/**
* A boolean status field showing whether the Recipient's activation URL has been exercised or
* not.
*/
@JsonProperty("activated")
private Boolean activated;
/**
* Full activation url to retrieve the access token. It will be empty if the token is already
* retrieved.
*/
@JsonProperty("activation_url")
private String activationUrl;
/** */
@JsonProperty("authentication_type")
private AuthenticationType authenticationType;
/**
* Cloud vendor of the recipient's Unity Catalog Metastore. This field is only present when the
* __authentication_type__ is **DATABRICKS**.
*/
@JsonProperty("cloud")
private String cloud;
/** Description about the recipient. */
@JsonProperty("comment")
private String comment;
/** Time at which this recipient was created, in epoch milliseconds. */
@JsonProperty("created_at")
private Long createdAt;
/** Username of recipient creator. */
@JsonProperty("created_by")
private String createdBy;
/**
* The global Unity Catalog metastore id provided by the data recipient. This field is only
* present when the __authentication_type__ is **DATABRICKS**. The identifier is of format
* __cloud__:__region__:__metastore-uuid__.
*/
@JsonProperty("data_recipient_global_metastore_id")
private String dataRecipientGlobalMetastoreId;
/** Expiration timestamp of the token, in epoch milliseconds. */
@JsonProperty("expiration_time")
private Long expirationTime;
/** [Create,Update:IGN] common - id of the recipient */
@JsonProperty("id")
private String id;
/** IP Access List */
@JsonProperty("ip_access_list")
private IpAccessList ipAccessList;
/**
* Unique identifier of recipient's Unity Catalog Metastore. This field is only present when the
* __authentication_type__ is **DATABRICKS**.
*/
@JsonProperty("metastore_id")
private String metastoreId;
/** Name of Recipient. */
@JsonProperty("name")
private String name;
/** Username of the recipient owner. */
@JsonProperty("owner")
private String owner;
/**
* Recipient properties as map of string key-value pairs. When provided in update request, the
* specified properties will override the existing properties. To add and remove properties, one
* would need to perform a read-modify-write.
*/
@JsonProperty("properties_kvpairs")
private SecurablePropertiesKvPairs propertiesKvpairs;
/**
* Cloud region of the recipient's Unity Catalog Metastore. This field is only present when the
* __authentication_type__ is **DATABRICKS**.
*/
@JsonProperty("region")
private String region;
/**
* The one-time sharing code provided by the data recipient. This field is only present when the
* __authentication_type__ is **DATABRICKS**.
*/
@JsonProperty("sharing_code")
private String sharingCode;
/** This field is only present when the __authentication_type__ is **TOKEN**. */
@JsonProperty("tokens")
private Collection<RecipientTokenInfo> tokens;
/** Time at which the recipient was updated, in epoch milliseconds. */
@JsonProperty("updated_at")
private Long updatedAt;
/** Username of recipient updater. */
@JsonProperty("updated_by")
private String updatedBy;
public RecipientInfo setActivated(Boolean activated) {
this.activated = activated;
return this;
}
public Boolean getActivated() {
return activated;
}
public RecipientInfo setActivationUrl(String activationUrl) {
this.activationUrl = activationUrl;
return this;
}
public String getActivationUrl() {
return activationUrl;
}
public RecipientInfo setAuthenticationType(AuthenticationType authenticationType) {
this.authenticationType = authenticationType;
return this;
}
public AuthenticationType getAuthenticationType() {
return authenticationType;
}
public RecipientInfo setCloud(String cloud) {
this.cloud = cloud;
return this;
}
public String getCloud() {
return cloud;
}
public RecipientInfo setComment(String comment) {
this.comment = comment;
return this;
}
public String getComment() {
return comment;
}
public RecipientInfo setCreatedAt(Long createdAt) {
this.createdAt = createdAt;
return this;
}
public Long getCreatedAt() {
return createdAt;
}
public RecipientInfo setCreatedBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
public String getCreatedBy() {
return createdBy;
}
public RecipientInfo setDataRecipientGlobalMetastoreId(String dataRecipientGlobalMetastoreId) {
this.dataRecipientGlobalMetastoreId = dataRecipientGlobalMetastoreId;
return this;
}
public String getDataRecipientGlobalMetastoreId() {
return dataRecipientGlobalMetastoreId;
}
public RecipientInfo setExpirationTime(Long expirationTime) {
this.expirationTime = expirationTime;
return this;
}
public Long getExpirationTime() {
return expirationTime;
}
public RecipientInfo setId(String id) {
this.id = id;
return this;
}
public String getId() {
return id;
}
public RecipientInfo setIpAccessList(IpAccessList ipAccessList) {
this.ipAccessList = ipAccessList;
return this;
}
public IpAccessList getIpAccessList() {
return ipAccessList;
}
public RecipientInfo setMetastoreId(String metastoreId) {
this.metastoreId = metastoreId;
return this;
}
public String getMetastoreId() {
return metastoreId;
}
public RecipientInfo setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public RecipientInfo setOwner(String owner) {
this.owner = owner;
return this;
}
public String getOwner() {
return owner;
}
public RecipientInfo setPropertiesKvpairs(SecurablePropertiesKvPairs propertiesKvpairs) {
this.propertiesKvpairs = propertiesKvpairs;
return this;
}
public SecurablePropertiesKvPairs getPropertiesKvpairs() {
return propertiesKvpairs;
}
public RecipientInfo setRegion(String region) {
this.region = region;
return this;
}
public String getRegion() {
return region;
}
public RecipientInfo setSharingCode(String sharingCode) {
this.sharingCode = sharingCode;
return this;
}
public String getSharingCode() {
return sharingCode;
}
public RecipientInfo setTokens(Collection<RecipientTokenInfo> tokens) {
this.tokens = tokens;
return this;
}
public Collection<RecipientTokenInfo> getTokens() {
return tokens;
}
public RecipientInfo setUpdatedAt(Long updatedAt) {
this.updatedAt = updatedAt;
return this;
}
public Long getUpdatedAt() {
return updatedAt;
}
public RecipientInfo setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
return this;
}
public String getUpdatedBy() {
return updatedBy;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RecipientInfo that = (RecipientInfo) o;
return Objects.equals(activated, that.activated)
&& Objects.equals(activationUrl, that.activationUrl)
&& Objects.equals(authenticationType, that.authenticationType)
&& Objects.equals(cloud, that.cloud)
&& Objects.equals(comment, that.comment)
&& Objects.equals(createdAt, that.createdAt)
&& Objects.equals(createdBy, that.createdBy)
&& Objects.equals(dataRecipientGlobalMetastoreId, that.dataRecipientGlobalMetastoreId)
&& Objects.equals(expirationTime, that.expirationTime)
&& Objects.equals(id, that.id)
&& Objects.equals(ipAccessList, that.ipAccessList)
&& Objects.equals(metastoreId, that.metastoreId)
&& Objects.equals(name, that.name)
&& Objects.equals(owner, that.owner)
&& Objects.equals(propertiesKvpairs, that.propertiesKvpairs)
&& Objects.equals(region, that.region)
&& Objects.equals(sharingCode, that.sharingCode)
&& Objects.equals(tokens, that.tokens)
&& Objects.equals(updatedAt, that.updatedAt)
&& Objects.equals(updatedBy, that.updatedBy);
}
@Override
public int hashCode() {
return Objects.hash(
activated,
activationUrl,
authenticationType,
cloud,
comment,
createdAt,
createdBy,
dataRecipientGlobalMetastoreId,
expirationTime,
id,
ipAccessList,
metastoreId,
name,
owner,
propertiesKvpairs,
region,
sharingCode,
tokens,
updatedAt,
updatedBy);
}
@Override
public String toString() {
return new ToStringer(RecipientInfo.class)
.add("activated", activated)
.add("activationUrl", activationUrl)
.add("authenticationType", authenticationType)
.add("cloud", cloud)
.add("comment", comment)
.add("createdAt", createdAt)
.add("createdBy", createdBy)
.add("dataRecipientGlobalMetastoreId", dataRecipientGlobalMetastoreId)
.add("expirationTime", expirationTime)
.add("id", id)
.add("ipAccessList", ipAccessList)
.add("metastoreId", metastoreId)
.add("name", name)
.add("owner", owner)
.add("propertiesKvpairs", propertiesKvpairs)
.add("region", region)
.add("sharingCode", sharingCode)
.add("tokens", tokens)
.add("updatedAt", updatedAt)
.add("updatedBy", updatedBy)
.toString();
}
}