Class ResourceQuery<T>
- java.lang.Object
-
- io.gravitee.kubernetes.client.api.ResourceQuery<T>
-
public class ResourceQuery<T> extends Object
- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceQuery.QueryBuilder<T>
-
Field Summary
Fields Modifier and Type Field Description protected List<FieldSelector>fieldSelectorsprotected List<LabelSelector>labelSelectorsprotected Stringnamespaceprotected Stringresourceprotected StringresourceKeyprotected Typetype
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceQuery(String namespace, Type type, String resource, String resourceKey, List<FieldSelector> fieldSelectors, List<LabelSelector> labelSelectors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>buildParameters()static ResourceQuery.QueryBuilder<ConfigMap>configMap(String namespace, String configMapName)static ResourceQuery.QueryBuilder<ConfigMapList>configMaps()static ResourceQuery.QueryBuilder<ConfigMapList>configMaps(String namespace)booleanequals(Object o)static <T> ResourceQuery.QueryBuilder<T>from(String location)StringgetNamespace()StringgetResource()StringgetResourceKey()Class<T>getType()protected static booleanhasEmptyValues(String[] properties)inthashCode()static ResourceQuery.QueryBuilder<Secret>secret(String namespace, String secretName)static ResourceQuery.QueryBuilder<SecretList>secrets()static ResourceQuery.QueryBuilder<SecretList>secrets(String namespace)StringtoUri()
-
-
-
Field Detail
-
type
protected final Type type
-
namespace
protected final String namespace
-
resource
protected final String resource
-
resourceKey
protected final String resourceKey
-
fieldSelectors
protected final List<FieldSelector> fieldSelectors
-
labelSelectors
protected final List<LabelSelector> labelSelectors
-
-
Constructor Detail
-
ResourceQuery
protected ResourceQuery(String namespace, Type type, String resource, String resourceKey, List<FieldSelector> fieldSelectors, List<LabelSelector> labelSelectors)
-
-
Method Detail
-
configMaps
public static ResourceQuery.QueryBuilder<ConfigMapList> configMaps()
-
configMaps
public static ResourceQuery.QueryBuilder<ConfigMapList> configMaps(String namespace)
-
configMap
public static ResourceQuery.QueryBuilder<ConfigMap> configMap(String namespace, String configMapName)
-
secrets
public static ResourceQuery.QueryBuilder<SecretList> secrets()
-
secrets
public static ResourceQuery.QueryBuilder<SecretList> secrets(String namespace)
-
secret
public static ResourceQuery.QueryBuilder<Secret> secret(String namespace, String secretName)
-
from
public static <T> ResourceQuery.QueryBuilder<T> from(String location)
-
getType
public Class<T> getType()
-
getResource
public String getResource()
-
getNamespace
public String getNamespace()
-
getResourceKey
public String getResourceKey()
-
toUri
public String toUri()
-
hasEmptyValues
protected static boolean hasEmptyValues(String[] properties)
-
-