All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.argocd.quarkus-argocd-templates.0.1.0.source-code.dsl.vm Maven / Gradle / Ivy

The newest version!
#set ($apiGroup = "")
#set ($apiVersion = "v1")
#set ($packageName  = "")
#foreach ($entry in ${model.entrySet()})
#set ($packageName  = $entry.getValue().getPackageName())
#foreach ($annotation in ${entry.getValue().getAnnotations()})
#if ($annotation.getClassRef().getFullyQualifiedName().equals("io.fabric8.kubernetes.model.annotation.Group"))
#set ($apiGroup = $annotation.getParameters().get("value").replace(".kubevirt.io","").replace("kubevirt.io", ""))
#end
#if ($annotation.getClassRef().getFullyQualifiedName().equals("io.fabric8.kubernetes.model.annotation.Version"))
#set ($apiVersion = $annotation.getParameters().get("value"))
#end
#end
#end
package $packageName;

#foreach ($entry in ${model.entrySet()})
import $entry.getKey();
import $entry.getKey()List;
#end

import io.fabric8.kubernetes.client.Client;
import io.fabric8.kubernetes.client.dsl.MixedOperation;
import io.fabric8.kubernetes.client.dsl.Resource;

#set ($apiVersion = $apiVersion.substring(0,1).toUpperCase()+$apiVersion.substring(1))
#set ($apiGroupLastDotIndex = $apiGroup.lastIndexOf(".") + 1)
#set ($className = $apiGroup.substring($apiGroupLastDotIndex)+$apiVersion+"DSL")
#set ($className = $className.substring(0,1).toUpperCase()+$className.substring(1))
public interface $className extends Client {
#foreach ($entry in ${model.entrySet()})
#set ($plural = $entry.getValue().getName())
#foreach ($annotation in ${entry.getValue().getAnnotations()})
#if ($annotation.getClassRef().getFullyQualifiedName().equals("io.fabric8.kubernetes.model.annotation.Plural"))
#set ($plural = $annotation.getParameters().get("value"))
  MixedOperation<${entry.getValue().name}, ${entry.getValue().name}List, Resource<${entry.getValue().name}>> $plural();
#end
#end
#end
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy