crops
Creates, updates, deletes, gets or lists a crops resource.
Overview
| Name | crops |
| Type | Resource |
| Id | azure_extras.agrifood_farming.crops |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_or_update | insert | crop_id, endpoint | Creates or updates a crop resource. | |
create_or_update | replace | crop_id, endpoint | Creates or updates a crop resource. | |
delete | delete | crop_id, endpoint | Deletes Crop for given crop id. | |
get_raw | exec | crop_id, endpoint | Gets a specified crop resource. | |
list_raw | exec | endpoint | minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipToken | Returns a paginated list of crop resources. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
crop_id | string | Id of the crop. Required. |
endpoint | string | The service endpoint host (no scheme). (default: ) |
maxCreatedDateTime | string (date-time) | Maximum creation date of resource (inclusive). Default value is None. |
maxLastModifiedDateTime | string (date-time) | Maximum last modified date of resource (inclusive). Default value is None. |
minCreatedDateTime | string (date-time) | Minimum creation date of resource (inclusive). Default value is None. |
minLastModifiedDateTime | string (date-time) | Minimum last modified date of resource (inclusive). Default value is None. |
skipToken | string | Skip token for getting next set of results. Default value is None. |
INSERT examples
- create_or_update
- Manifest
Creates or updates a crop resource.
INSERT INTO azure_extras.agrifood_farming.crops (
crop_id,
endpoint
)
SELECT
'{{ crop_id }}',
'{{ endpoint }}'
;
# Description fields are for documentation purposes
- name: crops
props:
- name: crop_id
value: "{{ crop_id }}"
description: Required parameter for the crops resource.
- name: endpoint
value: "{{ endpoint }}"
description: Required parameter for the crops resource.
REPLACE examples
- create_or_update
Creates or updates a crop resource.
REPLACE azure_extras.agrifood_farming.crops
SET
-- No updatable properties
WHERE
crop_id = '{{ crop_id }}' --required
AND endpoint = '{{ endpoint }}' --required;
DELETE examples
- delete
Deletes Crop for given crop id.
DELETE FROM azure_extras.agrifood_farming.crops
WHERE crop_id = '{{ crop_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;
Lifecycle Methods
- get_raw
- list_raw
Gets a specified crop resource.
EXEC azure_extras.agrifood_farming.crops.get_raw
@crop_id='{{ crop_id }}' --required,
@endpoint='{{ endpoint }}' --required
;
Returns a paginated list of crop resources.
EXEC azure_extras.agrifood_farming.crops.list_raw
@endpoint='{{ endpoint }}' --required,
@minCreatedDateTime='{{ minCreatedDateTime }}',
@maxCreatedDateTime='{{ maxCreatedDateTime }}',
@minLastModifiedDateTime='{{ minLastModifiedDateTime }}',
@maxLastModifiedDateTime='{{ maxLastModifiedDateTime }}',
@skipToken='{{ skipToken }}'
;