Skip to main content

Services

RPC methods exposed by this API.

UserDefinedFunctionService

MethodRequestResponseDescription
GetUserDefinedFunctionGetUserDefinedFunctionRequestGetUserDefinedFunctionResponseRetrieve the latest version of a user defined function
GetUserDefinedFunctionVersionGetUserDefinedFunctionVersionRequestGetUserDefinedFunctionVersionResponseRetrieve a specific version of a user defined function
GetUserDefinedFunctionVersionsGetUserDefinedFunctionVersionsRequestGetUserDefinedFunctionVersionsResponseRetrieve versions of user defined functions
GetUserDefinedFunctionDependentsGetUserDefinedFunctionDependentsRequestGetUserDefinedFunctionDependentsResponseRetrieve versions of user defined functions
CreateUserDefinedFunctionCreateUserDefinedFunctionRequestCreateUserDefinedFunctionResponseCreate a user defined function.
ValidateUserDefinedFunctionValidateUserDefinedFunctionRequestValidateUserDefinedFunctionResponseValidate a potential user defined function
UpdateUserDefinedFunctionUpdateUserDefinedFunctionRequestUpdateUserDefinedFunctionResponseUpdate a user defined function.
CheckUpdatableFieldsCheckUpdatableFieldsRequestCheckUpdatableFieldsResponseCheck if given update paths are allowed to update for the user defined function.
ListUserDefinedFunctionsListUserDefinedFunctionsRequestListUserDefinedFunctionsResponseRetrieve the latest versions of user defined functions based on an optional filter.
ListUserDefinedFunctionVersionsListUserDefinedFunctionVersionsRequestListUserDefinedFunctionVersionsResponseList versions of a particular user defined functions with an optional filter.

Messages

Data models used across requests/responses.

CheckUpdatableFieldsRequest

FieldTypeLabelDescription
user_defined_function_idstring
update_maskgoogle.protobuf.FieldMask

CheckUpdatableFieldsResponse

FieldTypeLabelDescription
allowed_fieldsgoogle.protobuf.FieldMask
disallowed_fieldsCheckUpdatableFieldsResponse.DisallowedFieldsEntryrepeatedDisallowed Fields will contain the update fields as the key and the reason for rejection as the value.

CheckUpdatableFieldsResponse.DisallowedFieldsEntry

FieldTypeLabelDescription
keystring
valuestring

CreateUserDefinedFunctionRequest

FieldTypeLabelDescription
namestring
descriptionstringoptional
expressionstring
function_inputssift.common.type.v1.FunctionInputrepeated
user_notesstringoptional
metadatasift.metadata.v1.MetadataValuerepeated

CreateUserDefinedFunctionResponse

FieldTypeLabelDescription
user_defined_functionsift.common.type.v1.UserDefinedFunction

GetUserDefinedFunctionDependentsRequest

The request for a call to UserDefinedFunctionService_GetUserDefinedFunctionDependents to retrieve versions of user defined functions.
FieldTypeLabelDescription
page_sizeuint32
oneof user_defined_function. user_defined_function_idstring
oneof user_defined_function. user_defined_function_namestring
oneof user_defined_function. user_defined_function_version_idstring

GetUserDefinedFunctionDependentsResponse

FieldTypeLabelDescription
user_defined_functionssift.common.type.v1.UserDefinedFunctionrepeated
next_page_token_user_defined_functionstring
calculated_channelssift.calculated_channels.v2.CalculatedChannelrepeated
next_page_token_calculated_channelstring
rulessift.rules.v1.Rulerepeated
next_page_token_rulestring

GetUserDefinedFunctionRequest

The request for a call to UserDefinedFunctionService_GetUserDefinedFunction to retrieve the latest version of a user defined function. If user_defined_function_id is provided then all other arguments will be ignored. The argument user_defined_function_id should not be used together with name.
FieldTypeLabelDescription
user_defined_function_idstring
namestring

GetUserDefinedFunctionResponse

FieldTypeLabelDescription
user_defined_functionsift.common.type.v1.UserDefinedFunction

GetUserDefinedFunctionVersionRequest

The request for a call to UserDefinedFunctionService_GetUserDefinedFunctionVersion to retrieve a specific version of a user defined function.
FieldTypeLabelDescription
user_defined_function_version_idstring

GetUserDefinedFunctionVersionResponse

FieldTypeLabelDescription
user_defined_functionsift.common.type.v1.UserDefinedFunction

GetUserDefinedFunctionVersionsRequest

The request for a call to UserDefinedFunctionService_GetUserDefinedFunctionVersions to retrieve versions of user defined functions.
FieldTypeLabelDescription
user_defined_function_version_idsstringrepeated

GetUserDefinedFunctionVersionsResponse

FieldTypeLabelDescription
user_defined_functionssift.common.type.v1.UserDefinedFunctionrepeated

ListUserDefinedFunctionVersionsRequest

The request for a call to UserDefinedFunctionService_ListUserDefinedFunctionVersions to retrieve versions of user defined function. If user_defined_function_id is provided then name is ignored.
FieldTypeLabelDescription
user_defined_function_idstring
namestring
page_sizeuint32The maximum number of user defined function versions to return. The service may return fewer than this value. If unspecified, at most 50 user defined function versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. Optional.
page_tokenstringA page token, received from a previous ListUserDefinedFunctions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListUserDefinedFunctions must match the call that provided the page token. Optional.
filterstringA Common Expression Language (CEL) filter string. Available fields to filter by are user_defined_function_id, name, version, archived_date, and is_archived. For further information about how to use CELs, please refer to this guide.
order_bystringHow to order the retrieved user defined functions. Formatted as a comma-separated string i.e. “FIELD_NAME[ desc],…”. Available fields to order_by are created_date, modified_date, name, and version. If left empty, items are ordered by name in ascending order (oldest-first). For more information about the format of this field, read this Example: “version desc,name”.

ListUserDefinedFunctionVersionsResponse

The response of a call to UserDefinedFunctionService_ListUserDefinedFunctionVersions.
FieldTypeLabelDescription
user_defined_functionssift.common.type.v1.UserDefinedFunctionrepeated
next_page_tokenstring

ListUserDefinedFunctionsRequest

The request for a call to UserDefinedFunctionService_ListUserDefinedFunctions to retrieve lateset versions of user defined functions.
FieldTypeLabelDescription
page_sizeuint32The maximum number of user defined functions to return. The service may return fewer than this value. If unspecified, at most 50 user defined functions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. Optional.
page_tokenstringA page token, received from a previous ListUserDefinedFunctions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListUserDefinedFunctions must match the call that provided the page token. Optional.
filterstringA Common Expression Language (CEL) filter string. Available fields to filter by are user_defined_function_id, name, archived_date, and is_archived. For further information about how to use CELs, please refer to this guide.
order_bystringHow to order the retrieved user defined functions. Formatted as a comma-separated string i.e. “FIELD_NAME[ desc],…”. Available fields to order_by are created_date, modified_date, and name. If left empty, items are ordered by created_date in descending order (newest-first). For more information about the format of this field, read this Example: “created_date desc,modified_date”.

ListUserDefinedFunctionsResponse

The response of a call to UserDefinedFunctionService_ListUserDefinedFunctions.
FieldTypeLabelDescription
user_defined_functionssift.common.type.v1.UserDefinedFunctionrepeated
next_page_tokenstring

UpdateUserDefinedFunctionRequest

The request for a call to UserDefinedFunctionService_UpdateUserDefinedFunction to update a user defined function. Updating a user defined function creates a new version of the user defined function, leaving the previous untouched. If no update is deemed necessary, then the the current version is returned. If name is changed then only name will be changed. If archive date is changed then only archive date will be changed. To archive user defined function, specify archived_date in the update mask as well as a non-null value for archived_date in the user_defined_function object. To unarchive a user defined function, specify archived_date in the update mask and a null value for archived_date in the user_defined_function object. Alternatively, use is_archived with a boolean value to archive/unarchive.
FieldTypeLabelDescription
user_defined_functionsift.common.type.v1.UserDefinedFunctionThe user defined function to update.
update_maskgoogle.protobuf.FieldMaskThe list of fields to be updated. The fields available to be updated are name, archived_date, is_archived, description, expression, function_inputs, and metadata. — name can’t be updated if the function has ever had any dependencies — function_inputs inputs can’t be updated if the function has any dependents (functions or calculated channels with a dependency on this function). — expression can’t be updated if the function has dependents and the expression changes the output type. — metadata updates metadata associated with the function

UpdateUserDefinedFunctionResponse

FieldTypeLabelDescription
user_defined_functionsift.common.type.v1.UserDefinedFunction

ValidateUserDefinedFunctionRequest

FieldTypeLabelDescription
expressionstring
function_inputssift.common.type.v1.FunctionInputrepeated

ValidateUserDefinedFunctionResponse

ValidateUserDefinedFunctionResponse.ErrorValidatingUserDefinedFunctionResult

FieldTypeLabelDescription
error_messagestring

ValidateUserDefinedFunctionResponse.SuccessValidatingUserDefinedFunctionResult

FieldTypeLabelDescription
user_defined_functionsift.common.type.v1.UserDefinedFunction

Enums

Allowed constant values used in message fields.