// description: "'content' must be base64 encoded\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'sha' is the SHA for the file that already exists\n\n 'new_branch' (optional) will make a new branch from 'branch' before creating the file"
// description: "'content' must be base64 encoded\n\n 'sha' is the SHA for the file that already exists\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'new_branch' (optional) will make a new branch from 'branch' before updating the file"
// description: "'sha' is the SHA for the file to be deleted\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'new_branch' (optional) will make a new branch from 'branch' before deleting the file"
"description": "'content' must be base64 encoded\n\n 'sha' is the SHA for the file that already exists\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'new_branch' (optional) will make a new branch from 'branch' before updating the file",
"name": "body",
"name": "body",
"in": "body",
"in": "body",
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/UpdateFileOptions"
"$ref": "#/definitions/UpdateFileOptions"
}
}
@ -1698,9 +1699,9 @@
"required": true
"required": true
},
},
{
{
"description": "'content' must be base64 encoded\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'sha' is the SHA for the file that already exists\n\n 'new_branch' (optional) will make a new branch from 'branch' before creating the file",
"name": "body",
"name": "body",
"in": "body",
"in": "body",
"required": true,
"schema": {
"schema": {
"$ref": "#/definitions/CreateFileOptions"
"$ref": "#/definitions/CreateFileOptions"
}
}
@ -1747,9 +1748,9 @@
"required": true
"required": true
},
},
{
{
"description": "'sha' is the SHA for the file to be deleted\n\n 'author' and 'committer' are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)\n\n If 'branch' is not given, default branch will be used\n\n 'new_branch' (optional) will make a new branch from 'branch' before deleting the file",
"description": "CreateFileOptions options for creating files",
"description": "CreateFileOptions options for creating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
"type": "object",
"type": "object",
"required": [
"content"
],
"properties": {
"properties": {
"author": {
"author": {
"$ref": "#/definitions/Identity"
"$ref": "#/definitions/Identity"
},
},
"branch": {
"branch": {
"description": "branch (optional) to base this file from. if not given, the default branch is used",
"type": "string",
"type": "string",
"x-go-name": "BranchName"
"x-go-name": "BranchName"
},
},
@ -6949,14 +6954,17 @@
"$ref": "#/definitions/Identity"
"$ref": "#/definitions/Identity"
},
},
"content": {
"content": {
"description": "content must be base64 encoded",
"type": "string",
"type": "string",
"x-go-name": "Content"
"x-go-name": "Content"
},
},
"message": {
"message": {
"description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
"type": "string",
"type": "string",
"x-go-name": "Message"
"x-go-name": "Message"
},
},
"new_branch": {
"new_branch": {
"description": "new_branch (optional) will make a new branch from `branch` before creating the file",
"type": "string",
"type": "string",
"x-go-name": "NewBranchName"
"x-go-name": "NewBranchName"
}
}
@ -7191,7 +7199,14 @@
"x-go-name": "UserName"
"x-go-name": "UserName"
},
},
"visibility": {
"visibility": {
"$ref": "#/definitions/VisibleType"
"description": "possible values are `public` (default), `limited` or `private`",
"description": "DeleteFileOptions options for deleting files (used for other File structs below)",
"description": "DeleteFileOptions options for deleting files (used for other File structs below)\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
"type": "object",
"type": "object",
"required": [
"sha"
],
"properties": {
"properties": {
"author": {
"author": {
"$ref": "#/definitions/Identity"
"$ref": "#/definitions/Identity"
},
},
"branch": {
"branch": {
"description": "branch (optional) to base this file from. if not given, the default branch is used",
"type": "string",
"type": "string",
"x-go-name": "BranchName"
"x-go-name": "BranchName"
},
},
@ -7473,14 +7492,17 @@
"$ref": "#/definitions/Identity"
"$ref": "#/definitions/Identity"
},
},
"message": {
"message": {
"description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
"type": "string",
"type": "string",
"x-go-name": "Message"
"x-go-name": "Message"
},
},
"new_branch": {
"new_branch": {
"description": "new_branch (optional) will make a new branch from `branch` before creating the file",
"type": "string",
"type": "string",
"x-go-name": "NewBranchName"
"x-go-name": "NewBranchName"
},
},
"sha": {
"sha": {
"description": "sha is the SHA for the file that already exists",
"type": "string",
"type": "string",
"x-go-name": "SHA"
"x-go-name": "SHA"
}
}
@ -7703,6 +7725,16 @@
"type": "string",
"type": "string",
"x-go-name": "Location"
"x-go-name": "Location"
},
},
"visibility": {
"description": "possible values are `public`, `limited` or `private`",
"description": "UpdateFileOptions options for updating files",
"description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
"type": "object",
"type": "object",
"required": [
"sha",
"content"
],
"properties": {
"properties": {
"author": {
"author": {
"$ref": "#/definitions/Identity"
"$ref": "#/definitions/Identity"
},
},
"branch": {
"branch": {
"description": "branch (optional) to base this file from. if not given, the default branch is used",
"type": "string",
"type": "string",
"x-go-name": "BranchName"
"x-go-name": "BranchName"
},
},
@ -9551,22 +9589,27 @@
"$ref": "#/definitions/Identity"
"$ref": "#/definitions/Identity"
},
},
"content": {
"content": {
"description": "content must be base64 encoded",
"type": "string",
"type": "string",
"x-go-name": "Content"
"x-go-name": "Content"
},
},
"from_path": {
"from_path": {
"description": "from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL",
"type": "string",
"type": "string",
"x-go-name": "FromPath"
"x-go-name": "FromPath"
},
},
"message": {
"message": {
"description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
"type": "string",
"type": "string",
"x-go-name": "Message"
"x-go-name": "Message"
},
},
"new_branch": {
"new_branch": {
"description": "new_branch (optional) will make a new branch from `branch` before creating the file",
"type": "string",
"type": "string",
"x-go-name": "NewBranchName"
"x-go-name": "NewBranchName"
},
},
"sha": {
"sha": {
"description": "sha is the SHA for the file that already exists",
"type": "string",
"type": "string",
"x-go-name": "SHA"
"x-go-name": "SHA"
}
}
@ -9631,12 +9674,6 @@
},
},
"x-go-package": "code.gitea.io/gitea/models"
"x-go-package": "code.gitea.io/gitea/models"
},
},
"VisibleType": {
"description": "VisibleType defines the visibility (Organization only)",