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

Commit 9bb5cc9

Browse files
committed
Regenerated library to pick up latest schema changes
1 parent f5ef488 commit 9bb5cc9

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

codegenerator/model/model-data.txt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,12 @@ Entry 8 =
167167
Entry Input = 'http://schemas.taskcluster.net/auth/v1/create-role-request.json#'
168168
Entry Output = 'http://schemas.taskcluster.net/auth/v1/get-role-response.json#'
169169
Entry Title = 'Create Role'
170-
Entry Description = 'Create a new role. If there already exists a role with the same `roleId`
171-
this operation will fail. Use `updateRole` to modify an existing role'
170+
Entry Description = 'Create a new role.
171+
172+
The caller's scopes must satisfy the new role's scopes.
173+
174+
If there already exists a role with the same `roleId` this operation
175+
will fail. Use `updateRole` to modify an existing role.'
172176
Entry 9 =
173177
Entry Type = 'function'
174178
Entry Method = 'post'
@@ -179,7 +183,10 @@ Entry 9 =
179183
Entry Input = 'http://schemas.taskcluster.net/auth/v1/create-role-request.json#'
180184
Entry Output = 'http://schemas.taskcluster.net/auth/v1/get-role-response.json#'
181185
Entry Title = 'Update Role'
182-
Entry Description = 'Update existing role.'
186+
Entry Description = 'Update an existing role.
187+
188+
The caller's scopes must satisfy all of the new scopes being added, but
189+
need not satisfy all of the client's existing scopes.'
183190
Entry 10 =
184191
Entry Type = 'function'
185192
Entry Method = 'delete'
@@ -593,7 +600,7 @@ Properties
593600
Description = 'AccessToken used for authenticating requests, you should store this
594601
you won't be able to retrive it again!
595602
'
596-
Pattern = '^[a-zA-Z0-9-_]{22,66}$'
603+
Pattern = '^[a-zA-Z0-9_-]{22,66}$'
597604
Type = 'string'
598605
TypeName = 'accessToken'
599606
IsInputSchema = 'false'
@@ -602,7 +609,7 @@ Properties
602609
Property 'clientId' =
603610
Description = 'ClientId of the client
604611
'
605-
Pattern = '^[a-zA-Z0-9-_]{1,22}$'
612+
Pattern = '^[A-Za-z0-9@/:._-]+$'
606613
Type = 'string'
607614
TypeName = 'clientId'
608615
IsInputSchema = 'false'
@@ -749,7 +756,7 @@ Items
749756
Property 'accessToken' =
750757
Description = 'AccessToken used for authenticating requests
751758
'
752-
Pattern = '^[a-zA-Z0-9-_]{22,66}$'
759+
Pattern = '^[a-zA-Z0-9_-]{22,66}$'
753760
Type = 'string'
754761
TypeName = 'accessToken'
755762
IsInputSchema = 'false'
@@ -837,7 +844,7 @@ Properties
837844
Property 'clientId' =
838845
Description = 'ClientId of the client scopes is requested about
839846
'
840-
Pattern = '^[a-zA-Z0-9-_]{1,22}$'
847+
Pattern = '^[A-Za-z0-9@/:._-]+$'
841848
Type = 'string'
842849
TypeName = 'clientId'
843850
IsInputSchema = 'false'
@@ -985,6 +992,7 @@ Properties
985992
Property 'roleId' =
986993
Description = 'roleId of the role requested
987994
'
995+
Pattern = '^[\x20-\x7e]+$'
988996
Type = 'string'
989997
TypeName = 'roleId'
990998
IsInputSchema = 'false'

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,12 @@ public CallSummary<EmptyPayload, GetRoleResponse> role(String roleId) throws API
169169
}
170170

171171
/**
172-
* Create a new role. If there already exists a role with the same `roleId`
173-
* this operation will fail. Use `updateRole` to modify an existing role
172+
* Create a new role.
173+
*
174+
* The caller's scopes must satisfy the new role's scopes.
175+
*
176+
* If there already exists a role with the same `roleId` this operation
177+
* will fail. Use `updateRole` to modify an existing role.
174178
*
175179
* See http://docs.taskcluster.net/auth/api-docs/#createRole
176180
*/
@@ -179,7 +183,10 @@ public CallSummary<CreateRoleRequest, GetRoleResponse> createRole(String roleId,
179183
}
180184

181185
/**
182-
* Update existing role.
186+
* Update an existing role.
187+
*
188+
* The caller's scopes must satisfy all of the new scopes being added, but
189+
* need not satisfy all of the client's existing scopes.
183190
*
184191
* See http://docs.taskcluster.net/auth/api-docs/#updateRole
185192
*/

0 commit comments

Comments
 (0)