Class SeasonsBaseClient

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

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

    • list

      public DynamicRequest list()
      Returns a paginated list of season resources.

      Optional Query Parameters

      Optional Query Parameters
      NameTypeDescription
      minStartDateTimeOffsetDateTimeMinimum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      maxStartDateTimeOffsetDateTimeMaximum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      minEndDateTimeOffsetDateTimeMinimum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      maxEndDateTimeOffsetDateTimeMaximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.
      yearsList<Integer>Years of the resource.
      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: [
               {
                   startDateTime: OffsetDateTime
                   endDateTime: OffsetDateTime
                   year: Integer
                   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 seasonId)
      Gets a specified season resource.

      Response Body Schema

      
       {
           startDateTime: OffsetDateTime
           endDateTime: OffsetDateTime
           year: Integer
           id: String
           eTag: String
           status: String
           createdDateTime: OffsetDateTime
           modifiedDateTime: OffsetDateTime
           name: String
           description: String
           properties: {
               String: Object
           }
       }
       
      Parameters:
      seasonId - ID of the season.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • createOrUpdate

      public DynamicRequest createOrUpdate(String seasonId)
      Creates or updates a season resource.

      Request Body Schema

      
       {
           startDateTime: OffsetDateTime
           endDateTime: OffsetDateTime
           year: Integer
           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:
      seasonId - ID of the season resource.
      Returns:
      a DynamicRequest where customizations can be made before sent to the service.
    • delete

      public DynamicRequest delete(String seasonId)
      Deletes a specified season resource.
      Parameters:
      seasonId - ID of the season.
      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: [
               {
                   startDateTime: OffsetDateTime
                   endDateTime: OffsetDateTime
                   year: Integer
                   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.