-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDomoDatasetColumn.java
More file actions
611 lines (564 loc) · 28.5 KB
/
DomoDatasetColumn.java
File metadata and controls
611 lines (564 loc) · 28.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
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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.assets;
import com.atlan.AtlanClient;
import com.atlan.exception.AtlanException;
import com.atlan.exception.ErrorCode;
import com.atlan.exception.InvalidRequestException;
import com.atlan.exception.NotFoundException;
import com.atlan.model.enums.AtlanAnnouncementType;
import com.atlan.model.enums.CertificateStatus;
import com.atlan.model.fields.AtlanField;
import com.atlan.model.relations.Reference;
import com.atlan.model.relations.UniqueAttributes;
import com.atlan.model.search.FluentSearch;
import com.atlan.util.StringUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.SortedSet;
import java.util.concurrent.ThreadLocalRandom;
import javax.annotation.processing.Generated;
import lombok.*;
import lombok.experimental.SuperBuilder;
import lombok.extern.slf4j.Slf4j;
/**
* Instance of a Domo Dataset Column in Atlan.
*/
@Generated(value = "com.atlan.generators.ModelGeneratorV2")
@Getter
@SuperBuilder(toBuilder = true, builderMethodName = "_internal")
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Slf4j
@SuppressWarnings({"cast", "serial"})
public class DomoDatasetColumn extends Asset
implements IDomoDatasetColumn, IDomo, IBI, ICatalog, IAsset, IReferenceable {
private static final long serialVersionUID = 2L;
public static final String TYPE_NAME = "DomoDatasetColumn";
/** Fixed typeName for DomoDatasetColumns. */
@Getter(onMethod_ = {@Override})
@Builder.Default
String typeName = TYPE_NAME;
/** Domo Dataset that contains this Domo Dataset Column. */
@Attribute
IDomoDataset domoDataset;
/** Expression used to create this calculated column. */
@Attribute
String domoDatasetColumnExpression;
/** If the column is a calculated column. */
@Attribute
Boolean domoDatasetColumnIsCalculated;
/** Type of Domo Dataset Column. */
@Attribute
String domoDatasetColumnType;
/** Qualified name of domo dataset of this column. */
@Attribute
String domoDatasetQualifiedName;
/** Id of the Domo dataset. */
@Attribute
String domoId;
/** Id of the owner of the Domo dataset. */
@Attribute
String domoOwnerId;
/** Tasks to which this asset provides input. */
@Attribute
@Singular
SortedSet<IAirflowTask> inputToAirflowTasks;
/** Processes to which this asset provides input. */
@Attribute
@Singular
SortedSet<ILineageProcess> inputToProcesses;
/** TBC */
@Attribute
@Singular
SortedSet<ISparkJob> inputToSparkJobs;
/** Attributes implemented by this asset. */
@Attribute
@Singular
SortedSet<IModelAttribute> modelImplementedAttributes;
/** Entities implemented by this asset. */
@Attribute
@Singular
SortedSet<IModelEntity> modelImplementedEntities;
/** Tasks from which this asset is output. */
@Attribute
@Singular
SortedSet<IAirflowTask> outputFromAirflowTasks;
/** Processes from which this asset is produced as output. */
@Attribute
@Singular
SortedSet<ILineageProcess> outputFromProcesses;
/** TBC */
@Attribute
@Singular
SortedSet<ISparkJob> outputFromSparkJobs;
/**
* Builds the minimal object necessary to create a relationship to a DomoDatasetColumn, from a potentially
* more-complete DomoDatasetColumn object.
*
* @return the minimal object necessary to relate to the DomoDatasetColumn
* @throws InvalidRequestException if any of the minimal set of required properties for a DomoDatasetColumn relationship are not found in the initial object
*/
@Override
public DomoDatasetColumn trimToReference() throws InvalidRequestException {
if (this.getGuid() != null && !this.getGuid().isEmpty()) {
return refByGuid(this.getGuid());
}
if (this.getQualifiedName() != null && !this.getQualifiedName().isEmpty()) {
return refByQualifiedName(this.getQualifiedName());
}
if (this.getUniqueAttributes() != null
&& this.getUniqueAttributes().getQualifiedName() != null
&& !this.getUniqueAttributes().getQualifiedName().isEmpty()) {
return refByQualifiedName(this.getUniqueAttributes().getQualifiedName());
}
throw new InvalidRequestException(
ErrorCode.MISSING_REQUIRED_RELATIONSHIP_PARAM, TYPE_NAME, "guid, qualifiedName");
}
/**
* Start a fluent search that will return all DomoDatasetColumn assets.
* Additional conditions can be chained onto the returned search before any
* asset retrieval is attempted, ensuring all conditions are pushed-down for
* optimal retrieval. Only active (non-archived) DomoDatasetColumn assets will be included.
*
* @param client connectivity to the Atlan tenant from which to retrieve the assets
* @return a fluent search that includes all DomoDatasetColumn assets
*/
public static FluentSearch.FluentSearchBuilder<?, ?> select(AtlanClient client) {
return select(client, false);
}
/**
* Start a fluent search that will return all DomoDatasetColumn assets.
* Additional conditions can be chained onto the returned search before any
* asset retrieval is attempted, ensuring all conditions are pushed-down for
* optimal retrieval.
*
* @param client connectivity to the Atlan tenant from which to retrieve the assets
* @param includeArchived when true, archived (soft-deleted) DomoDatasetColumns will be included
* @return a fluent search that includes all DomoDatasetColumn assets
*/
public static FluentSearch.FluentSearchBuilder<?, ?> select(AtlanClient client, boolean includeArchived) {
FluentSearch.FluentSearchBuilder<?, ?> builder =
FluentSearch.builder(client).where(Asset.TYPE_NAME.eq(TYPE_NAME));
if (!includeArchived) {
builder.active();
}
return builder;
}
/**
* Reference to a DomoDatasetColumn by GUID. Use this to create a relationship to this DomoDatasetColumn,
* where the relationship should be replaced.
*
* @param guid the GUID of the DomoDatasetColumn to reference
* @return reference to a DomoDatasetColumn that can be used for defining a relationship to a DomoDatasetColumn
*/
public static DomoDatasetColumn refByGuid(String guid) {
return refByGuid(guid, Reference.SaveSemantic.REPLACE);
}
/**
* Reference to a DomoDatasetColumn by GUID. Use this to create a relationship to this DomoDatasetColumn,
* where you want to further control how that relationship should be updated (i.e. replaced,
* appended, or removed).
*
* @param guid the GUID of the DomoDatasetColumn to reference
* @param semantic how to save this relationship (replace all with this, append it, or remove it)
* @return reference to a DomoDatasetColumn that can be used for defining a relationship to a DomoDatasetColumn
*/
public static DomoDatasetColumn refByGuid(String guid, Reference.SaveSemantic semantic) {
return DomoDatasetColumn._internal().guid(guid).semantic(semantic).build();
}
/**
* Reference to a DomoDatasetColumn by qualifiedName. Use this to create a relationship to this DomoDatasetColumn,
* where the relationship should be replaced.
*
* @param qualifiedName the qualifiedName of the DomoDatasetColumn to reference
* @return reference to a DomoDatasetColumn that can be used for defining a relationship to a DomoDatasetColumn
*/
public static DomoDatasetColumn refByQualifiedName(String qualifiedName) {
return refByQualifiedName(qualifiedName, Reference.SaveSemantic.REPLACE);
}
/**
* Reference to a DomoDatasetColumn by qualifiedName. Use this to create a relationship to this DomoDatasetColumn,
* where you want to further control how that relationship should be updated (i.e. replaced,
* appended, or removed).
*
* @param qualifiedName the qualifiedName of the DomoDatasetColumn to reference
* @param semantic how to save this relationship (replace all with this, append it, or remove it)
* @return reference to a DomoDatasetColumn that can be used for defining a relationship to a DomoDatasetColumn
*/
public static DomoDatasetColumn refByQualifiedName(String qualifiedName, Reference.SaveSemantic semantic) {
return DomoDatasetColumn._internal()
.uniqueAttributes(
UniqueAttributes.builder().qualifiedName(qualifiedName).build())
.semantic(semantic)
.build();
}
/**
* Retrieves a DomoDatasetColumn by one of its identifiers, complete with all of its relationships.
*
* @param client connectivity to the Atlan tenant from which to retrieve the asset
* @param id of the DomoDatasetColumn to retrieve, either its GUID or its full qualifiedName
* @return the requested full DomoDatasetColumn, complete with all of its relationships
* @throws AtlanException on any error during the API invocation, such as the {@link NotFoundException} if the DomoDatasetColumn does not exist or the provided GUID is not a DomoDatasetColumn
*/
@JsonIgnore
public static DomoDatasetColumn get(AtlanClient client, String id) throws AtlanException {
return get(client, id, false);
}
/**
* Retrieves a DomoDatasetColumn by one of its identifiers, optionally complete with all of its relationships.
*
* @param client connectivity to the Atlan tenant from which to retrieve the asset
* @param id of the DomoDatasetColumn to retrieve, either its GUID or its full qualifiedName
* @param includeAllRelationships if true, all the asset's relationships will also be retrieved; if false, no relationships will be retrieved
* @return the requested full DomoDatasetColumn, optionally complete with all of its relationships
* @throws AtlanException on any error during the API invocation, such as the {@link NotFoundException} if the DomoDatasetColumn does not exist or the provided GUID is not a DomoDatasetColumn
*/
@JsonIgnore
public static DomoDatasetColumn get(AtlanClient client, String id, boolean includeAllRelationships)
throws AtlanException {
if (id == null) {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_GUID, "(null)");
} else if (StringUtils.isUUID(id)) {
Asset asset = Asset.get(client, id, includeAllRelationships);
if (asset == null) {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_GUID, id);
} else if (asset instanceof DomoDatasetColumn) {
return (DomoDatasetColumn) asset;
} else {
throw new NotFoundException(ErrorCode.ASSET_NOT_TYPE_REQUESTED, id, TYPE_NAME);
}
} else {
Asset asset = Asset.get(client, TYPE_NAME, id, includeAllRelationships);
if (asset instanceof DomoDatasetColumn) {
return (DomoDatasetColumn) asset;
} else {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_QN, id, TYPE_NAME);
}
}
}
/**
* Retrieves a DomoDatasetColumn by one of its identifiers, with only the requested attributes (and relationships).
*
* @param client connectivity to the Atlan tenant from which to retrieve the asset
* @param id of the DomoDatasetColumn to retrieve, either its GUID or its full qualifiedName
* @param attributes to retrieve for the DomoDatasetColumn, including any relationships
* @return the requested DomoDatasetColumn, with only its minimal information and the requested attributes (and relationships)
* @throws AtlanException on any error during the API invocation, such as the {@link NotFoundException} if the DomoDatasetColumn does not exist or the provided GUID is not a DomoDatasetColumn
*/
@JsonIgnore
public static DomoDatasetColumn get(AtlanClient client, String id, Collection<AtlanField> attributes)
throws AtlanException {
return get(client, id, attributes, Collections.emptyList());
}
/**
* Retrieves a DomoDatasetColumn by one of its identifiers, with only the requested attributes (and relationships).
*
* @param client connectivity to the Atlan tenant from which to retrieve the asset
* @param id of the DomoDatasetColumn to retrieve, either its GUID or its full qualifiedName
* @param attributes to retrieve for the DomoDatasetColumn, including any relationships
* @param attributesOnRelated to retrieve on each relationship retrieved for the DomoDatasetColumn
* @return the requested DomoDatasetColumn, with only its minimal information and the requested attributes (and relationships)
* @throws AtlanException on any error during the API invocation, such as the {@link NotFoundException} if the DomoDatasetColumn does not exist or the provided GUID is not a DomoDatasetColumn
*/
@JsonIgnore
public static DomoDatasetColumn get(
AtlanClient client,
String id,
Collection<AtlanField> attributes,
Collection<AtlanField> attributesOnRelated)
throws AtlanException {
if (id == null) {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_GUID, "(null)");
} else if (StringUtils.isUUID(id)) {
Optional<Asset> asset = DomoDatasetColumn.select(client)
.where(DomoDatasetColumn.GUID.eq(id))
.includesOnResults(attributes)
.includesOnRelations(attributesOnRelated)
.includeRelationshipAttributes(true)
.pageSize(1)
.stream()
.findFirst();
if (!asset.isPresent()) {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_GUID, id);
} else if (asset.get() instanceof DomoDatasetColumn) {
return (DomoDatasetColumn) asset.get();
} else {
throw new NotFoundException(ErrorCode.ASSET_NOT_TYPE_REQUESTED, id, TYPE_NAME);
}
} else {
Optional<Asset> asset = DomoDatasetColumn.select(client)
.where(DomoDatasetColumn.QUALIFIED_NAME.eq(id))
.includesOnResults(attributes)
.includesOnRelations(attributesOnRelated)
.includeRelationshipAttributes(true)
.pageSize(1)
.stream()
.findFirst();
if (!asset.isPresent()) {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_QN, id, TYPE_NAME);
} else if (asset.get() instanceof DomoDatasetColumn) {
return (DomoDatasetColumn) asset.get();
} else {
throw new NotFoundException(ErrorCode.ASSET_NOT_TYPE_REQUESTED, id, TYPE_NAME);
}
}
}
/**
* Restore the archived (soft-deleted) DomoDatasetColumn to active.
*
* @param client connectivity to the Atlan tenant on which to restore the asset
* @param qualifiedName for the DomoDatasetColumn
* @return true if the DomoDatasetColumn is now active, and false otherwise
* @throws AtlanException on any API problems
*/
public static boolean restore(AtlanClient client, String qualifiedName) throws AtlanException {
return Asset.restore(client, TYPE_NAME, qualifiedName);
}
/**
* Builds the minimal object necessary to update a DomoDatasetColumn.
*
* @param qualifiedName of the DomoDatasetColumn
* @param name of the DomoDatasetColumn
* @return the minimal request necessary to update the DomoDatasetColumn, as a builder
*/
public static DomoDatasetColumnBuilder<?, ?> updater(String qualifiedName, String name) {
return DomoDatasetColumn._internal()
.guid("-" + ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1))
.qualifiedName(qualifiedName)
.name(name);
}
/**
* Builds the minimal object necessary to apply an update to a DomoDatasetColumn, from a potentially
* more-complete DomoDatasetColumn object.
*
* @return the minimal object necessary to update the DomoDatasetColumn, as a builder
* @throws InvalidRequestException if any of the minimal set of required properties for DomoDatasetColumn are not found in the initial object
*/
@Override
public DomoDatasetColumnBuilder<?, ?> trimToRequired() throws InvalidRequestException {
Map<String, String> map = new HashMap<>();
map.put("qualifiedName", this.getQualifiedName());
map.put("name", this.getName());
validateRequired(TYPE_NAME, map);
return updater(this.getQualifiedName(), this.getName());
}
public abstract static class DomoDatasetColumnBuilder<
C extends DomoDatasetColumn, B extends DomoDatasetColumnBuilder<C, B>>
extends Asset.AssetBuilder<C, B> {}
/**
* Remove the system description from a DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant on which to remove the asset's description
* @param qualifiedName of the DomoDatasetColumn
* @param name of the DomoDatasetColumn
* @return the updated DomoDatasetColumn, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn removeDescription(AtlanClient client, String qualifiedName, String name)
throws AtlanException {
return (DomoDatasetColumn) Asset.removeDescription(client, updater(qualifiedName, name));
}
/**
* Remove the user's description from a DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant on which to remove the asset's description
* @param qualifiedName of the DomoDatasetColumn
* @param name of the DomoDatasetColumn
* @return the updated DomoDatasetColumn, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn removeUserDescription(AtlanClient client, String qualifiedName, String name)
throws AtlanException {
return (DomoDatasetColumn) Asset.removeUserDescription(client, updater(qualifiedName, name));
}
/**
* Remove the owners from a DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant from which to remove the DomoDatasetColumn's owners
* @param qualifiedName of the DomoDatasetColumn
* @param name of the DomoDatasetColumn
* @return the updated DomoDatasetColumn, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn removeOwners(AtlanClient client, String qualifiedName, String name)
throws AtlanException {
return (DomoDatasetColumn) Asset.removeOwners(client, updater(qualifiedName, name));
}
/**
* Update the certificate on a DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant on which to update the DomoDatasetColumn's certificate
* @param qualifiedName of the DomoDatasetColumn
* @param certificate to use
* @param message (optional) message, or null if no message
* @return the updated DomoDatasetColumn, or null if the update failed
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn updateCertificate(
AtlanClient client, String qualifiedName, CertificateStatus certificate, String message)
throws AtlanException {
return (DomoDatasetColumn)
Asset.updateCertificate(client, _internal(), TYPE_NAME, qualifiedName, certificate, message);
}
/**
* Remove the certificate from a DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant from which to remove the DomoDatasetColumn's certificate
* @param qualifiedName of the DomoDatasetColumn
* @param name of the DomoDatasetColumn
* @return the updated DomoDatasetColumn, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn removeCertificate(AtlanClient client, String qualifiedName, String name)
throws AtlanException {
return (DomoDatasetColumn) Asset.removeCertificate(client, updater(qualifiedName, name));
}
/**
* Update the announcement on a DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant on which to update the DomoDatasetColumn's announcement
* @param qualifiedName of the DomoDatasetColumn
* @param type type of announcement to set
* @param title (optional) title of the announcement to set (or null for no title)
* @param message (optional) message of the announcement to set (or null for no message)
* @return the result of the update, or null if the update failed
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn updateAnnouncement(
AtlanClient client, String qualifiedName, AtlanAnnouncementType type, String title, String message)
throws AtlanException {
return (DomoDatasetColumn)
Asset.updateAnnouncement(client, _internal(), TYPE_NAME, qualifiedName, type, title, message);
}
/**
* Remove the announcement from a DomoDatasetColumn.
*
* @param client connectivity to the Atlan client from which to remove the DomoDatasetColumn's announcement
* @param qualifiedName of the DomoDatasetColumn
* @param name of the DomoDatasetColumn
* @return the updated DomoDatasetColumn, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn removeAnnouncement(AtlanClient client, String qualifiedName, String name)
throws AtlanException {
return (DomoDatasetColumn) Asset.removeAnnouncement(client, updater(qualifiedName, name));
}
/**
* Replace the terms linked to the DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant on which to replace the DomoDatasetColumn's assigned terms
* @param qualifiedName for the DomoDatasetColumn
* @param name human-readable name of the DomoDatasetColumn
* @param terms the list of terms to replace on the DomoDatasetColumn, or null to remove all terms from the DomoDatasetColumn
* @return the DomoDatasetColumn that was updated (note that it will NOT contain details of the replaced terms)
* @throws AtlanException on any API problems
*/
public static DomoDatasetColumn replaceTerms(
AtlanClient client, String qualifiedName, String name, List<IGlossaryTerm> terms) throws AtlanException {
return (DomoDatasetColumn) Asset.replaceTerms(client, updater(qualifiedName, name), terms);
}
/**
* Link additional terms to the DomoDatasetColumn, without replacing existing terms linked to the DomoDatasetColumn.
* Note: this operation must make two API calls — one to retrieve the DomoDatasetColumn's existing terms,
* and a second to append the new terms.
*
* @param client connectivity to the Atlan tenant on which to append terms to the DomoDatasetColumn
* @param qualifiedName for the DomoDatasetColumn
* @param terms the list of terms to append to the DomoDatasetColumn
* @return the DomoDatasetColumn that was updated (note that it will NOT contain details of the appended terms)
* @throws AtlanException on any API problems
* @deprecated see {@link com.atlan.model.assets.Asset.AssetBuilder#appendAssignedTerm(GlossaryTerm)}
*/
@Deprecated
public static DomoDatasetColumn appendTerms(AtlanClient client, String qualifiedName, List<IGlossaryTerm> terms)
throws AtlanException {
return (DomoDatasetColumn) Asset.appendTerms(client, TYPE_NAME, qualifiedName, terms);
}
/**
* Remove terms from a DomoDatasetColumn, without replacing all existing terms linked to the DomoDatasetColumn.
* Note: this operation must make two API calls — one to retrieve the DomoDatasetColumn's existing terms,
* and a second to remove the provided terms.
*
* @param client connectivity to the Atlan tenant from which to remove terms from the DomoDatasetColumn
* @param qualifiedName for the DomoDatasetColumn
* @param terms the list of terms to remove from the DomoDatasetColumn, which must be referenced by GUID
* @return the DomoDatasetColumn that was updated (note that it will NOT contain details of the resulting terms)
* @throws AtlanException on any API problems
* @deprecated see {@link com.atlan.model.assets.Asset.AssetBuilder#removeAssignedTerm(GlossaryTerm)}
*/
@Deprecated
public static DomoDatasetColumn removeTerms(AtlanClient client, String qualifiedName, List<IGlossaryTerm> terms)
throws AtlanException {
return (DomoDatasetColumn) Asset.removeTerms(client, TYPE_NAME, qualifiedName, terms);
}
/**
* Add Atlan tags to a DomoDatasetColumn, without replacing existing Atlan tags linked to the DomoDatasetColumn.
* Note: this operation must make two API calls — one to retrieve the DomoDatasetColumn's existing Atlan tags,
* and a second to append the new Atlan tags.
*
* @param client connectivity to the Atlan tenant on which to append Atlan tags to the DomoDatasetColumn
* @param qualifiedName of the DomoDatasetColumn
* @param atlanTagNames human-readable names of the Atlan tags to add
* @throws AtlanException on any API problems
* @return the updated DomoDatasetColumn
* @deprecated see {@link com.atlan.model.assets.Asset.AssetBuilder#appendAtlanTags(List)}
*/
@Deprecated
public static DomoDatasetColumn appendAtlanTags(
AtlanClient client, String qualifiedName, List<String> atlanTagNames) throws AtlanException {
return (DomoDatasetColumn) Asset.appendAtlanTags(client, TYPE_NAME, qualifiedName, atlanTagNames);
}
/**
* Add Atlan tags to a DomoDatasetColumn, without replacing existing Atlan tags linked to the DomoDatasetColumn.
* Note: this operation must make two API calls — one to retrieve the DomoDatasetColumn's existing Atlan tags,
* and a second to append the new Atlan tags.
*
* @param client connectivity to the Atlan tenant on which to append Atlan tags to the DomoDatasetColumn
* @param qualifiedName of the DomoDatasetColumn
* @param atlanTagNames human-readable names of the Atlan tags to add
* @param propagate whether to propagate the Atlan tag (true) or not (false)
* @param removePropagationsOnDelete whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)
* @param restrictLineagePropagation whether to avoid propagating through lineage (true) or do propagate through lineage (false)
* @throws AtlanException on any API problems
* @return the updated DomoDatasetColumn
* @deprecated see {@link com.atlan.model.assets.Asset.AssetBuilder#appendAtlanTags(List, boolean, boolean, boolean, boolean)}
*/
@Deprecated
public static DomoDatasetColumn appendAtlanTags(
AtlanClient client,
String qualifiedName,
List<String> atlanTagNames,
boolean propagate,
boolean removePropagationsOnDelete,
boolean restrictLineagePropagation)
throws AtlanException {
return (DomoDatasetColumn) Asset.appendAtlanTags(
client,
TYPE_NAME,
qualifiedName,
atlanTagNames,
propagate,
removePropagationsOnDelete,
restrictLineagePropagation);
}
/**
* Remove an Atlan tag from a DomoDatasetColumn.
*
* @param client connectivity to the Atlan tenant from which to remove an Atlan tag from a DomoDatasetColumn
* @param qualifiedName of the DomoDatasetColumn
* @param atlanTagName human-readable name of the Atlan tag to remove
* @throws AtlanException on any API problems, or if the Atlan tag does not exist on the DomoDatasetColumn
* @deprecated see {@link com.atlan.model.assets.Asset.AssetBuilder#removeAtlanTag(String)}
*/
@Deprecated
public static void removeAtlanTag(AtlanClient client, String qualifiedName, String atlanTagName)
throws AtlanException {
Asset.removeAtlanTag(client, TYPE_NAME, qualifiedName, atlanTagName);
}
}