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

Commit 0bcdb7f

Browse files
committed
Regenerated library to pick up latest schema changes
1 parent 6a0c215 commit 0bcdb7f

File tree

8 files changed

+152
-0
lines changed

8 files changed

+152
-0
lines changed

src/main/java/org/mozilla/taskcluster/client/auth/Auth.java

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ public CallSummary<EmptyPayload, GetClientResponse> client(String clientId) thro
109109
*
110110
* The caller's scopes must satisfy `scopes`.
111111
*
112+
* Required scopes:
113+
* * auth:create-client:<clientId>
114+
*
112115
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#createClient
113116
*/
114117
public CallSummary<CreateClientRequest, CreateClientResponse> createClient(String clientId, CreateClientRequest payload) throws APICallFailure {
@@ -123,6 +126,9 @@ public CallSummary<CreateClientRequest, CreateClientResponse> createClient(Strin
123126
* There is no way to retrieve an existing `accessToken`, so if you loose it
124127
* you must reset the accessToken to acquire it again.
125128
*
129+
* Required scopes:
130+
* * auth:reset-access-token:<clientId>
131+
*
126132
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#resetAccessToken
127133
*/
128134
public CallSummary<EmptyPayload, CreateClientResponse> resetAccessToken(String clientId) throws APICallFailure {
@@ -136,6 +142,9 @@ public CallSummary<EmptyPayload, CreateClientResponse> resetAccessToken(String c
136142
* If no scopes are given in the request, the client's scopes remain
137143
* unchanged
138144
*
145+
* Required scopes:
146+
* * auth:update-client:<clientId>
147+
*
139148
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#updateClient
140149
*/
141150
public CallSummary<CreateClientRequest, GetClientResponse> updateClient(String clientId, CreateClientRequest payload) throws APICallFailure {
@@ -149,6 +158,9 @@ public CallSummary<CreateClientRequest, GetClientResponse> updateClient(String c
149158
* This is typically used by identity providers to re-enable clients that
150159
* had been disabled when the corresponding identity's scopes changed.
151160
*
161+
* Required scopes:
162+
* * auth:enable-client:<clientId>
163+
*
152164
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#enableClient
153165
*/
154166
public CallSummary<EmptyPayload, GetClientResponse> enableClient(String clientId) throws APICallFailure {
@@ -161,6 +173,9 @@ public CallSummary<EmptyPayload, GetClientResponse> enableClient(String clientId
161173
* This is typically used by identity providers to disable clients when the
162174
* corresponding identity's scopes no longer satisfy the client's scopes.
163175
*
176+
* Required scopes:
177+
* * auth:disable-client:<clientId>
178+
*
164179
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#disableClient
165180
*/
166181
public CallSummary<EmptyPayload, GetClientResponse> disableClient(String clientId) throws APICallFailure {
@@ -171,6 +186,9 @@ public CallSummary<EmptyPayload, GetClientResponse> disableClient(String clientI
171186
* Delete a client, please note that any roles related to this client must
172187
* be deleted independently.
173188
*
189+
* Required scopes:
190+
* * auth:delete-client:<clientId>
191+
*
174192
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#deleteClient
175193
*/
176194
public CallSummary<EmptyPayload, EmptyPayload> deleteClient(String clientId) throws APICallFailure {
@@ -205,6 +223,9 @@ public CallSummary<EmptyPayload, GetRoleResponse> role(String roleId) throws API
205223
* If there already exists a role with the same `roleId` this operation
206224
* will fail. Use `updateRole` to modify an existing role.
207225
*
226+
* Required scopes:
227+
* * auth:create-role:<roleId>
228+
*
208229
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#createRole
209230
*/
210231
public CallSummary<CreateRoleRequest, GetRoleResponse> createRole(String roleId, CreateRoleRequest payload) throws APICallFailure {
@@ -217,6 +238,9 @@ public CallSummary<CreateRoleRequest, GetRoleResponse> createRole(String roleId,
217238
* The caller's scopes must satisfy all of the new scopes being added, but
218239
* need not satisfy all of the client's existing scopes.
219240
*
241+
* Required scopes:
242+
* * auth:update-role:<roleId>
243+
*
220244
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#updateRole
221245
*/
222246
public CallSummary<CreateRoleRequest, GetRoleResponse> updateRole(String roleId, CreateRoleRequest payload) throws APICallFailure {
@@ -227,6 +251,9 @@ public CallSummary<CreateRoleRequest, GetRoleResponse> updateRole(String roleId,
227251
* Delete a role. This operation will succeed regardless of whether or not
228252
* the role exists.
229253
*
254+
* Required scopes:
255+
* * auth:delete-role:<roleId>
256+
*
230257
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#deleteRole
231258
*/
232259
public CallSummary<EmptyPayload, EmptyPayload> deleteRole(String roleId) throws APICallFailure {
@@ -308,6 +335,9 @@ public CallSummary<EmptyPayload, SetOfScopes> currentScopes() throws APICallFail
308335
* access to `my-folder/file.txt` as expected, but also to `my-folder.txt`,
309336
* which may not be intended.
310337
*
338+
* Required scopes:
339+
* * auth:aws-s3:<level>:<bucket>/<prefix>
340+
*
311341
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#awsS3Credentials
312342
*/
313343
public CallSummary<EmptyPayload, AWSS3CredentialsResponse> awsS3Credentials(String level, String bucket, String prefix) throws APICallFailure {
@@ -319,6 +349,9 @@ public CallSummary<EmptyPayload, AWSS3CredentialsResponse> awsS3Credentials(Stri
319349
* Table Storage table. Note, this will create the table, if it doesn't
320350
* already exist.
321351
*
352+
* Required scopes:
353+
* * auth:azure-table-access:<account>/<table>
354+
*
322355
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#azureTableSAS
323356
*/
324357
public CallSummary<EmptyPayload, AzureSharedAccessSignatureResponse> azureTableSAS(String account, String table) throws APICallFailure {
@@ -334,6 +367,9 @@ public CallSummary<EmptyPayload, AzureSharedAccessSignatureResponse> azureTableS
334367
* initial team configured for this component. Contact a Sentry admin
335368
* to have the project transferred to a team you have access to if needed
336369
*
370+
* Required scopes:
371+
* * auth:sentry:<project>
372+
*
337373
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#sentryDSN
338374
*/
339375
public CallSummary<EmptyPayload, SentryDSNResponse> sentryDSN(String project) throws APICallFailure {
@@ -345,6 +381,9 @@ public CallSummary<EmptyPayload, SentryDSNResponse> sentryDSN(String project) th
345381
*
346382
* The token is valid for 24 hours, clients should refresh after expiration.
347383
*
384+
* Required scopes:
385+
* * auth:statsum:<project>
386+
*
348387
* See https://docs.taskcluster.net/reference/platform/auth/api-docs#statsumToken
349388
*/
350389
public CallSummary<EmptyPayload, StatsumTokenResponse> statsumToken(String project) throws APICallFailure {

src/main/java/org/mozilla/taskcluster/client/awsprovisioner/AwsProvisioner.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public CallSummary<EmptyPayload, WorkerTypeSummary[]> listWorkerTypeSummaries()
106106
* will be used to generate a set of temporary credentials available with
107107
* the other secrets.
108108
*
109+
* Required scopes:
110+
* * aws-provisioner:manage-worker-type:<workerType>
111+
*
109112
* See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#createWorkerType
110113
*/
111114
public CallSummary<CreateWorkerTypeRequest, GetWorkerTypeResponse> createWorkerType(String workerType, CreateWorkerTypeRequest payload) throws APICallFailure {
@@ -125,6 +128,9 @@ public CallSummary<CreateWorkerTypeRequest, GetWorkerTypeResponse> createWorkerT
125128
* Otherwise, all input requirements and actions are the same as the
126129
* create method.
127130
*
131+
* Required scopes:
132+
* * aws-provisioner:manage-worker-type:<workerType>
133+
*
128134
* See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#updateWorkerType
129135
*/
130136
public CallSummary<CreateWorkerTypeRequest, GetWorkerTypeResponse> updateWorkerType(String workerType, CreateWorkerTypeRequest payload) throws APICallFailure {
@@ -138,6 +144,10 @@ public CallSummary<CreateWorkerTypeRequest, GetWorkerTypeResponse> updateWorkerT
138144
* use the results of this method to submit date to the update
139145
* method.
140146
*
147+
* Required scopes:
148+
* * aws-provisioner:view-worker-type:<workerType>, or
149+
* * aws-provisioner:manage-worker-type:<workerType>
150+
*
141151
* See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#workerType
142152
*/
143153
public CallSummary<EmptyPayload, GetWorkerTypeResponse> workerType(String workerType) throws APICallFailure {
@@ -156,6 +166,9 @@ public CallSummary<EmptyPayload, GetWorkerTypeResponse> workerType(String worker
156166
* or you could theoretically set maxCapacity to 0, though, this is
157167
* not a supported or tested action
158168
*
169+
* Required scopes:
170+
* * aws-provisioner:manage-worker-type:<workerType>
171+
*
159172
* See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#removeWorkerType
160173
*/
161174
public CallSummary<EmptyPayload, EmptyPayload> removeWorkerType(String workerType) throws APICallFailure {
@@ -182,6 +195,9 @@ public CallSummary<EmptyPayload, String[]> listWorkerTypes() throws APICallFailu
182195
* This method is not ordinarily used in production; instead, the provisioner
183196
* creates a new secret directly for each spot bid.
184197
*
198+
* Required scopes:
199+
* * aws-provisioner:create-secret
200+
*
185201
* See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#createSecret
186202
*/
187203
public CallSummary<GetSecretRequest, EmptyPayload> createSecret(String token, GetSecretRequest payload) throws APICallFailure {
@@ -237,6 +253,10 @@ public CallSummary<EmptyPayload, EmptyPayload> removeSecret(String token) throws
237253
*
238254
* **This API end-point is experimental and may be subject to change without warning.**
239255
*
256+
* Required scopes:
257+
* * aws-provisioner:view-worker-type:<workerType>, or
258+
* * aws-provisioner:manage-worker-type:<workerType>
259+
*
240260
* See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#getLaunchSpecs
241261
*/
242262
public CallSummary<EmptyPayload, Object> getLaunchSpecs(String workerType) throws APICallFailure {
@@ -250,6 +270,9 @@ public CallSummary<EmptyPayload, Object> getLaunchSpecs(String workerType) throw
250270
* in the provisioner. The `summary` property contains an updated summary
251271
* similar to that returned from `listWorkerTypeSummaries`.
252272
*
273+
* Required scopes:
274+
* * aws-provisioner:view-worker-type:<workerType>
275+
*
253276
* See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#state
254277
*/
255278
public CallSummary<EmptyPayload, EmptyPayload> state(String workerType) throws APICallFailure {

src/main/java/org/mozilla/taskcluster/client/hooks/Hooks.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public CallSummary<EmptyPayload, HookScheduleResponse> getHookSchedule(String ho
112112
* create the task. That role must satisfy task.scopes as well as the
113113
* necessary scopes to add the task to the queue.
114114
*
115+
* Required scopes:
116+
* * hooks:modify-hook:<hookGroupId>/<hookId>, and
117+
* * assume:hook-id:<hookGroupId>/<hookId>
118+
*
115119
* See https://docs.taskcluster.net/reference/core/hooks/api-docs#createHook
116120
*/
117121
public CallSummary<HookCreationRequest, HookDefinition> createHook(String hookGroupId, String hookId, HookCreationRequest payload) throws APICallFailure {
@@ -122,6 +126,10 @@ public CallSummary<HookCreationRequest, HookDefinition> createHook(String hookGr
122126
* This endpoint will update an existing hook. All fields except
123127
* `hookGroupId` and `hookId` can be modified.
124128
*
129+
* Required scopes:
130+
* * hooks:modify-hook:<hookGroupId>/<hookId>, and
131+
* * assume:hook-id:<hookGroupId>/<hookId>
132+
*
125133
* See https://docs.taskcluster.net/reference/core/hooks/api-docs#updateHook
126134
*/
127135
public CallSummary<HookCreationRequest, HookDefinition> updateHook(String hookGroupId, String hookId, HookCreationRequest payload) throws APICallFailure {
@@ -131,6 +139,9 @@ public CallSummary<HookCreationRequest, HookDefinition> updateHook(String hookGr
131139
/**
132140
* This endpoint will remove a hook definition.
133141
*
142+
* Required scopes:
143+
* * hooks:modify-hook:<hookGroupId>/<hookId>
144+
*
134145
* See https://docs.taskcluster.net/reference/core/hooks/api-docs#removeHook
135146
*/
136147
public CallSummary<EmptyPayload, EmptyPayload> removeHook(String hookGroupId, String hookId) throws APICallFailure {

src/main/java/org/mozilla/taskcluster/client/index/Index.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ public CallSummary<ListTasksRequest, ListTasksResponse> listTasks(String namespa
177177
* Insert a task into the index. Please see the introduction above, for how
178178
* to index successfully completed tasks automatically, using custom routes.
179179
*
180+
* Required scopes:
181+
* * index:insert-task:<namespace>
182+
*
180183
* See https://docs.taskcluster.net/reference/core/index/api-docs#insertTask
181184
*/
182185
public CallSummary<InsertTaskRequest, IndexedTaskResponse> insertTask(String namespace, InsertTaskRequest payload) throws APICallFailure {
@@ -188,6 +191,9 @@ public CallSummary<InsertTaskRequest, IndexedTaskResponse> insertTask(String nam
188191
* if no task existing for the given namespace, this API end-point respond
189192
* `404`.
190193
*
194+
* Required scopes:
195+
* * queue:get-artifact:<name>
196+
*
191197
* See https://docs.taskcluster.net/reference/core/index/api-docs#findArtifactFromTask
192198
*/
193199
public CallSummary<EmptyPayload, EmptyPayload> findArtifactFromTask(String namespace, String name) throws APICallFailure {

src/main/java/org/mozilla/taskcluster/client/purgecache/PurgeCache.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public PurgeCache() {
5353
* `provisionerId` and `workerType` in the routing-key. Workers should
5454
* be listening for this message and purge caches when they see it.
5555
*
56+
* Required scopes:
57+
* * purge-cache:<provisionerId>/<workerType>:<cacheName>
58+
*
5659
* See https://docs.taskcluster.net/reference/core/purge-cache/api-docs#purgeCache
5760
*/
5861
public CallSummary<PurgeCacheRequest, EmptyPayload> purgeCache(String provisionerId, String workerType, PurgeCacheRequest payload) throws APICallFailure {

0 commit comments

Comments
 (0)