public final class CropVarietiesBaseClient extends Object
Modifier and Type | Method and Description |
---|---|
com.azure.core.experimental.http.DynamicRequest |
createOrUpdate(String cropId,
String cropVarietyId)
Creates or updates a crop variety resource.
|
com.azure.core.experimental.http.DynamicRequest |
delete(String cropId,
String cropVarietyId)
Deletes a specified crop variety resource under a particular crop.
|
com.azure.core.experimental.http.DynamicRequest |
get(String cropId,
String cropVarietyId)
Gets a specified crop variety resource under a particular crop.
|
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 |
list()
Returns a paginated list of crop variety resources across all crops.
|
com.azure.core.experimental.http.DynamicRequest |
listByCropId(String cropId)
Returns a paginated list of crop variety resources under a particular crop.
|
com.azure.core.experimental.http.DynamicRequest |
listByCropIdNext(String nextLink)
Get the next page of items.
|
com.azure.core.experimental.http.DynamicRequest |
listNext(String nextLink)
Get the next page of items.
|
public com.azure.core.experimental.http.DynamicRequest listByCropId(String cropId)
Optional Query Parameters
Name | Type | Description |
---|---|---|
cropIds | List<String> | CropIds of the resource. |
brands | List<String> | Brands of the resource. |
products | List<String> | Products 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: [
{
cropId: String
brand: String
product: String
id: String
eTag: String
status: String
createdDateTime: OffsetDateTime
modifiedDateTime: OffsetDateTime
name: String
description: String
properties: {
String: Object
}
}
]
skipToken: String
nextLink: String
}
cropId
- ID of the associated crop.public com.azure.core.experimental.http.DynamicRequest list()
Optional Query Parameters
Name | Type | Description |
---|---|---|
cropIds | List<String> | CropIds of the resource. |
brands | List<String> | Brands of the resource. |
products | List<String> | Products 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: [
{
cropId: String
brand: String
product: String
id: String
eTag: String
status: String
createdDateTime: OffsetDateTime
modifiedDateTime: OffsetDateTime
name: String
description: String
properties: {
String: Object
}
}
]
skipToken: String
nextLink: String
}
public com.azure.core.experimental.http.DynamicRequest get(String cropId, String cropVarietyId)
Response Body Schema
{
cropId: String
brand: String
product: String
id: String
eTag: String
status: String
createdDateTime: OffsetDateTime
modifiedDateTime: OffsetDateTime
name: String
description: String
properties: {
String: Object
}
}
cropId
- ID of the associated crop.cropVarietyId
- ID of the crop variety.public com.azure.core.experimental.http.DynamicRequest createOrUpdate(String cropId, String cropVarietyId)
Request Body Schema
{
cropId: String
brand: String
product: String
id: String
eTag: String
status: String
createdDateTime: OffsetDateTime
modifiedDateTime: OffsetDateTime
name: String
description: String
properties: {
String: Object
}
}
Response Body Schema
(recursive schema, see above)
cropId
- ID of the crop resource.cropVarietyId
- ID of the crop variety resource.public com.azure.core.experimental.http.DynamicRequest delete(String cropId, String cropVarietyId)
cropId
- ID of the crop.cropVarietyId
- ID of the crop variety.public com.azure.core.experimental.http.DynamicRequest listByCropIdNext(String nextLink)
Response Body Schema
{
value: [
{
cropId: String
brand: String
product: String
id: String
eTag: String
status: String
createdDateTime: OffsetDateTime
modifiedDateTime: OffsetDateTime
name: String
description: String
properties: {
String: Object
}
}
]
skipToken: String
nextLink: String
}
nextLink
- The nextLink parameter.public com.azure.core.experimental.http.DynamicRequest listNext(String nextLink)
Response Body Schema
{
value: [
{
cropId: String
brand: String
product: String
id: String
eTag: String
status: String
createdDateTime: OffsetDateTime
modifiedDateTime: OffsetDateTime
name: String
description: String
properties: {
String: Object
}
}
]
skipToken: String
nextLink: String
}
nextLink
- The nextLink parameter.public com.azure.core.experimental.http.DynamicRequest invoke()
Copyright © 2021 Microsoft Corporation. All rights reserved.