Parameter$create

Parameter$create(*, values=[], type=NULL) → self

Creates a new parameter with the given values.

Parameters:

values : list Required. A list of values that will be stored in the parameter. Parameters cannot have more than 10,000 values.

type : str ("boolean"|"integer"|"float"|"string"|"date"|"dateTime"), default NULL A string representing the parameter's type. Must be one of the standard Redivis types other than geography. The values specified must be compatible with the set type, otherwise an error will be throw. If no type is provided, the type will be inferred based on the values.

Returns

self (a Parameter)

Examples

param <- redivis$parameter("username.workflow_name.my_param")
param$create(values=list("foo","bar"))

Last updated

Was this helpful?