Class ApplicationDataBaseClient

java.lang.Object
com.azure.verticals.agrifood.farming.ApplicationDataBaseClient

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

    • listByFarmerId

      public DynamicRequest listByFarmerId(String farmerId)
      Returns a paginated list of application data resources under a particular farm.

      Optional Query Parameters

      Optional Query Parameters
      NameTypeDescription
      minAvgMaterialDoubleMinimum average amount of material applied during the application (inclusive).
      maxAvgMaterialDoubleMaximum average amount of material applied during the application (inclusive).
      minTotalMaterialDoubleMinimum total amount of material applied during the application (inclusive).
      maxTotalMaterialDoubleMaximum total amount of material applied during the application (inclusive).
      sourcesList<String>Sources of the operation data.
      associatedBoundaryIdsList<String>Boundary IDs associated with operation data.
      operationBoundaryIdsList<String>Operation boundary IDs associated with operation data.
      minOperationStartDateTimeOffsetDateTimeMinimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      maxOperationStartDateTimeOffsetDateTimeMaximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      minOperationEndDateTimeOffsetDateTimeMinimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      maxOperationEndDateTimeOffsetDateTimeMaximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      minOperationModifiedDateTimeOffsetDateTimeMinimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      maxOperationModifiedDateTimeOffsetDateTimeMaximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      minAreaDoubleMinimum area for which operation was applied (inclusive).
      maxAreaDoubleMaximum area for which operation was applied (inclusive).
      idsList<String>Ids of the resource.
      namesList<String>Names of the resource.
      propertyFiltersList<String>Filters on key-value pairs within the Properties object. eg. "{testKey} eq {testValue}".
      statusesList<String>Statuses of the resource.
      minCreatedDateTimeOffsetDateTimeMinimum creation date of resource (inclusive).
      maxCreatedDateTimeOffsetDateTimeMaximum creation date of resource (inclusive).
      minLastModifiedDateTimeOffsetDateTimeMinimum last modified date of resource (inclusive).
      maxLastModifiedDateTimeOffsetDateTimeMaximum last modified date of resource (inclusive).
      maxPageSizeIntegerMaximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.
      skipTokenStringSkip token for getting next set of results.

      Response Body Schema

      
       {
           value: [
               {
                   applicationProductDetails: [
                       {
                           productName: String
                           isCarrier: Boolean
                           avgMaterial: {
                               unit: String
                               value: Double
                           }
                           totalMaterial: (recursive schema, see totalMaterial above)
                       }
                   ]
                   avgMaterial: (recursive schema, see avgMaterial above)
                   totalMaterial: (recursive schema, see totalMaterial above)
                   area: (recursive schema, see area above)
                   source: String
                   operationModifiedDateTime: OffsetDateTime
                   operationStartDateTime: OffsetDateTime
                   operationEndDateTime: OffsetDateTime
                   attachmentsLink: String
                   associatedBoundaryId: String
                   operationBoundaryId: String
                   farmerId: String
                   id: String
                   eTag: String
                   status: String
                   createdDateTime: OffsetDateTime
                   modifiedDateTime: OffsetDateTime
                   name: String
                   description: String
                   properties: {
                       String: Object
                   }
               }
           ]
           skipToken: String
           nextLink: String
       }
       
      Parameters:
      farmerId - ID of the associated farmer.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • list

      public DynamicRequest list()
      Returns a paginated list of application data resources across all farmers.

      Optional Query Parameters

      Optional Query Parameters
      NameTypeDescription
      minAvgMaterialDoubleMinimum average amount of material applied during the application (inclusive).
      maxAvgMaterialDoubleMaximum average amount of material applied during the application (inclusive).
      minTotalMaterialDoubleMinimum total amount of material applied during the application (inclusive).
      maxTotalMaterialDoubleMaximum total amount of material applied during the application (inclusive).
      sourcesList<String>Sources of the operation data.
      associatedBoundaryIdsList<String>Boundary IDs associated with operation data.
      operationBoundaryIdsList<String>Operation boundary IDs associated with operation data.
      minOperationStartDateTimeOffsetDateTimeMinimum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      maxOperationStartDateTimeOffsetDateTimeMaximum start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      minOperationEndDateTimeOffsetDateTimeMinimum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      maxOperationEndDateTimeOffsetDateTimeMaximum end date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      minOperationModifiedDateTimeOffsetDateTimeMinimum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      maxOperationModifiedDateTimeOffsetDateTimeMaximum modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ (inclusive).
      minAreaDoubleMinimum area for which operation was applied (inclusive).
      maxAreaDoubleMaximum area for which operation was applied (inclusive).
      idsList<String>Ids of the resource.
      namesList<String>Names of the resource.
      propertyFiltersList<String>Filters on key-value pairs within the Properties object. eg. "{testKey} eq {testValue}".
      statusesList<String>Statuses of the resource.
      minCreatedDateTimeOffsetDateTimeMinimum creation date of resource (inclusive).
      maxCreatedDateTimeOffsetDateTimeMaximum creation date of resource (inclusive).
      minLastModifiedDateTimeOffsetDateTimeMinimum last modified date of resource (inclusive).
      maxLastModifiedDateTimeOffsetDateTimeMaximum last modified date of resource (inclusive).
      maxPageSizeIntegerMaximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.
      skipTokenStringSkip token for getting next set of results.

      Response Body Schema

      
       {
           value: [
               {
                   applicationProductDetails: [
                       {
                           productName: String
                           isCarrier: Boolean
                           avgMaterial: {
                               unit: String
                               value: Double
                           }
                           totalMaterial: (recursive schema, see totalMaterial above)
                       }
                   ]
                   avgMaterial: (recursive schema, see avgMaterial above)
                   totalMaterial: (recursive schema, see totalMaterial above)
                   area: (recursive schema, see area above)
                   source: String
                   operationModifiedDateTime: OffsetDateTime
                   operationStartDateTime: OffsetDateTime
                   operationEndDateTime: OffsetDateTime
                   attachmentsLink: String
                   associatedBoundaryId: String
                   operationBoundaryId: String
                   farmerId: String
                   id: String
                   eTag: String
                   status: String
                   createdDateTime: OffsetDateTime
                   modifiedDateTime: OffsetDateTime
                   name: String
                   description: String
                   properties: {
                       String: Object
                   }
               }
           ]
           skipToken: String
           nextLink: String
       }
       
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • get

      public DynamicRequest get(String farmerId, String applicationDataId)
      Get a specified application data resource under a particular farmer.

      Response Body Schema

      
       {
           applicationProductDetails: [
               {
                   productName: String
                   isCarrier: Boolean
                   avgMaterial: {
                       unit: String
                       value: Double
                   }
                   totalMaterial: (recursive schema, see totalMaterial above)
               }
           ]
           avgMaterial: (recursive schema, see avgMaterial above)
           totalMaterial: (recursive schema, see totalMaterial above)
           area: (recursive schema, see area above)
           source: String
           operationModifiedDateTime: OffsetDateTime
           operationStartDateTime: OffsetDateTime
           operationEndDateTime: OffsetDateTime
           attachmentsLink: String
           associatedBoundaryId: String
           operationBoundaryId: String
           farmerId: String
           id: String
           eTag: String
           status: String
           createdDateTime: OffsetDateTime
           modifiedDateTime: OffsetDateTime
           name: String
           description: String
           properties: {
               String: Object
           }
       }
       
      Parameters:
      farmerId - ID of the associated farmer resource.
      applicationDataId - ID of the application data resource.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • createOrUpdate

      public DynamicRequest createOrUpdate(String farmerId, String applicationDataId)
      Creates or updates an application data resource under a particular farmer.

      Request Body Schema

      
       {
           applicationProductDetails: [
               {
                   productName: String
                   isCarrier: Boolean
                   avgMaterial: {
                       unit: String
                       value: Double
                   }
                   totalMaterial: (recursive schema, see totalMaterial above)
               }
           ]
           avgMaterial: (recursive schema, see avgMaterial above)
           totalMaterial: (recursive schema, see totalMaterial above)
           area: (recursive schema, see area above)
           source: String
           operationModifiedDateTime: OffsetDateTime
           operationStartDateTime: OffsetDateTime
           operationEndDateTime: OffsetDateTime
           attachmentsLink: String
           associatedBoundaryId: String
           operationBoundaryId: String
           farmerId: String
           id: String
           eTag: String
           status: String
           createdDateTime: OffsetDateTime
           modifiedDateTime: OffsetDateTime
           name: String
           description: String
           properties: {
               String: Object
           }
       }
       

      Response Body Schema

      
       (recursive schema, see above)
       
      Parameters:
      farmerId - ID of the associated farmer.
      applicationDataId - ID of the application data resource.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • delete

      public DynamicRequest delete(String farmerId, String applicationDataId)
      Deletes a specified application data resource under a particular farmer.
      Parameters:
      farmerId - ID of the associated farmer resource.
      applicationDataId - ID of the application data.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • listByFarmerIdNext

      public DynamicRequest listByFarmerIdNext(String nextLink)
      Get the next page of items.

      Response Body Schema

      
       {
           value: [
               {
                   applicationProductDetails: [
                       {
                           productName: String
                           isCarrier: Boolean
                           avgMaterial: {
                               unit: String
                               value: Double
                           }
                           totalMaterial: (recursive schema, see totalMaterial above)
                       }
                   ]
                   avgMaterial: (recursive schema, see avgMaterial above)
                   totalMaterial: (recursive schema, see totalMaterial above)
                   area: (recursive schema, see area above)
                   source: String
                   operationModifiedDateTime: OffsetDateTime
                   operationStartDateTime: OffsetDateTime
                   operationEndDateTime: OffsetDateTime
                   attachmentsLink: String
                   associatedBoundaryId: String
                   operationBoundaryId: String
                   farmerId: String
                   id: String
                   eTag: String
                   status: String
                   createdDateTime: OffsetDateTime
                   modifiedDateTime: OffsetDateTime
                   name: String
                   description: String
                   properties: {
                       String: Object
                   }
               }
           ]
           skipToken: String
           nextLink: String
       }
       
      Parameters:
      nextLink - The nextLink parameter.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • listNext

      public DynamicRequest listNext(String nextLink)
      Get the next page of items.

      Response Body Schema

      
       {
           value: [
               {
                   applicationProductDetails: [
                       {
                           productName: String
                           isCarrier: Boolean
                           avgMaterial: {
                               unit: String
                               value: Double
                           }
                           totalMaterial: (recursive schema, see totalMaterial above)
                       }
                   ]
                   avgMaterial: (recursive schema, see avgMaterial above)
                   totalMaterial: (recursive schema, see totalMaterial above)
                   area: (recursive schema, see area above)
                   source: String
                   operationModifiedDateTime: OffsetDateTime
                   operationStartDateTime: OffsetDateTime
                   operationEndDateTime: OffsetDateTime
                   attachmentsLink: String
                   associatedBoundaryId: String
                   operationBoundaryId: String
                   farmerId: String
                   id: String
                   eTag: String
                   status: String
                   createdDateTime: OffsetDateTime
                   modifiedDateTime: OffsetDateTime
                   name: String
                   description: String
                   properties: {
                       String: Object
                   }
               }
           ]
           skipToken: String
           nextLink: String
       }
       
      Parameters:
      nextLink - The nextLink parameter.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • invoke

      public DynamicRequest invoke()
      Create an empty DynamicRequest with the serializer and pipeline initialized for this client.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.