mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|||||||
**gitUrl** | **String** | | [optional]
|
**gitUrl** | **String** | | [optional]
|
||||||
**htmlUrl** | **String** | | [optional]
|
**htmlUrl** | **String** | | [optional]
|
||||||
**lastAuthorDate** | [**Date**](Date.md) | | [optional]
|
**lastAuthorDate** | [**Date**](Date.md) | | [optional]
|
||||||
|
**lastCommitMessage** | **String** | | [optional]
|
||||||
**lastCommitSha** | **String** | | [optional]
|
**lastCommitSha** | **String** | | [optional]
|
||||||
**lastCommitterDate** | [**Date**](Date.md) | | [optional]
|
**lastCommitterDate** | [**Date**](Date.md) | | [optional]
|
||||||
**lfsOid** | **String** | | [optional]
|
**lfsOid** | **String** | | [optional]
|
||||||
|
|||||||
@@ -9725,9 +9725,9 @@ Token.setApiKey("YOUR API KEY");
|
|||||||
RepositoryApi apiInstance = new RepositoryApi();
|
RepositoryApi apiInstance = new RepositoryApi();
|
||||||
String owner = "owner_example"; // String | owner of the repo
|
String owner = "owner_example"; // String | owner of the repo
|
||||||
String repo = "repo_example"; // String | name of the repo
|
String repo = "repo_example"; // String | name of the repo
|
||||||
String filepath = "filepath_example"; // String | path of the dir, file, symlink or submodule in the repo
|
String filepath = "filepath_example"; // String | path of the dir, file, symlink or submodule in the repo. Swagger requires path parameter to be \"required\", you can leave it empty or pass a single dot (\".\") to get the root directory.
|
||||||
String ref = "ref_example"; // String | the name of the commit/branch/tag, default to the repository’s default branch.
|
String ref = "ref_example"; // String | the name of the commit/branch/tag, default to the repository’s default branch.
|
||||||
String includes = "includes_example"; // String | By default this API's response only contains file's metadata. Use comma-separated \"includes\" options to retrieve more fields. Option \"file_content\" will try to retrieve the file content, option \"lfs_metadata\" will try to retrieve LFS metadata.
|
String includes = "includes_example"; // String | By default this API's response only contains file's metadata. Use comma-separated \"includes\" options to retrieve more fields. Option \"file_content\" will try to retrieve the file content, \"lfs_metadata\" will try to retrieve LFS metadata, \"commit_metadata\" will try to retrieve commit metadata, and \"commit_message\" will try to retrieve commit message.
|
||||||
try {
|
try {
|
||||||
ContentsExtResponse result = apiInstance.repoGetContentsExt(owner, repo, filepath, ref, includes);
|
ContentsExtResponse result = apiInstance.repoGetContentsExt(owner, repo, filepath, ref, includes);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -9743,9 +9743,9 @@ Name | Type | Description | Notes
|
|||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**owner** | **String**| owner of the repo |
|
**owner** | **String**| owner of the repo |
|
||||||
**repo** | **String**| name of the repo |
|
**repo** | **String**| name of the repo |
|
||||||
**filepath** | **String**| path of the dir, file, symlink or submodule in the repo |
|
**filepath** | **String**| path of the dir, file, symlink or submodule in the repo. Swagger requires path parameter to be \"required\", you can leave it empty or pass a single dot (\".\") to get the root directory. |
|
||||||
**ref** | **String**| the name of the commit/branch/tag, default to the repository’s default branch. | [optional]
|
**ref** | **String**| the name of the commit/branch/tag, default to the repository’s default branch. | [optional]
|
||||||
**includes** | **String**| By default this API's response only contains file's metadata. Use comma-separated \"includes\" options to retrieve more fields. Option \"file_content\" will try to retrieve the file content, option \"lfs_metadata\" will try to retrieve LFS metadata. | [optional]
|
**includes** | **String**| By default this API's response only contains file's metadata. Use comma-separated \"includes\" options to retrieve more fields. Option \"file_content\" will try to retrieve the file content, \"lfs_metadata\" will try to retrieve LFS metadata, \"commit_metadata\" will try to retrieve commit metadata, and \"commit_message\" will try to retrieve commit message. | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@@ -1694,13 +1694,17 @@ public interface RepositoryApi {
|
|||||||
*
|
*
|
||||||
* @param owner owner of the repo (required)
|
* @param owner owner of the repo (required)
|
||||||
* @param repo name of the repo (required)
|
* @param repo name of the repo (required)
|
||||||
* @param filepath path of the dir, file, symlink or submodule in the repo (required)
|
* @param filepath path of the dir, file, symlink or submodule in the repo. Swagger requires path
|
||||||
|
* parameter to be \"required\", you can leave it empty or pass a single dot
|
||||||
|
* (\".\") to get the root directory. (required)
|
||||||
* @param ref the name of the commit/branch/tag, default to the repository’s default branch.
|
* @param ref the name of the commit/branch/tag, default to the repository’s default branch.
|
||||||
* (optional)
|
* (optional)
|
||||||
* @param includes By default this API's response only contains file's metadata. Use
|
* @param includes By default this API's response only contains file's metadata. Use
|
||||||
* comma-separated \"includes\" options to retrieve more fields. Option
|
* comma-separated \"includes\" options to retrieve more fields. Option
|
||||||
* \"file_content\" will try to retrieve the file content, option
|
* \"file_content\" will try to retrieve the file content,
|
||||||
* \"lfs_metadata\" will try to retrieve LFS metadata. (optional)
|
* \"lfs_metadata\" will try to retrieve LFS metadata, \"commit_metadata\"
|
||||||
|
* will try to retrieve commit metadata, and \"commit_message\" will try to retrieve
|
||||||
|
* commit message. (optional)
|
||||||
* @return Call<ContentsExtResponse>
|
* @return Call<ContentsExtResponse>
|
||||||
*/
|
*/
|
||||||
@GET("repos/{owner}/{repo}/contents-ext/{filepath}")
|
@GET("repos/{owner}/{repo}/contents-ext/{filepath}")
|
||||||
|
|||||||
@@ -50,6 +50,9 @@ public class ContentsResponse implements Serializable {
|
|||||||
@SerializedName("last_author_date")
|
@SerializedName("last_author_date")
|
||||||
private Date lastAuthorDate = null;
|
private Date lastAuthorDate = null;
|
||||||
|
|
||||||
|
@SerializedName("last_commit_message")
|
||||||
|
private String lastCommitMessage = null;
|
||||||
|
|
||||||
@SerializedName("last_commit_sha")
|
@SerializedName("last_commit_sha")
|
||||||
private String lastCommitSha = null;
|
private String lastCommitSha = null;
|
||||||
|
|
||||||
@@ -219,6 +222,25 @@ public class ContentsResponse implements Serializable {
|
|||||||
this.lastAuthorDate = lastAuthorDate;
|
this.lastAuthorDate = lastAuthorDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ContentsResponse lastCommitMessage(String lastCommitMessage) {
|
||||||
|
this.lastCommitMessage = lastCommitMessage;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get lastCommitMessage
|
||||||
|
*
|
||||||
|
* @return lastCommitMessage
|
||||||
|
*/
|
||||||
|
@Schema(description = "")
|
||||||
|
public String getLastCommitMessage() {
|
||||||
|
return lastCommitMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastCommitMessage(String lastCommitMessage) {
|
||||||
|
this.lastCommitMessage = lastCommitMessage;
|
||||||
|
}
|
||||||
|
|
||||||
public ContentsResponse lastCommitSha(String lastCommitSha) {
|
public ContentsResponse lastCommitSha(String lastCommitSha) {
|
||||||
this.lastCommitSha = lastCommitSha;
|
this.lastCommitSha = lastCommitSha;
|
||||||
return this;
|
return this;
|
||||||
@@ -466,6 +488,7 @@ public class ContentsResponse implements Serializable {
|
|||||||
&& Objects.equals(this.gitUrl, contentsResponse.gitUrl)
|
&& Objects.equals(this.gitUrl, contentsResponse.gitUrl)
|
||||||
&& Objects.equals(this.htmlUrl, contentsResponse.htmlUrl)
|
&& Objects.equals(this.htmlUrl, contentsResponse.htmlUrl)
|
||||||
&& Objects.equals(this.lastAuthorDate, contentsResponse.lastAuthorDate)
|
&& Objects.equals(this.lastAuthorDate, contentsResponse.lastAuthorDate)
|
||||||
|
&& Objects.equals(this.lastCommitMessage, contentsResponse.lastCommitMessage)
|
||||||
&& Objects.equals(this.lastCommitSha, contentsResponse.lastCommitSha)
|
&& Objects.equals(this.lastCommitSha, contentsResponse.lastCommitSha)
|
||||||
&& Objects.equals(this.lastCommitterDate, contentsResponse.lastCommitterDate)
|
&& Objects.equals(this.lastCommitterDate, contentsResponse.lastCommitterDate)
|
||||||
&& Objects.equals(this.lfsOid, contentsResponse.lfsOid)
|
&& Objects.equals(this.lfsOid, contentsResponse.lfsOid)
|
||||||
@@ -490,6 +513,7 @@ public class ContentsResponse implements Serializable {
|
|||||||
gitUrl,
|
gitUrl,
|
||||||
htmlUrl,
|
htmlUrl,
|
||||||
lastAuthorDate,
|
lastAuthorDate,
|
||||||
|
lastCommitMessage,
|
||||||
lastCommitSha,
|
lastCommitSha,
|
||||||
lastCommitterDate,
|
lastCommitterDate,
|
||||||
lfsOid,
|
lfsOid,
|
||||||
@@ -516,6 +540,7 @@ public class ContentsResponse implements Serializable {
|
|||||||
sb.append(" gitUrl: ").append(toIndentedString(gitUrl)).append("\n");
|
sb.append(" gitUrl: ").append(toIndentedString(gitUrl)).append("\n");
|
||||||
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
|
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
|
||||||
sb.append(" lastAuthorDate: ").append(toIndentedString(lastAuthorDate)).append("\n");
|
sb.append(" lastAuthorDate: ").append(toIndentedString(lastAuthorDate)).append("\n");
|
||||||
|
sb.append(" lastCommitMessage: ").append(toIndentedString(lastCommitMessage)).append("\n");
|
||||||
sb.append(" lastCommitSha: ").append(toIndentedString(lastCommitSha)).append("\n");
|
sb.append(" lastCommitSha: ").append(toIndentedString(lastCommitSha)).append("\n");
|
||||||
sb.append(" lastCommitterDate: ").append(toIndentedString(lastCommitterDate)).append("\n");
|
sb.append(" lastCommitterDate: ").append(toIndentedString(lastCommitterDate)).append("\n");
|
||||||
sb.append(" lfsOid: ").append(toIndentedString(lfsOid)).append("\n");
|
sb.append(" lfsOid: ").append(toIndentedString(lfsOid)).append("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user