public class ApiVersionUtil extends Object
Constructor and Description |
---|
ApiVersionUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> String |
apiGroup(T item,
String apiGroup)
Extracts apiGroupName from apiGroupVersion when in resource for apiGroupName/apiGroupVersion combination
|
static <T> String |
apiVersion(T item,
String apiVersion)
Returns the api version falling back to the items apiGroupVersion if not null.
|
public static <T> String apiGroup(T item, String apiGroup)
item
- resource which is being usedapiGroup
- apiGroupName present if anyCopyright © 2015–2020 Red Hat. All rights reserved.