Commit 9cd1108a authored by Ben Boeckel's avatar Ben Boeckel
Browse files

types: update for 8.14

parent 3e56d983
......@@ -3,7 +3,7 @@
This library implements an interface to communicate with a Gitlab instance. Not
all API endpoints are implemented, but patches are welcome.
The API is based off of the 8.13.0 API and will likely aggressively track new
The API is based off of the 8.14.0 API and will likely aggressively track new
API additions, so the newest release may not support talking to older releases
where fields have been added..
......@@ -127,10 +127,12 @@ pub struct Identity {
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq)]
/// Type-safe theme ID.
pub struct ThemeId(u64);
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq)]
/// Type-safe color scheme ID.
pub struct ColorSchemeId(u64);
#[derive(Serialize, Deserialize, Debug)]
/// Full user structure information.
......@@ -425,7 +427,7 @@ pub struct Permissions {
#[derive(Serialize, Deserialize, Debug)]
pub struct ProjectNamespaceAvatar {
pub url: String,
pub url: Option<String>,
#[derive(Serialize, Deserialize, Debug)]
......@@ -519,8 +521,14 @@ pub struct Project {
/// Whether builds are publicly visible.
pub public_builds: bool,
pub shared_with_groups: Vec<SharedGroup>,
pub only_allow_merge_if_build_succeeds: bool,
pub only_allow_merge_if_build_succeeds: Option<bool>,
pub only_allow_merge_if_all_discussions_are_resolved: Option<bool>,
pub request_access_enabled: bool,
pub builds_enabled: bool,
pub issues_enabled: bool,
pub merge_requests_enabled: bool,
pub snippets_enabled: bool,
pub wiki_enabled: bool,
/// If this is present, it is `ProjectWithAccess`, but since it is so similar, just have it be
/// optional here.
......@@ -729,6 +737,7 @@ pub struct Commit {
pub struct RepoBranch {
pub name: String,
pub commit: Option<Commit>,
pub merged: Option<bool>,
pub protected: Option<bool>,
pub developers_can_push: Option<bool>,
pub developers_can_merge: Option<bool>,
......@@ -765,6 +774,7 @@ pub struct RepoTreeObject {
pub name: String,
pub type_: ObjectType,
pub path: String,
pub mode: String,
......@@ -776,6 +786,8 @@ pub struct RepoCommit {
pub author_name: String,
pub author_email: String,
pub created_at: DateTime<UTC>,
pub committer_name: String,
pub committer_email: String,
pub message: String,
......@@ -868,6 +880,7 @@ pub struct Milestone {
pub created_at: DateTime<UTC>,
pub updated_at: DateTime<UTC>,
pub due_date: Option<NaiveDate>,
pub start_date: DateTime<UTC>,
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq)]
......@@ -898,6 +911,7 @@ pub struct Issue {
pub updated_at: DateTime<UTC>,
pub labels: Vec<String>,
pub milestone: Option<Milestone>,
pub author: UserBasic,
pub assignee: Option<UserBasic>,
pub subscribed: bool,
pub user_notes_count: u64,
......@@ -1645,6 +1659,7 @@ impl_id!(BuildId);
// expose :user, with: Entities::UserBasic
// expose :created_at, :updated_at, :started_at, :finished_at, :committed_at
// expose :duration
// expose :coverage
//class MergeRequestDiff < Grape::Entity
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment