Class SeasonalFieldsBaseClient

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

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

    • listByFarmerId

      public DynamicRequest listByFarmerId(String farmerId)
      Returns a paginated list of seasonal field resources under a particular farmer.

      Optional Query Parameters

      Optional Query Parameters
      NameTypeDescription
      farmIdsList<String>Farm Ids of the resource.
      fieldIdsList<String>Field Ids of the resource.
      seasonIdsList<String>Season Ids of the resource.
      cropVarietyIdsList<String>CropVarietyIds of the resource.
      cropIdsList<String>Ids of the crop it belongs to.
      minAvgYieldValueDoubleMinimum average yield value of the seasonal field(inclusive).
      maxAvgYieldValueDoubleMaximum average yield value of the seasonal field(inclusive).
      avgYieldUnitStringUnit of the average yield value attribute.
      minAvgSeedPopulationValueDoubleMinimum average seed population value of the seasonal field(inclusive).
      maxAvgSeedPopulationValueDoubleMaximum average seed population value of the seasonal field(inclusive).
      avgSeedPopulationUnitStringUnit of average seed population value attribute.
      minPlantingDateTimeOffsetDateTimeMinimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      maxPlantingDateTimeOffsetDateTimeMaximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      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: [
               {
                   farmerId: String
                   primaryBoundaryId: String
                   boundaryIds: [
                       String
                   ]
                   farmId: String
                   fieldId: String
                   seasonId: String
                   cropVarietyIds: [
                       String
                   ]
                   cropId: String
                   avgYieldValue: Double
                   avgYieldUnit: String
                   avgSeedPopulationValue: Double
                   avgSeedPopulationUnit: String
                   plantingDateTime: OffsetDateTime
                   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 seasonal field resources across all farmers.

      Optional Query Parameters

      Optional Query Parameters
      NameTypeDescription
      farmIdsList<String>Farm Ids of the resource.
      fieldIdsList<String>Field Ids of the resource.
      seasonIdsList<String>Season Ids of the resource.
      cropVarietyIdsList<String>CropVarietyIds of the resource.
      cropIdsList<String>Ids of the crop it belongs to.
      minAvgYieldValueDoubleMinimum average yield value of the seasonal field(inclusive).
      maxAvgYieldValueDoubleMaximum average yield value of the seasonal field(inclusive).
      avgYieldUnitStringUnit of the average yield value attribute.
      minAvgSeedPopulationValueDoubleMinimum average seed population value of the seasonal field(inclusive).
      maxAvgSeedPopulationValueDoubleMaximum average seed population value of the seasonal field(inclusive).
      avgSeedPopulationUnitStringUnit of average seed population value attribute.
      minPlantingDateTimeOffsetDateTimeMinimum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      maxPlantingDateTimeOffsetDateTimeMaximum planting datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      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: [
               {
                   farmerId: String
                   primaryBoundaryId: String
                   boundaryIds: [
                       String
                   ]
                   farmId: String
                   fieldId: String
                   seasonId: String
                   cropVarietyIds: [
                       String
                   ]
                   cropId: String
                   avgYieldValue: Double
                   avgYieldUnit: String
                   avgSeedPopulationValue: Double
                   avgSeedPopulationUnit: String
                   plantingDateTime: OffsetDateTime
                   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 seasonalFieldId)
      Gets a specified seasonal field resource under a particular farmer.

      Response Body Schema

      
       {
           farmerId: String
           primaryBoundaryId: String
           boundaryIds: [
               String
           ]
           farmId: String
           fieldId: String
           seasonId: String
           cropVarietyIds: [
               String
           ]
           cropId: String
           avgYieldValue: Double
           avgYieldUnit: String
           avgSeedPopulationValue: Double
           avgSeedPopulationUnit: String
           plantingDateTime: OffsetDateTime
           id: String
           eTag: String
           status: String
           createdDateTime: OffsetDateTime
           modifiedDateTime: OffsetDateTime
           name: String
           description: String
           properties: {
               String: Object
           }
       }
       
      Parameters:
      farmerId - ID of the associated farmer.
      seasonalFieldId - ID of the seasonal field.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • createOrUpdate

      public DynamicRequest createOrUpdate(String farmerId, String seasonalFieldId)
      Creates or Updates a seasonal field resource under a particular farmer.

      Request Body Schema

      
       {
           farmerId: String
           primaryBoundaryId: String
           boundaryIds: [
               String
           ]
           farmId: String
           fieldId: String
           seasonId: String
           cropVarietyIds: [
               String
           ]
           cropId: String
           avgYieldValue: Double
           avgYieldUnit: String
           avgSeedPopulationValue: Double
           avgSeedPopulationUnit: String
           plantingDateTime: OffsetDateTime
           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 resource.
      seasonalFieldId - ID of the seasonal field resource.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • delete

      public DynamicRequest delete(String farmerId, String seasonalFieldId)
      Deletes a specified seasonal-field resource under a particular farmer.
      Parameters:
      farmerId - ID of the farmer.
      seasonalFieldId - ID of the seasonal field.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • getCascadeDeleteJobDetails

      public DynamicRequest getCascadeDeleteJobDetails(String jobId)
      Get cascade delete job for specified seasonal field.

      Response Body Schema

      
       {
           farmerId: String
           resourceId: String
           resourceType: String
           id: String
           status: String
           durationInSeconds: Double
           message: String
           createdDateTime: OffsetDateTime
           lastActionDateTime: OffsetDateTime
           startTime: OffsetDateTime
           endTime: OffsetDateTime
           name: String
           description: String
           properties: {
               String: Object
           }
       }
       
      Parameters:
      jobId - ID of the job.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • createCascadeDeleteJob

      public DynamicRequest createCascadeDeleteJob(String jobId, String farmerId, String seasonalFieldId)
      Create a cascade delete job for specified seasonal field.

      Response Body Schema

      
       {
           farmerId: String
           resourceId: String
           resourceType: String
           id: String
           status: String
           durationInSeconds: Double
           message: String
           createdDateTime: OffsetDateTime
           lastActionDateTime: OffsetDateTime
           startTime: OffsetDateTime
           endTime: OffsetDateTime
           name: String
           description: String
           properties: {
               String: Object
           }
       }
       
      Parameters:
      jobId - Job ID supplied by end user.
      farmerId - ID of the associated farmer.
      seasonalFieldId - ID of the seasonalField to be deleted.
      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: [
               {
                   farmerId: String
                   primaryBoundaryId: String
                   boundaryIds: [
                       String
                   ]
                   farmId: String
                   fieldId: String
                   seasonId: String
                   cropVarietyIds: [
                       String
                   ]
                   cropId: String
                   avgYieldValue: Double
                   avgYieldUnit: String
                   avgSeedPopulationValue: Double
                   avgSeedPopulationUnit: String
                   plantingDateTime: OffsetDateTime
                   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: [
               {
                   farmerId: String
                   primaryBoundaryId: String
                   boundaryIds: [
                       String
                   ]
                   farmId: String
                   fieldId: String
                   seasonId: String
                   cropVarietyIds: [
                       String
                   ]
                   cropId: String
                   avgYieldValue: Double
                   avgYieldUnit: String
                   avgSeedPopulationValue: Double
                   avgSeedPopulationUnit: String
                   plantingDateTime: OffsetDateTime
                   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.