public final class AttachmentsBaseClient extends Object
Modifier and Type | Method and Description |
---|---|
com.azure.core.experimental.http.DynamicRequest |
createOrUpdate(String farmerId,
String attachmentId)
Creates or updates an attachment resource under a particular farmer.
|
com.azure.core.experimental.http.DynamicRequest |
delete(String farmerId,
String attachmentId)
Deletes a specified attachment resource under a particular farmer.
|
com.azure.core.experimental.http.DynamicRequest |
download(String farmerId,
String attachmentId)
Downloads and returns attachment as response for the given input filePath.
|
com.azure.core.experimental.http.DynamicRequest |
get(String farmerId,
String attachmentId)
Gets a specified attachment resource under a particular farmer.
|
com.azure.core.experimental.http.DynamicRequest |
invoke()
Create an empty DynamicRequest with the serializer and pipeline initialized for this client.
|
com.azure.core.experimental.http.DynamicRequest |
listByFarmerId(String farmerId)
Returns a paginated list of attachment resources under a particular farmer.
|
com.azure.core.experimental.http.DynamicRequest |
listByFarmerIdNext(String nextLink)
Get the next page of items.
|
public com.azure.core.experimental.http.DynamicRequest listByFarmerId(String farmerId)
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
}
farmerId
- ID of the associated farmer.public com.azure.core.experimental.http.DynamicRequest get(String farmerId, String attachmentId)
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
}
farmerId
- ID of the associated farmer.attachmentId
- ID of the attachment.public com.azure.core.experimental.http.DynamicRequest createOrUpdate(String farmerId, String attachmentId)
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
}
farmerId
- ID of the associated farmer resource.attachmentId
- ID of the attachment resource.public com.azure.core.experimental.http.DynamicRequest delete(String farmerId, String attachmentId)
farmerId
- ID of the farmer.attachmentId
- ID of the attachment.public com.azure.core.experimental.http.DynamicRequest download(String farmerId, String attachmentId)
farmerId
- ID of the associated farmer.attachmentId
- ID of attachment to be downloaded.public com.azure.core.experimental.http.DynamicRequest listByFarmerIdNext(String nextLink)
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
}
nextLink
- The nextLink parameter.public com.azure.core.experimental.http.DynamicRequest invoke()
Copyright © 2021 Microsoft Corporation. All rights reserved.