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

Commit 1963b19

Browse files
committed
Regenerated library to pick up latest schema changes
1 parent 2a4f801 commit 1963b19

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

codegenerator/model/model-data.txt

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Entry 15 =
284284
Entry Method = 'get'
285285
Entry Route = '/aws/s3/<level>/<bucket>/<prefix>'
286286
Entry Args = '[level bucket prefix]'
287-
Entry Query = '[]'
287+
Entry Query = '[format]'
288288
Entry Name = 'awsS3Credentials'
289289
Entry Stability = 'stable'
290290
Entry Scopes = '[[auth:aws-s3:<level>:<bucket>/<prefix>]]'
@@ -348,7 +348,14 @@ Finally, note that the `PutObjectAcl` call is not allowed. Passing a canned
348348
ACL other than `private` to `PutObject` is treated as a `PutObjectAcl` call, and
349349
will result in an access-denied error from AWS. This limitation is due to a
350350
security flaw in Amazon S3 which might otherwise allow indefinite access to
351-
uploaded objects.'
351+
uploaded objects.
352+
353+
**EC2 metadata compatibility**, if the querystring parameter
354+
`?format=iam-role-compat` is given, the response will be compatible
355+
with the JSON exposed by the EC2 metadata service. This aims to ease
356+
compatibility for libraries and tools built to auto-refresh credentials.
357+
For details on the format returned by EC2 metadata service see:
358+
[EC2 User Guide](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html#instance-metadata-security-credentials).'
352359
Entry 16 =
353360
Entry Type = 'function'
354361
Entry Method = 'get'
@@ -6407,7 +6414,14 @@ authorization is not necessary to fetch the artifact.
64076414
**API Clients**, this method will redirect you to the artifact, if it is
64086415
stored externally. Either way, the response may not be JSON. So API
64096416
client users might want to generate a signed URL for this end-point and
6410-
use that URL with a normal HTTP client.'
6417+
use that URL with a normal HTTP client.
6418+
6419+
**Caching**, artifacts may be cached in data centers closer to the
6420+
workers in-order to reduce bandwidth costs. This can lead to longer
6421+
response times. Caching can be skipped by setting the header
6422+
`x-taskcluster-skip-cache: true`, this should only be used for resources
6423+
where request volume is known to be low, and caching not useful.
6424+
(This feature may be disabled in the future, use is sparingly!)'
64116425
Entry 18 =
64126426
Entry Type = 'function'
64136427
Entry Method = 'get'

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ public CallSummary<EmptyPayload, SetOfScopes> currentScopes() throws APICallFail
349349
* will result in an access-denied error from AWS. This limitation is due to a
350350
* security flaw in Amazon S3 which might otherwise allow indefinite access to
351351
* uploaded objects.
352+
*
353+
* **EC2 metadata compatibility**, if the querystring parameter
354+
* `?format=iam-role-compat` is given, the response will be compatible
355+
* with the JSON exposed by the EC2 metadata service. This aims to ease
356+
* compatibility for libraries and tools built to auto-refresh credentials.
357+
* For details on the format returned by EC2 metadata service see:
358+
* [EC2 User Guide](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html#instance-metadata-security-credentials).
352359
*
353360
* Required scopes:
354361
*

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,13 @@ public CallSummary<Object, Object> createArtifact(String taskId, String runId, S
465465
* stored externally. Either way, the response may not be JSON. So API
466466
* client users might want to generate a signed URL for this end-point and
467467
* use that URL with a normal HTTP client.
468+
*
469+
* **Caching**, artifacts may be cached in data centers closer to the
470+
* workers in-order to reduce bandwidth costs. This can lead to longer
471+
* response times. Caching can be skipped by setting the header
472+
* `x-taskcluster-skip-cache: true`, this should only be used for resources
473+
* where request volume is known to be low, and caching not useful.
474+
* (This feature may be disabled in the future, use is sparingly!)
468475
*
469476
* Required scopes:
470477
*

0 commit comments

Comments
 (0)