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

Commit ceb278b

Browse files
committed
Regenerated library to pick up latest schema changes
1 parent ba08fa7 commit ceb278b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

codegenerator/model/model-data.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9246,9 +9246,9 @@ Properties
92469246
SourceURL = ''
92479247
Required = '[secret expires]'
92489248
Schema = 'http://json-schema.org/draft-04/schema#'
9249-
Title = 'A TaskCluster Secret'
9249+
Title = 'Secret'
92509250
Type = 'object'
9251-
TypeName = 'ATaskClusterSecret'
9251+
TypeName = 'Secret'
92529252
IsInputSchema = 'true'
92539253
IsOutputSchema = 'true'
92549254
SourceURL = 'http://schemas.taskcluster.net/secrets/v1/secret.json#'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* See http://schemas.taskcluster.net/secrets/v1/secret.json#
99
*/
10-
public class ATaskClusterSecret {
10+
public class Secret {
1111

1212
/**
1313
* An expiration date for this secret.

src/main/java/org/mozilla/taskcluster/client/secrets/Secrets.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Secrets() {
4141
*
4242
* See http://docs.taskcluster.net/services/secrets/#set
4343
*/
44-
public CallSummary<ATaskClusterSecret, EmptyPayload> set(String name, ATaskClusterSecret payload) throws APICallFailure {
44+
public CallSummary<Secret, EmptyPayload> set(String name, Secret payload) throws APICallFailure {
4545
return apiCall(payload, "PUT", "/secrets/" + uriEncode(name), EmptyPayload.class);
4646
}
4747

@@ -50,7 +50,7 @@ public CallSummary<ATaskClusterSecret, EmptyPayload> set(String name, ATaskClust
5050
*
5151
* See http://docs.taskcluster.net/services/secrets/#update
5252
*/
53-
public CallSummary<ATaskClusterSecret, EmptyPayload> update(String name, ATaskClusterSecret payload) throws APICallFailure {
53+
public CallSummary<Secret, EmptyPayload> update(String name, Secret payload) throws APICallFailure {
5454
return apiCall(payload, "POST", "/secrets/" + uriEncode(name), EmptyPayload.class);
5555
}
5656

@@ -68,8 +68,8 @@ public CallSummary<EmptyPayload, EmptyPayload> remove(String name) throws APICal
6868
*
6969
* See http://docs.taskcluster.net/services/secrets/#get
7070
*/
71-
public CallSummary<EmptyPayload, ATaskClusterSecret> get(String name) throws APICallFailure {
72-
return apiCall(null, "GET", "/secrets/" + uriEncode(name), ATaskClusterSecret.class);
71+
public CallSummary<EmptyPayload, Secret> get(String name) throws APICallFailure {
72+
return apiCall(null, "GET", "/secrets/" + uriEncode(name), Secret.class);
7373
}
7474

7575
/**

0 commit comments

Comments
 (0)