crop_products
Creates, updates, deletes, gets or lists a crop_products resource.
Overview
| Name | crop_products |
| Type | Resource |
| Id | azure_extras.agrifood_farming.crop_products |
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_product_id, endpoint | Creates or updates a crop Product resource. | |
create_or_update | replace | crop_product_id, endpoint | Creates or updates a crop Product resource. | |
delete | delete | crop_product_id, endpoint | Deletes a specified crop Product resource. | |
get_raw | exec | crop_product_id, endpoint | Gets a specified crop Product resource. | |
list_raw | exec | endpoint | minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipToken | Returns a paginated list of crop product 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_product_id | string | Id of the crop Product. 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 Product resource.
INSERT INTO azure_extras.agrifood_farming.crop_products (
crop_product_id,
endpoint
)
SELECT
'{{ crop_product_id }}',
'{{ endpoint }}'
;
# Description fields are for documentation purposes
- name: crop_products
props:
- name: crop_product_id
value: "{{ crop_product_id }}"
description: Required parameter for the crop_products resource.
- name: endpoint
value: "{{ endpoint }}"
description: Required parameter for the crop_products resource.
REPLACE examples
- create_or_update
Creates or updates a crop Product resource.
REPLACE azure_extras.agrifood_farming.crop_products
SET
-- No updatable properties
WHERE
crop_product_id = '{{ crop_product_id }}' --required
AND endpoint = '{{ endpoint }}' --required;
DELETE examples
- delete
Deletes a specified crop Product resource.
DELETE FROM azure_extras.agrifood_farming.crop_products
WHERE crop_product_id = '{{ crop_product_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;
Lifecycle Methods
- get_raw
- list_raw
Gets a specified crop Product resource.
EXEC azure_extras.agrifood_farming.crop_products.get_raw
@crop_product_id='{{ crop_product_id }}' --required,
@endpoint='{{ endpoint }}' --required
;
Returns a paginated list of crop product resources.
EXEC azure_extras.agrifood_farming.crop_products.list_raw
@endpoint='{{ endpoint }}' --required,
@minCreatedDateTime='{{ minCreatedDateTime }}',
@maxCreatedDateTime='{{ maxCreatedDateTime }}',
@minLastModifiedDateTime='{{ minLastModifiedDateTime }}',
@maxLastModifiedDateTime='{{ maxLastModifiedDateTime }}',
@skipToken='{{ skipToken }}'
;