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
c8fb8a5e
Unverified
Commit
c8fb8a5e
authored
Dec 09, 2022
by
mmaker1234
Committed by
GitHub
Dec 09, 2022
Browse files
Add ExpiresAt field to SSH Key object (#857)
Co-authored-by:
Vladimir Krumov
<
vladimir.krumov@paysafe.com
>
parent
f9fbd882
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/SshKey.java
View file @
c8fb8a5e
...
...
@@ -12,6 +12,7 @@ public class SshKey {
private
String
title
;
private
String
key
;
private
Date
createdAt
;
private
Date
expiresAt
;
private
Long
userId
;
...
...
@@ -47,6 +48,14 @@ public class SshKey {
this
.
createdAt
=
createdAt
;
}
public
Date
getExpiresAt
()
{
return
expiresAt
;
}
public
void
setExpiresAt
(
Date
expiresAt
)
{
this
.
expiresAt
=
expiresAt
;
}
@JsonIgnore
public
Long
getUserId
()
{
return
userId
;
...
...
src/test/resources/org/gitlab4j/api/sshkey.json
View file @
c8fb8a5e
{
"id"
:
1
,
"title"
:
"Public key"
,
"key"
:
"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0="
,
"created_at"
:
"2014-08-01T14:47:39.080Z"
{
"id"
:
1
,
"title"
:
"Public key"
,
"key"
:
"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0="
,
"created_at"
:
"2014-08-01T14:47:39.080Z"
,
"expires_at"
:
"2015-08-01T14:47:39.080Z"
}
\ 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