Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit ced5380

Browse files
committed
Regenerated library to pick up latest schema changes
1 parent a659ae0 commit ced5380

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

codegenerator/model/model-data.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7834,6 +7834,32 @@ Properties
78347834
Items
78357835
Additional Properties = 'false'
78367836
Properties
7837+
Property 'disabled' =
7838+
Description = 'Disabling a worker allows the machine to remain alive but not accept jobs.
7839+
Enabling a worker on the other hand will resume accepting jobs.
7840+
'
7841+
Title = 'Worker Disabled'
7842+
Type = 'boolean'
7843+
TypeName = 'WorkerDisabled'
7844+
SourceURL = 'http://schemas.taskcluster.net/queue/v1/list-workers-response.json#/properties/workers/items/properties/disabled'
7845+
Property 'firstClaim' =
7846+
Description = 'Date of the first time this worker claimed a task.
7847+
'
7848+
Format = 'date-time'
7849+
Title = 'First task claimed'
7850+
Type = 'string'
7851+
TypeName = 'FirstTaskClaimed'
7852+
SourceURL = 'http://schemas.taskcluster.net/queue/v1/list-workers-response.json#/properties/workers/items/properties/firstClaim'
7853+
Property 'latestTask' =
7854+
Description = 'Unique task identifier, this is UUID encoded as
7855+
[URL-safe base64](http://tools.ietf.org/html/rfc4648#section-5) and
7856+
stripped of `=` padding.
7857+
'
7858+
Pattern = '^[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]$'
7859+
Title = 'Most Recent Claimed Task Identifier'
7860+
Type = 'string'
7861+
TypeName = 'MostRecentClaimedTaskIdentifier'
7862+
SourceURL = 'http://schemas.taskcluster.net/queue/v1/list-workers-response.json#/properties/workers/items/properties/latestTask'
78377863
Property 'workerGroup' =
78387864
Description = 'Identifier for the worker group containing this worker.
78397865
'

src/main/java/org/mozilla/taskcluster/client/queue/ListWorkersResponse.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.mozilla.taskcluster.client.queue;
22

3+
import java.util.Date;
4+
35
/**
46
* Response from a `listWorkers` request.
57
*
@@ -22,6 +24,32 @@ public class ListWorkersResponse {
2224

2325
public class WorkersEntry {
2426

27+
/**
28+
* Disabling a worker allows the machine to remain alive but not accept jobs.
29+
* Enabling a worker on the other hand will resume accepting jobs.
30+
*
31+
* See http://schemas.taskcluster.net/queue/v1/list-workers-response.json#/properties/workers/items/properties/disabled
32+
*/
33+
public boolean disabled;
34+
35+
/**
36+
* Date of the first time this worker claimed a task.
37+
*
38+
* See http://schemas.taskcluster.net/queue/v1/list-workers-response.json#/properties/workers/items/properties/firstClaim
39+
*/
40+
public Date firstClaim;
41+
42+
/**
43+
* Unique task identifier, this is UUID encoded as
44+
* [URL-safe base64](http://tools.ietf.org/html/rfc4648#section-5) and
45+
* stripped of `=` padding.
46+
*
47+
* Syntax: ^[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]$
48+
*
49+
* See http://schemas.taskcluster.net/queue/v1/list-workers-response.json#/properties/workers/items/properties/latestTask
50+
*/
51+
public String latestTask;
52+
2553
/**
2654
* Identifier for the worker group containing this worker.
2755
*

0 commit comments

Comments
 (0)