Package com.atlan.model.admin
Class AtlanRequest
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.admin.AtlanRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AtlanTagRequest
,AttributeRequest
,CustomMetadataRequest
,TermLinkRequest
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AtlanRequest.AtlanRequestBuilder<C extends AtlanRequest,
B extends AtlanRequest.AtlanRequestBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
approve
(AtlanClient client, String guid, String message) Approve the specified request in Atlan.static boolean
Approve the specified request in Atlan.protected boolean
void
create()
Create the request in Atlan that is represented by this object.void
create
(AtlanClient client) Create the request in Atlan that is represented by this object.boolean
Unused.Unused.Type of approval required — currently only `single` is supported.User who approved the request.Unused.Unused.Unused.Date and time at which the request was created.User who created the request.Attribute the request was made against.Limited details about the asset this request was made against.Unique identifier (GUID) of the asset this request was made against.Unique name of the asset this request was made against.Requested value for the attribute.Semantic to use when applying the destination value, for example `append`.Unused.Unused.Type of the destination attribute value, for example `array`.Type of asset the change was requested against.getHash()
TBCgetId()
Unique identifier for the request (GUID).If true, the request is still open.TBCComment recorded with the approval or rejection of the request.User who rejected the request.TBCNames of roles (in Keycloak) that can approve this request.Names of users (in Keycloak) that can approve this request.TBCUnique identifiers (GUIDs) of the roles that can deny this request.Names of users (in Keycloak) that can deny this request.Unused.Type of change the request is for.TBCTBCUnique identifier (GUID) of the asset being related through this request, for example the term's GUID for a TERM_LINK.Unique name of the asset being related through this request, for example the term's qualifiedName for a TERM_LINK.Should be `static` for an ATTRIBUTE or CUSTOM_METADATA requestType, and `atlas` for other request types.Status of the request.Name of the tenant for the request (usually `default`).Date and time at which the request was last updated.Unique version name for the request.int
hashCode()
static AtlanRequestResponse
list()
Retrieve the list of requests defined in Atlan as you would via the Admin UI.static AtlanRequestResponse
list
(AtlanClient client) Retrieve the list of requests defined in Atlan as you would via the Admin UI.static boolean
reject
(AtlanClient client, String guid, String message) Reject the specified request in Atlan.static boolean
Reject the specified request in Atlan.static AtlanRequest
retrieveByGuid
(AtlanClient client, String guid) Fetch a single request by its unique identifier (GUID).static AtlanRequest
retrieveByGuid
(String guid) Fetch a single request by its unique identifier (GUID).toString()
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
AtlanRequest
-
-
Method Details
-
create
Create the request in Atlan that is represented by this object.- Throws:
AtlanException
- on any API interaction issues
-
create
Create the request in Atlan that is represented by this object.- Parameters:
client
- connectivity to the Atlan tenant in which to create the request- Throws:
AtlanException
- on any API interaction issues
-
list
Retrieve the list of requests defined in Atlan as you would via the Admin UI.- Returns:
- a list of all the requests in Atlan
- Throws:
AtlanException
- on any API communication issue
-
list
Retrieve the list of requests defined in Atlan as you would via the Admin UI.- Parameters:
client
- connectivity to the Atlan tenant from which to list requests- Returns:
- a list of all the requests in Atlan
- Throws:
AtlanException
- on any API communication issue
-
retrieveByGuid
Fetch a single request by its unique identifier (GUID).- Parameters:
guid
- unique identifier (GUID) of the request to fetch.- Returns:
- the single request, or null if none was found
- Throws:
AtlanException
- on any API communication issue
-
retrieveByGuid
Fetch a single request by its unique identifier (GUID).- Parameters:
client
- connectivity to the Atlan tenant from which to fetch the requestguid
- unique identifier (GUID) of the request to fetch.- Returns:
- the single request, or null if none was found
- Throws:
AtlanException
- on any API communication issue
-
approve
Approve the specified request in Atlan.- Parameters:
guid
- unique identifier (GUID) of the request to approvemessage
- (optional) message to include with the approval- Returns:
- true if the approval succeeded, otherwise false
- Throws:
AtlanException
- on any API interaction issues
-
approve
public static boolean approve(AtlanClient client, String guid, String message) throws AtlanException Approve the specified request in Atlan.- Parameters:
client
- connectivity to the Atlan tenant in which to approve the requestguid
- unique identifier (GUID) of the request to approvemessage
- (optional) message to include with the approval- Returns:
- true if the approval succeeded, otherwise false
- Throws:
AtlanException
- on any API interaction issues
-
reject
Reject the specified request in Atlan.- Parameters:
guid
- unique identifier (GUID) of the request to rejectmessage
- (optional) message to include with the rejection- Returns:
- true if the rejection succeeded, otherwise false
- Throws:
AtlanException
- on any API interaction issues
-
reject
Reject the specified request in Atlan.- Parameters:
client
- connectivity to the Atlan tenant in which to reject the requestguid
- unique identifier (GUID) of the request to rejectmessage
- (optional) message to include with the rejection- Returns:
- true if the rejection succeeded, otherwise false
- Throws:
AtlanException
- on any API interaction issues
-
getId
Unique identifier for the request (GUID). -
getVersion
Unique version name for the request. -
getIsActive
If true, the request is still open. -
getCreatedAt
Date and time at which the request was created. -
getUpdatedAt
Date and time at which the request was last updated. -
getCreatedBy
User who created the request. -
getTenantId
Name of the tenant for the request (usually `default`). -
getSourceType
Should be `static` for an ATTRIBUTE or CUSTOM_METADATA requestType, and `atlas` for other request types. -
getSourceGuid
Unique identifier (GUID) of the asset being related through this request, for example the term's GUID for a TERM_LINK. -
getSourceQualifiedName
Unique name of the asset being related through this request, for example the term's qualifiedName for a TERM_LINK. -
getSourceAttribute
TBC -
getDestinationGuid
Unique identifier (GUID) of the asset this request was made against. -
getDestinationQualifiedName
Unique name of the asset this request was made against. -
getDestinationAttribute
Attribute the request was made against. -
getDestinationValue
Requested value for the attribute. -
getDestinationValueType
Type of the destination attribute value, for example `array`. -
getDestinationValueArray
Unused. -
getDestinationValueObject
Unused. -
getEntityType
Type of asset the change was requested against. -
getRequestType
Type of change the request is for. -
getConfidenceScore
Unused. -
getBotRunId
Unused. -
getApprovedBy
User who approved the request. -
getRejectedBy
User who rejected the request. -
getStatus
Status of the request. -
getMessage
Comment recorded with the approval or rejection of the request. -
getRequestsBatch
Unused. -
getApprovalType
Type of approval required — currently only `single` is supported. -
getAssignedApprovers
Unused. -
getAccessStartDate
Unused. -
getAccessEndDate
Unused. -
getHash
TBC -
getIsDuplicate
TBC -
getDestinationValueAction
Semantic to use when applying the destination value, for example `append`. -
getRequestApproverUsers
Names of users (in Keycloak) that can approve this request. -
getRequestApproverGroups
TBC -
getRequestApproverRoles
Names of roles (in Keycloak) that can approve this request. -
getRequestDenyUsers
Names of users (in Keycloak) that can deny this request. -
getRequestDenyGroups
TBC -
getRequestDenyRoles
Unique identifiers (GUIDs) of the roles that can deny this request. -
getSourceEntity
TBC -
getDestinationEntity
Limited details about the asset this request was made against. -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-