-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #611 from PauloMigAlmeida/master
Implement Meta endpoint
- github-api-2.0.0-alpha-2
- github-api-2.0.0-alpha-1
- github-api-2.0-alpha-3
- github-api-1.327
- github-api-1.326
- github-api-1.325
- github-api-1.324
- github-api-1.323
- github-api-1.322
- github-api-1.321
- github-api-1.320
- github-api-1.319
- github-api-1.318
- github-api-1.317
- github-api-1.316
- github-api-1.315
- github-api-1.314
- github-api-1.313
- github-api-1.308
- github-api-1.307
- github-api-1.306
- github-api-1.305
- github-api-1.303
- github-api-1.302
- github-api-1.301
- github-api-1.300
- github-api-1.135
- github-api-1.133
- github-api-1.132
- github-api-1.131
- github-api-1.130
- github-api-1.129
- github-api-1.128
- github-api-1.127
- github-api-1.126
- github-api-1.125
- github-api-1.124
- github-api-1.123
- github-api-1.122
- github-api-1.121
- github-api-1.120
- github-api-1.119
- github-api-1.118
- github-api-1.117
- github-api-1.116
- github-api-1.115
- github-api-1.114
- github-api-1.113
- github-api-1.112
- github-api-1.111
- github-api-1.110
- github-api-1.109
- github-api-1.108
- github-api-1.107
- github-api-1.106
- github-api-1.105
- github-api-1.103
- github-api-1.102
- github-api-1.101
- github-api-1.100
Showing
6 changed files
with
707 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package org.kohsuke.github; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
/** | ||
* Class that wraps the list of GitHub's IP addresses. | ||
* | ||
* @author Paulo Miguel Almeida | ||
* | ||
* @see GitHub#getMeta() | ||
* @see <a href="https://developer.github.com/v3/meta/#meta">Get Meta</a> | ||
*/ | ||
|
||
public class GHMeta { | ||
|
||
@JsonProperty("verifiable_password_authentication") | ||
private boolean verifiablePasswordAuthentication; | ||
private List<String> hooks; | ||
private List<String> git; | ||
private List<String> web; | ||
private List<String> api; | ||
private List<String> pages; | ||
private List<String> importer = new ArrayList<>(); | ||
|
||
public boolean isVerifiablePasswordAuthentication() { | ||
return verifiablePasswordAuthentication; | ||
} | ||
|
||
public List<String> getHooks() { | ||
return Collections.unmodifiableList(hooks); | ||
} | ||
|
||
public List<String> getGit() { | ||
return Collections.unmodifiableList(git); | ||
} | ||
|
||
public List<String> getWeb() { | ||
return Collections.unmodifiableList(web); | ||
} | ||
|
||
public List<String> getApi() { | ||
return Collections.unmodifiableList(api); | ||
} | ||
|
||
public List<String> getPages() { | ||
return Collections.unmodifiableList(pages); | ||
} | ||
|
||
public List<String> getImporter() { | ||
return Collections.unmodifiableList(importer); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.