source.messages package

Submodules

source.messages.purge_source_file module

Defines a command message that purges a source file

class source.messages.purge_source_file.PurgeSourceFile

Bases: messaging.messages.message.CommandMessage

Command message that removes source file models

execute()

See messaging.messages.message.CommandMessage.execute()

static from_json(json_dict)

See messaging.messages.message.CommandMessage.from_json()

to_json()

See messaging.messages.message.CommandMessage.to_json()

source.messages.purge_source_file.create_purge_source_file_message(source_file_id, trigger_id)

Creates messages to removes a source file form Scale

Parameters:
  • source_file_id (int) – The source file ID
  • trigger_id (int) – The trigger event ID for the purge operation
Returns:

The purge source file message

Return type:

storage.messages.purge_source_file.PurgeSourceFile

Module contents