Fix create token api
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
77a4e0bcf6
commit
a99fa0c149
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# AccessToken
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **Long** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**sha1** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# AccessTokenName
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **String** | |
|
||||
|
||||
|
||||
|
||||
|
|
@ -294,7 +294,7 @@ null (empty response body)
|
|||
|
||||
<a name="userCreateToken"></a>
|
||||
# **userCreateToken**
|
||||
> userCreateToken(username)
|
||||
> AccessToken userCreateToken(username, accessTokenName)
|
||||
|
||||
Create an access token
|
||||
|
||||
|
|
@ -346,8 +346,10 @@ Token.setApiKey("YOUR API KEY");
|
|||
|
||||
UserApi apiInstance = new UserApi();
|
||||
String username = "username_example"; // String | username of user
|
||||
AccessTokenName accessTokenName = new AccessTokenName(); // AccessTokenName |
|
||||
try {
|
||||
apiInstance.userCreateToken(username);
|
||||
AccessToken result = apiInstance.userCreateToken(username, accessTokenName);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#userCreateToken");
|
||||
e.printStackTrace();
|
||||
|
|
@ -359,10 +361,11 @@ try {
|
|||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **String**| username of user |
|
||||
**accessTokenName** | [**AccessTokenName**](AccessTokenName.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
[**AccessToken**](AccessToken.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
|
@ -2305,7 +2308,7 @@ This endpoint does not need any parameter.
|
|||
|
||||
<a name="userGetTokens"></a>
|
||||
# **userGetTokens**
|
||||
> userGetTokens(username)
|
||||
> List<AccessToken> userGetTokens(username)
|
||||
|
||||
List the authenticated user's access tokens
|
||||
|
||||
|
|
@ -2358,7 +2361,8 @@ Token.setApiKey("YOUR API KEY");
|
|||
UserApi apiInstance = new UserApi();
|
||||
String username = "username_example"; // String | username of user
|
||||
try {
|
||||
apiInstance.userGetTokens(username);
|
||||
List<AccessToken> result = apiInstance.userGetTokens(username);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#userGetTokens");
|
||||
e.printStackTrace();
|
||||
|
|
@ -2373,7 +2377,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
[**List<AccessToken>**](AccessToken.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,5 +1,6 @@
|
|||
#Tue May 17 23:08:05 CST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ package io.gitea;
|
|||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class ApiException extends Exception {
|
||||
private int code = 0;
|
||||
private Map<String, List<String>> responseHeaders = null;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
package io.gitea;
|
||||
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Configuration {
|
||||
private static ApiClient defaultApiClient = new ApiClient();
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
package io.gitea;
|
||||
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Pair {
|
||||
private String name = "";
|
||||
private String value = "";
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
package io.gitea;
|
||||
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class StringUtil {
|
||||
/**
|
||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ import com.google.gson.reflect.TypeToken;
|
|||
import java.io.IOException;
|
||||
|
||||
|
||||
import io.gitea.model.AccessToken;
|
||||
import io.gitea.model.AccessTokenName;
|
||||
import io.gitea.model.CreateEmailOption;
|
||||
import io.gitea.model.CreateGPGKeyOption;
|
||||
import io.gitea.model.CreateKeyOption;
|
||||
|
|
@ -431,13 +433,14 @@ public class UserApi {
|
|||
/**
|
||||
* Build call for userCreateToken
|
||||
* @param username username of user (required)
|
||||
* @param accessTokenName (optional)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call userCreateTokenCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
public com.squareup.okhttp.Call userCreateTokenCall(String username, AccessTokenName accessTokenName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = accessTokenName;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/users/{username}/tokens"
|
||||
|
|
@ -479,7 +482,7 @@ public class UserApi {
|
|||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call userCreateTokenValidateBeforeCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
private com.squareup.okhttp.Call userCreateTokenValidateBeforeCall(String username, AccessTokenName accessTokenName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
|
|
@ -487,7 +490,7 @@ public class UserApi {
|
|||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = userCreateTokenCall(username, progressListener, progressRequestListener);
|
||||
com.squareup.okhttp.Call call = userCreateTokenCall(username, accessTokenName, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
|
@ -496,33 +499,39 @@ public class UserApi {
|
|||
* Create an access token
|
||||
*
|
||||
* @param username username of user (required)
|
||||
* @param accessTokenName (optional)
|
||||
* @return AccessToken
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public void userCreateToken(String username) throws ApiException {
|
||||
userCreateTokenWithHttpInfo(username);
|
||||
public AccessToken userCreateToken(String username, AccessTokenName accessTokenName) throws ApiException {
|
||||
ApiResponse<AccessToken> resp = userCreateTokenWithHttpInfo(username, accessTokenName);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an access token
|
||||
*
|
||||
* @param username username of user (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @param accessTokenName (optional)
|
||||
* @return ApiResponse<AccessToken>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<Void> userCreateTokenWithHttpInfo(String username) throws ApiException {
|
||||
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, null, null);
|
||||
return apiClient.execute(call);
|
||||
public ApiResponse<AccessToken> userCreateTokenWithHttpInfo(String username, AccessTokenName accessTokenName) throws ApiException {
|
||||
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, null, null);
|
||||
Type localVarReturnType = new TypeToken<AccessToken>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an access token (asynchronously)
|
||||
*
|
||||
* @param username username of user (required)
|
||||
* @param accessTokenName (optional)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call userCreateTokenAsync(String username, final ApiCallback<Void> callback) throws ApiException {
|
||||
public com.squareup.okhttp.Call userCreateTokenAsync(String username, AccessTokenName accessTokenName, final ApiCallback<AccessToken> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
|
@ -543,8 +552,9 @@ public class UserApi {
|
|||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, progressListener, progressRequestListener);
|
||||
apiClient.executeAsync(call, callback);
|
||||
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<AccessToken>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
|
|
@ -3459,22 +3469,25 @@ public class UserApi {
|
|||
* List the authenticated user's access tokens
|
||||
*
|
||||
* @param username username of user (required)
|
||||
* @return List<AccessToken>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public void userGetTokens(String username) throws ApiException {
|
||||
userGetTokensWithHttpInfo(username);
|
||||
public List<AccessToken> userGetTokens(String username) throws ApiException {
|
||||
ApiResponse<List<AccessToken>> resp = userGetTokensWithHttpInfo(username);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* List the authenticated user's access tokens
|
||||
*
|
||||
* @param username username of user (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @return ApiResponse<List<AccessToken>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<Void> userGetTokensWithHttpInfo(String username) throws ApiException {
|
||||
public ApiResponse<List<AccessToken>> userGetTokensWithHttpInfo(String username) throws ApiException {
|
||||
com.squareup.okhttp.Call call = userGetTokensValidateBeforeCall(username, null, null);
|
||||
return apiClient.execute(call);
|
||||
Type localVarReturnType = new TypeToken<List<AccessToken>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -3485,7 +3498,7 @@ public class UserApi {
|
|||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call userGetTokensAsync(String username, final ApiCallback<Void> callback) throws ApiException {
|
||||
public com.squareup.okhttp.Call userGetTokensAsync(String username, final ApiCallback<List<AccessToken>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
|
@ -3507,7 +3520,8 @@ public class UserApi {
|
|||
}
|
||||
|
||||
com.squareup.okhttp.Call call = userGetTokensValidateBeforeCall(username, progressListener, progressRequestListener);
|
||||
apiClient.executeAsync(call, callback);
|
||||
Type localVarReturnType = new TypeToken<List<AccessToken>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import io.gitea.Pair;
|
|||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class ApiKeyAuth implements Authentication {
|
||||
private final String location;
|
||||
private final String paramName;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import io.gitea.Pair;
|
|||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class OAuth implements Authentication {
|
||||
private String accessToken;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,140 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.1.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
package io.gitea.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.annotations.JsonAdapter;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* AccessToken represents a API access token.
|
||||
*/
|
||||
@ApiModel(description = "AccessToken represents a API access token.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class AccessToken {
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("sha1")
|
||||
private String sha1 = null;
|
||||
|
||||
public AccessToken id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AccessToken name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public AccessToken sha1(String sha1) {
|
||||
this.sha1 = sha1;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sha1
|
||||
* @return sha1
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getSha1() {
|
||||
return sha1;
|
||||
}
|
||||
|
||||
public void setSha1(String sha1) {
|
||||
this.sha1 = sha1;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AccessToken accessToken = (AccessToken) o;
|
||||
return Objects.equals(this.id, accessToken.id) &&
|
||||
Objects.equals(this.name, accessToken.name) &&
|
||||
Objects.equals(this.sha1, accessToken.sha1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, sha1);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AccessToken {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" sha1: ").append(toIndentedString(sha1)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.1.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
package io.gitea.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.annotations.JsonAdapter;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* AccessTokenName
|
||||
*/
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class AccessTokenName {
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
public AccessTokenName name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AccessTokenName accessTokenName = (AccessTokenName) o;
|
||||
return Objects.equals(this.name, accessTokenName.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AccessTokenName {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* AddCollaboratorOption options when adding a user as a collaborator of a repository
|
||||
*/
|
||||
@ApiModel(description = "AddCollaboratorOption options when adding a user as a collaborator of a repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class AddCollaboratorOption {
|
||||
@SerializedName("permission")
|
||||
private String permission = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* AddTimeOption options for adding time to an issue
|
||||
*/
|
||||
@ApiModel(description = "AddTimeOption options for adding time to an issue")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class AddTimeOption {
|
||||
@SerializedName("time")
|
||||
private Long time = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* Attachment a generic attachment
|
||||
*/
|
||||
@ApiModel(description = "Attachment a generic attachment")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Attachment {
|
||||
@SerializedName("browser_download_url")
|
||||
private String browserDownloadUrl = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import java.io.IOException;
|
|||
* Branch represents a repository branch
|
||||
*/
|
||||
@ApiModel(description = "Branch represents a repository branch")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Branch {
|
||||
@SerializedName("commit")
|
||||
private PayloadCommit commit = null;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* Comment represents a comment on a commit or issue
|
||||
*/
|
||||
@ApiModel(description = "Comment represents a comment on a commit or issue")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Comment {
|
||||
@SerializedName("body")
|
||||
private String body = null;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import java.util.List;
|
|||
* CreateEmailOption options when creating email addresses
|
||||
*/
|
||||
@ApiModel(description = "CreateEmailOption options when creating email addresses")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateEmailOption {
|
||||
@SerializedName("emails")
|
||||
private List<String> emails = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateForkOption options for creating a fork
|
||||
*/
|
||||
@ApiModel(description = "CreateForkOption options for creating a fork")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateForkOption {
|
||||
@SerializedName("organization")
|
||||
private String organization = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateGPGKeyOption options create user GPG key
|
||||
*/
|
||||
@ApiModel(description = "CreateGPGKeyOption options create user GPG key")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateGPGKeyOption {
|
||||
@SerializedName("armored_public_key")
|
||||
private String armoredPublicKey = null;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import java.util.Map;
|
|||
* CreateHookOption options when create a hook
|
||||
*/
|
||||
@ApiModel(description = "CreateHookOption options when create a hook")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateHookOption {
|
||||
@SerializedName("active")
|
||||
private Boolean active = false;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateIssueCommentOption options for creating a comment on an issue
|
||||
*/
|
||||
@ApiModel(description = "CreateIssueCommentOption options for creating a comment on an issue")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateIssueCommentOption {
|
||||
@SerializedName("body")
|
||||
private String body = null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* CreateIssueOption options to create one issue
|
||||
*/
|
||||
@ApiModel(description = "CreateIssueOption options to create one issue")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateIssueOption {
|
||||
@SerializedName("assignee")
|
||||
private String assignee = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateKeyOption options when creating a key
|
||||
*/
|
||||
@ApiModel(description = "CreateKeyOption options when creating a key")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateKeyOption {
|
||||
@SerializedName("key")
|
||||
private String key = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateLabelOption options for creating a label
|
||||
*/
|
||||
@ApiModel(description = "CreateLabelOption options for creating a label")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateLabelOption {
|
||||
@SerializedName("color")
|
||||
private String color = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* CreateMilestoneOption options for creating a milestone
|
||||
*/
|
||||
@ApiModel(description = "CreateMilestoneOption options for creating a milestone")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateMilestoneOption {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateOrgOption options for creating an organization
|
||||
*/
|
||||
@ApiModel(description = "CreateOrgOption options for creating an organization")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateOrgOption {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* CreatePullRequestOption options when creating a pull request
|
||||
*/
|
||||
@ApiModel(description = "CreatePullRequestOption options when creating a pull request")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreatePullRequestOption {
|
||||
@SerializedName("assignee")
|
||||
private String assignee = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateReleaseOption options when creating a release
|
||||
*/
|
||||
@ApiModel(description = "CreateReleaseOption options when creating a release")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateReleaseOption {
|
||||
@SerializedName("body")
|
||||
private String body = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateRepoOption options when creating repository
|
||||
*/
|
||||
@ApiModel(description = "CreateRepoOption options when creating repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateRepoOption {
|
||||
@SerializedName("auto_init")
|
||||
private Boolean autoInit = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateStatusOption holds the information needed to create a new Status for a Commit
|
||||
*/
|
||||
@ApiModel(description = "CreateStatusOption holds the information needed to create a new Status for a Commit")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateStatusOption {
|
||||
@SerializedName("context")
|
||||
private String context = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateTeamOption options for creating a team
|
||||
*/
|
||||
@ApiModel(description = "CreateTeamOption options for creating a team")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateTeamOption {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* CreateUserOption create user options
|
||||
*/
|
||||
@ApiModel(description = "CreateUserOption create user options")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class CreateUserOption {
|
||||
@SerializedName("email")
|
||||
private String email = null;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import java.util.List;
|
|||
* DeleteEmailOption options when deleting email addresses
|
||||
*/
|
||||
@ApiModel(description = "DeleteEmailOption options when deleting email addresses")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class DeleteEmailOption {
|
||||
@SerializedName("emails")
|
||||
private List<String> emails = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* DeployKey a deploy key
|
||||
*/
|
||||
@ApiModel(description = "DeployKey a deploy key")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class DeployKey {
|
||||
@SerializedName("created_at")
|
||||
private OffsetDateTime createdAt = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* EditAttachmentOptions options for editing attachments
|
||||
*/
|
||||
@ApiModel(description = "EditAttachmentOptions options for editing attachments")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditAttachmentOptions {
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* EditDeadlineOption options for creating a deadline
|
||||
*/
|
||||
@ApiModel(description = "EditDeadlineOption options for creating a deadline")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditDeadlineOption {
|
||||
@SerializedName("due_date")
|
||||
private OffsetDateTime dueDate = null;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import java.util.Map;
|
|||
* EditHookOption options when modify one hook
|
||||
*/
|
||||
@ApiModel(description = "EditHookOption options when modify one hook")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditHookOption {
|
||||
@SerializedName("active")
|
||||
private Boolean active = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* EditIssueCommentOption options for editing a comment
|
||||
*/
|
||||
@ApiModel(description = "EditIssueCommentOption options for editing a comment")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditIssueCommentOption {
|
||||
@SerializedName("body")
|
||||
private String body = null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* EditIssueOption options for editing an issue
|
||||
*/
|
||||
@ApiModel(description = "EditIssueOption options for editing an issue")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditIssueOption {
|
||||
@SerializedName("assignee")
|
||||
private String assignee = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* EditLabelOption options for editing a label
|
||||
*/
|
||||
@ApiModel(description = "EditLabelOption options for editing a label")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditLabelOption {
|
||||
@SerializedName("color")
|
||||
private String color = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* EditMilestoneOption options for editing a milestone
|
||||
*/
|
||||
@ApiModel(description = "EditMilestoneOption options for editing a milestone")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditMilestoneOption {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* EditOrgOption options for editing an organization
|
||||
*/
|
||||
@ApiModel(description = "EditOrgOption options for editing an organization")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditOrgOption {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* EditPullRequestOption options when modify pull request
|
||||
*/
|
||||
@ApiModel(description = "EditPullRequestOption options when modify pull request")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditPullRequestOption {
|
||||
@SerializedName("assignee")
|
||||
private String assignee = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* EditReleaseOption options when editing a release
|
||||
*/
|
||||
@ApiModel(description = "EditReleaseOption options when editing a release")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditReleaseOption {
|
||||
@SerializedName("body")
|
||||
private String body = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* EditTeamOption options for editing a team
|
||||
*/
|
||||
@ApiModel(description = "EditTeamOption options for editing a team")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditTeamOption {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* EditUserOption edit user options
|
||||
*/
|
||||
@ApiModel(description = "EditUserOption edit user options")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class EditUserOption {
|
||||
@SerializedName("active")
|
||||
private Boolean active = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* Email an email address belonging to a user
|
||||
*/
|
||||
@ApiModel(description = "Email an email address belonging to a user")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Email {
|
||||
@SerializedName("email")
|
||||
private String email = null;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* GPGKey a user GPG key to sign commit and tag in repository
|
||||
*/
|
||||
@ApiModel(description = "GPGKey a user GPG key to sign commit and tag in repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class GPGKey {
|
||||
@SerializedName("can_certify")
|
||||
private Boolean canCertify = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* GPGKeyEmail an email attached to a GPGKey
|
||||
*/
|
||||
@ApiModel(description = "GPGKeyEmail an email attached to a GPGKey")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class GPGKeyEmail {
|
||||
@SerializedName("email")
|
||||
private String email = null;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* Issue represents an issue in a repository
|
||||
*/
|
||||
@ApiModel(description = "Issue represents an issue in a repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Issue {
|
||||
@SerializedName("assignee")
|
||||
private User assignee = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* IssueDeadline represents an issue deadline
|
||||
*/
|
||||
@ApiModel(description = "IssueDeadline represents an issue deadline")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class IssueDeadline {
|
||||
@SerializedName("due_date")
|
||||
private OffsetDateTime dueDate = null;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import java.util.List;
|
|||
* IssueLabelsOption a collection of labels
|
||||
*/
|
||||
@ApiModel(description = "IssueLabelsOption a collection of labels")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class IssueLabelsOption {
|
||||
@SerializedName("labels")
|
||||
private List<Long> labels = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* Label a label to an issue or a pr
|
||||
*/
|
||||
@ApiModel(description = "Label a label to an issue or a pr")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Label {
|
||||
@SerializedName("color")
|
||||
private String color = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* MarkdownOption markdown options
|
||||
*/
|
||||
@ApiModel(description = "MarkdownOption markdown options")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class MarkdownOption {
|
||||
@SerializedName("Context")
|
||||
private String context = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* MigrateRepoForm form for migrating repository
|
||||
*/
|
||||
@ApiModel(description = "MigrateRepoForm form for migrating repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class MigrateRepoForm {
|
||||
@SerializedName("auth_password")
|
||||
private String authPassword = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* Milestone milestone is a collection of issues on one repository
|
||||
*/
|
||||
@ApiModel(description = "Milestone milestone is a collection of issues on one repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Milestone {
|
||||
@SerializedName("closed_at")
|
||||
private OffsetDateTime closedAt = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* Organization represents an organization
|
||||
*/
|
||||
@ApiModel(description = "Organization represents an organization")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Organization {
|
||||
@SerializedName("avatar_url")
|
||||
private String avatarUrl = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import java.io.IOException;
|
|||
* PRBranchInfo information about a branch
|
||||
*/
|
||||
@ApiModel(description = "PRBranchInfo information about a branch")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class PRBranchInfo {
|
||||
@SerializedName("label")
|
||||
private String label = null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* PayloadCommit represents a commit
|
||||
*/
|
||||
@ApiModel(description = "PayloadCommit represents a commit")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class PayloadCommit {
|
||||
@SerializedName("author")
|
||||
private PayloadUser author = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* PayloadCommitVerification represents the GPG verification of a commit
|
||||
*/
|
||||
@ApiModel(description = "PayloadCommitVerification represents the GPG verification of a commit")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class PayloadCommitVerification {
|
||||
@SerializedName("payload")
|
||||
private String payload = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* PayloadUser represents the author or committer of a commit
|
||||
*/
|
||||
@ApiModel(description = "PayloadUser represents the author or committer of a commit")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class PayloadUser {
|
||||
@SerializedName("email")
|
||||
private String email = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* Permission represents a set of permissions
|
||||
*/
|
||||
@ApiModel(description = "Permission represents a set of permissions")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Permission {
|
||||
@SerializedName("admin")
|
||||
private Boolean admin = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* PublicKey publickey is a user key to push code to repository
|
||||
*/
|
||||
@ApiModel(description = "PublicKey publickey is a user key to push code to repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class PublicKey {
|
||||
@SerializedName("created_at")
|
||||
private OffsetDateTime createdAt = null;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* PullRequest represents a pull request
|
||||
*/
|
||||
@ApiModel(description = "PullRequest represents a pull request")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class PullRequest {
|
||||
@SerializedName("assignee")
|
||||
private User assignee = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* PullRequestMeta PR info if an issue is a PR
|
||||
*/
|
||||
@ApiModel(description = "PullRequestMeta PR info if an issue is a PR")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class PullRequestMeta {
|
||||
@SerializedName("merged")
|
||||
private Boolean merged = null;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* Release represents a repository release
|
||||
*/
|
||||
@ApiModel(description = "Release represents a repository release")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Release {
|
||||
@SerializedName("assets")
|
||||
private List<Attachment> assets = null;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* Repository represents a repository
|
||||
*/
|
||||
@ApiModel(description = "Repository represents a repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Repository {
|
||||
@SerializedName("clone_url")
|
||||
private String cloneUrl = null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import java.util.List;
|
|||
* SearchResults results of a successful search
|
||||
*/
|
||||
@ApiModel(description = "SearchResults results of a successful search")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class SearchResults {
|
||||
@SerializedName("data")
|
||||
private List<Repository> data = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* ServerVersion wraps the version of the server
|
||||
*/
|
||||
@ApiModel(description = "ServerVersion wraps the version of the server")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class ServerVersion {
|
||||
@SerializedName("version")
|
||||
private String version = null;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* Status holds a single Status of a single Commit
|
||||
*/
|
||||
@ApiModel(description = "Status holds a single Status of a single Commit")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Status {
|
||||
@SerializedName("context")
|
||||
private String context = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* Team represents a team in an organization
|
||||
*/
|
||||
@ApiModel(description = "Team represents a team in an organization")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class Team {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* TrackedTime worked time for an issue / pr
|
||||
*/
|
||||
@ApiModel(description = "TrackedTime worked time for an issue / pr")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class TrackedTime {
|
||||
@SerializedName("created")
|
||||
private OffsetDateTime created = null;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
* User represents a user
|
||||
*/
|
||||
@ApiModel(description = "User represents a user")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class User {
|
||||
@SerializedName("avatar_url")
|
||||
private String avatarUrl = null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import java.util.List;
|
|||
* UserSearchList
|
||||
*/
|
||||
@ApiModel(description = "UserSearchList")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class UserSearchList {
|
||||
@SerializedName("data")
|
||||
private List<User> data = null;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
|||
* WatchInfo represents an API watch status of one repository
|
||||
*/
|
||||
@ApiModel(description = "WatchInfo represents an API watch status of one repository")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-07T10:45:35.787+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
||||
public class WatchInfo {
|
||||
@SerializedName("created_at")
|
||||
private OffsetDateTime createdAt = null;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@
|
|||
package io.gitea.api;
|
||||
|
||||
import io.gitea.ApiException;
|
||||
import io.gitea.model.AccessToken;
|
||||
import io.gitea.model.AccessTokenName;
|
||||
import io.gitea.model.CreateEmailOption;
|
||||
import io.gitea.model.CreateGPGKeyOption;
|
||||
import io.gitea.model.CreateKeyOption;
|
||||
|
|
@ -103,7 +105,8 @@ public class UserApiTest {
|
|||
@Test
|
||||
public void userCreateTokenTest() throws ApiException {
|
||||
String username = null;
|
||||
api.userCreateToken(username);
|
||||
AccessTokenName accessTokenName = null;
|
||||
AccessToken response = api.userCreateToken(username, accessTokenName);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
|
@ -498,7 +501,7 @@ public class UserApiTest {
|
|||
@Test
|
||||
public void userGetTokensTest() throws ApiException {
|
||||
String username = null;
|
||||
api.userGetTokens(username);
|
||||
List<AccessToken> response = api.userGetTokens(username);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5484,6 +5484,21 @@
|
|||
"name": "username",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "accessTokenName",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
|
@ -5545,6 +5560,22 @@
|
|||
}
|
||||
},
|
||||
"definitions": {
|
||||
"AccessToken": {
|
||||
"description": "AccessToken represents a API access token.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"sha1": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AddCollaboratorOption": {
|
||||
"description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
|
||||
"type": "object",
|
||||
|
|
@ -7614,22 +7645,19 @@
|
|||
},
|
||||
"responses": {
|
||||
"AccessToken": {
|
||||
"description": "AccessToken represents a API access token.",
|
||||
"headers": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"sha1": {
|
||||
"type": "string"
|
||||
}
|
||||
"description": "AccessToken",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/AccessToken"
|
||||
}
|
||||
},
|
||||
"AccessTokenList": {
|
||||
"description": "AccessTokenList represents a list of API access token."
|
||||
"description": "AccessTokenList represents a list of API access token.",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/AccessToken"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Attachment": {
|
||||
"description": "Attachment",
|
||||
|
|
|
|||
Loading…
Reference in New Issue