class CreateOnlyResourceOperation<I, O> extends OperationSupport implements InOutCreateable<I, O> {
  protected Class<O> type;

  protected CreateOnlyResourceOperation(OperationContext ctx) {
    super(ctx);
  }

  public Class<O> getType() {
    return type;
  }

  protected O handleCreate(I resource) throws ExecutionException, InterruptedException, IOException {
    return handleCreate(resource, getType());
  }

  @Override
  public O create(I item) {<FILL_FUNCTION_BODY>}

}

    try {
      return handleCreate(item);
    } catch (ExecutionException | IOException e) {
      throw KubernetesClientException.launderThrowable(e);
    } catch (InterruptedException ie) {
      Thread.currentThread().interrupt();
      throw KubernetesClientException.launderThrowable(ie);
    }
  
<methods>public void <init>(io.fabric8.kubernetes.client.Client) ,public void <init>(io.fabric8.kubernetes.client.dsl.internal.OperationContext) ,public static Status createStatus(HttpResponse<?>, io.fabric8.kubernetes.client.utils.KubernetesSerialization) ,public static Status createStatus(int, java.lang.String) ,public java.lang.String getAPIGroupName() ,public java.lang.String getAPIGroupVersion() ,public io.fabric8.kubernetes.client.Config getConfig() ,public io.fabric8.kubernetes.client.utils.KubernetesSerialization getKubernetesSerialization() ,public java.lang.String getName() ,public java.lang.String getNamespace() ,public java.net.URL getNamespacedUrl(java.lang.String) throws java.net.MalformedURLException,public java.net.URL getNamespacedUrl() throws java.net.MalformedURLException,public io.fabric8.kubernetes.client.dsl.internal.OperationContext getOperationContext() ,public io.fabric8.kubernetes.client.RequestConfig getRequestConfig() ,public java.lang.String getResourceT() ,public java.net.URL getResourceURLForPatchOperation(java.net.URL, io.fabric8.kubernetes.client.dsl.base.PatchContext) throws java.net.MalformedURLException,public java.net.URL getResourceURLForWriteOperation(java.net.URL) throws java.net.MalformedURLException,public transient java.net.URL getResourceUrl(java.lang.String, java.lang.String, java.lang.String[]) throws java.net.MalformedURLException,public java.net.URL getResourceUrl(java.lang.String, java.lang.String) throws java.net.MalformedURLException,public java.net.URL getResourceUrl() throws java.net.MalformedURLException,public R1 handleRaw(Class<R1>, java.lang.String, java.lang.String, java.lang.Object) ,public boolean isResourceNamespaced() ,public static io.fabric8.kubernetes.client.KubernetesClientException requestException(io.fabric8.kubernetes.client.http.HttpRequest, java.lang.Throwable, java.lang.String) ,public static io.fabric8.kubernetes.client.KubernetesClientException requestException(io.fabric8.kubernetes.client.http.HttpRequest, java.lang.Exception) ,public static io.fabric8.kubernetes.client.KubernetesClientException requestFailure(io.fabric8.kubernetes.client.http.HttpRequest, Status) ,public static io.fabric8.kubernetes.client.KubernetesClientException requestFailure(io.fabric8.kubernetes.client.http.HttpRequest, Status, java.lang.String) ,public transient R1 restCall(Class<R1>, java.lang.String[]) <variables>private static final java.lang.String CLIENT_STATUS_FLAG,private static final java.lang.String FIELD_MANAGER_PARAM,public static final java.lang.String JSON,public static final java.lang.String JSON_MERGE_PATCH,public static final java.lang.String JSON_PATCH,private static final Logger LOG,public static final java.lang.String STRATEGIC_MERGE_JSON_PATCH,protected java.lang.String apiGroupName,protected java.lang.String apiGroupVersion,protected final non-sealed io.fabric8.kubernetes.client.Config config,protected io.fabric8.kubernetes.client.dsl.internal.OperationContext context,protected boolean dryRun,protected final non-sealed io.fabric8.kubernetes.client.http.HttpClient httpClient,protected java.lang.String name,protected java.lang.String namespace,protected final non-sealed java.lang.String resourceT,protected java.lang.String subresource