Fix create token api

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
Andrew Thornton 2018-10-03 21:40:30 +01:00
parent 77a4e0bcf6
commit a99fa0c149
No known key found for this signature in database
GPG Key ID: 3CDE74631F13A748
80 changed files with 417 additions and 112 deletions

12
docs/AccessToken.md Normal file
View File

@ -0,0 +1,12 @@
# AccessToken
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Long** | | [optional]
**name** | **String** | | [optional]
**sha1** | **String** | | [optional]

10
docs/AccessTokenName.md Normal file
View File

@ -0,0 +1,10 @@
# AccessTokenName
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | |

View File

@ -294,7 +294,7 @@ null (empty response body)
<a name="userCreateToken"></a> <a name="userCreateToken"></a>
# **userCreateToken** # **userCreateToken**
> userCreateToken(username) > AccessToken userCreateToken(username, accessTokenName)
Create an access token Create an access token
@ -346,8 +346,10 @@ Token.setApiKey("YOUR API KEY");
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | username of user String username = "username_example"; // String | username of user
AccessTokenName accessTokenName = new AccessTokenName(); // AccessTokenName |
try { try {
apiInstance.userCreateToken(username); AccessToken result = apiInstance.userCreateToken(username, accessTokenName);
System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#userCreateToken"); System.err.println("Exception when calling UserApi#userCreateToken");
e.printStackTrace(); e.printStackTrace();
@ -359,10 +361,11 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| username of user | **username** | **String**| username of user |
**accessTokenName** | [**AccessTokenName**](AccessTokenName.md)| | [optional]
### Return type ### Return type
null (empty response body) [**AccessToken**](AccessToken.md)
### Authorization ### Authorization
@ -2305,7 +2308,7 @@ This endpoint does not need any parameter.
<a name="userGetTokens"></a> <a name="userGetTokens"></a>
# **userGetTokens** # **userGetTokens**
> userGetTokens(username) > List&lt;AccessToken&gt; userGetTokens(username)
List the authenticated user&#39;s access tokens List the authenticated user&#39;s access tokens
@ -2358,7 +2361,8 @@ Token.setApiKey("YOUR API KEY");
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | username of user String username = "username_example"; // String | username of user
try { try {
apiInstance.userGetTokens(username); List<AccessToken> result = apiInstance.userGetTokens(username);
System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#userGetTokens"); System.err.println("Exception when calling UserApi#userGetTokens");
e.printStackTrace(); e.printStackTrace();
@ -2373,7 +2377,7 @@ Name | Type | Description | Notes
### Return type ### Return type
null (empty response body) [**List&lt;AccessToken&gt;**](AccessToken.md)
### Authorization ### Authorization

Binary file not shown.

View File

@ -1,5 +1,6 @@
#Tue May 17 23:08:05 CST 2016
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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

View File

@ -16,7 +16,7 @@ package io.gitea;
import java.util.Map; import java.util.Map;
import java.util.List; 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 { public class ApiException extends Exception {
private int code = 0; private int code = 0;
private Map<String, List<String>> responseHeaders = null; private Map<String, List<String>> responseHeaders = null;

View File

@ -13,7 +13,7 @@
package io.gitea; 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 { public class Configuration {
private static ApiClient defaultApiClient = new ApiClient(); private static ApiClient defaultApiClient = new ApiClient();

View File

@ -13,7 +13,7 @@
package io.gitea; 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 { public class Pair {
private String name = ""; private String name = "";
private String value = ""; private String value = "";

View File

@ -13,7 +13,7 @@
package io.gitea; 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 { public class StringUtil {
/** /**
* Check if the given array contains the given value (with case-insensitive comparison). * Check if the given array contains the given value (with case-insensitive comparison).

View File

@ -27,6 +27,8 @@ import com.google.gson.reflect.TypeToken;
import java.io.IOException; import java.io.IOException;
import io.gitea.model.AccessToken;
import io.gitea.model.AccessTokenName;
import io.gitea.model.CreateEmailOption; import io.gitea.model.CreateEmailOption;
import io.gitea.model.CreateGPGKeyOption; import io.gitea.model.CreateGPGKeyOption;
import io.gitea.model.CreateKeyOption; import io.gitea.model.CreateKeyOption;
@ -431,13 +433,14 @@ public class UserApi {
/** /**
* Build call for userCreateToken * Build call for userCreateToken
* @param username username of user (required) * @param username username of user (required)
* @param accessTokenName (optional)
* @param progressListener Progress listener * @param progressListener Progress listener
* @param progressRequestListener Progress request listener * @param progressRequestListener Progress request listener
* @return Call to execute * @return Call to execute
* @throws ApiException If fail to serialize the request body object * @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 { public com.squareup.okhttp.Call userCreateTokenCall(String username, AccessTokenName accessTokenName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = accessTokenName;
// create path and map variables // create path and map variables
String localVarPath = "/users/{username}/tokens" String localVarPath = "/users/{username}/tokens"
@ -479,7 +482,7 @@ public class UserApi {
} }
@SuppressWarnings("rawtypes") @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 // verify the required parameter 'username' is set
if (username == null) { 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; return call;
} }
@ -496,33 +499,39 @@ public class UserApi {
* Create an access token * Create an access token
* *
* @param username username of user (required) * @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 * @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 { public AccessToken userCreateToken(String username, AccessTokenName accessTokenName) throws ApiException {
userCreateTokenWithHttpInfo(username); ApiResponse<AccessToken> resp = userCreateTokenWithHttpInfo(username, accessTokenName);
return resp.getData();
} }
/** /**
* Create an access token * Create an access token
* *
* @param username username of user (required) * @param username username of user (required)
* @return ApiResponse&lt;Void&gt; * @param accessTokenName (optional)
* @return ApiResponse&lt;AccessToken&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @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 { public ApiResponse<AccessToken> userCreateTokenWithHttpInfo(String username, AccessTokenName accessTokenName) throws ApiException {
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, null, null); com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, null, null);
return apiClient.execute(call); Type localVarReturnType = new TypeToken<AccessToken>(){}.getType();
return apiClient.execute(call, localVarReturnType);
} }
/** /**
* Create an access token (asynchronously) * Create an access token (asynchronously)
* *
* @param username username of user (required) * @param username username of user (required)
* @param accessTokenName (optional)
* @param callback The callback to be executed when the API call finishes * @param callback The callback to be executed when the API call finishes
* @return The request call * @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object * @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; ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@ -543,8 +552,9 @@ public class UserApi {
}; };
} }
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, progressListener, progressRequestListener); com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback); Type localVarReturnType = new TypeToken<AccessToken>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/** /**
@ -3459,22 +3469,25 @@ public class UserApi {
* List the authenticated user&#39;s access tokens * List the authenticated user&#39;s access tokens
* *
* @param username username of user (required) * @param username username of user (required)
* @return List&lt;AccessToken&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @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 { public List<AccessToken> userGetTokens(String username) throws ApiException {
userGetTokensWithHttpInfo(username); ApiResponse<List<AccessToken>> resp = userGetTokensWithHttpInfo(username);
return resp.getData();
} }
/** /**
* List the authenticated user&#39;s access tokens * List the authenticated user&#39;s access tokens
* *
* @param username username of user (required) * @param username username of user (required)
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;List&lt;AccessToken&gt;&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @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); 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 * @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object * @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; ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@ -3507,7 +3520,8 @@ public class UserApi {
} }
com.squareup.okhttp.Call call = userGetTokensValidateBeforeCall(username, progressListener, progressRequestListener); 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; return call;
} }
/** /**

View File

@ -18,7 +18,7 @@ import io.gitea.Pair;
import java.util.Map; import java.util.Map;
import java.util.List; 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 { public class ApiKeyAuth implements Authentication {
private final String location; private final String location;
private final String paramName; private final String paramName;

View File

@ -18,7 +18,7 @@ import io.gitea.Pair;
import java.util.Map; import java.util.Map;
import java.util.List; 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 { public class OAuth implements Authentication {
private String accessToken; private String accessToken;

View File

@ -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 ");
}
}

View File

@ -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 ");
}
}

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* AddCollaboratorOption options when adding a user as a collaborator of a repository * 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") @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 { public class AddCollaboratorOption {
@SerializedName("permission") @SerializedName("permission")
private String permission = null; private String permission = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* AddTimeOption options for adding time to an issue * AddTimeOption options for adding time to an issue
*/ */
@ApiModel(description = "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 { public class AddTimeOption {
@SerializedName("time") @SerializedName("time")
private Long time = null; private Long time = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* Attachment a generic attachment * Attachment a generic attachment
*/ */
@ApiModel(description = "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 { public class Attachment {
@SerializedName("browser_download_url") @SerializedName("browser_download_url")
private String browserDownloadUrl = null; private String browserDownloadUrl = null;

View File

@ -28,7 +28,7 @@ import java.io.IOException;
* Branch represents a repository branch * Branch represents a repository branch
*/ */
@ApiModel(description = "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 { public class Branch {
@SerializedName("commit") @SerializedName("commit")
private PayloadCommit commit = null; private PayloadCommit commit = null;

View File

@ -29,7 +29,7 @@ import org.threeten.bp.OffsetDateTime;
* Comment represents a comment on a commit or issue * Comment represents a comment on a commit or issue
*/ */
@ApiModel(description = "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 { public class Comment {
@SerializedName("body") @SerializedName("body")
private String body = null; private String body = null;

View File

@ -29,7 +29,7 @@ import java.util.List;
* CreateEmailOption options when creating email addresses * CreateEmailOption options when creating email addresses
*/ */
@ApiModel(description = "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 { public class CreateEmailOption {
@SerializedName("emails") @SerializedName("emails")
private List<String> emails = null; private List<String> emails = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateForkOption options for creating a fork * CreateForkOption options for creating a fork
*/ */
@ApiModel(description = "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 { public class CreateForkOption {
@SerializedName("organization") @SerializedName("organization")
private String organization = null; private String organization = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateGPGKeyOption options create user GPG key * CreateGPGKeyOption options create user GPG key
*/ */
@ApiModel(description = "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 { public class CreateGPGKeyOption {
@SerializedName("armored_public_key") @SerializedName("armored_public_key")
private String armoredPublicKey = null; private String armoredPublicKey = null;

View File

@ -31,7 +31,7 @@ import java.util.Map;
* CreateHookOption options when create a hook * CreateHookOption options when create a hook
*/ */
@ApiModel(description = "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 { public class CreateHookOption {
@SerializedName("active") @SerializedName("active")
private Boolean active = false; private Boolean active = false;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateIssueCommentOption options for creating a comment on an issue * CreateIssueCommentOption options for creating a comment on an issue
*/ */
@ApiModel(description = "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 { public class CreateIssueCommentOption {
@SerializedName("body") @SerializedName("body")
private String body = null; private String body = null;

View File

@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
* CreateIssueOption options to create one issue * CreateIssueOption options to create one issue
*/ */
@ApiModel(description = "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 { public class CreateIssueOption {
@SerializedName("assignee") @SerializedName("assignee")
private String assignee = null; private String assignee = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateKeyOption options when creating a key * CreateKeyOption options when creating a key
*/ */
@ApiModel(description = "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 { public class CreateKeyOption {
@SerializedName("key") @SerializedName("key")
private String key = null; private String key = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateLabelOption options for creating a label * CreateLabelOption options for creating a label
*/ */
@ApiModel(description = "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 { public class CreateLabelOption {
@SerializedName("color") @SerializedName("color")
private String color = null; private String color = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* CreateMilestoneOption options for creating a milestone * CreateMilestoneOption options for creating a milestone
*/ */
@ApiModel(description = "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 { public class CreateMilestoneOption {
@SerializedName("description") @SerializedName("description")
private String description = null; private String description = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateOrgOption options for creating an organization * CreateOrgOption options for creating an organization
*/ */
@ApiModel(description = "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 { public class CreateOrgOption {
@SerializedName("description") @SerializedName("description")
private String description = null; private String description = null;

View File

@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
* CreatePullRequestOption options when creating a pull request * CreatePullRequestOption options when creating a pull request
*/ */
@ApiModel(description = "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 { public class CreatePullRequestOption {
@SerializedName("assignee") @SerializedName("assignee")
private String assignee = null; private String assignee = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateReleaseOption options when creating a release * CreateReleaseOption options when creating a release
*/ */
@ApiModel(description = "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 { public class CreateReleaseOption {
@SerializedName("body") @SerializedName("body")
private String body = null; private String body = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateRepoOption options when creating repository * CreateRepoOption options when creating repository
*/ */
@ApiModel(description = "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 { public class CreateRepoOption {
@SerializedName("auto_init") @SerializedName("auto_init")
private Boolean autoInit = null; private Boolean autoInit = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateStatusOption holds the information needed to create a new Status for a Commit * 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") @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 { public class CreateStatusOption {
@SerializedName("context") @SerializedName("context")
private String context = null; private String context = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateTeamOption options for creating a team * CreateTeamOption options for creating a team
*/ */
@ApiModel(description = "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 { public class CreateTeamOption {
@SerializedName("description") @SerializedName("description")
private String description = null; private String description = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* CreateUserOption create user options * CreateUserOption create user options
*/ */
@ApiModel(description = "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 { public class CreateUserOption {
@SerializedName("email") @SerializedName("email")
private String email = null; private String email = null;

View File

@ -29,7 +29,7 @@ import java.util.List;
* DeleteEmailOption options when deleting email addresses * DeleteEmailOption options when deleting email addresses
*/ */
@ApiModel(description = "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 { public class DeleteEmailOption {
@SerializedName("emails") @SerializedName("emails")
private List<String> emails = null; private List<String> emails = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* DeployKey a deploy key * DeployKey a deploy key
*/ */
@ApiModel(description = "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 { public class DeployKey {
@SerializedName("created_at") @SerializedName("created_at")
private OffsetDateTime createdAt = null; private OffsetDateTime createdAt = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* EditAttachmentOptions options for editing attachments * EditAttachmentOptions options for editing attachments
*/ */
@ApiModel(description = "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 { public class EditAttachmentOptions {
@SerializedName("name") @SerializedName("name")
private String name = null; private String name = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* EditDeadlineOption options for creating a deadline * EditDeadlineOption options for creating a deadline
*/ */
@ApiModel(description = "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 { public class EditDeadlineOption {
@SerializedName("due_date") @SerializedName("due_date")
private OffsetDateTime dueDate = null; private OffsetDateTime dueDate = null;

View File

@ -31,7 +31,7 @@ import java.util.Map;
* EditHookOption options when modify one hook * EditHookOption options when modify one hook
*/ */
@ApiModel(description = "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 { public class EditHookOption {
@SerializedName("active") @SerializedName("active")
private Boolean active = null; private Boolean active = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* EditIssueCommentOption options for editing a comment * EditIssueCommentOption options for editing a comment
*/ */
@ApiModel(description = "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 { public class EditIssueCommentOption {
@SerializedName("body") @SerializedName("body")
private String body = null; private String body = null;

View File

@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
* EditIssueOption options for editing an issue * EditIssueOption options for editing an issue
*/ */
@ApiModel(description = "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 { public class EditIssueOption {
@SerializedName("assignee") @SerializedName("assignee")
private String assignee = null; private String assignee = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* EditLabelOption options for editing a label * EditLabelOption options for editing a label
*/ */
@ApiModel(description = "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 { public class EditLabelOption {
@SerializedName("color") @SerializedName("color")
private String color = null; private String color = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* EditMilestoneOption options for editing a milestone * EditMilestoneOption options for editing a milestone
*/ */
@ApiModel(description = "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 { public class EditMilestoneOption {
@SerializedName("description") @SerializedName("description")
private String description = null; private String description = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* EditOrgOption options for editing an organization * EditOrgOption options for editing an organization
*/ */
@ApiModel(description = "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 { public class EditOrgOption {
@SerializedName("description") @SerializedName("description")
private String description = null; private String description = null;

View File

@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
* EditPullRequestOption options when modify pull request * EditPullRequestOption options when modify pull request
*/ */
@ApiModel(description = "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 { public class EditPullRequestOption {
@SerializedName("assignee") @SerializedName("assignee")
private String assignee = null; private String assignee = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* EditReleaseOption options when editing a release * EditReleaseOption options when editing a release
*/ */
@ApiModel(description = "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 { public class EditReleaseOption {
@SerializedName("body") @SerializedName("body")
private String body = null; private String body = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* EditTeamOption options for editing a team * EditTeamOption options for editing a team
*/ */
@ApiModel(description = "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 { public class EditTeamOption {
@SerializedName("description") @SerializedName("description")
private String description = null; private String description = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* EditUserOption edit user options * EditUserOption edit user options
*/ */
@ApiModel(description = "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 { public class EditUserOption {
@SerializedName("active") @SerializedName("active")
private Boolean active = null; private Boolean active = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* Email an email address belonging to a user * Email an email address belonging to a user
*/ */
@ApiModel(description = "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 { public class Email {
@SerializedName("email") @SerializedName("email")
private String email = null; private String email = null;

View File

@ -32,7 +32,7 @@ import org.threeten.bp.OffsetDateTime;
* GPGKey a user GPG key to sign commit and tag in repository * 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") @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 { public class GPGKey {
@SerializedName("can_certify") @SerializedName("can_certify")
private Boolean canCertify = null; private Boolean canCertify = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* GPGKeyEmail an email attached to a GPGKey * GPGKeyEmail an email attached to a GPGKey
*/ */
@ApiModel(description = "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 { public class GPGKeyEmail {
@SerializedName("email") @SerializedName("email")
private String email = null; private String email = null;

View File

@ -34,7 +34,7 @@ import org.threeten.bp.OffsetDateTime;
* Issue represents an issue in a repository * Issue represents an issue in a repository
*/ */
@ApiModel(description = "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 { public class Issue {
@SerializedName("assignee") @SerializedName("assignee")
private User assignee = null; private User assignee = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* IssueDeadline represents an issue deadline * IssueDeadline represents an issue deadline
*/ */
@ApiModel(description = "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 { public class IssueDeadline {
@SerializedName("due_date") @SerializedName("due_date")
private OffsetDateTime dueDate = null; private OffsetDateTime dueDate = null;

View File

@ -29,7 +29,7 @@ import java.util.List;
* IssueLabelsOption a collection of labels * IssueLabelsOption a collection of labels
*/ */
@ApiModel(description = "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 { public class IssueLabelsOption {
@SerializedName("labels") @SerializedName("labels")
private List<Long> labels = null; private List<Long> labels = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* Label a label to an issue or a pr * Label a label to an issue or a pr
*/ */
@ApiModel(description = "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 { public class Label {
@SerializedName("color") @SerializedName("color")
private String color = null; private String color = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* MarkdownOption markdown options * MarkdownOption markdown options
*/ */
@ApiModel(description = "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 { public class MarkdownOption {
@SerializedName("Context") @SerializedName("Context")
private String context = null; private String context = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* MigrateRepoForm form for migrating repository * MigrateRepoForm form for migrating repository
*/ */
@ApiModel(description = "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 { public class MigrateRepoForm {
@SerializedName("auth_password") @SerializedName("auth_password")
private String authPassword = null; private String authPassword = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* Milestone milestone is a collection of issues on one repository * Milestone milestone is a collection of issues on one repository
*/ */
@ApiModel(description = "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 { public class Milestone {
@SerializedName("closed_at") @SerializedName("closed_at")
private OffsetDateTime closedAt = null; private OffsetDateTime closedAt = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* Organization represents an organization * Organization represents an organization
*/ */
@ApiModel(description = "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 { public class Organization {
@SerializedName("avatar_url") @SerializedName("avatar_url")
private String avatarUrl = null; private String avatarUrl = null;

View File

@ -28,7 +28,7 @@ import java.io.IOException;
* PRBranchInfo information about a branch * PRBranchInfo information about a branch
*/ */
@ApiModel(description = "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 { public class PRBranchInfo {
@SerializedName("label") @SerializedName("label")
private String label = null; private String label = null;

View File

@ -30,7 +30,7 @@ import org.threeten.bp.OffsetDateTime;
* PayloadCommit represents a commit * PayloadCommit represents a commit
*/ */
@ApiModel(description = "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 { public class PayloadCommit {
@SerializedName("author") @SerializedName("author")
private PayloadUser author = null; private PayloadUser author = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* PayloadCommitVerification represents the GPG verification of a commit * PayloadCommitVerification represents the GPG verification of a commit
*/ */
@ApiModel(description = "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 { public class PayloadCommitVerification {
@SerializedName("payload") @SerializedName("payload")
private String payload = null; private String payload = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* PayloadUser represents the author or committer of a commit * PayloadUser represents the author or committer of a commit
*/ */
@ApiModel(description = "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 { public class PayloadUser {
@SerializedName("email") @SerializedName("email")
private String email = null; private String email = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* Permission represents a set of permissions * Permission represents a set of permissions
*/ */
@ApiModel(description = "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 { public class Permission {
@SerializedName("admin") @SerializedName("admin")
private Boolean admin = null; private Boolean admin = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* PublicKey publickey is a user key to push code to repository * PublicKey publickey is a user key to push code to repository
*/ */
@ApiModel(description = "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 { public class PublicKey {
@SerializedName("created_at") @SerializedName("created_at")
private OffsetDateTime createdAt = null; private OffsetDateTime createdAt = null;

View File

@ -34,7 +34,7 @@ import org.threeten.bp.OffsetDateTime;
* PullRequest represents a pull request * PullRequest represents a pull request
*/ */
@ApiModel(description = "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 { public class PullRequest {
@SerializedName("assignee") @SerializedName("assignee")
private User assignee = null; private User assignee = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* PullRequestMeta PR info if an issue is a PR * PullRequestMeta PR info if an issue is a PR
*/ */
@ApiModel(description = "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 { public class PullRequestMeta {
@SerializedName("merged") @SerializedName("merged")
private Boolean merged = null; private Boolean merged = null;

View File

@ -32,7 +32,7 @@ import org.threeten.bp.OffsetDateTime;
* Release represents a repository release * Release represents a repository release
*/ */
@ApiModel(description = "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 { public class Release {
@SerializedName("assets") @SerializedName("assets")
private List<Attachment> assets = null; private List<Attachment> assets = null;

View File

@ -31,7 +31,7 @@ import org.threeten.bp.OffsetDateTime;
* Repository represents a repository * Repository represents a repository
*/ */
@ApiModel(description = "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 { public class Repository {
@SerializedName("clone_url") @SerializedName("clone_url")
private String cloneUrl = null; private String cloneUrl = null;

View File

@ -30,7 +30,7 @@ import java.util.List;
* SearchResults results of a successful search * SearchResults results of a successful search
*/ */
@ApiModel(description = "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 { public class SearchResults {
@SerializedName("data") @SerializedName("data")
private List<Repository> data = null; private List<Repository> data = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* ServerVersion wraps the version of the server * ServerVersion wraps the version of the server
*/ */
@ApiModel(description = "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 { public class ServerVersion {
@SerializedName("version") @SerializedName("version")
private String version = null; private String version = null;

View File

@ -29,7 +29,7 @@ import org.threeten.bp.OffsetDateTime;
* Status holds a single Status of a single Commit * Status holds a single Status of a single Commit
*/ */
@ApiModel(description = "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 { public class Status {
@SerializedName("context") @SerializedName("context")
private String context = null; private String context = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* Team represents a team in an organization * Team represents a team in an organization
*/ */
@ApiModel(description = "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 { public class Team {
@SerializedName("description") @SerializedName("description")
private String description = null; private String description = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* TrackedTime worked time for an issue / pr * TrackedTime worked time for an issue / pr
*/ */
@ApiModel(description = "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 { public class TrackedTime {
@SerializedName("created") @SerializedName("created")
private OffsetDateTime created = null; private OffsetDateTime created = null;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* User represents a user * User represents a user
*/ */
@ApiModel(description = "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 { public class User {
@SerializedName("avatar_url") @SerializedName("avatar_url")
private String avatarUrl = null; private String avatarUrl = null;

View File

@ -30,7 +30,7 @@ import java.util.List;
* UserSearchList * UserSearchList
*/ */
@ApiModel(description = "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 { public class UserSearchList {
@SerializedName("data") @SerializedName("data")
private List<User> data = null; private List<User> data = null;

View File

@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
* WatchInfo represents an API watch status of one repository * WatchInfo represents an API watch status of one repository
*/ */
@ApiModel(description = "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 { public class WatchInfo {
@SerializedName("created_at") @SerializedName("created_at")
private OffsetDateTime createdAt = null; private OffsetDateTime createdAt = null;

View File

@ -14,6 +14,8 @@
package io.gitea.api; package io.gitea.api;
import io.gitea.ApiException; import io.gitea.ApiException;
import io.gitea.model.AccessToken;
import io.gitea.model.AccessTokenName;
import io.gitea.model.CreateEmailOption; import io.gitea.model.CreateEmailOption;
import io.gitea.model.CreateGPGKeyOption; import io.gitea.model.CreateGPGKeyOption;
import io.gitea.model.CreateKeyOption; import io.gitea.model.CreateKeyOption;
@ -103,7 +105,8 @@ public class UserApiTest {
@Test @Test
public void userCreateTokenTest() throws ApiException { public void userCreateTokenTest() throws ApiException {
String username = null; String username = null;
api.userCreateToken(username); AccessTokenName accessTokenName = null;
AccessToken response = api.userCreateToken(username, accessTokenName);
// TODO: test validations // TODO: test validations
} }
@ -498,7 +501,7 @@ public class UserApiTest {
@Test @Test
public void userGetTokensTest() throws ApiException { public void userGetTokensTest() throws ApiException {
String username = null; String username = null;
api.userGetTokens(username); List<AccessToken> response = api.userGetTokens(username);
// TODO: test validations // TODO: test validations
} }

View File

@ -5484,6 +5484,21 @@
"name": "username", "name": "username",
"in": "path", "in": "path",
"required": true "required": true
},
{
"name": "accessTokenName",
"in": "body",
"schema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
} }
], ],
"responses": { "responses": {
@ -5545,6 +5560,22 @@
} }
}, },
"definitions": { "definitions": {
"AccessToken": {
"description": "AccessToken represents a API access token.",
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"sha1": {
"type": "string"
}
}
},
"AddCollaboratorOption": { "AddCollaboratorOption": {
"description": "AddCollaboratorOption options when adding a user as a collaborator of a repository", "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
"type": "object", "type": "object",
@ -7614,22 +7645,19 @@
}, },
"responses": { "responses": {
"AccessToken": { "AccessToken": {
"description": "AccessToken represents a API access token.", "description": "AccessToken",
"headers": { "schema": {
"id": { "$ref": "#/definitions/AccessToken"
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"sha1": {
"type": "string"
}
} }
}, },
"AccessTokenList": { "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": { "Attachment": {
"description": "Attachment", "description": "Attachment",