HarvestDataClient.CreateOrUpdateAsync(String, String, RequestContent, RequestOptions) Method

Definition

Creates or updates harvest data resource under a particular farmer.

public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrUpdateAsync (string farmerId, string harvestDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = default);
abstract member CreateOrUpdateAsync : string * string * Azure.Core.RequestContent * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateOrUpdateAsync : string * string * Azure.Core.RequestContent * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateOrUpdateAsync (farmerId As String, harvestDataId As String, requestBody As RequestContent, Optional requestOptions As RequestOptions = Nothing) As Task(Of Response)

Parameters

farmerId
System.String

ID of the farmer.

harvestDataId
System.String

ID of the harvest data resource.

requestBody
RequestContent

The request body.

requestOptions
RequestOptions

The request options.

Returns

System.Threading.Tasks.Task<Response>

Remarks

Schema for Request Body:

totalYieldMeasure Schema for storing measurement reading and unit.
avgYieldMeasure Schema for storing measurement reading and unit.
totalWetMassMeasure Schema for storing measurement reading and unit.
avgWetMassMeasure Schema for storing measurement reading and unit.
avgMoistureMeasure Schema for storing measurement reading and unit.
avgSpeedMeasure Schema for storing measurement reading and unit.
harvestProductDetailsHarvestProductDetail[] Harvest product details.
areaMeasure Schema for storing measurement reading and unit.
sourcestring Source of the operation data.
operationModifiedDateTimestring (ISO 8601 Format) Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.

Note: this will be specified by the source provider itself.

operationStartDateTimestring (ISO 8601 Format) Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.
operationEndDateTimestring (ISO 8601 Format) End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.
attachmentsLinkstring Link for attachments.
associatedBoundaryIdstring Optional boundary ID of the field for which operation was applied.
operationBoundaryIdstring Optional boundary ID of the actual area for which operation was applied inside the specified field.
farmerIdstring Farmer ID which belongs to the operation data.
idstring Unique resource ID.
eTagstring The ETag value to implement optimistic concurrency.
statusstring Status of the resource.
createdDateTimestring (ISO 8601 Format) Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
modifiedDateTimestring (ISO 8601 Format) Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
namestring Name to identify resource.
descriptionstring Textual description of the resource.
propertiesDictionary<string, AnyObject> A collection of key value pairs that belongs to the resource.

Each pair must not have a key greater than 50 characters

and must not have a value greater than 150 characters.

Note: A maximum of 25 key value pairs can be provided for a resource and only string and numeral values are supported.

Schema for Measure:
unitstring Data unit.
valuenumber Data value.
Schema for HarvestProductDetail:
productNamestring Name of the product.
areaMeasure Schema for storing measurement reading and unit.
totalYieldMeasure Schema for storing measurement reading and unit.
avgYieldMeasure Schema for storing measurement reading and unit.
avgMoistureMeasure Schema for storing measurement reading and unit.
totalWetMassMeasure Schema for storing measurement reading and unit.
avgWetMassMeasure Schema for storing measurement reading and unit.

Applies to