pub struct GcpTrigger {Show 21 fields
pub gcp_resource_path: String,
pub topic_id: String,
pub subscription_id: String,
pub server_id: Option<String>,
pub delivery_type: DeliveryType,
pub delivery_config: Option<Box<PushConfig>>,
pub subscription_mode: SubscriptionMode,
pub last_server_ping: Option<String>,
pub error: Option<String>,
pub error_handler_path: Option<String>,
pub error_handler_args: Option<HashMap<String, Value>>,
pub retry: Option<Box<Retry>>,
pub path: String,
pub script_path: String,
pub email: String,
pub extra_perms: HashMap<String, bool>,
pub workspace_id: String,
pub edited_by: String,
pub edited_at: String,
pub is_flow: bool,
pub mode: TriggerMode,
}Expand description
GcpTrigger : A Google Cloud Pub/Sub trigger that executes a script or flow when messages are received.
Fields§
§gcp_resource_path: StringPath to the GCP resource containing service account credentials for authentication.
topic_id: StringGoogle Cloud Pub/Sub topic ID to subscribe to.
subscription_id: StringGoogle Cloud Pub/Sub subscription ID.
server_id: Option<String>ID of the server currently handling this trigger (internal use).
delivery_type: DeliveryType§delivery_config: Option<Box<PushConfig>>§subscription_mode: SubscriptionMode§last_server_ping: Option<String>Timestamp of last server heartbeat (internal use).
error: Option<String>Last error message if the trigger failed.
error_handler_path: Option<String>Path to a script or flow to run when the triggered job fails.
error_handler_args: Option<HashMap<String, Value>>The arguments to pass to the script or flow
retry: Option<Box<Retry>>§path: StringThe unique path identifier for this trigger
script_path: StringPath to the script or flow to execute when triggered
email: StringEmail of the user who owns this trigger, used for permissioned_as
extra_perms: HashMap<String, bool>Additional permissions for this trigger
workspace_id: StringThe workspace this trigger belongs to
edited_by: StringUsername of the last person who edited this trigger
edited_at: StringTimestamp of the last edit
is_flow: boolTrue if script_path points to a flow, false if it points to a script
mode: TriggerModeImplementations§
Source§impl GcpTrigger
impl GcpTrigger
Sourcepub fn new(
gcp_resource_path: String,
topic_id: String,
subscription_id: String,
delivery_type: DeliveryType,
subscription_mode: SubscriptionMode,
path: String,
script_path: String,
email: String,
extra_perms: HashMap<String, bool>,
workspace_id: String,
edited_by: String,
edited_at: String,
is_flow: bool,
mode: TriggerMode,
) -> GcpTrigger
pub fn new( gcp_resource_path: String, topic_id: String, subscription_id: String, delivery_type: DeliveryType, subscription_mode: SubscriptionMode, path: String, script_path: String, email: String, extra_perms: HashMap<String, bool>, workspace_id: String, edited_by: String, edited_at: String, is_flow: bool, mode: TriggerMode, ) -> GcpTrigger
A Google Cloud Pub/Sub trigger that executes a script or flow when messages are received.
Trait Implementations§
Source§impl Clone for GcpTrigger
impl Clone for GcpTrigger
Source§fn clone(&self) -> GcpTrigger
fn clone(&self) -> GcpTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more