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
21422c46
Commit
21422c46
authored
Aug 04, 2020
by
Greg Messner
Browse files
Initial commit (#602)
parent
6e30ca73
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/RemoteMirror.java
0 → 100644
View file @
21422c46
package
org.gitlab4j.api.models
;
import
java.util.Date
;
import
org.gitlab4j.api.utils.JacksonJson
;
public
class
RemoteMirror
{
private
Integer
id
;
private
Boolean
enabled
;
private
String
lastError
;
private
Date
lastSuccessfulUpdateAt
;
private
Date
lastUpdateAt
;
private
Date
lastUpdateStartedAt
;
private
Boolean
onlyProtectedBranches
;
private
Boolean
keepDivergentRefs
;
private
String
updateStatus
;
private
String
url
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Boolean
getEnabled
()
{
return
enabled
;
}
public
void
setEnabled
(
Boolean
enabled
)
{
this
.
enabled
=
enabled
;
}
public
String
getLastError
()
{
return
lastError
;
}
public
void
setLastError
(
String
lastError
)
{
this
.
lastError
=
lastError
;
}
public
Date
getLastSuccessfulUpdateAt
()
{
return
lastSuccessfulUpdateAt
;
}
public
void
setLastSuccessfulUpdateAt
(
Date
lastSuccessfulUpdateAt
)
{
this
.
lastSuccessfulUpdateAt
=
lastSuccessfulUpdateAt
;
}
public
Date
getLastUpdateAt
()
{
return
lastUpdateAt
;
}
public
void
setLastUpdateAt
(
Date
lastUpdateAt
)
{
this
.
lastUpdateAt
=
lastUpdateAt
;
}
public
Date
getLastUpdateStartedAt
()
{
return
lastUpdateStartedAt
;
}
public
void
setLastUpdateStartedAt
(
Date
lastUpdateStartedAt
)
{
this
.
lastUpdateStartedAt
=
lastUpdateStartedAt
;
}
public
Boolean
getOnlyProtectedBranches
()
{
return
onlyProtectedBranches
;
}
public
void
setOnlyProtectedBranches
(
Boolean
onlyProtectedBranches
)
{
this
.
onlyProtectedBranches
=
onlyProtectedBranches
;
}
public
Boolean
getKeepDivergentRefs
()
{
return
keepDivergentRefs
;
}
public
void
setKeepDivergentRefs
(
Boolean
keepDivergentRefs
)
{
this
.
keepDivergentRefs
=
keepDivergentRefs
;
}
public
String
getUpdateStatus
()
{
return
updateStatus
;
}
public
void
setUpdateStatus
(
String
updateStatus
)
{
this
.
updateStatus
=
updateStatus
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
@Override
public
String
toString
()
{
return
JacksonJson
.
toJsonString
(
this
);
}
}
src/test/resources/org/gitlab4j/api/remote-mirror.json
0 → 100644
View file @
21422c46
{
"enabled"
:
false
,
"id"
:
101486
,
"last_successful_update_at"
:
"2020-01-06T17:32:02.823Z"
,
"last_update_at"
:
"2020-01-06T17:32:02.823Z"
,
"last_update_started_at"
:
"2020-01-06T17:31:55.864Z"
,
"only_protected_branches"
:
true
,
"keep_divergent_refs"
:
true
,
"update_status"
:
"finished"
,
"url"
:
"https://*****:*****@gitlab.com/gitlab-org/security/gitlab.git"
}
\ 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