Class InsightAttachmentsAsyncClient
java.lang.Object
com.azure.verticals.agrifood.farming.InsightAttachmentsAsyncClient
Initializes a new instance of the asynchronous FarmBeatsClient type.
-
Method Summary
Modifier and TypeMethodDescriptionMono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
createOrUpdateWithResponse
(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.util.BinaryData insightId, com.azure.core.http.rest.RequestOptions requestOptions) Creates or updates insight entity.deleteWithResponse
(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes a specified insight resource.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
downloadWithResponse
(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.http.rest.RequestOptions requestOptions) Downloads and returns insight-attachment as response for the given input filePath.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
getWithResponse
(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.http.rest.RequestOptions requestOptions) Gets a specified insight resource under a particular party.com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
listByPartyIdModelIdAndResource
(String partyId, String modelId, String resourceType, String resourceId, com.azure.core.http.rest.RequestOptions requestOptions) Returns a paginated list of insight resources.
-
Method Details
-
listByPartyIdModelIdAndResource
public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listByPartyIdModelIdAndResource(String partyId, String modelId, String resourceType, String resourceId, com.azure.core.http.rest.RequestOptions requestOptions) Returns a paginated list of insight resources.Query Parameters
Query Parameters Name Type Required Description insightIds List<String> No List of insight IDs. Call RequestOptions.addQueryParam(java.lang.String, java.lang.String)
to add string to array.ids List<String> No Ids of the resource. Call RequestOptions.addQueryParam(java.lang.String, java.lang.String)
to add string to array.names List<String> No Names of the resource. Call RequestOptions.addQueryParam(java.lang.String, java.lang.String)
to add string to array.propertyFilters List<String> No Filters on key-value pairs within the Properties object. eg. "{testKey} eq {testValue}". Call RequestOptions.addQueryParam(java.lang.String, java.lang.String)
to add string to array.statuses List<String> No Statuses of the resource. Call RequestOptions.addQueryParam(java.lang.String, java.lang.String)
to add string to array.minCreatedDateTime OffsetDateTime No Minimum creation date of resource (inclusive). maxCreatedDateTime OffsetDateTime No Maximum creation date of resource (inclusive). minLastModifiedDateTime OffsetDateTime No Minimum last modified date of resource (inclusive). maxLastModifiedDateTime OffsetDateTime No Maximum last modified date of resource (inclusive). maxPageSize Integer No Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50. skipToken String No Skip token for getting next set of results. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ insightId: String (Required) modelId: String (Optional) resourceType: String(Party/Farm/Field/SeasonalField/Boundary) (Optional) resourceId: String (Optional) originalFileName: String (Optional) partyId: String (Optional) id: String (Optional) status: String (Optional) createdDateTime: OffsetDateTime (Optional) modifiedDateTime: OffsetDateTime (Optional) source: String (Optional) name: String (Optional) description: String (Optional) createdBy: String (Optional) modifiedBy: String (Optional) eTag: String (Optional) }
- Parameters:
partyId
- Id of the associated party.modelId
- Id of the associated model.resourceType
- Resource type associated with the record.resourceId
- Id of the associated resource.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- paged response contains list of requested objects and a URL link to get the next set of results as
paginated response with
PagedFlux
. - 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.
-
createOrUpdateWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> createOrUpdateWithResponse(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.util.BinaryData insightId, com.azure.core.http.rest.RequestOptions requestOptions) Creates or updates insight entity.Header Parameters
Header Parameters Name Type Required Description Content-Type String No The content type. Allowed values: "multipart/form-data". RequestOptions.addHeader(java.lang.String, java.lang.String)
Request Body Schema
BinaryData
Response Body Schema
{ insightId: String (Required) modelId: String (Optional) resourceType: String(Party/Farm/Field/SeasonalField/Boundary) (Optional) resourceId: String (Optional) originalFileName: String (Optional) partyId: String (Optional) id: String (Optional) status: String (Optional) createdDateTime: OffsetDateTime (Optional) modifiedDateTime: OffsetDateTime (Optional) source: String (Optional) name: String (Optional) description: String (Optional) createdBy: String (Optional) modifiedBy: String (Optional) eTag: String (Optional) }
- Parameters:
partyId
- Id of the associated party.modelId
- Id of the associated model. It can be either 'BiomassModelId', 'SensorPlacementModelId', 'SoilMoistureModelId' or any solution id.resourceType
- Resource type associated with the record.resourceId
- Id of the associated resource.insightAttachmentId
- Id of the insight resource.insightId
- InsightID for this InsightAttachment.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- schema of insight attachment resource along with
Response
on successful completion ofMono
. - 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 Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getWithResponse(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.http.rest.RequestOptions requestOptions) Gets a specified insight resource under a particular party.Response Body Schema
{ insightId: String (Required) modelId: String (Optional) resourceType: String(Party/Farm/Field/SeasonalField/Boundary) (Optional) resourceId: String (Optional) originalFileName: String (Optional) partyId: String (Optional) id: String (Optional) status: String (Optional) createdDateTime: OffsetDateTime (Optional) modifiedDateTime: OffsetDateTime (Optional) source: String (Optional) name: String (Optional) description: String (Optional) createdBy: String (Optional) modifiedBy: String (Optional) eTag: String (Optional) }
- Parameters:
partyId
- Id of the associated party.modelId
- Id of the associated model. It can be either 'BiomassModelId', 'SensorPlacementModelId', 'SoilMoistureModelId' or any solution id.resourceType
- Resource type associated with the record.resourceId
- Id of the associated resource.insightAttachmentId
- Id of the insight attachment resource.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a specified insight resource under a particular party along with
Response
on successful completion ofMono
. - 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 Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponse(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes a specified insight resource.- Parameters:
partyId
- Id of the associated party.modelId
- Id of the associated model. It can be either 'BiomassModelId', 'SensorPlacementModelId', 'SoilMoistureModelId' or any solution id.resourceType
- Resource type associated with the record.resourceId
- Id of the associated resource.insightAttachmentId
- Id of the insight attachment resource.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
downloadWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> downloadWithResponse(String partyId, String modelId, String resourceType, String resourceId, String insightAttachmentId, com.azure.core.http.rest.RequestOptions requestOptions) Downloads and returns insight-attachment as response for the given input filePath.Response Body Schema
BinaryData
- Parameters:
partyId
- Id of the associated party.modelId
- Id of the associated model. It can be either 'BiomassModelId', 'SensorPlacementModelId', 'SoilMoistureModelId' or any solution id.resourceType
- Resource type associated with the record.resourceId
- Id of the associated resource.insightAttachmentId
- Id of the insight attachment resource.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the response body along with
Response
on successful completion ofMono
. - 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.
-