You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPING.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
```
16
16
* Note that dxScala will compile with JDK8 or JDK11 and that JDK8 is used as the build target so the resulting JAR file can be executed with JRE8 or later.
17
17
* Install [sbt](https://www.scala-sbt.org/), which also installs Scala. Sbt is a make-like utility that works with the ```scala``` language.
18
-
* On MacOS: `brew install sbt`
18
+
* On MacOS: `brew install sbt` or `brew install --ignore-dependencies sbt` (if you don't want to install the newest JDK)
@@ -48,7 +48,7 @@ If you want to make a change to dxScala, do the following:
48
48
3. If the current snapshot version matches the release version, increment the snapshot version.
49
49
- For example, if the current release is `1.0.0` and the current snapshot version is `1.0.0-SNAPSHOT`, increment the snapshot version to `1.0.1-SNAPSHOT`.
50
50
4. Make your changes. Test locally using `sbt test`.
51
-
5. Update the release notes under the top-most header (which should be "in develop").
51
+
5. Update the release notes under the top-most header (which should be "unreleased").
52
52
6. If the current snapshot version only differs from the release version by a patch, and you added any new functionality (vs just fixing a bug), increment the minor version instead.
53
53
- For example, when you first created the branch you set the version to `1.0.1-SNAPSHOT`, but then you realized you needed to add a new function to the public API, change the version to `1.1.0-SNAPSHOT`.
54
54
7. When you are done, create a pull request against the `develop` branch.
* Invokes the jobGetIdentityToken method with an empty input, deserializing to an object of the specified class.
21146
+
*
21147
+
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21148
+
*
21149
+
* @param objectId ID of the object to operate on
21150
+
* @param outputClass class to deserialize the server reponse to
21151
+
*
21152
+
* @return Response object
21153
+
*
21154
+
* @throws DXAPIException
21155
+
* If the server returns a complete response with an HTTP status
21156
+
* code other than 200 (OK).
21157
+
* @throws DXHTTPException
21158
+
* If an error occurs while making the HTTP request or obtaining
21159
+
* the response (includes HTTP protocol errors).
21160
+
*/
21161
+
public static <T> T jobGetIdentityToken(String objectId, Class<T> outputClass) {
* Invokes the jobGetIdentityToken method with the given input, deserializing to an object of the specified class.
21166
+
*
21167
+
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21168
+
*
21169
+
* @param objectId ID of the object to operate on
21170
+
* @param inputObject input object (to be JSON serialized to an input hash)
21171
+
* @param outputClass class to deserialize the server reponse to
21172
+
*
21173
+
* @return Response object
21174
+
*
21175
+
* @throws DXAPIException
21176
+
* If the server returns a complete response with an HTTP status
21177
+
* code other than 200 (OK).
21178
+
* @throws DXHTTPException
21179
+
* If an error occurs while making the HTTP request or obtaining
21180
+
* the response (includes HTTP protocol errors).
21181
+
*/
21182
+
public static <T> T jobGetIdentityToken(String objectId, Object inputObject, Class<T> outputClass) {
21183
+
JsonNode input = mapper.valueToTree(inputObject);
21184
+
return DXJSON.safeTreeToValue(
21185
+
new DXHTTPRequest().request("/" + objectId + "/" + "getIdentityToken",
* Invokes the jobGetIdentityToken method with an empty input using the given environment, deserializing to an object of the specified class.
21190
+
*
21191
+
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21192
+
*
21193
+
* @param objectId ID of the object to operate on
21194
+
* @param outputClass class to deserialize the server reponse to
21195
+
* @param env environment object specifying the auth token and remote server and protocol
21196
+
*
21197
+
* @return Response object
21198
+
*
21199
+
* @throws DXAPIException
21200
+
* If the server returns a complete response with an HTTP status
21201
+
* code other than 200 (OK).
21202
+
* @throws DXHTTPException
21203
+
* If an error occurs while making the HTTP request or obtaining
21204
+
* the response (includes HTTP protocol errors).
21205
+
*/
21206
+
public static <T> T jobGetIdentityToken(String objectId, Class<T> outputClass, DXEnvironment env) {
* Invokes the jobGetIdentityToken method with the given input using the given environment, deserializing to an object of the specified class.
21211
+
*
21212
+
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21213
+
*
21214
+
* @param objectId ID of the object to operate on
21215
+
* @param inputObject input object (to be JSON serialized to an input hash)
21216
+
* @param outputClass class to deserialize the server reponse to
21217
+
* @param env environment object specifying the auth token and remote server and protocol
21218
+
*
21219
+
* @return Response object
21220
+
*
21221
+
* @throws DXAPIException
21222
+
* If the server returns a complete response with an HTTP status
21223
+
* code other than 200 (OK).
21224
+
* @throws DXHTTPException
21225
+
* If an error occurs while making the HTTP request or obtaining
21226
+
* the response (includes HTTP protocol errors).
21227
+
*/
21228
+
public static <T> T jobGetIdentityToken(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {
21229
+
JsonNode input = mapper.valueToTree(inputObject);
21230
+
return DXJSON.safeTreeToValue(
21231
+
new DXHTTPRequest(env).request("/" + objectId + "/" + "getIdentityToken",
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21239
+
*
21240
+
* @param objectId ID of the object to operate on
21241
+
*
21242
+
* @return Server response parsed from JSON
21243
+
*
21244
+
* @throws DXAPIException
21245
+
* If the server returns a complete response with an HTTP status
21246
+
* code other than 200 (OK).
21247
+
* @throws DXHTTPException
21248
+
* If an error occurs while making the HTTP request or obtaining
21249
+
* the response (includes HTTP protocol errors).
21250
+
*
21251
+
* @deprecated Use {@link #jobGetIdentityToken(String, Class)} instead and supply your own class to deserialize to.
21252
+
*/
21253
+
@Deprecated
21254
+
public static JsonNode jobGetIdentityToken(String objectId) {
* Invokes the jobGetIdentityToken method with the specified parameters.
21259
+
*
21260
+
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21261
+
*
21262
+
* @param objectId ID of the object to operate on
21263
+
* @param inputParams input parameters to the API call
21264
+
*
21265
+
* @return Server response parsed from JSON
21266
+
*
21267
+
* @throws DXAPIException
21268
+
* If the server returns a complete response with an HTTP status
21269
+
* code other than 200 (OK).
21270
+
* @throws DXHTTPException
21271
+
* If an error occurs while making the HTTP request or obtaining
21272
+
* the response (includes HTTP protocol errors).
21273
+
*
21274
+
* @deprecated Use {@link #jobGetIdentityToken(String, Object, Class)} instead and supply your own class to deserialize to.
21275
+
*/
21276
+
@Deprecated
21277
+
public static JsonNode jobGetIdentityToken(String objectId, JsonNode inputParams) {
21278
+
return new DXHTTPRequest().request("/" + objectId + "/" + "getIdentityToken", inputParams,
21279
+
RetryStrategy.SAFE_TO_RETRY);
21280
+
}
21281
+
/**
21282
+
* Invokes the jobGetIdentityToken method with the specified environment.
21283
+
*
21284
+
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21285
+
*
21286
+
* @param objectId ID of the object to operate on
21287
+
* @param env environment object specifying the auth token and remote server and protocol
21288
+
*
21289
+
* @return Server response parsed from JSON
21290
+
*
21291
+
* @throws DXAPIException
21292
+
* If the server returns a complete response with an HTTP status
21293
+
* code other than 200 (OK).
21294
+
* @throws DXHTTPException
21295
+
* If an error occurs while making the HTTP request or obtaining
21296
+
* the response (includes HTTP protocol errors).
21297
+
*
21298
+
* @deprecated Use {@link #jobGetIdentityToken(String, Class, DXEnvironment)} instead and supply your own class to deserialize to.
21299
+
*/
21300
+
@Deprecated
21301
+
public static JsonNode jobGetIdentityToken(String objectId, DXEnvironment env) {
* Invokes the jobGetIdentityToken method with the specified environment and parameters.
21306
+
*
21307
+
* <p>For more information about this method, see the <a href="https://documentation.dnanexus.com/developer/api/running-analyses/applets-and-entry-points#api-method-job-xxxx-getIdentityToken">API specification</a>.
21308
+
*
21309
+
* @param objectId ID of the object to operate on
21310
+
* @param inputParams input parameters to the API call
21311
+
* @param env environment object specifying the auth token and remote server and protocol
21312
+
*
21313
+
* @return Server response parsed from JSON
21314
+
*
21315
+
* @throws DXAPIException
21316
+
* If the server returns a complete response with an HTTP status
21317
+
* code other than 200 (OK).
21318
+
* @throws DXHTTPException
21319
+
* If an error occurs while making the HTTP request or obtaining
21320
+
* the response (includes HTTP protocol errors).
21321
+
*
21322
+
* @deprecated Use {@link #jobGetIdentityToken(String, Object, Class, DXEnvironment)} instead and supply your own class to deserialize to.
21323
+
*/
21324
+
@Deprecated
21325
+
public static JsonNode jobGetIdentityToken(String objectId, JsonNode inputParams, DXEnvironment env) {
21326
+
return new DXHTTPRequest(env).request("/" + objectId + "/" + "getIdentityToken", inputParams,
21327
+
RetryStrategy.SAFE_TO_RETRY);
21328
+
}
21329
+
21144
21330
/**
21145
21331
* Invokes the jobNew method with an empty input, deserializing to an object of the specified class.
0 commit comments