public class TypeMetaFactory extends Object implements ITypeFactory, ResourcePropertyKeys
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE| Constructor and Description |
|---|
TypeMetaFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createInstanceFrom(String response)
Create a resource from a response string
|
Object |
stubKind(String kind,
Optional<String> name,
Optional<String> namespace)
Stub out the given resource kind using a version determined by the factory
|
public Object stubKind(String kind, Optional<String> name, Optional<String> namespace)
ITypeFactorystubKind in interface ITypeFactorykind - - Required. For arg types it may be in the form of
apigroup/version.kindname - - The name of the kind which may only be significant for instances
that can be persisted by the server (e.g. Service)namespace - - The namespace of the kind which may only be significant for
instance that can be persistedpublic Object createInstanceFrom(String response)
ITypeFactorycreateInstanceFrom in interface ITypeFactoryCopyright © 2019 Red Hat, Inc. All Rights Reserved.