Transforms the specified orchestrator-specific plain object into the init data (plain data object) required by the constructor of the corresponding Polaris object.
This method can be used by a transformer of a subclass U
of T
to delegate the extraction of the data required
by T
without instantiating T
. The transformer of U
can then add the data of its type before passing
all the init data to the constructor of U
.
The type of Polaris object, for which the init data should be extracted.
The orchestrator-specific plain object to be transformed. This is guaranteed to be neither null
nor undefined
.
The PolarisTransformationService
that issued this call. It can be used to delegate the
transformation of nested objects.
The init data for a Polaris object of type T
that results from transforming orchPlainObj
.
Transforms the specified Polaris object into an orchestrator-specific plain object that may be serialized without any further changes.
The Polaris object to be transformed. This is guaranteed to be neither null
nor undefined
.
The PolarisTransformationService
that issued this call. It can be used to delegate the
transformation of nested objects.
A new orchestrator-specific plain object that may be serialized without any further changes.
A JSON schema, based on that of Kubernetes TypeMeta
(https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#TypeMeta )
Transforms the specified orchestrator-specific plain object into a corresponding Polaris object.
The type of Polaris object that should be created.
The orchestrator-specific plain object to be transformed. This is guaranteed to be neither null
nor undefined
.
The PolarisTransformationService
that issued this call. It can be used to delegate the
transformation of nested objects.
A new Polaris object that results from transforming orchPlainObj
.
If this transformer should be inheritable, it is recommended to not instantiate a hardcoded Polaris type in this method,
but to use new polarisType(...)
instead.
Generated using TypeDoc
Transforms an
ObjectKind
between the Polaris format and a Kubernetes object of the form:PolarisTransformer info:
apiVersion
kind