Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 2.37 KB

Automation.md

File metadata and controls

49 lines (42 loc) · 2.37 KB

Phrase::Automation

Properties

Name Type Description Notes
id String [optional]
name String [optional]
status String [optional]
trigger String [optional]
status_filters Array<String> translation key statuses used to filter keys that are added to jobs [optional]
project_id String [optional]
project_ids Array<String> All project IDs the automation applies to. Returned alongside the singular `project_id` for backwards compatibility. [optional]
job_template_id String [optional]
job_owner_id String User ID of the job owner that newly created jobs are assigned to. [optional]
include_only_updated_locales Boolean When `true`, the automation only acts on locales that changed since its last run. [optional]
include_branches Boolean When true, the automation targets branches of the configured projects in addition to the main project. Requires the designated job owner to have permission to create jobs in branches for every configured project. [optional]
tags Array<String> [optional]
cron_schedule String [optional]
time_zone String [optional]
account Account [optional]
created_at Time [optional]
updated_at Time [optional]

Code Sample

require 'phrase'

instance = Phrase::Automation.new(id: nil,
                                 name: nil,
                                 status: nil,
                                 trigger: nil,
                                 status_filters: nil,
                                 project_id: nil,
                                 project_ids: nil,
                                 job_template_id: nil,
                                 job_owner_id: nil,
                                 include_only_updated_locales: nil,
                                 include_branches: nil,
                                 tags: nil,
                                 cron_schedule: nil,
                                 time_zone: nil,
                                 account: nil,
                                 created_at: nil,
                                 updated_at: nil)