Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
91fbe829
Commit
91fbe829
authored
Apr 08, 2017
by
Greg Messner
Browse files
Re-worked to be consistient with rest of API.
parent
f95da6d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/ProjectHook.java
View file @
91fbe829
...
@@ -7,30 +7,35 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,30 +7,35 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ProjectHook
{
public
class
ProjectHook
{
private
Boolean
build
_e
vents
;
private
Boolean
build
E
vents
;
private
Date
createdAt
;
private
Date
createdAt
;
private
Boolean
enable
_ssl_v
erification
;
private
Boolean
enable
SslV
erification
;
private
Integer
id
;
private
Integer
id
;
private
Boolean
issuesEvents
;
private
Boolean
issuesEvents
;
private
Boolean
mergeRequestsEvents
;
private
Boolean
mergeRequestsEvents
;
private
Boolean
note_events
;
private
Boolean
noteEvents
;
private
Boolean
pipeline_events
;
private
Boolean
jobEvents
;
private
Boolean
pipelineEvents
;
private
Integer
projectId
;
private
Integer
projectId
;
private
Boolean
pushEvents
;
private
Boolean
pushEvents
;
private
Boolean
tag
_p
ush
_e
vents
;
private
Boolean
tag
P
ush
E
vents
;
private
String
url
;
private
String
url
;
private
Boolean
wiki_page_events
;
private
Boolean
wikiPageEvents
;
private
String
token
;
public
Boolean
getBuild_events
()
{
return
build_events
;
public
Boolean
getBuildEvents
()
{
return
buildEvents
;
}
}
public
void
setBuild
_e
vents
(
Boolean
build
_e
vents
)
{
public
void
setBuild
E
vents
(
Boolean
build
E
vents
)
{
this
.
build
_e
vents
=
build
_e
vents
;
this
.
build
E
vents
=
build
E
vents
;
}
}
public
Date
getCreatedAt
()
{
public
Date
getCreatedAt
()
{
...
@@ -41,12 +46,12 @@ public class ProjectHook {
...
@@ -41,12 +46,12 @@ public class ProjectHook {
this
.
createdAt
=
createdAt
;
this
.
createdAt
=
createdAt
;
}
}
public
Boolean
getEnable
_ssl_v
erification
()
{
public
Boolean
getEnable
SslV
erification
()
{
return
enable
_ssl_v
erification
;
return
enable
SslV
erification
;
}
}
public
void
setEnable
_ssl_v
erification
(
Boolean
enable
_ssl_v
erification
)
{
public
void
setEnable
SslV
erification
(
Boolean
enable
SslV
erification
)
{
this
.
enable
_ssl_v
erification
=
enable
_ssl_v
erification
;
this
.
enable
SslV
erification
=
enable
SslV
erification
;
}
}
public
Integer
getId
()
{
public
Integer
getId
()
{
...
@@ -73,20 +78,28 @@ public class ProjectHook {
...
@@ -73,20 +78,28 @@ public class ProjectHook {
this
.
mergeRequestsEvents
=
mergeRequestsEvents
;
this
.
mergeRequestsEvents
=
mergeRequestsEvents
;
}
}
public
Boolean
getNote
_e
vents
()
{
public
Boolean
getNote
E
vents
()
{
return
note
_e
vents
;
return
note
E
vents
;
}
}
public
void
setNote_events
(
Boolean
note_events
)
{
public
void
setNoteEvents
(
Boolean
noteEvents
)
{
this
.
note_events
=
note_events
;
this
.
noteEvents
=
noteEvents
;
}
public
Boolean
getJobEvents
()
{
return
jobEvents
;
}
}
public
Boolean
getPipeline_e
vents
(
)
{
public
void
setJobEvents
(
Boolean
jobE
vents
)
{
return
pipeline_e
vents
;
this
.
jobEvents
=
jobE
vents
;
}
}
public
void
setPipeline_events
(
Boolean
pipeline_events
)
{
public
Boolean
getPipelineEvents
()
{
this
.
pipeline_events
=
pipeline_events
;
return
pipelineEvents
;
}
public
void
setPipelineEvents
(
Boolean
pipelineEvents
)
{
this
.
pipelineEvents
=
pipelineEvents
;
}
}
public
Integer
getProjectId
()
{
public
Integer
getProjectId
()
{
...
@@ -105,12 +118,20 @@ public class ProjectHook {
...
@@ -105,12 +118,20 @@ public class ProjectHook {
this
.
pushEvents
=
pushEvents
;
this
.
pushEvents
=
pushEvents
;
}
}
public
Boolean
getTag
_p
ush
_e
vents
()
{
public
Boolean
getTag
P
ush
E
vents
()
{
return
tag
_p
ush
_e
vents
;
return
tag
P
ush
E
vents
;
}
}
public
void
setTag_push_events
(
Boolean
tag_push_events
)
{
public
void
setTagPushEvents
(
Boolean
tagPushEvents
)
{
this
.
tag_push_events
=
tag_push_events
;
this
.
tagPushEvents
=
tagPushEvents
;
}
public
String
getToken
()
{
return
token
;
}
public
void
setToken
(
String
token
)
{
this
.
token
=
token
;
}
}
public
String
getUrl
()
{
public
String
getUrl
()
{
...
@@ -121,11 +142,119 @@ public class ProjectHook {
...
@@ -121,11 +142,119 @@ public class ProjectHook {
this
.
url
=
url
;
this
.
url
=
url
;
}
}
public
Boolean
getWikiPageEvents
()
{
return
wikiPageEvents
;
}
public
void
setWikiPageEvents
(
Boolean
wikiPageEvents
)
{
this
.
wikiPageEvents
=
wikiPageEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #getBuildEvents()}
*/
@Deprecated
@JsonIgnore
public
Boolean
getBuild_events
()
{
return
buildEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #setBuildEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public
void
setBuild_events
(
Boolean
buildEvents
)
{
this
.
buildEvents
=
buildEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #getEnableSslVerification()}
*/
@Deprecated
@JsonIgnore
public
Boolean
getEnable_ssl_verification
()
{
return
enableSslVerification
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #setEnableSslVerification(Boolean)}
*/
@Deprecated
@JsonIgnore
public
void
setEnable_ssl_verification
(
Boolean
enableSslVerification
)
{
this
.
enableSslVerification
=
enableSslVerification
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #getNoteEvents()}
*/
@Deprecated
@JsonIgnore
public
Boolean
getNote_events
()
{
return
noteEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #setNoteEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public
void
setNote_events
(
Boolean
noteEvents
)
{
this
.
noteEvents
=
noteEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #getPipelineEvents()}
*/
@Deprecated
@JsonIgnore
public
Boolean
getPipeline_events
()
{
return
pipelineEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #setPipelineEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public
void
setPipeline_events
(
Boolean
pipelineEvents
)
{
this
.
pipelineEvents
=
pipelineEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #getTagPushEvents()}
*/
@Deprecated
@JsonIgnore
public
Boolean
getTag_push_events
()
{
return
tagPushEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #setTagPushEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public
void
setTag_push_events
(
Boolean
tagPushEvents
)
{
this
.
tagPushEvents
=
tagPushEvents
;
}
/**
* @deprecated As of release 4.1.0, replaced by {@link #getWikiPageEvents()}
*/
@Deprecated
@JsonIgnore
public
Boolean
getWiki_page_events
()
{
public
Boolean
getWiki_page_events
()
{
return
wiki
_p
age
_e
vents
;
return
wiki
P
age
E
vents
;
}
}
public
void
setWiki_page_events
(
Boolean
wiki_page_events
)
{
/**
this
.
wiki_page_events
=
wiki_page_events
;
* @deprecated As of release 4.1.0, replaced by {@link #setWikiPageEvents(Boolean)}
*/
@Deprecated
@JsonIgnore
public
void
setWiki_page_events
(
Boolean
wikiPageEvents
)
{
this
.
wikiPageEvents
=
wikiPageEvents
;
}
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment