org.kohsuke.github.internal.Previews Maven / Gradle / Ivy
package org.kohsuke.github.internal;
/**
* Provides the media type strings for GitHub API previews
*
* https://developer.github.com/v3/previews/
*
* @author Kohsuke Kawaguchi
*/
public enum Previews {
/**
* Check-runs and check-suites
*
* @see GitHub API Previews
*/
ANTIOPE("application/vnd.github.antiope-preview+json"),
/**
* Enhanced Deployments
*
* @see GitHub API Previews
*/
ANT_MAN("application/vnd.github.ant-man-preview+json"),
/**
* Create repository from template repository
*
* @see GitHub API
* Previews
*/
BAPTISTE("application/vnd.github.baptiste-preview+json"),
/**
* Commit Search
*
* @see GitHub API Previews
*/
CLOAK("application/vnd.github.cloak-preview+json"),
/**
* New deployment statuses and support for updating deployment status environment
*
* @see GitHub API Previews
*/
FLASH("application/vnd.github.flash-preview+json"),
/**
* Owners of GitHub Apps can now uninstall an app using the Apps API
*
* @see GitHub API Previews
*/
GAMBIT("application/vnd.github.gambit-preview+json"),
/**
* List branches or pull requests for a commit
*
* @see GitHub API
* Previews
*/
GROOT("application/vnd.github.groot-preview+json"),
/**
* Manage projects
*
* @see GitHub API Previews
*/
INERTIA("application/vnd.github.inertia-preview+json"),
/**
* Update a pull request branch
*
* @see GitHub API Previews
*/
LYDIAN("application/vnd.github.lydian-preview+json"),
/**
* Require multiple approving reviews
*
* @see GitHub API
* Previews
*/
LUKE_CAGE("application/vnd.github.luke-cage-preview+json"),
/**
* Manage integrations through the API
*
* @see GitHub API Previews
*/
MACHINE_MAN("application/vnd.github.machine-man-preview+json"),
/**
* View a list of repository topics in calls that return repository results
*
* @see GitHub API Previews
*/
MERCY("application/vnd.github.mercy-preview+json"),
/**
* New visibility parameter for the Repositories API
*
* @see GitHub
* API Previews
*/
NEBULA("application/vnd.github.nebula-preview+json"),
/**
* Draft pull requests
*
* @see GitHub API Previews
*/
SHADOW_CAT("application/vnd.github.shadow-cat-preview+json"),
/**
* Reactions
*
* @see GitHub API Previews
*/
SQUIRREL_GIRL("application/vnd.github.squirrel-girl-preview+json"),
/**
* Require signed commits
*
* @see GitHub API Previews
*/
ZZZAX("application/vnd.github.zzzax-preview+json")
;
private final String mediaType;
Previews(String mediaType) {
this.mediaType = mediaType;
}
/**
* Gets the mediaType
*
* @return the media type string
*/
public String mediaType() {
return mediaType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy