Skip to main content

crop_products

Creates, updates, deletes, gets or lists a crop_products resource.

Overview

Namecrop_products
TypeResource
Idazure_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:

NameAccessible byRequired ParamsOptional ParamsDescription
create_or_updateinsertcrop_product_id, endpointCreates or updates a crop Product resource.
create_or_updatereplacecrop_product_id, endpointCreates or updates a crop Product resource.
deletedeletecrop_product_id, endpointDeletes a specified crop Product resource.
get_rawexeccrop_product_id, endpointGets a specified crop Product resource.
list_rawexecendpointminCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns 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.

NameDatatypeDescription
crop_product_idstringId of the crop Product. Required.
endpointstringThe service endpoint host (no scheme). (default: )
maxCreatedDateTimestring (date-time)Maximum creation date of resource (inclusive). Default value is None.
maxLastModifiedDateTimestring (date-time)Maximum last modified date of resource (inclusive). Default value is None.
minCreatedDateTimestring (date-time)Minimum creation date of resource (inclusive). Default value is None.
minLastModifiedDateTimestring (date-time)Minimum last modified date of resource (inclusive). Default value is None.
skipTokenstringSkip token for getting next set of results. Default value is None.

INSERT examples

Creates or updates a crop Product resource.

INSERT INTO azure_extras.agrifood_farming.crop_products (
crop_product_id,
endpoint
)
SELECT
'{{ crop_product_id }}',
'{{ endpoint }}'
;

REPLACE examples

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

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

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
;