public class CreateOnlyResourceOperation<I,O> extends OperationSupport implements InOutCreateable<I,O>
Modifier and Type | Field and Description |
---|---|
protected Class<O> |
type |
apiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
Modifier | Constructor and Description |
---|---|
protected |
CreateOnlyResourceOperation(OperationContext ctx) |
Modifier and Type | Method and Description |
---|---|
O |
create(I... resources) |
O |
create(I item) |
I |
getItem() |
Class<O> |
getType() |
protected O |
handleCreate(I resource) |
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, isResourceNamespaced, requestException, requestFailure, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshal
protected CreateOnlyResourceOperation(OperationContext ctx)
protected O handleCreate(I resource) throws ExecutionException, InterruptedException, IOException
@SafeVarargs public final O create(I... resources)
create
in interface InOutCreateable<I,O>
public I getItem()
Copyright © 2015–2020 Red Hat. All rights reserved.