Class AttachmentsBaseClient
java.lang.Object
com.azure.verticals.agrifood.farming.AttachmentsBaseClient
Initializes a new instance of the AttachmentsBaseClient type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String farmerId, String attachmentId) Creates or updates an attachment resource under a particular farmer.Deletes a specified attachment resource under a particular farmer.Downloads and returns attachment as response for the given input filePath.Gets a specified attachment resource under a particular farmer.invoke()
Create an empty DynamicRequest with the serializer and pipeline initialized for this client.listByFarmerId
(String farmerId) Returns a paginated list of attachment resources under a particular farmer.listByFarmerIdNext
(String nextLink) Get the next page of items.
-
Method Details
-
listByFarmerId
Returns a paginated list of attachment resources under a particular farmer.Optional Query Parameters
Optional Query Parameters Name Type Description resourceIds List<String> Resource Ids of the resource. resourceTypes List<String> Resource Types of the resource. ids List<String> Ids of the resource. names List<String> Names of the resource. propertyFilters List<String> Filters on key-value pairs within the Properties object. eg. "{testKey} eq {testValue}". statuses List<String> Statuses of the resource. minCreatedDateTime OffsetDateTime Minimum creation date of resource (inclusive). maxCreatedDateTime OffsetDateTime Maximum creation date of resource (inclusive). minLastModifiedDateTime OffsetDateTime Minimum last modified date of resource (inclusive). maxLastModifiedDateTime OffsetDateTime Maximum last modified date of resource (inclusive). maxPageSize Integer Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50. skipToken String Skip token for getting next set of results. Response Body Schema
{ value: [ { farmerId: String resourceId: String resourceType: String originalFileName: String id: String status: String createdDateTime: OffsetDateTime modifiedDateTime: OffsetDateTime name: String description: String eTag: String } ] skipToken: String nextLink: String }
- Parameters:
farmerId
- ID of the associated farmer.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
get
Gets a specified attachment resource under a particular farmer.Response Body Schema
{ farmerId: String resourceId: String resourceType: String originalFileName: String id: String status: String createdDateTime: OffsetDateTime modifiedDateTime: OffsetDateTime name: String description: String eTag: String }
- Parameters:
farmerId
- ID of the associated farmer.attachmentId
- ID of the attachment.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
createOrUpdate
Creates or updates an attachment resource under a particular farmer.Optional Header Parameters
Optional Header Parameters Name Type Description contentLength Long The contentLength parameter Request Body Schema
Flux<ByteBuffer>
Response Body Schema
{ farmerId: String resourceId: String resourceType: String originalFileName: String id: String status: String createdDateTime: OffsetDateTime modifiedDateTime: OffsetDateTime name: String description: String eTag: String }
- Parameters:
farmerId
- ID of the associated farmer resource.attachmentId
- ID of the attachment resource.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
delete
Deletes a specified attachment resource under a particular farmer.- Parameters:
farmerId
- ID of the farmer.attachmentId
- ID of the attachment.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
download
Downloads and returns attachment as response for the given input filePath.- Parameters:
farmerId
- ID of the associated farmer.attachmentId
- ID of attachment to be downloaded.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
listByFarmerIdNext
Get the next page of items.Response Body Schema
{ value: [ { farmerId: String resourceId: String resourceType: String originalFileName: String id: String status: String createdDateTime: OffsetDateTime modifiedDateTime: OffsetDateTime name: String description: String eTag: String } ] skipToken: String nextLink: String }
- Parameters:
nextLink
- The nextLink parameter.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
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.
-