@@ -57,12 +57,13 @@ public void setApiClient(ApiClient apiClient) {
57
57
/**
58
58
* Build call for buildsArtifactGet
59
59
* @param artifact The artifact type to list builds for. (required)
60
+ * @param latest (optional)
60
61
* @param progressListener Progress listener
61
62
* @param progressRequestListener Progress request listener
62
63
* @return Call to execute
63
64
* @throws ApiException If fail to serialize the request body object
64
65
*/
65
- public com .squareup .okhttp .Call buildsArtifactGetCall (String artifact , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
66
+ public com .squareup .okhttp .Call buildsArtifactGetCall (String artifact , Boolean latest , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
66
67
Object localVarPostBody = null ;
67
68
68
69
// create path and map variables
@@ -71,6 +72,8 @@ public com.squareup.okhttp.Call buildsArtifactGetCall(String artifact, final Pro
71
72
72
73
List <Pair > localVarQueryParams = new ArrayList <Pair >();
73
74
List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
75
+ if (latest != null )
76
+ localVarQueryParams .addAll (apiClient .parameterToPair ("latest" , latest ));
74
77
75
78
Map <String , String > localVarHeaderParams = new HashMap <String , String >();
76
79
@@ -105,13 +108,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
105
108
}
106
109
107
110
@ SuppressWarnings ("rawtypes" )
108
- private com .squareup .okhttp .Call buildsArtifactGetValidateBeforeCall (String artifact , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
111
+ private com .squareup .okhttp .Call buildsArtifactGetValidateBeforeCall (String artifact , Boolean latest , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
109
112
// verify the required parameter 'artifact' is set
110
113
if (artifact == null ) {
111
114
throw new ApiException ("Missing the required parameter 'artifact' when calling buildsArtifactGet(Async)" );
112
115
}
113
116
114
- com .squareup .okhttp .Call call = buildsArtifactGetCall (artifact , progressListener , progressRequestListener );
117
+ com .squareup .okhttp .Call call = buildsArtifactGetCall (artifact , latest , progressListener , progressRequestListener );
115
118
return call ;
116
119
117
120
@@ -124,23 +127,25 @@ private com.squareup.okhttp.Call buildsArtifactGetValidateBeforeCall(String arti
124
127
* Provides a list of builds of the specified artifact available for download.
125
128
* Provides a list of builds of the specified artifact available for download. Note that the order of the returned artifacts is arbitrary.
126
129
* @param artifact The artifact type to list builds for. (required)
130
+ * @param latest (optional)
127
131
* @return List<BuildArtifact>
128
132
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
129
133
*/
130
- public List <BuildArtifact > buildsArtifactGet (String artifact ) throws ApiException {
131
- ApiResponse <List <BuildArtifact >> resp = buildsArtifactGetWithHttpInfo (artifact );
134
+ public List <BuildArtifact > buildsArtifactGet (String artifact , Boolean latest ) throws ApiException {
135
+ ApiResponse <List <BuildArtifact >> resp = buildsArtifactGetWithHttpInfo (artifact , latest );
132
136
return resp .getData ();
133
137
}
134
138
135
139
/**
136
140
* Provides a list of builds of the specified artifact available for download.
137
141
* Provides a list of builds of the specified artifact available for download. Note that the order of the returned artifacts is arbitrary.
138
142
* @param artifact The artifact type to list builds for. (required)
143
+ * @param latest (optional)
139
144
* @return ApiResponse<List<BuildArtifact>>
140
145
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
141
146
*/
142
- public ApiResponse <List <BuildArtifact >> buildsArtifactGetWithHttpInfo (String artifact ) throws ApiException {
143
- com .squareup .okhttp .Call call = buildsArtifactGetValidateBeforeCall (artifact , null , null );
147
+ public ApiResponse <List <BuildArtifact >> buildsArtifactGetWithHttpInfo (String artifact , Boolean latest ) throws ApiException {
148
+ com .squareup .okhttp .Call call = buildsArtifactGetValidateBeforeCall (artifact , latest , null , null );
144
149
Type localVarReturnType = new TypeToken <List <BuildArtifact >>(){}.getType ();
145
150
return apiClient .execute (call , localVarReturnType );
146
151
}
@@ -149,11 +154,12 @@ public ApiResponse<List<BuildArtifact>> buildsArtifactGetWithHttpInfo(String art
149
154
* Provides a list of builds of the specified artifact available for download. (asynchronously)
150
155
* Provides a list of builds of the specified artifact available for download. Note that the order of the returned artifacts is arbitrary.
151
156
* @param artifact The artifact type to list builds for. (required)
157
+ * @param latest (optional)
152
158
* @param callback The callback to be executed when the API call finishes
153
159
* @return The request call
154
160
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
155
161
*/
156
- public com .squareup .okhttp .Call buildsArtifactGetAsync (String artifact , final ApiCallback <List <BuildArtifact >> callback ) throws ApiException {
162
+ public com .squareup .okhttp .Call buildsArtifactGetAsync (String artifact , Boolean latest , final ApiCallback <List <BuildArtifact >> callback ) throws ApiException {
157
163
158
164
ProgressResponseBody .ProgressListener progressListener = null ;
159
165
ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
@@ -174,7 +180,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
174
180
};
175
181
}
176
182
177
- com .squareup .okhttp .Call call = buildsArtifactGetValidateBeforeCall (artifact , progressListener , progressRequestListener );
183
+ com .squareup .okhttp .Call call = buildsArtifactGetValidateBeforeCall (artifact , latest , progressListener , progressRequestListener );
178
184
Type localVarReturnType = new TypeToken <List <BuildArtifact >>(){}.getType ();
179
185
apiClient .executeAsync (call , localVarReturnType , callback );
180
186
return call ;
0 commit comments