@@ -15,8 +15,8 @@ import (
15
15
)
16
16
17
17
const (
18
- RevisionDocs = ""
19
- RevisionGenerator = ""
18
+ RevisionDocs = "af8c8e121b03fbb27f30326738fd1c3ac086b0a2 "
19
+ RevisionGenerator = "HEAD/2018-08-10T135953/soenke "
20
20
)
21
21
22
22
type Account struct {
@@ -2998,6 +2998,31 @@ func (client *Client) JobKeysDelete(project_id, id string, params *JobKeysDelete
2998
2998
return err
2999
2999
}
3000
3000
3001
+ // Mark a job as uncompleted.
3002
+ func (client * Client ) JobReopen (project_id , id string ) (* JobDetails , error ) {
3003
+ retVal := new (JobDetails )
3004
+ err := func () error {
3005
+ url := fmt .Sprintf ("/v2/projects/%s/jobs/%s/reopen" , project_id , id )
3006
+
3007
+ rc , err := client .sendRequest ("POST" , url , "" , nil , 200 )
3008
+ if err != nil {
3009
+ return err
3010
+ }
3011
+ defer rc .Close ()
3012
+
3013
+ var reader io.Reader
3014
+ if client .debug {
3015
+ reader = io .TeeReader (rc , os .Stderr )
3016
+ } else {
3017
+ reader = rc
3018
+ }
3019
+
3020
+ return json .NewDecoder (reader ).Decode (& retVal )
3021
+
3022
+ }()
3023
+ return retVal , err
3024
+ }
3025
+
3001
3026
// Get details on a single job for a given project.
3002
3027
func (client * Client ) JobShow (project_id , id string ) (* JobDetails , error ) {
3003
3028
retVal := new (JobDetails )
@@ -3164,6 +3189,31 @@ func (client *Client) JobLocaleDelete(project_id, job_id, id string) error {
3164
3189
return err
3165
3190
}
3166
3191
3192
+ // Mark a job locale as uncompleted.
3193
+ func (client * Client ) JobLocaleReopen (project_id , job_id , id string ) (* JobLocale , error ) {
3194
+ retVal := new (JobLocale )
3195
+ err := func () error {
3196
+ url := fmt .Sprintf ("/v2/projects/%s/jobs/%s/locales/%s/reopen" , project_id , job_id , id )
3197
+
3198
+ rc , err := client .sendRequest ("POST" , url , "" , nil , 200 )
3199
+ if err != nil {
3200
+ return err
3201
+ }
3202
+ defer rc .Close ()
3203
+
3204
+ var reader io.Reader
3205
+ if client .debug {
3206
+ reader = io .TeeReader (rc , os .Stderr )
3207
+ } else {
3208
+ reader = rc
3209
+ }
3210
+
3211
+ return json .NewDecoder (reader ).Decode (& retVal )
3212
+
3213
+ }()
3214
+ return retVal , err
3215
+ }
3216
+
3167
3217
// Get a single job locale for a given job.
3168
3218
func (client * Client ) JobLocaleShow (project_id , job_id , id string ) (* JobLocale , error ) {
3169
3219
retVal := new (JobLocale )
0 commit comments