Class EntityClient

java.lang.Object
com.azure.analytics.purview.datamap.EntityClient

public final class EntityClient extends Object
Initializes a new instance of the synchronous DataMapClient type.
  • Method Details

    • createOrUpdateWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> createOrUpdateWithResponse(com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Create or update an entity. Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. Map and array of collections are not well supported. E.g., array<array<int>>, array<map<string, int>>. For each contact type, the maximum number of contacts is 20.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      businessAttributeUpdateBehaviorStringNoUsed to define the update behavior for business attributes when updating entities. Allowed values: "ignore", "replace", "merge".
      collectionIdStringNoThe collection where entities will be moved to. Only specify a value if you need to move an entity to another collection.
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Request Body Schema

       
       {
           referredEntities (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   businessAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   createTime: Long (Optional)
                   createdBy: String (Optional)
                   customAttributes (Optional): {
                       String: String (Required)
                   }
                   guid: String (Optional)
                   homeId: String (Optional)
                   collectionId: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   provenanceType: Integer (Optional)
                   proxy: Boolean (Optional)
                   relationshipAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   status: String(ACTIVE/DELETED) (Optional)
                   updateTime: Long (Optional)
                   updatedBy: String (Optional)
                   version: Long (Optional)
                   contacts (Optional): {
                       String (Required): [
                            (Required){
                               id: String (Optional)
                               info: String (Optional)
                           }
                       ]
                   }
               }
           }
           entity (Optional): (recursive schema, see entity above)
       }
       
       

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      body - Body parameter.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getByIdsWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getByIdsWithResponse(List<String> guid, com.azure.core.http.rest.RequestOptions requestOptions)
      List entities in bulk identified by its GUIDs.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      minExtInfoBooleanNoWhether to return minimal information for referred entities.
      ignoreRelationshipsBooleanNoWhether to ignore relationship attributes.
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Response Body Schema

       
       {
           referredEntities (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   businessAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   createTime: Long (Optional)
                   createdBy: String (Optional)
                   customAttributes (Optional): {
                       String: String (Required)
                   }
                   guid: String (Optional)
                   homeId: String (Optional)
                   collectionId: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   provenanceType: Integer (Optional)
                   proxy: Boolean (Optional)
                   relationshipAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   status: String(ACTIVE/DELETED) (Optional)
                   updateTime: Long (Optional)
                   updatedBy: String (Optional)
                   version: Long (Optional)
                   contacts (Optional): {
                       String (Required): [
                            (Required){
                               id: String (Optional)
                               info: String (Optional)
                           }
                       ]
                   }
               }
           }
           entities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      guid - An array of GUIDs of entities to list.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      an instance of an entity along with extended info - like hive_table, hive_database along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • batchCreateOrUpdateWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> batchCreateOrUpdateWithResponse(com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Create or update entities in bulk. Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. Map and array of collections are not well supported. E.g., array<array<int>>, array<map<string, int>>. For each contact type, the maximum number of contacts is 20.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      collectionIdStringNoThe collection where entities will be moved to. Only specify a value if you need to move an entity to another collection.
      businessAttributeUpdateBehaviorStringNoUsed to define the update behavior for business attributes when updating entities. Allowed values: "ignore", "replace", "merge".
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Request Body Schema

       
       {
           referredEntities (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   businessAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   createTime: Long (Optional)
                   createdBy: String (Optional)
                   customAttributes (Optional): {
                       String: String (Required)
                   }
                   guid: String (Optional)
                   homeId: String (Optional)
                   collectionId: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   provenanceType: Integer (Optional)
                   proxy: Boolean (Optional)
                   relationshipAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   status: String(ACTIVE/DELETED) (Optional)
                   updateTime: Long (Optional)
                   updatedBy: String (Optional)
                   version: Long (Optional)
                   contacts (Optional): {
                       String (Required): [
                            (Required){
                               id: String (Optional)
                               info: String (Optional)
                           }
                       ]
                   }
               }
           }
           entities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      body - Body parameter.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • batchDeleteWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> batchDeleteWithResponse(List<String> guid, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete a list of entities in bulk identified by their GUIDs or unique attributes.

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      guid - An array of GUIDs of entities to delete.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • addClassificationWithResponse

      public com.azure.core.http.rest.Response<Void> addClassificationWithResponse(com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Associate a classification to multiple entities in bulk.

      Request Body Schema

       
       {
           classification (Optional): {
               attributes (Optional): {
                   String: BinaryData (Required)
               }
               typeName: String (Optional)
               lastModifiedTS: String (Optional)
               entityGuid: String (Optional)
               entityStatus: String(ACTIVE/DELETED) (Optional)
               removePropagationsOnEntityDelete: Boolean (Optional)
               validityPeriods (Optional): [
                    (Optional){
                       endTime: String (Optional)
                       startTime: String (Optional)
                       timeZone: String (Optional)
                   }
               ]
           }
           entityGuids (Optional): [
               String (Optional)
           ]
       }
       
       
      Parameters:
      body - Body parameter.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getWithResponse(String guid, com.azure.core.http.rest.RequestOptions requestOptions)
      Get complete definition of an entity given its GUID.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      minExtInfoBooleanNoWhether to return minimal information for referred entities.
      ignoreRelationshipsBooleanNoWhether to ignore relationship attributes.
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Response Body Schema

       
       {
           referredEntities (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   businessAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   createTime: Long (Optional)
                   createdBy: String (Optional)
                   customAttributes (Optional): {
                       String: String (Required)
                   }
                   guid: String (Optional)
                   homeId: String (Optional)
                   collectionId: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   provenanceType: Integer (Optional)
                   proxy: Boolean (Optional)
                   relationshipAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   status: String(ACTIVE/DELETED) (Optional)
                   updateTime: Long (Optional)
                   updatedBy: String (Optional)
                   version: Long (Optional)
                   contacts (Optional): {
                       String (Required): [
                            (Required){
                               id: String (Optional)
                               info: String (Optional)
                           }
                       ]
                   }
               }
           }
           entity (Optional): (recursive schema, see entity above)
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      complete definition of an entity given its GUID along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • updateAttributeByIdWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> updateAttributeByIdWithResponse(String guid, String name, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Update entity partially - create or update entity attribute identified by its GUID. Supports only primitive attribute type and entity references. It does not support updating complex types like arrays, and maps. Null updates are not possible.

      Request Body Schema

       
       BinaryData
       
       

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      name - The name of the attribute.
      body - The value of the attribute.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • deleteWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> deleteWithResponse(String guid, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete an entity identified by its GUID.

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getClassificationWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getClassificationWithResponse(String guid, String classificationName, com.azure.core.http.rest.RequestOptions requestOptions)
      Get classification for a given entity represented by a GUID.

      Response Body Schema

       
       {
           attributes (Optional): {
               String: BinaryData (Required)
           }
           typeName: String (Optional)
           lastModifiedTS: String (Optional)
           entityGuid: String (Optional)
           entityStatus: String(ACTIVE/DELETED) (Optional)
           removePropagationsOnEntityDelete: Boolean (Optional)
           validityPeriods (Optional): [
                (Optional){
                   endTime: String (Optional)
                   startTime: String (Optional)
                   timeZone: String (Optional)
               }
           ]
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      classificationName - The name of the classification.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      classification for a given entity represented by a GUID along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • removeClassificationWithResponse

      public com.azure.core.http.rest.Response<Void> removeClassificationWithResponse(String guid, String classificationName, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete a given classification from an existing entity represented by a GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      classificationName - The name of the classification.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getClassificationsWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getClassificationsWithResponse(String guid, com.azure.core.http.rest.RequestOptions requestOptions)
      List classifications for a given entity represented by a GUID.

      Response Body Schema

       
       {
           list (Optional): [
               BinaryData (Optional)
           ]
           pageSize: Integer (Optional)
           sortBy: String (Optional)
           sortType: String(NONE/ASC/DESC) (Optional)
           startIndex: Integer (Optional)
           totalCount: Integer (Optional)
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      rEST serialization friendly list along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • addClassificationsWithResponse

      public com.azure.core.http.rest.Response<Void> addClassificationsWithResponse(String guid, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Add classifications to an existing entity represented by a GUID.

      Request Body Schema

       
       [
            (Required){
               attributes (Optional): {
                   String: BinaryData (Required)
               }
               typeName: String (Optional)
               lastModifiedTS: String (Optional)
               entityGuid: String (Optional)
               entityStatus: String(ACTIVE/DELETED) (Optional)
               removePropagationsOnEntityDelete: Boolean (Optional)
               validityPeriods (Optional): [
                    (Optional){
                       endTime: String (Optional)
                       startTime: String (Optional)
                       timeZone: String (Optional)
                   }
               ]
           }
       ]
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      body - An array of classifications to be added.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • updateClassificationsWithResponse

      public com.azure.core.http.rest.Response<Void> updateClassificationsWithResponse(String guid, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Update classifications to an existing entity represented by a guid.

      Request Body Schema

       
       [
            (Required){
               attributes (Optional): {
                   String: BinaryData (Required)
               }
               typeName: String (Optional)
               lastModifiedTS: String (Optional)
               entityGuid: String (Optional)
               entityStatus: String(ACTIVE/DELETED) (Optional)
               removePropagationsOnEntityDelete: Boolean (Optional)
               validityPeriods (Optional): [
                    (Optional){
                       endTime: String (Optional)
                       startTime: String (Optional)
                       timeZone: String (Optional)
                   }
               ]
           }
       ]
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      body - An array of classifications to be updated.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getByUniqueAttributeWithResponse(String typeName, com.azure.core.http.rest.RequestOptions requestOptions)
      Get complete definition of an entity given its type and unique attribute. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      minExtInfoBooleanNoWhether to return minimal information for referred entities.
      ignoreRelationshipsBooleanNoWhether to ignore relationship attributes.
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Response Body Schema

       
       {
           referredEntities (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   businessAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   createTime: Long (Optional)
                   createdBy: String (Optional)
                   customAttributes (Optional): {
                       String: String (Required)
                   }
                   guid: String (Optional)
                   homeId: String (Optional)
                   collectionId: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   provenanceType: Integer (Optional)
                   proxy: Boolean (Optional)
                   relationshipAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   status: String(ACTIVE/DELETED) (Optional)
                   updateTime: Long (Optional)
                   updatedBy: String (Optional)
                   version: Long (Optional)
                   contacts (Optional): {
                       String (Required): [
                            (Required){
                               id: String (Optional)
                               info: String (Optional)
                           }
                       ]
                   }
               }
           }
           entity (Optional): (recursive schema, see entity above)
       }
       
       
      Parameters:
      typeName - The name of the type.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      complete definition of an entity given its type and unique attribute. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • updateByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> updateByUniqueAttributeWithResponse(String typeName, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Update entity partially - Allow a subset of attributes to be updated on an entity which is identified by its type and unique attribute eg: Referenceable.qualifiedName. Null updates are not possible. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Request Body Schema

       
       {
           referredEntities (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   businessAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   createTime: Long (Optional)
                   createdBy: String (Optional)
                   customAttributes (Optional): {
                       String: String (Required)
                   }
                   guid: String (Optional)
                   homeId: String (Optional)
                   collectionId: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   provenanceType: Integer (Optional)
                   proxy: Boolean (Optional)
                   relationshipAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   status: String(ACTIVE/DELETED) (Optional)
                   updateTime: Long (Optional)
                   updatedBy: String (Optional)
                   version: Long (Optional)
                   contacts (Optional): {
                       String (Required): [
                            (Required){
                               id: String (Optional)
                               info: String (Optional)
                           }
                       ]
                   }
               }
           }
           entity (Optional): (recursive schema, see entity above)
       }
       
       

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      typeName - The name of the type.
      body - Body parameter.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • deleteByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> deleteByUniqueAttributeWithResponse(String typeName, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete an entity identified by its type and unique attributes. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=\<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      typeName - The name of the type.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • removeClassificationByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<Void> removeClassificationByUniqueAttributeWithResponse(String typeName, String classificationName, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete a given classification from an entity identified by its type and unique attributes.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)
      Parameters:
      typeName - The name of the type.
      classificationName - The name of the classification.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • addClassificationsByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<Void> addClassificationsByUniqueAttributeWithResponse(String typeName, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Add classification to the entity identified by its type and unique attributes.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
            (Required){
               attributes (Optional): {
                   String: BinaryData (Required)
               }
               typeName: String (Optional)
               lastModifiedTS: String (Optional)
               entityGuid: String (Optional)
               entityStatus: String(ACTIVE/DELETED) (Optional)
               removePropagationsOnEntityDelete: Boolean (Optional)
               validityPeriods (Optional): [
                    (Optional){
                       endTime: String (Optional)
                       startTime: String (Optional)
                       timeZone: String (Optional)
                   }
               ]
           }
       ]
       
       
      Parameters:
      typeName - The name of the type.
      body - An array of classification to be added.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • updateClassificationsUniqueByAttributeWithResponse

      public com.azure.core.http.rest.Response<Void> updateClassificationsUniqueByAttributeWithResponse(String typeName, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Update classification on an entity identified by its type and unique attributes.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
            (Required){
               attributes (Optional): {
                   String: BinaryData (Required)
               }
               typeName: String (Optional)
               lastModifiedTS: String (Optional)
               entityGuid: String (Optional)
               entityStatus: String(ACTIVE/DELETED) (Optional)
               removePropagationsOnEntityDelete: Boolean (Optional)
               validityPeriods (Optional): [
                    (Optional){
                       endTime: String (Optional)
                       startTime: String (Optional)
                       timeZone: String (Optional)
                   }
               ]
           }
       ]
       
       
      Parameters:
      typeName - The name of the type.
      body - An array of classification to be updated.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • batchSetClassificationsWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> batchSetClassificationsWithResponse(com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Set classifications on entities in bulk.

      Request Body Schema

       
       {
           guidHeaderMap (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   classificationNames (Optional): [
                       String (Optional)
                   ]
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   displayText: String (Optional)
                   guid: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meaningNames (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   status: String(ACTIVE/DELETED) (Optional)
               }
           }
       }
       
       

      Response Body Schema

       
       [
           String (Required)
       ]
       
       
      Parameters:
      body - Body parameter.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the response body along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • batchGetByUniqueAttributesWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> batchGetByUniqueAttributesWithResponse(String typeName, com.azure.core.http.rest.RequestOptions requestOptions)
      Bulk API to retrieve list of entities identified by its unique attributes. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format typeName=\<typeName>&attr_1:\<attrName>=\<attrValue>&attr_2:\<attrName>=\<attrValue>&attr_3:\<attrName>=\<attrValue> NOTE: The attrName should be an unique attribute for the given entity-type. The REST request would look something like this GET /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 Note: at least one unique attribute must be provided.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      minExtInfoBooleanNoWhether to return minimal information for referred entities.
      ignoreRelationshipsBooleanNoWhether to ignore relationship attributes.
      attr_N:qualifiedNameStringNoQualified name of an entity. E.g. to find 2 entities you can set attrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Response Body Schema

       
       {
           referredEntities (Optional): {
               String (Required): {
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   businessAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   classifications (Optional): [
                        (Optional){
                           attributes (Optional): {
                               String: BinaryData (Required)
                           }
                           typeName: String (Optional)
                           lastModifiedTS: String (Optional)
                           entityGuid: String (Optional)
                           entityStatus: String(ACTIVE/DELETED) (Optional)
                           removePropagationsOnEntityDelete: Boolean (Optional)
                           validityPeriods (Optional): [
                                (Optional){
                                   endTime: String (Optional)
                                   startTime: String (Optional)
                                   timeZone: String (Optional)
                               }
                           ]
                       }
                   ]
                   createTime: Long (Optional)
                   createdBy: String (Optional)
                   customAttributes (Optional): {
                       String: String (Required)
                   }
                   guid: String (Optional)
                   homeId: String (Optional)
                   collectionId: String (Optional)
                   isIncomplete: Boolean (Optional)
                   labels (Optional): [
                       String (Optional)
                   ]
                   meanings (Optional): [
                        (Optional){
                           confidence: Integer (Optional)
                           createdBy: String (Optional)
                           description: String (Optional)
                           displayText: String (Optional)
                           expression: String (Optional)
                           relationGuid: String (Optional)
                           status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                           steward: String (Optional)
                           termGuid: String (Optional)
                       }
                   ]
                   provenanceType: Integer (Optional)
                   proxy: Boolean (Optional)
                   relationshipAttributes (Optional): {
                       String: BinaryData (Required)
                   }
                   status: String(ACTIVE/DELETED) (Optional)
                   updateTime: Long (Optional)
                   updatedBy: String (Optional)
                   version: Long (Optional)
                   contacts (Optional): {
                       String (Required): [
                            (Required){
                               id: String (Optional)
                               info: String (Optional)
                           }
                       ]
                   }
               }
           }
           entities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      typeName - The name of the type.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      an instance of an entity along with extended info - like hive_table, hive_database along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getHeaderWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getHeaderWithResponse(String guid, com.azure.core.http.rest.RequestOptions requestOptions)
      Get entity header given its GUID.

      Response Body Schema

       
       {
           attributes (Optional): {
               String: BinaryData (Required)
           }
           typeName: String (Optional)
           lastModifiedTS: String (Optional)
           classificationNames (Optional): [
               String (Optional)
           ]
           classifications (Optional): [
                (Optional){
                   attributes (Optional): {
                       String: BinaryData (Required)
                   }
                   typeName: String (Optional)
                   lastModifiedTS: String (Optional)
                   entityGuid: String (Optional)
                   entityStatus: String(ACTIVE/DELETED) (Optional)
                   removePropagationsOnEntityDelete: Boolean (Optional)
                   validityPeriods (Optional): [
                        (Optional){
                           endTime: String (Optional)
                           startTime: String (Optional)
                           timeZone: String (Optional)
                       }
                   ]
               }
           ]
           displayText: String (Optional)
           guid: String (Optional)
           isIncomplete: Boolean (Optional)
           labels (Optional): [
               String (Optional)
           ]
           meaningNames (Optional): [
               String (Optional)
           ]
           meanings (Optional): [
                (Optional){
                   confidence: Integer (Optional)
                   createdBy: String (Optional)
                   description: String (Optional)
                   displayText: String (Optional)
                   expression: String (Optional)
                   relationGuid: String (Optional)
                   status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                   steward: String (Optional)
                   termGuid: String (Optional)
               }
           ]
           status: String(ACTIVE/DELETED) (Optional)
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      entity header given its GUID along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • removeBusinessMetadataWithResponse

      public com.azure.core.http.rest.Response<Void> removeBusinessMetadataWithResponse(String guid, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Remove business metadata from an entity.

      Request Body Schema

       
       {
           String (Required): {
               String: BinaryData (Required)
           }
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      body - Business metadata payload.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • addOrUpdateBusinessMetadataWithResponse

      public com.azure.core.http.rest.Response<Void> addOrUpdateBusinessMetadataWithResponse(String guid, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Add business metadata to an entity.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      isOverwriteBooleanNoWhether to overwrite the existing business metadata on the entity or not, default is false.
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Request Body Schema

       
       {
           String (Required): {
               String: BinaryData (Required)
           }
       }
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      body - BusinessMetadata payload.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • removeBusinessMetadataAttributesWithResponse

      public com.azure.core.http.rest.Response<Void> removeBusinessMetadataAttributesWithResponse(String businessMetadataName, String guid, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete business metadata attributes from an entity.

      Request Body Schema

       
       {
           String: BinaryData (Required)
       }
       
       
      Parameters:
      businessMetadataName - BusinessMetadata name.
      guid - The globally unique identifier of the entity.
      body - Business metadata attribute payload.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • addOrUpdateBusinessMetadataAttributesWithResponse

      public com.azure.core.http.rest.Response<Void> addOrUpdateBusinessMetadataAttributesWithResponse(String businessMetadataName, String guid, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Add or update business metadata attributes.

      Request Body Schema

       
       {
           String: BinaryData (Required)
       }
       
       
      Parameters:
      businessMetadataName - BusinessMetadata name.
      guid - The globally unique identifier of the entity.
      body - Business metadata attribute payload.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • getBusinessMetadataTemplateWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> getBusinessMetadataTemplateWithResponse(com.azure.core.http.rest.RequestOptions requestOptions)
      Get the sample Template for uploading/creating bulk BusinessMetaData.

      Response Body Schema

       
       BinaryData
       
       
      Parameters:
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the sample Template for uploading/creating bulk BusinessMetaData along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • removeLabelsWithResponse

      public com.azure.core.http.rest.Response<Void> removeLabelsWithResponse(String guid, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete given labels to a given entity.

      Header Parameters

      Header Parameters
      NameTypeRequiredDescription
      Content-TypeStringNoThe content type. Allowed values: "application/json".
      You can add these to a request with RequestOptions.addHeader(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
           String (Optional)
       ]
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • setLabelsWithResponse

      public com.azure.core.http.rest.Response<Void> setLabelsWithResponse(String guid, com.azure.core.http.rest.RequestOptions requestOptions)
      Set labels to a given entity.

      Header Parameters

      Header Parameters
      NameTypeRequiredDescription
      Content-TypeStringNoThe content type. Allowed values: "application/json".
      You can add these to a request with RequestOptions.addHeader(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
           String (Optional)
       ]
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • addLabelWithResponse

      public com.azure.core.http.rest.Response<Void> addLabelWithResponse(String guid, com.azure.core.http.rest.RequestOptions requestOptions)
      Add given labels to a given entity.

      Header Parameters

      Header Parameters
      NameTypeRequiredDescription
      Content-TypeStringNoThe content type. Allowed values: "application/json".
      You can add these to a request with RequestOptions.addHeader(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
           String (Optional)
       ]
       
       
      Parameters:
      guid - The globally unique identifier of the entity.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • removeLabelsByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<Void> removeLabelsByUniqueAttributeWithResponse(String typeName, com.azure.core.http.rest.RequestOptions requestOptions)
      Delete given labels to a given entity identified by its type and unique attribute. If labels is null/empty, no labels will be removed. If any labels in labels set are non-existing labels, they will be ignored, only existing labels will be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Header Parameters

      Header Parameters
      NameTypeRequiredDescription
      Content-TypeStringNoThe content type. Allowed values: "application/json".
      You can add these to a request with RequestOptions.addHeader(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
           String (Optional)
       ]
       
       
      Parameters:
      typeName - The name of the type.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • setLabelsByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<Void> setLabelsByUniqueAttributeWithResponse(String typeName, com.azure.core.http.rest.RequestOptions requestOptions)
      Set labels to a given entity identified by its type and unique attributes. If labels is null/empty, existing labels will all be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: POST /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Header Parameters

      Header Parameters
      NameTypeRequiredDescription
      Content-TypeStringNoThe content type. Allowed values: "application/json".
      You can add these to a request with RequestOptions.addHeader(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
           String (Optional)
       ]
       
       
      Parameters:
      typeName - The name of the type.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • addLabelsByUniqueAttributeWithResponse

      public com.azure.core.http.rest.Response<Void> addLabelsByUniqueAttributeWithResponse(String typeName, com.azure.core.http.rest.RequestOptions requestOptions)
      Add given labels to a given entity identified by its type and unique attributes. If labels is null/empty, no labels will be added. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.

      Query Parameters

      Query Parameters
      NameTypeRequiredDescription
      attr:qualifiedNameStringNoThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
      You can add these to a request with RequestOptions.addQueryParam(java.lang.String, java.lang.String)

      Header Parameters

      Header Parameters
      NameTypeRequiredDescription
      Content-TypeStringNoThe content type. Allowed values: "application/json".
      You can add these to a request with RequestOptions.addHeader(java.lang.String, java.lang.String)

      Request Body Schema

       
       [
           String (Optional)
       ]
       
       
      Parameters:
      typeName - The name of the type.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • moveEntitiesToCollectionWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> moveEntitiesToCollectionWithResponse(String collectionId, com.azure.core.util.BinaryData body, com.azure.core.http.rest.RequestOptions requestOptions)
      Move existing entities to the target collection.

      Request Body Schema

       
       {
           entityGuids (Optional): [
               String (Optional)
           ]
       }
       
       

      Response Body Schema

       
       {
           guidAssignments (Optional): {
               String: String (Required)
           }
           mutatedEntities (Optional): {
               String (Required): [
                    (Required){
                       attributes (Optional): {
                           String: BinaryData (Required)
                       }
                       typeName: String (Optional)
                       lastModifiedTS: String (Optional)
                       classificationNames (Optional): [
                           String (Optional)
                       ]
                       classifications (Optional): [
                            (Optional){
                               attributes (Optional): {
                                   String: BinaryData (Required)
                               }
                               typeName: String (Optional)
                               lastModifiedTS: String (Optional)
                               entityGuid: String (Optional)
                               entityStatus: String(ACTIVE/DELETED) (Optional)
                               removePropagationsOnEntityDelete: Boolean (Optional)
                               validityPeriods (Optional): [
                                    (Optional){
                                       endTime: String (Optional)
                                       startTime: String (Optional)
                                       timeZone: String (Optional)
                                   }
                               ]
                           }
                       ]
                       displayText: String (Optional)
                       guid: String (Optional)
                       isIncomplete: Boolean (Optional)
                       labels (Optional): [
                           String (Optional)
                       ]
                       meaningNames (Optional): [
                           String (Optional)
                       ]
                       meanings (Optional): [
                            (Optional){
                               confidence: Integer (Optional)
                               createdBy: String (Optional)
                               description: String (Optional)
                               displayText: String (Optional)
                               expression: String (Optional)
                               relationGuid: String (Optional)
                               status: String(DISCOVERED/PROPOSED/IMPORTED/VALIDATED/DEPRECATED/OBSOLETE/OTHER) (Optional)
                               steward: String (Optional)
                               termGuid: String (Optional)
                           }
                       ]
                       status: String(ACTIVE/DELETED) (Optional)
                   }
               ]
           }
           partialUpdatedEntities (Optional): [
               (recursive schema, see above)
           ]
       }
       
       
      Parameters:
      collectionId - The collection where entities will be moved to.
      body - Body parameter.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the mutation response result of entity along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • createOrUpdate

      public EntityMutationResult createOrUpdate(AtlasEntityWithExtInfo body, BusinessAttributeUpdateBehavior businessAttributeUpdateBehavior, String collectionId)
      Create or update an entity. Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. Map and array of collections are not well supported. E.g., array<array<int>>, array<map<string, int>>. For each contact type, the maximum number of contacts is 20.
      Parameters:
      body - Body parameter.
      businessAttributeUpdateBehavior - Used to define the update behavior for business attributes when updating entities.
      collectionId - The collection where entities will be moved to. Only specify a value if you need to move an entity to another collection.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      public EntityMutationResult createOrUpdate(AtlasEntityWithExtInfo body)
      Create or update an entity. Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. Map and array of collections are not well supported. E.g., array<array<int>>, array<map<string, int>>. For each contact type, the maximum number of contacts is 20.
      Parameters:
      body - Body parameter.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByIds

      public AtlasEntitiesWithExtInfo getByIds(List<String> guid, Boolean minExtInfo, Boolean ignoreRelationships)
      List entities in bulk identified by its GUIDs.
      Parameters:
      guid - An array of GUIDs of entities to list.
      minExtInfo - Whether to return minimal information for referred entities.
      ignoreRelationships - Whether to ignore relationship attributes.
      Returns:
      an instance of an entity along with extended info - like hive_table, hive_database.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByIds

      public AtlasEntitiesWithExtInfo getByIds(List<String> guid)
      List entities in bulk identified by its GUIDs.
      Parameters:
      guid - An array of GUIDs of entities to list.
      Returns:
      an instance of an entity along with extended info - like hive_table, hive_database.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • batchCreateOrUpdate

      public EntityMutationResult batchCreateOrUpdate(AtlasEntitiesWithExtInfo body, String collectionId, BusinessAttributeUpdateBehavior businessAttributeUpdateBehavior)
      Create or update entities in bulk. Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. Map and array of collections are not well supported. E.g., array<array<int>>, array<map<string, int>>. For each contact type, the maximum number of contacts is 20.
      Parameters:
      body - Body parameter.
      collectionId - The collection where entities will be moved to. Only specify a value if you need to move an entity to another collection.
      businessAttributeUpdateBehavior - Used to define the update behavior for business attributes when updating entities.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • batchCreateOrUpdate

      public EntityMutationResult batchCreateOrUpdate(AtlasEntitiesWithExtInfo body)
      Create or update entities in bulk. Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. Map and array of collections are not well supported. E.g., array<array<int>>, array<map<string, int>>. For each contact type, the maximum number of contacts is 20.
      Parameters:
      body - Body parameter.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • batchDelete

      public EntityMutationResult batchDelete(List<String> guid)
      Delete a list of entities in bulk identified by their GUIDs or unique attributes.
      Parameters:
      guid - An array of GUIDs of entities to delete.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addClassification

      public void addClassification(ClassificationAssociateOptions body)
      Associate a classification to multiple entities in bulk.
      Parameters:
      body - Body parameter.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      public AtlasEntityWithExtInfo get(String guid, Boolean minExtInfo, Boolean ignoreRelationships)
      Get complete definition of an entity given its GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      minExtInfo - Whether to return minimal information for referred entities.
      ignoreRelationships - Whether to ignore relationship attributes.
      Returns:
      complete definition of an entity given its GUID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      public AtlasEntityWithExtInfo get(String guid)
      Get complete definition of an entity given its GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      Returns:
      complete definition of an entity given its GUID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAttributeById

      public EntityMutationResult updateAttributeById(String guid, String name, com.azure.core.util.BinaryData body)
      Update entity partially - create or update entity attribute identified by its GUID. Supports only primitive attribute type and entity references. It does not support updating complex types like arrays, and maps. Null updates are not possible.
      Parameters:
      guid - The globally unique identifier of the entity.
      name - The name of the attribute.
      body - The value of the attribute.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      public EntityMutationResult delete(String guid)
      Delete an entity identified by its GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getClassification

      public AtlasClassification getClassification(String guid, String classificationName)
      Get classification for a given entity represented by a GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      classificationName - The name of the classification.
      Returns:
      classification for a given entity represented by a GUID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeClassification

      public void removeClassification(String guid, String classificationName)
      Delete a given classification from an existing entity represented by a GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      classificationName - The name of the classification.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getClassifications

      public AtlasClassifications getClassifications(String guid)
      List classifications for a given entity represented by a GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      Returns:
      rEST serialization friendly list.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addClassifications

      public void addClassifications(String guid, List<AtlasClassification> body)
      Add classifications to an existing entity represented by a GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - An array of classifications to be added.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateClassifications

      public void updateClassifications(String guid, List<AtlasClassification> body)
      Update classifications to an existing entity represented by a guid.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - An array of classifications to be updated.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByUniqueAttribute

      public AtlasEntityWithExtInfo getByUniqueAttribute(String typeName, Boolean minExtInfo, Boolean ignoreRelationships, String attribute)
      Get complete definition of an entity given its type and unique attribute. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      minExtInfo - Whether to return minimal information for referred entities.
      ignoreRelationships - Whether to ignore relationship attributes.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      Returns:
      complete definition of an entity given its type and unique attribute. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByUniqueAttribute

      public AtlasEntityWithExtInfo getByUniqueAttribute(String typeName)
      Get complete definition of an entity given its type and unique attribute. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      Returns:
      complete definition of an entity given its type and unique attribute. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateByUniqueAttribute

      public EntityMutationResult updateByUniqueAttribute(String typeName, AtlasEntityWithExtInfo body, String attribute)
      Update entity partially - Allow a subset of attributes to be updated on an entity which is identified by its type and unique attribute eg: Referenceable.qualifiedName. Null updates are not possible. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      body - Body parameter.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateByUniqueAttribute

      public EntityMutationResult updateByUniqueAttribute(String typeName, AtlasEntityWithExtInfo body)
      Update entity partially - Allow a subset of attributes to be updated on an entity which is identified by its type and unique attribute eg: Referenceable.qualifiedName. Null updates are not possible. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      body - Body parameter.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByUniqueAttribute

      public EntityMutationResult deleteByUniqueAttribute(String typeName, String attribute)
      Delete an entity identified by its type and unique attributes. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=\<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByUniqueAttribute

      public EntityMutationResult deleteByUniqueAttribute(String typeName)
      Delete an entity identified by its type and unique attributes. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:\<attrName>=\<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeClassificationByUniqueAttribute

      public void removeClassificationByUniqueAttribute(String typeName, String classificationName, String attribute)
      Delete a given classification from an entity identified by its type and unique attributes.
      Parameters:
      typeName - The name of the type.
      classificationName - The name of the classification.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeClassificationByUniqueAttribute

      public void removeClassificationByUniqueAttribute(String typeName, String classificationName)
      Delete a given classification from an entity identified by its type and unique attributes.
      Parameters:
      typeName - The name of the type.
      classificationName - The name of the classification.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addClassificationsByUniqueAttribute

      public void addClassificationsByUniqueAttribute(String typeName, List<AtlasClassification> body, String attribute)
      Add classification to the entity identified by its type and unique attributes.
      Parameters:
      typeName - The name of the type.
      body - An array of classification to be added.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addClassificationsByUniqueAttribute

      public void addClassificationsByUniqueAttribute(String typeName, List<AtlasClassification> body)
      Add classification to the entity identified by its type and unique attributes.
      Parameters:
      typeName - The name of the type.
      body - An array of classification to be added.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateClassificationsUniqueByAttribute

      public void updateClassificationsUniqueByAttribute(String typeName, List<AtlasClassification> body, String attribute)
      Update classification on an entity identified by its type and unique attributes.
      Parameters:
      typeName - The name of the type.
      body - An array of classification to be updated.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateClassificationsUniqueByAttribute

      public void updateClassificationsUniqueByAttribute(String typeName, List<AtlasClassification> body)
      Update classification on an entity identified by its type and unique attributes.
      Parameters:
      typeName - The name of the type.
      body - An array of classification to be updated.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • batchSetClassifications

      public List<String> batchSetClassifications(AtlasEntityHeaders body)
      Set classifications on entities in bulk.
      Parameters:
      body - Body parameter.
      Returns:
      the response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • batchGetByUniqueAttributes

      public AtlasEntitiesWithExtInfo batchGetByUniqueAttributes(String typeName, Boolean minExtInfo, Boolean ignoreRelationships, String attrNQualifiedName)
      Bulk API to retrieve list of entities identified by its unique attributes. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format typeName=\<typeName>&attr_1:\<attrName>=\<attrValue>&attr_2:\<attrName>=\<attrValue>&attr_3:\<attrName>=\<attrValue> NOTE: The attrName should be an unique attribute for the given entity-type. The REST request would look something like this GET /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 Note: at least one unique attribute must be provided.
      Parameters:
      typeName - The name of the type.
      minExtInfo - Whether to return minimal information for referred entities.
      ignoreRelationships - Whether to ignore relationship attributes.
      attrNQualifiedName - Qualified name of an entity. E.g. to find 2 entities you can set attrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an example. qualifiedName can be changed to other unique attributes).
      Returns:
      an instance of an entity along with extended info - like hive_table, hive_database.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • batchGetByUniqueAttributes

      public AtlasEntitiesWithExtInfo batchGetByUniqueAttributes(String typeName)
      Bulk API to retrieve list of entities identified by its unique attributes. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format typeName=\<typeName>&attr_1:\<attrName>=\<attrValue>&attr_2:\<attrName>=\<attrValue>&attr_3:\<attrName>=\<attrValue> NOTE: The attrName should be an unique attribute for the given entity-type. The REST request would look something like this GET /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 Note: at least one unique attribute must be provided.
      Parameters:
      typeName - The name of the type.
      Returns:
      an instance of an entity along with extended info - like hive_table, hive_database.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getHeader

      public AtlasEntityHeader getHeader(String guid)
      Get entity header given its GUID.
      Parameters:
      guid - The globally unique identifier of the entity.
      Returns:
      entity header given its GUID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeBusinessMetadata

      public void removeBusinessMetadata(String guid, Map<String,Map<String,com.azure.core.util.BinaryData>> body)
      Remove business metadata from an entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - Business metadata payload.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addOrUpdateBusinessMetadata

      public void addOrUpdateBusinessMetadata(String guid, Map<String,Map<String,com.azure.core.util.BinaryData>> body, Boolean overwrite)
      Add business metadata to an entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - BusinessMetadata payload.
      overwrite - Whether to overwrite the existing business metadata on the entity or not, default is false.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addOrUpdateBusinessMetadata

      public void addOrUpdateBusinessMetadata(String guid, Map<String,Map<String,com.azure.core.util.BinaryData>> body)
      Add business metadata to an entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - BusinessMetadata payload.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeBusinessMetadataAttributes

      public void removeBusinessMetadataAttributes(String businessMetadataName, String guid, Map<String,com.azure.core.util.BinaryData> body)
      Delete business metadata attributes from an entity.
      Parameters:
      businessMetadataName - BusinessMetadata name.
      guid - The globally unique identifier of the entity.
      body - Business metadata attribute payload.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addOrUpdateBusinessMetadataAttributes

      public void addOrUpdateBusinessMetadataAttributes(String businessMetadataName, String guid, Map<String,com.azure.core.util.BinaryData> body)
      Add or update business metadata attributes.
      Parameters:
      businessMetadataName - BusinessMetadata name.
      guid - The globally unique identifier of the entity.
      body - Business metadata attribute payload.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getBusinessMetadataTemplate

      public com.azure.core.util.BinaryData getBusinessMetadataTemplate()
      Get the sample Template for uploading/creating bulk BusinessMetaData.
      Returns:
      the sample Template for uploading/creating bulk BusinessMetaData.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • importBusinessMetadata

      public BulkImportResult importBusinessMetadata(BusinessMetadataOptions body)
      Upload the file for creating Business Metadata in BULK.
      Parameters:
      body - Body parameter.
      Returns:
      bulk import result.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeLabels

      public void removeLabels(String guid, List<String> body)
      Delete given labels to a given entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - set of labels to be deleted.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeLabels

      public void removeLabels(String guid)
      Delete given labels to a given entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • setLabels

      public void setLabels(String guid, List<String> body)
      Set labels to a given entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - set of labels to be set to the entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • setLabels

      public void setLabels(String guid)
      Set labels to a given entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addLabel

      public void addLabel(String guid, List<String> body)
      Add given labels to a given entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      body - set of labels to be added.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addLabel

      public void addLabel(String guid)
      Add given labels to a given entity.
      Parameters:
      guid - The globally unique identifier of the entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeLabelsByUniqueAttribute

      public void removeLabelsByUniqueAttribute(String typeName, String attribute, List<String> body)
      Delete given labels to a given entity identified by its type and unique attribute. If labels is null/empty, no labels will be removed. If any labels in labels set are non-existing labels, they will be ignored, only existing labels will be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      body - set of labels to be deleted.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • removeLabelsByUniqueAttribute

      public void removeLabelsByUniqueAttribute(String typeName)
      Delete given labels to a given entity identified by its type and unique attribute. If labels is null/empty, no labels will be removed. If any labels in labels set are non-existing labels, they will be ignored, only existing labels will be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • setLabelsByUniqueAttribute

      public void setLabelsByUniqueAttribute(String typeName, String attribute, List<String> body)
      Set labels to a given entity identified by its type and unique attributes. If labels is null/empty, existing labels will all be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: POST /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      body - set of labels to be set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • setLabelsByUniqueAttribute

      public void setLabelsByUniqueAttribute(String typeName)
      Set labels to a given entity identified by its type and unique attributes. If labels is null/empty, existing labels will all be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: POST /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addLabelsByUniqueAttribute

      public void addLabelsByUniqueAttribute(String typeName, String attribute, List<String> body)
      Add given labels to a given entity identified by its type and unique attributes. If labels is null/empty, no labels will be added. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      attribute - The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes).
      body - set of labels to be added.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • addLabelsByUniqueAttribute

      public void addLabelsByUniqueAttribute(String typeName)
      Add given labels to a given entity identified by its type and unique attributes. If labels is null/empty, no labels will be added. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
      Parameters:
      typeName - The name of the type.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • moveEntitiesToCollection

      public EntityMutationResult moveEntitiesToCollection(String collectionId, MoveEntitiesOptions body)
      Move existing entities to the target collection.
      Parameters:
      collectionId - The collection where entities will be moved to.
      body - Body parameter.
      Returns:
      the mutation response result of entity.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.