Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyaug committed Sep 26, 2023
1 parent 4c906dd commit fb2cbd1
Show file tree
Hide file tree
Showing 37 changed files with 4,475 additions and 2,140 deletions.
136 changes: 130 additions & 6 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2323,6 +2323,130 @@ paths:
default:
$ref: "#/components/responses/ServerError"

/repositories/{repository}/settings/gc_rules:
parameters:
- in: path
name: repository
required: true
schema:
type: string
get:
tags:
- repositories
operationId: getGCRules
summary: get repository GC rules
responses:
200:
description: repository GC rules
content:
application/json:
schema:
$ref: "#/components/schemas/GarbageCollectionRules"
401:
$ref: "#/components/responses/Unauthorized"
404:
$ref: "#/components/responses/NotFound"
default:
$ref: "#/components/responses/ServerError"
put:
tags:
- repositories
operationId: setGCRules
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/GarbageCollectionRules"
responses:
204:
description: set garbage collection rules successfully
401:
$ref: "#/components/responses/Unauthorized"
404:
$ref: "#/components/responses/NotFound"
default:
$ref: "#/components/responses/ServerError"
delete:
tags:
- repositories
operationId: deleteGCRules
responses:
204:
description: deleted garbage collection rules successfully
401:
$ref: "#/components/responses/Unauthorized"
404:
$ref: "#/components/responses/NotFound"
default:
$ref: "#/components/responses/ServerError"

/repositories/{repository}/settings/branch_protection:
parameters:
- in: path
name: repository
required: true
schema:
type: string
get:
tags:
- repositories
operationId: getBranchProtectionRules
summary: get branch protection rules
responses:
200:
description: branch protection rules
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/BranchProtectionRule"
headers:
ETag:
schema:
type: string
description: ETag of the branch protection rules
401:
$ref: "#/components/responses/Unauthorized"
404:
$ref: "#/components/responses/NotFound"
default:
$ref: "#/components/responses/ServerError"

put:
parameters:
- in: header
name: If-Match
schema:
type: string
description: if provided, the branch protection rules will be updated only if the current ETag match the provided value
allowEmptyValue: true
tags:
- repositories
operationId: setBranchProtectionRules
requestBody:
required: true
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/BranchProtectionRule"
responses:
204:
description: branch protection rule created successfully
400:
$ref: "#/components/responses/BadRequest"
401:
$ref: "#/components/responses/Unauthorized"
404:
$ref: "#/components/responses/NotFound"
412:
$ref: "#/components/responses/PreconditionFailed"
default:
$ref: "#/components/responses/ServerError"

/otf/diffs:
get:
tags:
Expand Down Expand Up @@ -4060,7 +4184,7 @@ paths:
get:
tags:
- internal
operationId: getGarbageCollectionRules
operationId: internalGetGarbageCollectionRules
responses:
200:
description: gc rule list
Expand All @@ -4078,7 +4202,7 @@ paths:
post:
tags:
- internal
operationId: set garbage collection rules
operationId: internalSetGarbageCollectionRules
requestBody:
required: true
content:
Expand All @@ -4097,7 +4221,7 @@ paths:
delete:
tags:
- internal
operationId: delete garbage collection rules
operationId: internalDeleteGarbageCollectionRules
responses:
204:
description: deleted garbage collection rules successfully
Expand Down Expand Up @@ -4200,7 +4324,7 @@ paths:
get:
tags:
- internal
operationId: getBranchProtectionRules
operationId: internalGetBranchProtectionRules
summary: get branch protection rules
responses:
200:
Expand All @@ -4221,7 +4345,7 @@ paths:
post:
tags:
- internal
operationId: createBranchProtectionRule
operationId: internalCreateBranchProtectionRule
requestBody:
required: true
content:
Expand All @@ -4240,7 +4364,7 @@ paths:
delete:
tags:
- internal
operationId: deleteBranchProtectionRule
operationId: internalDeleteBranchProtectionRule
requestBody:
required: true
content:
Expand Down
17 changes: 11 additions & 6 deletions clients/java/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fb2cbd1

Please sign in to comment.