Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.62 KB

JobCreateParameters.md

File metadata and controls

33 lines (26 loc) · 1.62 KB

Phrase::JobCreateParameters

Properties

Name Type Description Notes
branch String specify the branch to use [optional]
name String Job name
source_locale_id String The API id of the source language [optional]
briefing String Briefing for the translators [optional]
due_date Time Date the job should be finished [optional]
ticket_url String URL to a ticket for this job (e.g. Jira, Trello) [optional]
tags Array<String> tags of keys that should be included within the job [optional]
translation_key_ids Array<String> ids of keys that should be included within the job [optional]
job_template_id String id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. [optional]

Code Sample

require 'Phrase'

instance = Phrase::JobCreateParameters.new(branch: my-feature-branch,
                                 name: de,
                                 source_locale_id: abcd1234cdef1234abcd1234cdef1234,
                                 briefing: de-DE,
                                 due_date: null,
                                 ticket_url: https://example.atlassian.net/browse/FOO,
                                 tags: [&quot;myUploadTag&quot;],
                                 translation_key_ids: [&quot;abcd1234cdef1234abcd1234cdef1234&quot;],
                                 job_template_id: abcd1234cdef1234abcd1234cdef1234)