Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2022-10-04 17:55:46 +00:00
parent 69d6b9e82b
commit d9f6bb5e6f
8 changed files with 478 additions and 39 deletions
+14
View File
@@ -0,0 +1,14 @@
# ChangedFile
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**additions** | **Long** | | [optional]
**changes** | **Long** | | [optional]
**contentsUrl** | **String** | | [optional]
**deletions** | **Long** | | [optional]
**filename** | **String** | | [optional]
**htmlUrl** | **String** | | [optional]
**previousFilename** | **String** | | [optional]
**rawUrl** | **String** | | [optional]
**status** | **String** | | [optional]
+9 -9
View File
@@ -3,17 +3,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowManualMerge** | **Boolean** | either `true` to allow mark pr as merged manually, or `false` to prevent it. `has_pull_requests` must be `true`. | [optional]
**allowMergeCommits** | **Boolean** | either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`. | [optional]
**allowRebase** | **Boolean** | either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`. | [optional]
**allowRebaseExplicit** | **Boolean** | either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. `has_pull_requests` must be `true`. | [optional]
**allowRebaseUpdate** | **Boolean** | either `true` to allow updating pull request branch by rebase, or `false` to prevent it. `has_pull_requests` must be `true`. | [optional]
**allowSquashMerge** | **Boolean** | either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. `has_pull_requests` must be `true`. | [optional]
**allowManualMerge** | **Boolean** | either `true` to allow mark pr as merged manually, or `false` to prevent it. | [optional]
**allowMergeCommits** | **Boolean** | either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. | [optional]
**allowRebase** | **Boolean** | either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. | [optional]
**allowRebaseExplicit** | **Boolean** | either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. | [optional]
**allowRebaseUpdate** | **Boolean** | either `true` to allow updating pull request branch by rebase, or `false` to prevent it. | [optional]
**allowSquashMerge** | **Boolean** | either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. | [optional]
**archived** | **Boolean** | set to `true` to archive this repository. | [optional]
**autodetectManualMerge** | **Boolean** | either `true` to enable AutodetectManualMerge, or `false` to prevent it. `has_pull_requests` must be `true`, Note: In some special cases, misjudgments can occur. | [optional]
**autodetectManualMerge** | **Boolean** | either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur. | [optional]
**defaultBranch** | **String** | sets the default branch for this repository. | [optional]
**defaultDeleteBranchAfterMerge** | **Boolean** | set to `true` to delete pr branch after merge by default | [optional]
**defaultMergeStyle** | **String** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". `has_pull_requests` must be `true`. | [optional]
**defaultMergeStyle** | **String** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". | [optional]
**description** | **String** | a short description of the repository. | [optional]
**enablePrune** | **Boolean** | enable prune - remove obsolete remote-tracking references | [optional]
**externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
**hasProjects** | **Boolean** | either `true` to enable project unit, or `false` to disable them. | [optional]
**hasPullRequests** | **Boolean** | either `true` to allow pull requests, or `false` to prevent pull request. | [optional]
**hasWiki** | **Boolean** | either `true` to enable the wiki for this repository or `false` to disable it. | [optional]
**ignoreWhitespaceConflicts** | **Boolean** | either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. `has_pull_requests` must be `true`. | [optional]
**ignoreWhitespaceConflicts** | **Boolean** | either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. | [optional]
**internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional]
**mirrorInterval** | **String** | set to a string like `8h30m0s` to set the mirror interval time | [optional]
**name** | **String** | name of the repository | [optional]
+2 -1
View File
@@ -8,7 +8,8 @@ Name | Type | Description | Notes
**fullName** | **String** | | [optional]
**id** | **Long** | | [optional]
**location** | **String** | | [optional]
**name** | **String** | | [optional]
**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
**username** | **String** | | [optional]
**username** | **String** | deprecated | [optional]
**visibility** | **String** | | [optional]
**website** | **String** | | [optional]
+100
View File
@@ -82,6 +82,7 @@ Method | HTTP request | Description
[**repoGetNote**](RepositoryApi.md#repoGetNote) | **GET** repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository
[**repoGetPullRequest**](RepositoryApi.md#repoGetPullRequest) | **GET** repos/{owner}/{repo}/pulls/{index} | Get a pull request
[**repoGetPullRequestCommits**](RepositoryApi.md#repoGetPullRequestCommits) | **GET** repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request
[**repoGetPullRequestFiles**](RepositoryApi.md#repoGetPullRequestFiles) | **GET** repos/{owner}/{repo}/pulls/{index}/files | Get changed files for a pull request
[**repoGetPullReview**](RepositoryApi.md#repoGetPullReview) | **GET** repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request
[**repoGetPullReviewComments**](RepositoryApi.md#repoGetPullReviewComments) | **GET** repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request
[**repoGetPushMirrorByRemoteName**](RepositoryApi.md#repoGetPushMirrorByRemoteName) | **GET** repos/{owner}/{repo}/push_mirrors/{name} | Get push mirror of the repository by remoteName
@@ -7283,6 +7284,105 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="repoGetPullRequestFiles"></a>
# **repoGetPullRequestFiles**
> List&lt;ChangedFile&gt; repoGetPullRequestFiles(owner, repo, index, skipTo, whitespace, page, limit)
Get changed files for a pull request
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.RepositoryApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: AccessToken
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
AccessToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccessToken.setApiKeyPrefix("Token");
// Configure API key authorization: AuthorizationHeaderToken
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: SudoHeader
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
SudoHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoHeader.setApiKeyPrefix("Token");
// Configure API key authorization: SudoParam
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
SudoParam.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoParam.setApiKeyPrefix("Token");
// Configure API key authorization: TOTPHeader
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
TOTPHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TOTPHeader.setApiKeyPrefix("Token");
// Configure API key authorization: Token
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
Token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Token.setApiKeyPrefix("Token");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
Long index = 789L; // Long | index of the pull request to get
String skipTo = "skipTo_example"; // String | skip to given file
String whitespace = "whitespace_example"; // String | whitespace behavior
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
try {
List<ChangedFile> result = apiInstance.repoGetPullRequestFiles(owner, repo, index, skipTo, whitespace, page, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoGetPullRequestFiles");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **Long**| index of the pull request to get |
**skipTo** | **String**| skip to given file | [optional]
**whitespace** | **String**| whitespace behavior | [optional] [enum: ignore-all, ignore-change, ignore-eol, show-all]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
### Return type
[**List&lt;ChangedFile&gt;**](ChangedFile.md)
### Authorization
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: Not defined
@@ -10,6 +10,7 @@ import org.gitnex.tea4j.v2.models.AnnotatedTag;
import org.gitnex.tea4j.v2.models.Attachment;
import org.gitnex.tea4j.v2.models.Branch;
import org.gitnex.tea4j.v2.models.BranchProtection;
import org.gitnex.tea4j.v2.models.ChangedFile;
import org.gitnex.tea4j.v2.models.CombinedStatus;
import org.gitnex.tea4j.v2.models.Commit;
import org.gitnex.tea4j.v2.models.CommitStatus;
@@ -1251,6 +1252,28 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Get changed files for a pull request
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request to get (required)
* @param skipTo skip to given file (optional)
* @param whitespace whitespace behavior (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;List&lt;ChangedFile&gt;&gt;
*/
@GET("repos/{owner}/{repo}/pulls/{index}/files")
Call<List<ChangedFile>> repoGetPullRequestFiles(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") Long index,
@retrofit2.http.Query("skip-to") String skipTo,
@retrofit2.http.Query("whitespace") String whitespace,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Get a specific review for a pull request
*
@@ -0,0 +1,284 @@
/*
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
*
*
* 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 org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;
/** ChangedFile store information about files affected by the pull request */
@Schema(description = "ChangedFile store information about files affected by the pull request")
public class ChangedFile implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("additions")
private Long additions = null;
@SerializedName("changes")
private Long changes = null;
@SerializedName("contents_url")
private String contentsUrl = null;
@SerializedName("deletions")
private Long deletions = null;
@SerializedName("filename")
private String filename = null;
@SerializedName("html_url")
private String htmlUrl = null;
@SerializedName("previous_filename")
private String previousFilename = null;
@SerializedName("raw_url")
private String rawUrl = null;
@SerializedName("status")
private String status = null;
public ChangedFile additions(Long additions) {
this.additions = additions;
return this;
}
/**
* Get additions
*
* @return additions
*/
@Schema(description = "")
public Long getAdditions() {
return additions;
}
public void setAdditions(Long additions) {
this.additions = additions;
}
public ChangedFile changes(Long changes) {
this.changes = changes;
return this;
}
/**
* Get changes
*
* @return changes
*/
@Schema(description = "")
public Long getChanges() {
return changes;
}
public void setChanges(Long changes) {
this.changes = changes;
}
public ChangedFile contentsUrl(String contentsUrl) {
this.contentsUrl = contentsUrl;
return this;
}
/**
* Get contentsUrl
*
* @return contentsUrl
*/
@Schema(description = "")
public String getContentsUrl() {
return contentsUrl;
}
public void setContentsUrl(String contentsUrl) {
this.contentsUrl = contentsUrl;
}
public ChangedFile deletions(Long deletions) {
this.deletions = deletions;
return this;
}
/**
* Get deletions
*
* @return deletions
*/
@Schema(description = "")
public Long getDeletions() {
return deletions;
}
public void setDeletions(Long deletions) {
this.deletions = deletions;
}
public ChangedFile filename(String filename) {
this.filename = filename;
return this;
}
/**
* Get filename
*
* @return filename
*/
@Schema(description = "")
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
public ChangedFile htmlUrl(String htmlUrl) {
this.htmlUrl = htmlUrl;
return this;
}
/**
* Get htmlUrl
*
* @return htmlUrl
*/
@Schema(description = "")
public String getHtmlUrl() {
return htmlUrl;
}
public void setHtmlUrl(String htmlUrl) {
this.htmlUrl = htmlUrl;
}
public ChangedFile previousFilename(String previousFilename) {
this.previousFilename = previousFilename;
return this;
}
/**
* Get previousFilename
*
* @return previousFilename
*/
@Schema(description = "")
public String getPreviousFilename() {
return previousFilename;
}
public void setPreviousFilename(String previousFilename) {
this.previousFilename = previousFilename;
}
public ChangedFile rawUrl(String rawUrl) {
this.rawUrl = rawUrl;
return this;
}
/**
* Get rawUrl
*
* @return rawUrl
*/
@Schema(description = "")
public String getRawUrl() {
return rawUrl;
}
public void setRawUrl(String rawUrl) {
this.rawUrl = rawUrl;
}
public ChangedFile status(String status) {
this.status = status;
return this;
}
/**
* Get status
*
* @return status
*/
@Schema(description = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ChangedFile changedFile = (ChangedFile) o;
return Objects.equals(this.additions, changedFile.additions)
&& Objects.equals(this.changes, changedFile.changes)
&& Objects.equals(this.contentsUrl, changedFile.contentsUrl)
&& Objects.equals(this.deletions, changedFile.deletions)
&& Objects.equals(this.filename, changedFile.filename)
&& Objects.equals(this.htmlUrl, changedFile.htmlUrl)
&& Objects.equals(this.previousFilename, changedFile.previousFilename)
&& Objects.equals(this.rawUrl, changedFile.rawUrl)
&& Objects.equals(this.status, changedFile.status);
}
@Override
public int hashCode() {
return Objects.hash(
additions,
changes,
contentsUrl,
deletions,
filename,
htmlUrl,
previousFilename,
rawUrl,
status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChangedFile {\n");
sb.append(" additions: ").append(toIndentedString(additions)).append("\n");
sb.append(" changes: ").append(toIndentedString(changes)).append("\n");
sb.append(" contentsUrl: ").append(toIndentedString(contentsUrl)).append("\n");
sb.append(" deletions: ").append(toIndentedString(deletions)).append("\n");
sb.append(" filename: ").append(toIndentedString(filename)).append("\n");
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
sb.append(" previousFilename: ").append(toIndentedString(previousFilename)).append("\n");
sb.append(" rawUrl: ").append(toIndentedString(rawUrl)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}
@@ -107,14 +107,12 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to allow mark pr as merged manually, or &#x60;false&#x60; to prevent
* it. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;.
* it.
*
* @return allowManualMerge
*/
@Schema(
description =
"either `true` to allow mark pr as merged manually, or `false` to prevent it."
+ " `has_pull_requests` must be `true`.")
description = "either `true` to allow mark pr as merged manually, or `false` to prevent it.")
public Boolean isAllowManualMerge() {
return allowManualMerge;
}
@@ -131,14 +129,13 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to allow merging pull requests with a merge commit, or
* &#x60;false&#x60; to prevent merging pull requests with merge commits.
* &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;.
*
* @return allowMergeCommits
*/
@Schema(
description =
"either `true` to allow merging pull requests with a merge commit, or `false` to prevent"
+ " merging pull requests with merge commits. `has_pull_requests` must be `true`.")
+ " merging pull requests with merge commits.")
public Boolean isAllowMergeCommits() {
return allowMergeCommits;
}
@@ -154,14 +151,14 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to allow rebase-merging pull requests, or &#x60;false&#x60; to prevent
* rebase-merging. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;.
* rebase-merging.
*
* @return allowRebase
*/
@Schema(
description =
"either `true` to allow rebase-merging pull requests, or `false` to prevent"
+ " rebase-merging. `has_pull_requests` must be `true`.")
+ " rebase-merging.")
public Boolean isAllowRebase() {
return allowRebase;
}
@@ -177,15 +174,14 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to allow rebase with explicit merge commits (--no-ff), or
* &#x60;false&#x60; to prevent rebase with explicit merge commits. &#x60;has_pull_requests&#x60;
* must be &#x60;true&#x60;.
* &#x60;false&#x60; to prevent rebase with explicit merge commits.
*
* @return allowRebaseExplicit
*/
@Schema(
description =
"either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to"
+ " prevent rebase with explicit merge commits. `has_pull_requests` must be `true`.")
+ " prevent rebase with explicit merge commits.")
public Boolean isAllowRebaseExplicit() {
return allowRebaseExplicit;
}
@@ -201,14 +197,14 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to allow updating pull request branch by rebase, or &#x60;false&#x60;
* to prevent it. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;.
* to prevent it.
*
* @return allowRebaseUpdate
*/
@Schema(
description =
"either `true` to allow updating pull request branch by rebase, or `false` to prevent it."
+ " `has_pull_requests` must be `true`.")
"either `true` to allow updating pull request branch by rebase, or `false` to prevent"
+ " it.")
public Boolean isAllowRebaseUpdate() {
return allowRebaseUpdate;
}
@@ -224,14 +220,14 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to allow squash-merging pull requests, or &#x60;false&#x60; to prevent
* squash-merging. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;.
* squash-merging.
*
* @return allowSquashMerge
*/
@Schema(
description =
"either `true` to allow squash-merging pull requests, or `false` to prevent"
+ " squash-merging. `has_pull_requests` must be `true`.")
+ " squash-merging.")
public Boolean isAllowSquashMerge() {
return allowSquashMerge;
}
@@ -266,16 +262,14 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to enable AutodetectManualMerge, or &#x60;false&#x60; to prevent it.
* &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;, Note: In some special cases,
* misjudgments can occur.
* Note: In some special cases, misjudgments can occur.
*
* @return autodetectManualMerge
*/
@Schema(
description =
"either `true` to enable AutodetectManualMerge, or `false` to prevent it."
+ " `has_pull_requests` must be `true`, Note: In some special cases, misjudgments can"
+ " occur.")
"either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some"
+ " special cases, misjudgments can occur.")
public Boolean isAutodetectManualMerge() {
return autodetectManualMerge;
}
@@ -329,15 +323,14 @@ public class EditRepoOption implements Serializable {
/**
* set to a merge style to be used by this repository: \&quot;merge\&quot;, \&quot;rebase\&quot;,
* \&quot;rebase-merge\&quot;, or \&quot;squash\&quot;. &#x60;has_pull_requests&#x60; must be
* &#x60;true&#x60;.
* \&quot;rebase-merge\&quot;, or \&quot;squash\&quot;.
*
* @return defaultMergeStyle
*/
@Schema(
description =
"set to a merge style to be used by this repository: \"merge\", \"rebase\","
+ " \"rebase-merge\", or \"squash\". `has_pull_requests` must be `true`.")
+ " \"rebase-merge\", or \"squash\".")
public String getDefaultMergeStyle() {
return defaultMergeStyle;
}
@@ -511,14 +504,13 @@ public class EditRepoOption implements Serializable {
/**
* either &#x60;true&#x60; to ignore whitespace for conflicts, or &#x60;false&#x60; to not ignore
* whitespace. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;.
* whitespace.
*
* @return ignoreWhitespaceConflicts
*/
@Schema(
description =
"either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace."
+ " `has_pull_requests` must be `true`.")
"either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.")
public Boolean isIgnoreWhitespaceConflicts() {
return ignoreWhitespaceConflicts;
}
@@ -37,6 +37,9 @@ public class Organization implements Serializable {
@SerializedName("location")
private String location = null;
@SerializedName("name")
private String name = null;
@SerializedName("repo_admin_change_team_access")
private Boolean repoAdminChangeTeamAccess = null;
@@ -144,6 +147,25 @@ public class Organization implements Serializable {
this.location = location;
}
public Organization name(String name) {
this.name = name;
return this;
}
/**
* Get name
*
* @return name
*/
@Schema(description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Organization repoAdminChangeTeamAccess(Boolean repoAdminChangeTeamAccess) {
this.repoAdminChangeTeamAccess = repoAdminChangeTeamAccess;
return this;
@@ -169,11 +191,11 @@ public class Organization implements Serializable {
}
/**
* Get username
* deprecated
*
* @return username
*/
@Schema(description = "")
@Schema(description = "deprecated")
public String getUsername() {
return username;
}
@@ -234,6 +256,7 @@ public class Organization implements Serializable {
&& Objects.equals(this.fullName, organization.fullName)
&& Objects.equals(this.id, organization.id)
&& Objects.equals(this.location, organization.location)
&& Objects.equals(this.name, organization.name)
&& Objects.equals(this.repoAdminChangeTeamAccess, organization.repoAdminChangeTeamAccess)
&& Objects.equals(this.username, organization.username)
&& Objects.equals(this.visibility, organization.visibility)
@@ -248,6 +271,7 @@ public class Organization implements Serializable {
fullName,
id,
location,
name,
repoAdminChangeTeamAccess,
username,
visibility,
@@ -264,6 +288,7 @@ public class Organization implements Serializable {
sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" repoAdminChangeTeamAccess: ")
.append(toIndentedString(repoAdminChangeTeamAccess))
.append("\n");