pub struct NewScript {Show 41 fields
pub path: String,
pub parent_hash: Option<String>,
pub auto_parent: Option<bool>,
pub summary: String,
pub description: Option<String>,
pub content: String,
pub schema: Option<Value>,
pub is_template: Option<bool>,
pub lock: Option<String>,
pub language: ScriptLang,
pub kind: Option<Kind>,
pub tag: Option<String>,
pub envs: Option<Vec<String>>,
pub concurrent_limit: Option<i32>,
pub concurrency_time_window_s: Option<i32>,
pub cache_ttl: Option<f64>,
pub cache_ignore_s3_path: Option<bool>,
pub dedicated_worker: Option<bool>,
pub ws_error_handler_muted: Option<bool>,
pub priority: Option<i32>,
pub restart_unless_cancelled: Option<bool>,
pub timeout: Option<i32>,
pub delete_after_secs: Option<i32>,
pub deployment_message: Option<String>,
pub concurrency_key: Option<String>,
pub debounce_key: Option<String>,
pub debounce_delay_s: Option<i32>,
pub debounce_args_to_accumulate: Option<Vec<String>>,
pub max_total_debouncing_time: Option<i32>,
pub max_total_debounces_amount: Option<i32>,
pub visible_to_runner_only: Option<bool>,
pub auto_kind: Option<String>,
pub codebase: Option<String>,
pub has_preprocessor: Option<bool>,
pub on_behalf_of_email: Option<String>,
pub on_behalf_of: Option<String>,
pub preserve_on_behalf_of: Option<bool>,
pub assets: Option<Vec<NewScriptAssetsInner>>,
pub modules: Option<Option<HashMap<String, ScriptModule>>>,
pub labels: Option<Vec<String>>,
pub skip_draft_deletion: Option<bool>,
}Fields§
§path: String§parent_hash: Option<String>§auto_parent: Option<bool>When true, the backend resolves the parent to the current deployed head for this path within the transaction (ignoring parent_hash), instead of failing with a "lineage must be linear" error when the supplied parent_hash is stale.
summary: String§description: Option<String>§content: String§schema: Option<Value>§is_template: Option<bool>§lock: Option<String>§language: ScriptLang§kind: Option<Kind>§tag: Option<String>§envs: Option<Vec<String>>§concurrent_limit: Option<i32>§concurrency_time_window_s: Option<i32>§cache_ttl: Option<f64>§cache_ignore_s3_path: Option<bool>§dedicated_worker: Option<bool>§ws_error_handler_muted: Option<bool>§priority: Option<i32>§restart_unless_cancelled: Option<bool>§timeout: Option<i32>§delete_after_secs: Option<i32>If set, delete the job’s args, result and logs after this many seconds following job completion
deployment_message: Option<String>§concurrency_key: Option<String>§debounce_key: Option<String>§debounce_delay_s: Option<i32>§debounce_args_to_accumulate: Option<Vec<String>>§max_total_debouncing_time: Option<i32>§max_total_debounces_amount: Option<i32>§visible_to_runner_only: Option<bool>§auto_kind: Option<String>§codebase: Option<String>§has_preprocessor: Option<bool>§on_behalf_of_email: Option<String>§on_behalf_of: Option<String>Authorization identity to run as: u/{username}, g/{group}, or a bare email when the username is itself email-shaped. Supply this or on_behalf_of_email; when only the address is given it is resolved to the account it names, and an address naming nobody is rejected. A pair that disagrees is rejected.
preserve_on_behalf_of: Option<bool>When true and the caller is a member of the ‘wm_deployers’ group, preserves the original on_behalf_of_email / on_behalf_of pair instead of overwriting it with the caller’s own identity.
assets: Option<Vec<NewScriptAssetsInner>>§modules: Option<Option<HashMap<String, ScriptModule>>>Additional script modules keyed by relative file path
labels: Option<Vec<String>>§skip_draft_deletion: Option<bool>When true (set by the CLI / git sync), deploying this script does not delete an existing user draft at the same path.